/* Design tokens pulled from the reference site's actual Elementor global
   kit (post-6.css) and header/footer templates (post-32/34.css), not
   guessed — see README.md "Design source" for how these were extracted. */
:root {
    --color-primary: #004AAD;   /* brand blue */
    --color-secondary: #000000; /* black */
    --color-text: #1A1A1A;      /* near-black body text — kept readable, not pure #000 */
    --color-accent: #61CE70;    /* green, used sparingly (hover accents) */
    --color-bg-light: #E7E7E7;
    --color-border: #c4c4c4;

    --font-heading: "Roboto", sans-serif;       /* weight 600 */
    --font-secondary: "Roboto Slab", serif;      /* weight 400 */
    --font-nav: "Roboto Condensed", sans-serif;  /* weight 400 */
    --font-body: "Lato", sans-serif;

    --container-width: 1140px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background: #fff;
}

a { color: var(--color-primary); }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-secondary);
    line-height: 1.25;
}

.button, .elementor-button {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 17px;
    color: #fff;
    text-decoration: none;
    padding: 0.75em 1.5em;
    border: none;
    cursor: pointer;
}
.button--primary { background: var(--color-primary); }
.button--accent { background: var(--color-accent); }

/* ---------- Header: 3 stacked bands, matching the reference site ---------- */

.site-header { width: 100%; }

.header-band { padding: 0.75rem 1rem; }

.header-band--brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: var(--container-width);
    margin: 0 auto;
}
/* Real logo image sizing — square source art (1024x1024), so each
   placement constrains by height, not width, and lets width follow. */
.logo-image { max-height: 64px; width: auto; display: block; }
.footer-logo-image { max-height: 90px; width: auto; display: block; }
.welcome-logo-image { max-height: 80px; width: auto; display: block; margin: 0 auto; }

.logo-text, .footer-logo-text, .welcome-logo-text { display: inline-flex; flex-direction: column; line-height: 1.15; text-align: left; }
.logo-text__top, .footer-logo-text__top, .welcome-logo-text__top {
    font-family: var(--font-heading); font-weight: 700; font-size: 22px;
    color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.5px;
}
.logo-text__bottom, .footer-logo-text__bottom, .welcome-logo-text__bottom {
    font-family: var(--font-heading); font-weight: 400; font-size: 14px; color: var(--color-text);
}
.header-band--brand__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex: 1;
    min-width: 260px;
}
.header-phones { margin: 0; text-align: right; font-family: var(--font-body); font-size: 18px; font-weight: 700; color: var(--color-primary); }
.header-phones a { color: var(--color-primary); text-decoration: none; }
.header-phones .divider { color: var(--color-border); margin: 0 0.5em; }
.header-phones .phone-line { white-space: nowrap; }

.header-band--cta {
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
}
.header-band--cta__heading { color: #fff; font-size: 28px; margin: 0; }
.header-band--cta .button { font-size: 17px; }

.header-band--tagline {
    background: var(--color-primary);
    text-align: center;
}
.header-band--tagline h2 { color: #fff; font-weight: 300; font-size: 16px; margin: 0; }

/* ---------- Nav ---------- */

/* No horizontal auto-margin here: this nav lives inside
   .header-band--brand__right (a column flex container with
   align-items: flex-end), and an auto margin on the cross axis would
   center the nav instead of letting it sit flush right. */
.main-nav { position: relative; max-width: var(--container-width); }
.main-nav .nav-toggle { display: none; }
.main-nav .nav-menu > ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav a {
    display: block;
    padding: 5px 10px;
    font-family: var(--font-nav);
    font-size: 16px;
    color: var(--color-secondary);
    text-decoration: none;
    white-space: nowrap;
}
.main-nav > .nav-menu > ul > li > a { padding: 10px; }
.main-nav a:hover,
.main-nav li.active > a,
.main-nav a[aria-current="page"] { color: var(--color-primary); }
.main-nav .caret { display: inline-block; margin-left: 4px; border: 4px solid transparent; border-top-color: currentColor; vertical-align: middle; }

.main-nav li.has-children { position: relative; }
.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    width: 220px;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 20;
}
.main-nav li.has-children:hover > .sub-menu,
.main-nav li.has-children:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu li { border-bottom: 1px solid var(--color-border); }
.main-nav .sub-menu li:last-child { border-bottom: none; }
.main-nav .sub-menu a { padding: 15px; font-size: 14px; white-space: normal; }

@media (max-width: 900px) {
    .main-nav .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 36px;
        height: 32px;
        background: none;
        border: 1px solid var(--color-border);
        margin-left: auto;
    }
    .main-nav .nav-toggle span { display: block; height: 2px; background: var(--color-secondary); }
    .main-nav .nav-menu { display: none; width: 100%; }
    .main-nav .nav-menu.is-open { display: flex; flex-basis: 100%; }
    .main-nav .nav-menu > ul { flex-direction: column; width: 100%; }
    .main-nav .sub-menu { position: static; width: auto; box-shadow: none; }

    /* Un-nest phones/nav from their shared column wrapper so each can be
       placed independently: phones sit beside the logo on row 1, nav
       (hamburger, then the menu when open) becomes its own full-width
       row 2. display:contents removes the wrapper from the box model
       without touching the markup. */
    .header-band--brand__right { display: contents; }

    .header-phones {
        order: 1;
        text-align: right;
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }
    .header-phones .divider { display: none; }

    .main-nav {
        order: 2;
        flex: 1 0 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        margin-top: 0.5rem;
    }

    .header-band--cta {
        flex-direction: column;
        align-items: center;
    }
}

/* ---------- Page content ---------- */

main {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}
main article h1 { font-size: 34px; margin-top: 0; }
main .intro { font-size: 18px; color: var(--color-secondary); }
main .draft-notice { color: #92400e; background: #fff7ed; border: 1px dashed #f59e0b; padding: 0.5rem 0.75rem; border-radius: 4px; display: inline-block; }

/* ---------- Content pages with a sidebar contact form ---------- */
/* Used on the visa content pages, the contact page, and the
   consultation page — see shared/contact-form.php for which slugs get
   this treatment. */
.content-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2.5rem;
}
.content-layout__main { flex: 1 1 480px; min-width: 0; }
.content-layout__sidebar {
    flex: 1 1 340px;
    max-width: 380px;
    width: 100%;
    position: sticky;
    top: 1.5rem;
}
/* Re-skin the card for a plain white page background instead of the
   dark, full-bleed hero it was originally designed for. */
.content-layout__sidebar .contact-form-card {
    margin: 0;
    max-width: none;
    border: 1px solid var(--color-border);
}
@media (max-width: 800px) {
    .content-layout__sidebar { position: static; max-width: 100%; }
}

/* ---------- Consultation page: pricing-tier grid ---------- */

.consultation-plans {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin: 1.5rem 0 2.5rem;
}
.consultation-plan {
    flex: 1 1 220px;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 1.5rem 1.25rem;
}
.consultation-plan__tier { margin: 0 0 0.5rem; font-size: 14px; color: var(--color-primary); }
.consultation-plan__title { margin: 0 0 0.75rem; font-size: 19px; color: var(--color-primary); line-height: 1.3; }
.consultation-plan__price { margin: 0 0 0.5rem; font-size: 22px; font-weight: 700; color: var(--color-primary); }
.consultation-plan__mode { margin: 0 0 0.25rem; color: var(--color-primary); }
.consultation-plan__duration { margin: 0 0 1.25rem; font-weight: 700; color: var(--color-primary); }
.consultation-plan__features {
    flex: 1;
    text-align: left;
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}
.consultation-plan__features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 14px;
    color: var(--color-text);
}
.consultation-plan__features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: 700;
}
.consultation-plan__available { margin: 0 0 1rem; font-weight: 700; color: var(--color-primary); }
.consultation-plan__more { display: block; margin: 0 0 1rem; font-size: 14px; }
.consultation-plan__cta { margin-top: auto; font-size: 14px; text-transform: uppercase; }

.consultation-plans__policy {
    max-width: 760px;
    margin: 0 auto 0.75rem;
    text-align: center;
    font-size: 14px;
    color: var(--color-text);
}

/* ---------- Contact page: centered title + wide form card ---------- */

.contact-page { padding: 1rem 0 1.5rem; }
.contact-page__title {
    text-align: center;
    font-size: 30px;
    margin: 0 0 2.5rem;
}
/* Compound selector (not just .contact-form-card--wide) so this beats
   the base .contact-form-card rule on specificity — that rule is
   defined later in the file and would otherwise win the cascade on a
   plain single-class selector, same margin/max-width properties. */
.contact-form-card.contact-form-card--wide {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 3rem;
}
/* A wide card reads better with a normal-width, centered submit button
   than the full-width one the narrow hero/sidebar card uses. */
.contact-form-card--wide .contact-form button {
    width: auto;
    display: block;
    margin: 0.75rem auto 0;
    padding: 0.75em 3em;
}
@media (max-width: 700px) {
    .contact-form-card.contact-form-card--wide { padding: 2rem 1.5rem; }
}

/* FAQ block — styled after the reference layout: a centered uppercase
   title, then question/answer pairs where each question is a full-width
   colored bar and the answer sits underneath as plain body text. */
.quick-answers {
    margin-top: 2.5rem;
}
.quick-answers h2 {
    text-align: center;
    text-transform: uppercase;
    font-size: 28px;
    letter-spacing: 0.5px;
    margin: 0 0 1.5rem;
}
.quick-answers__item + .quick-answers__item { margin-top: 0.75rem; }
.quick-answers h3 {
    background: var(--color-primary);
    color: #fff;
    font-size: 17px;
    margin: 0;
    padding: 0.9rem 1.25rem;
}
.quick-answers p {
    margin: 0;
    padding: 1rem 1.25rem 1.5rem;
    color: var(--color-text);
}

/* ---------- Footer ---------- */

.site-footer { margin-top: 3rem; }

.footer-map-wrap { max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }
.footer-map { width: 100%; }
.footer-map iframe { width: 100%; height: 300px; display: block; border: 0; }

/* Short centered rule under a subheading, matching the reference site's
   Elementor divider widget (2px, primary blue, ~11% width, centered). */
.subheading-divider {
    width: 11%;
    min-width: 80px;
    max-width: 140px;
    height: 0;
    border-top: 2px solid var(--color-primary);
    margin: 0.75rem auto 0;
}

.footer-columns {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
}
.footer-col {
    flex: 1 1 220px;
    text-align: center;
    padding: 0 1rem;
    border-right: 1px solid var(--color-primary);
}
.footer-col:last-child { border-right: none; }
.footer-col h2 { color: var(--color-primary); font-size: 26px; }
.footer-col p, .footer-col a { font-family: var(--font-body); font-size: 16px; color: var(--color-primary); text-decoration: none; }

.social-icons { display: flex; justify-content: center; gap: 0.75rem; }
.social-icons a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff !important;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-bottom {
    background: var(--color-bg-light);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
}
.footer-bottom__brand img { max-width: 120px; height: auto; display: block; }
.footer-bottom__copy { color: #000; font-size: 13px; margin: 0; flex: 1; min-width: 260px; }

@media (max-width: 700px) {
    .footer-col { border-right: none; border-bottom: 1px solid var(--color-primary); padding-bottom: 1.5rem; }
    .footer-col:last-child { border-bottom: none; }

    .footer-bottom { justify-content: center; text-align: center; }
    .footer-bottom__brand { width: 100%; display: flex; justify-content: center; }
    .footer-bottom__brand img { max-width: 110px; margin: 0 auto; }
}

/* ---------- Homepage: hero + lead form ---------- */
/* Two plain columns — an image (not a background) on the left, a white
   panel with the site title/subtitle and the contact form on the
   right — per client feedback (2026-09-30 follow-up reference
   screenshot), replacing the earlier full-bleed background-image +
   dark-scrim + overlaid-white-text hero. */

.home-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    /* Break out of <main>'s max-width/padding so the section bleeds to
       the true viewport edge — standard "full-bleed inside a centered
       container" trick: works because main is itself centered (margin:
       0 auto), so 50% of main's width cancels 50vw's viewport offset. */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -2.5rem; /* cancels main's padding-top so there's no gap above */
}
/* Fixed (not flex-grow'd) percentage split so neither side can claim
   extra space from the other on wide screens. Client feedback
   (2026-09-30 follow-up, second round): reversed from the image's
   prior 45% back up to 55% — the panel now takes the smaller share. */
.home-hero__image { flex: 0 1 57%; min-height: 420px; }
.home-hero__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.home-hero__panel {
    flex: 1 1 43%;
    background: #E7E7E7;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 2rem;
}
.home-hero__title { margin: 0 0 0.25rem; font-size: 26px; text-align: center; }
.home-hero__subtitle { margin: 0 0 1.5rem; font-size: 16px; font-weight: 600; color: var(--color-secondary); text-align: center; }
/* Compound selector so this beats the base .contact-form-card rule on
   specificity (same reasoning as .contact-form-card--wide above). */
.contact-form-card.home-hero__form-card { width: 100%; max-width: 460px; margin: 0; }

.contact-form-card {
    background: var(--color-bg-light);
    max-width: 420px;
    margin: 0 -1.25rem 0 auto; /* nudged right, toward the image's true edge */
    padding: 2rem;
    text-align: left;
}
.contact-form-card h2 { text-align: center; text-transform: uppercase; font-size: 18px; letter-spacing: 1px; }
.contact-form label {
    display: block;
    margin-bottom: 0.9rem;
    font-size: 14px;
    color: var(--color-secondary);
}
.contact-form .req { color: #c0392b; }
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form textarea {
    display: block;
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 15px;
}
.contact-form label.consent { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 13px; }
.contact-form label.consent input { margin-top: 3px; }
.contact-form button { width: 100%; margin-top: 0.5rem; }

/* intl-tel-input wraps the phone <input> in a .iti container and adds
   its own flag dropdown on the left — match its spacing to this site's
   own field styling rather than the plugin's default look. */
.contact-form .iti { display: block; width: 100%; margin-top: 0.3rem; }
.contact-form .iti input[type="tel"] { margin-top: 0; padding-left: 52px; }
.contact-form .iti__flag-container { left: 8px; }

/* Submission status (LeadWhat fetch result / staging notice) */
.form-message {
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}
.form-message--info { background: #eaf2fc; color: #0d3d78; border: 1px solid #bcd7f5; }
.form-message--success { background: #eaf8f0; color: #1e6b3f; border: 1px solid #b6e3c7; }
.form-message--danger { background: #fdecea; color: #9c2a22; border: 1px solid #f3bdb8; }

@media (max-width: 700px) {
    .home-hero__image { flex-basis: 100%; min-height: 260px; }
    .home-hero__panel { flex-basis: 100%; padding: 2rem 1.25rem; }
    .contact-form-card { margin: 0 auto; max-width: 100%; }
}

/* ---------- Homepage: case-type icon cards ---------- */

.case-types { text-align: center; padding: 3rem 1.5rem; }
.case-types h2 { font-size: 32px; }
.case-types__subheading { color: var(--color-secondary); margin-top: -0.5rem; }
.case-types__grid {
    max-width: var(--container-width);
    margin: 2rem auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.case-card {
    flex: 1 1 200px;
    max-width: 240px;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 2rem 1rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.case-card__icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
}
.case-card__label { color: var(--color-secondary); font-weight: 600; }

/* ---------- Homepage: welcome section ---------- */

.welcome-section { text-align: center; padding: 1rem 1.5rem 3rem; }
.welcome-section h2 { font-size: 32px; }
.welcome-section__subheading { color: var(--color-secondary); }
.welcome-section__body { max-width: 760px; margin: 1rem auto 1.5rem; color: var(--color-text); }
.welcome-section__logo { margin-top: 1.5rem; display: flex; justify-content: center; }
