/* =========================================================
   FINIX PERTES — Global Mobility & Overseas Careers
   abroad.finixpertes.com
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
    --primary: #0B1F3A;
    --secondary: #123E68;
    --accent: #D4A72C;
    --accent-dark: #B88E1C;
    --blue: #1678BC;
    --light-blue: #EEF7FC;
    --light: #F7F9FC;
    --white: #FFFFFF;
    --text: #172033;
    --muted: #667085;
    --border: #E3E9F1;
    --whatsapp: #1FAF5A;

    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head: "Poppins", "Inter", system-ui, sans-serif;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 2px 8px rgba(11, 31, 58, .06);
    --shadow: 0 12px 32px rgba(11, 31, 58, .08);
    --shadow-lg: 0 30px 70px rgba(11, 31, 58, .18);

    --header-h: 78px;
    --container: 1240px;
    --gutter: 24px;
    --section-y: clamp(72px, 9vw, 120px);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 {
    font-family: var(--font-head);
    color: var(--primary);
    line-height: 1.15;
    margin: 0;
    letter-spacing: -.02em;
}
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
address { font-style: normal; }
section[id], [id="eligibility-card"] { scroll-margin-top: calc(var(--header-h) + 12px); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--accent);
}
.eyebrow-light { color: var(--accent); }

.section-title {
    font-size: clamp(2rem, 1.2rem + 2.4vw, 3.1rem);
    font-weight: 700;
    margin-bottom: 20px;
}
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 620px; }
.lead { font-size: 1.15rem; color: var(--text); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head .section-sub { margin: 0 auto; }
.section-head-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: end;
    text-align: left;
    max-width: none;
}
.section-head-split .section-title { margin-bottom: 0; }
.section-head-split .section-sub { margin: 0; justify-self: end; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon { transform: translateX(3px); }

.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 10px 24px rgba(11, 31, 58, .22); }
.btn-primary:hover { background: var(--secondary); }

.btn-gold { background: var(--accent); color: var(--primary); box-shadow: 0 10px 24px rgba(212, 167, 44, .3); }
.btn-gold:hover { background: #E0B740; }

.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-ghost-light { border-color: rgba(255, 255, 255, .55); color: var(--white); background: rgba(255, 255, 255, .06); }
.btn-ghost-light:hover { background: var(--white); color: var(--primary); border-color: var(--white); }

.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: #179A4D; }
.btn-whatsapp:hover .icon { transform: none; }

.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-lg { padding: 16px 30px; font-size: 1.04rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row-center { justify-content: center; }
.center-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 56px; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--secondary);
}
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--blue); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(11, 31, 58, .04);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--primary); }
.brand-mark svg { width: 42px; height: 42px; display: block; }
.brand-mark rect { fill: var(--primary); }
.brand-mark path { fill: none; stroke: var(--accent); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .08em;
    color: var(--primary);
}
.brand-accent { color: var(--blue); }
.brand-tagline { font-size: .7rem; color: var(--muted); letter-spacing: .02em; }

.primary-nav { display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links a {
    position: relative;
    display: block;
    padding: 8px 6px;
    font-size: .87rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 2px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; gap: 8px; }
.nav-actions .btn { white-space: nowrap; padding: 10px 14px; font-size: .85rem; }

.nav-open, .nav-panel-head { display: none; }
.nav-closed-anchor { position: fixed; top: 0; left: 0; width: 1px; height: 1px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    isolation: isolate;
    padding: clamp(64px, 8vw, 110px) 0 72px;
    color: var(--white);
    background: var(--primary);
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(11, 31, 58, .96) 0%, rgba(11, 31, 58, .86) 42%, rgba(18, 62, 104, .35) 100%);
}
.hero-route {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.hero-route path {
    fill: none;
    stroke: rgba(212, 167, 44, .45);
    stroke-width: 1.5;
    stroke-dasharray: 2 10;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 56px;
    align-items: center;
}
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    margin-bottom: 26px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.hero-kicker .icon { color: var(--accent); fill: var(--accent); stroke: none; }

.hero h1 {
    color: var(--white);
    font-size: clamp(2.3rem, 1rem + 4.4vw, 4.4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.03em;
    margin-bottom: 24px;
}
.hero h1 span { display: block; color: var(--accent); }
.hero-lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); font-weight: 500; color: var(--white); max-width: 560px; }
.hero-text { color: rgba(255, 255, 255, .78); max-width: 540px; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

/* Boarding-pass style eligibility card */
.pass-card {
    position: relative;
    z-index: 2;
    padding: 30px;
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--accent);
}
.pass-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.pass-label {
    margin: 0 0 6px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
}
.pass-title { font-size: 1.45rem; font-weight: 700; }
.pass-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--light-blue);
    color: var(--blue);
}
.pass-icon .icon { width: 26px; height: 26px; }
.pass-perforation {
    position: relative;
    height: 1px;
    margin: 22px -30px;
    border-top: 2px dashed var(--border);
}
.pass-perforation::before, .pass-perforation::after {
    content: "";
    position: absolute;
    top: -12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
}
.pass-perforation::before { left: -11px; }
.pass-perforation::after { right: -11px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--primary); }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--light);
    font: inherit;
    font-size: .95rem;
    color: var(--text);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field select {
    appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23667085' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--blue);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(22, 120, 188, .12);
}
.form-note { margin: 4px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }

/* =========================================================
   QUICK SERVICES
   ========================================================= */
.quick-services { padding: 128px 0 0; background: var(--white); }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.quick-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.quick-card::after {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform .35s var(--ease);
}
.quick-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.quick-card:hover::after { transform: scaleX(1); }
.quick-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin-bottom: 24px;
    border-radius: 20px;
    background: var(--light-blue);
    color: var(--blue);
    transition: background-color .35s, color .35s;
}
.quick-icon .icon { width: 34px; height: 34px; stroke-width: 1.6; }
.quick-card:hover .quick-icon { background: var(--primary); color: var(--accent); }
.quick-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.quick-card p { color: var(--muted); flex: 1; }

/* =========================================================
   STATS
   ========================================================= */
.stats { padding: 72px 0 0; background: var(--white); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stat { text-align: center; padding: 0 16px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-value {
    margin: 0 0 4px;
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary);
}
.stat-label { margin: 0; color: var(--muted); font-weight: 500; }

/* =========================================================
   SPLIT LAYOUTS (About, Country feature)
   ========================================================= */
.about { background: var(--white); }
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}
.split-copy > p:not(.eyebrow) { color: var(--muted); }
.split-copy .lead { color: var(--text); }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-xl); object-fit: cover; }

.about-media img { aspect-ratio: 10 / 11; }
.media-badge {
    position: absolute;
    left: -28px;
    bottom: 36px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 300px;
    padding: 18px 22px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    font-size: .88rem;
    line-height: 1.45;
    color: var(--muted);
}
.media-badge strong { color: var(--primary); font-size: .98rem; }
.media-badge-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--primary);
    color: var(--accent);
}

.check-list { display: grid; gap: 12px; margin: 28px 0 36px; }
.check-list.two-col { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check-list .icon {
    width: 24px;
    height: 24px;
    padding: 4px;
    border-radius: 50%;
    background: var(--light-blue);
    color: var(--blue);
    stroke-width: 2.6;
}

/* =========================================================
   COUNTRY FEATURE
   ========================================================= */
.country-feature { background: var(--light-blue); }
.fit-media img { aspect-ratio: 6 / 5; }
.fit-ticket {
    position: absolute;
    right: -20px;
    top: 36px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border-radius: var(--radius);
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: .14em;
}
.fit-ticket .icon { color: var(--accent); fill: var(--accent); stroke: none; width: 22px; height: 22px; }
.fit-to { color: var(--accent); }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 36px; }
.pill-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid #CFE3F2;
    border-radius: 999px;
    background: var(--white);
    font-weight: 600;
    color: var(--primary);
    transition: transform .25s var(--ease), border-color .25s;
}
.pill-list li:hover { transform: translateY(-2px); border-color: var(--accent); }
.pill-list .icon { color: var(--blue); width: 18px; height: 18px; }

/* =========================================================
   STUDY ABROAD
   ========================================================= */
.study { background: var(--white); }
.study-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}
.study-steps { counter-reset: step; display: grid; gap: 6px; margin: 12px 0 36px; }
.study-steps li {
    display: flex;
    gap: 18px;
    padding: 18px;
    border-radius: var(--radius);
    transition: background-color .3s;
}
.study-steps li:hover { background: var(--light); }
.step-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--light-blue);
    color: var(--blue);
}
.step-icon .icon { width: 24px; height: 24px; }
.study-steps h3 { margin-bottom: 4px; }
.study-steps h3::before {
    counter-increment: step;
    content: "0" counter(step) "  ";
    color: var(--accent);
    font-size: .9rem;
    white-space: pre;
}
.study-steps p { margin: 0; color: var(--muted); }

.study-media { position: relative; padding: 0 0 70px 0; }
.study-img-main { width: 88%; margin-left: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-xl); }
.study-img-small {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 8px solid var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* =========================================================
   WORK ABROAD (dark)
   ========================================================= */
.dark { background: var(--primary); color: rgba(255, 255, 255, .8); }
.dark .section-title, .dark h3 { color: var(--white); }
.dark .section-sub { color: rgba(255, 255, 255, .72); }

.work { position: relative; overflow: hidden; isolation: isolate; }
.work-bg {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: -1;
    width: 55%;
    height: 100%;
    object-fit: cover;
    opacity: .14;
    -webkit-mask-image: linear-gradient(to left, #000 20%, transparent);
    mask-image: linear-gradient(to left, #000 20%, transparent);
}
.work-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 56px;
}
.work-head .section-sub { margin-bottom: 26px; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); overflow: hidden; }
.work-card {
    padding: 34px 30px;
    background: var(--primary);
    transition: background-color .35s;
}
.work-card:hover { background: var(--secondary); }
.work-card .icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: 20px; stroke-width: 1.6; }
.work-card h3 { margin-bottom: 8px; }
.work-card p { margin: 0; font-size: .96rem; }

/* =========================================================
   IMMIGRATION
   ========================================================= */
.immigration { background: var(--light); }
.imm-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}
.imm-intro .lead { color: var(--muted); }
.imm-figure { margin: 32px 0 0; }
.imm-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); }
.imm-cards { display: grid; gap: 16px; }
.imm-card {
    display: flex;
    gap: 20px;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--white);
    border-left: 4px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.imm-card:hover { transform: translateX(6px); border-left-color: var(--accent); box-shadow: var(--shadow); }
.imm-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--light-blue);
    color: var(--blue);
}
.imm-icon .icon { width: 26px; height: 26px; }
.imm-card h3 { margin-bottom: 4px; }
.imm-card p { margin: 0; color: var(--muted); }
.imm-note { margin: 8px 0; font-size: .92rem; font-style: italic; color: var(--muted); }
.imm-cards .btn { justify-self: start; }

.disclaimer {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 56px 0 0;
    padding: 18px 22px;
    border: 1px solid #F0E2B6;
    border-radius: var(--radius);
    background: #FDF8EA;
    font-size: .88rem;
    line-height: 1.55;
    color: #5B4A17;
}
.disclaimer .icon { color: var(--accent-dark); margin-top: 1px; }

/* =========================================================
   TIMELINE
   ========================================================= */
.process { background: var(--white); }
.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
}
.timeline::before {
    content: "";
    position: absolute;
    top: 32px;
    left: calc(100% / 12);
    right: calc(100% / 12);
    border-top: 2px dashed #BFD6E8;
}
.timeline-step { position: relative; text-align: center; }
.timeline-num {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--blue);
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 0 0 8px var(--white);
    transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.timeline-step:last-child .timeline-num { background: var(--accent); border-color: var(--accent); }
.timeline-step:hover .timeline-num { background: var(--primary); color: var(--accent); border-color: var(--primary); transform: scale(1.06); }
.timeline-step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.timeline-step p { margin: 0; font-size: .93rem; color: var(--muted); }

/* =========================================================
   ELIGIBILITY BANNER
   ========================================================= */
.eligibility { padding: 0 0 var(--section-y); background: var(--white); }
.elig-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: 56px;
    align-items: center;
    padding: clamp(40px, 6vw, 80px);
    border-radius: var(--radius-xl);
    background: var(--primary);
    color: rgba(255, 255, 255, .82);
}
.elig-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .22;
    mix-blend-mode: luminosity;
}
.elig-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(11, 31, 58, .92) 30%, rgba(11, 31, 58, .55));
}
.elig-content .section-title { color: var(--white); }
.elig-content > p:not(.eyebrow) { font-size: 1.1rem; max-width: 560px; margin-bottom: 32px; }
.elig-points { display: flex; flex-wrap: wrap; gap: 10px; }
.elig-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    font-size: .92rem;
    background: rgba(255, 255, 255, .06);
    font-weight: 600;
    color: var(--white);
}
.elig-points .icon { color: var(--accent); }

/* =========================================================
   COACHING
   ========================================================= */
.coaching { background: var(--light); }
.coach-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
}
.coach-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s;
}
.coach-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.coach-card h3 { margin-bottom: 8px; }
.coach-card p { margin: 0; color: var(--muted); }
.coach-featured {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(160deg, var(--secondary), var(--primary));
    color: rgba(255, 255, 255, .8);
}
.coach-featured h3 { color: var(--white); font-size: 1.6rem; }
.coach-featured p { color: rgba(255, 255, 255, .78); }
.coach-card:nth-child(4) { grid-column: 2 / span 2; }
.coach-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    border-radius: 16px;
    background: var(--light-blue);
    color: var(--blue);
}
.coach-icon .icon { width: 26px; height: 26px; }
.coach-featured .coach-icon { background: rgba(255, 255, 255, .1); color: var(--accent); margin-bottom: auto; }
.coach-featured h3 { margin-top: 48px; }
.test-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.test-badges li {
    padding: 8px 16px;
    border: 1px solid rgba(212, 167, 44, .5);
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: .9rem;
    font-weight: 600;
    color: var(--accent);
}

/* =========================================================
   WHY US
   ========================================================= */
.why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.why-card {
    position: relative;
    padding: 34px 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.why-card::before {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--light-blue);
    transition: transform .5s var(--ease);
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.why-card:hover::before { transform: scale(1.4); }
.why-card .icon { position: relative; width: 36px; height: 36px; margin-bottom: 22px; color: var(--blue); stroke-width: 1.6; }
.why-card h3 { position: relative; margin-bottom: 8px; }
.why-card p { position: relative; margin: 0; color: var(--muted); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials { background: var(--light-blue); }
.testi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.testi-card {
    display: flex;
    flex-direction: column;
    padding: 34px 30px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.stars { display: flex; gap: 3px; margin-bottom: 20px; color: var(--accent); }
.stars .icon { fill: var(--accent); stroke: none; width: 20px; height: 20px; }
.testi-card blockquote {
    flex: 1;
    margin: 0 0 26px;
    font-size: 1.04rem;
    line-height: 1.7;
    color: var(--text);
}
.testi-person { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--border); }
.avatar {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary);
    color: var(--accent);
    font-family: var(--font-head);
    font-weight: 600;
}
.testi-name { margin: 0; font-weight: 700; color: var(--primary); }
.testi-meta { margin: 0; font-size: .87rem; color: var(--muted); }
.placeholder-note { margin: 28px 0 0; text-align: center; font-size: .82rem; color: var(--muted); }

/* =========================================================
   SUCCESS STORIES
   ========================================================= */
.stories { background: var(--white); }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: start; }
.story-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--light);
    transition: transform .35s var(--ease), box-shadow .35s;
}
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.story-card > img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.story-body { padding: 26px 26px 30px; }
.story-journey {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-bottom: 12px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue);
}
.story-journey .icon { color: var(--accent); width: 16px; height: 16px; }
.story-body h3 { margin-bottom: 10px; }
.story-body > p { color: var(--muted); font-size: .96rem; }
.story-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.story-tags span {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--border);
    font-size: .8rem;
    font-weight: 600;
    color: var(--secondary);
}
.story-more summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--primary);
    border-radius: 999px;
    font-weight: 600;
    font-size: .92rem;
    color: var(--primary);
    cursor: pointer;
    list-style: none;
    transition: background-color .25s, color .25s;
}
.story-more summary::-webkit-details-marker { display: none; }
.story-more summary::after { content: "+"; font-size: 1.1rem; line-height: 1; }
.story-more[open] summary::after { content: "−"; }
.story-more summary:hover { background: var(--primary); color: var(--white); }
.story-more p { margin: 16px 0 0; font-size: .95rem; color: var(--text); }

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta { padding: var(--section-y) 0; background: var(--white); }
.final-box {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 64px);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 70%);
    text-align: center;
    color: rgba(255, 255, 255, .82);
}
.final-route {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.final-route path { fill: none; stroke: rgba(212, 167, 44, .35); stroke-width: 1.5; stroke-dasharray: 2 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.final-box h2 {
    position: relative;
    max-width: 760px;
    margin: 0 auto 18px;
    color: var(--white);
    font-size: clamp(2rem, 1.2rem + 2.6vw, 3.3rem);
    font-weight: 700;
}
.final-box > p { position: relative; max-width: 620px; margin: 0 auto 36px; font-size: 1.1rem; }
.final-box .btn-row { position: relative; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--light-blue); }
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}
.contact-info > p:not(.eyebrow) { color: var(--muted); }
.contact-list { display: grid; gap: 14px; margin-top: 32px; }
.contact-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--white);
}
.contact-list p, .contact-list address { margin: 0; color: var(--text); }
.contact-list a { font-weight: 600; color: var(--primary); word-break: break-word; }
.contact-list a:hover { color: var(--blue); }
.contact-label {
    font-size: .76rem !important;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted) !important;
}
.contact-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--primary);
    color: var(--accent);
}
.contact-form-wrap { position: relative; }
.contact-form {
    padding: clamp(28px, 4vw, 44px);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
    gap: 18px;
}
.contact-form h3 { font-size: 1.5rem; margin-bottom: 4px; }

.form-thanks {
    display: none;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 18px 22px;
    border-radius: var(--radius);
    background: #E8F7EE;
    color: #14532D;
}
.form-thanks p { margin: 0; }
.form-thanks .icon { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--whatsapp); color: var(--white); stroke-width: 3; }
.form-thanks:target { display: flex; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { padding: 88px 0 0; background: #081729; color: rgba(255, 255, 255, .68); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.brand-light .brand-name { color: var(--white); }
.brand-light .brand-accent { color: var(--accent); }
.brand-light .brand-tagline { color: rgba(255, 255, 255, .6); }
.brand-light .brand-mark rect { fill: var(--secondary); }
.footer-brand p { margin: 22px 0 26px; max-width: 320px; font-size: .95rem; }
.social { display: flex; gap: 10px; }
.social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    color: var(--white);
    transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.social a:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); transform: translateY(-3px); }
.footer-col h3 {
    margin-bottom: 18px;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--white);
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, .68); font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }

.footer-legal { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-legal summary { cursor: pointer; font-size: .88rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.footer-legal p { margin: 10px 0 0; font-size: .85rem; line-height: 1.6; }
.footer-legal details { scroll-margin-top: calc(var(--header-h) + 24px); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding-top: 24px;
    padding-bottom: 28px;
    font-size: .85rem;
}
.footer-bottom p { margin: 0; }

/* =========================================================
   FLOATING CONTACT
   ========================================================= */
.float-contact {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: var(--white);
    box-shadow: 0 12px 28px rgba(11, 31, 58, .28);
    transition: transform .25s var(--ease);
}
.float-btn:hover { transform: scale(1.08); }
.float-btn .icon { width: 26px; height: 26px; }
.float-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.float-wa { background: var(--whatsapp); }
.float-call { background: var(--primary); color: var(--accent); }

/* =========================================================
   RESPONSIVE — Large tablet / small laptop
   ========================================================= */
@media (max-width: 1365px) {
    /* Off-canvas navigation */
    .nav-open {
        display: grid;
        place-items: center;
        width: 46px;
        height: 46px;
        border-radius: 12px;
        background: var(--light-blue);
        color: var(--primary);
    }
    .nav-open .icon { width: 26px; height: 26px; }

    .primary-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: min(380px, 88vw);
        padding: 20px 24px 32px;
        overflow-y: auto;
        background: var(--white);
        transform: translateX(105%);
        visibility: hidden;
        transition: transform .4s var(--ease), visibility .4s, box-shadow .4s;
    }
    .primary-nav:target {
        transform: none;
        visibility: visible;
        box-shadow: 0 0 0 100vmax rgba(11, 31, 58, .55);
    }
    .nav-panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 16px;
        margin-bottom: 12px;
        border-bottom: 1px solid var(--border);
    }
    .nav-close {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: var(--light);
        color: var(--primary);
    }
    .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-links a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--light); }
    .nav-links a::after { display: none; }
    .nav-actions { flex-direction: column; margin-top: 24px; }
    .nav-actions .btn { width: 100%; padding: 14px; }
}

/* =========================================================
   RESPONSIVE — Tablet (768px–1199px)
   ========================================================= */
@media (max-width: 1199px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-content { max-width: 720px; }
    .hero { padding-bottom: 80px; }
    .quick-services { padding-top: 80px; }

    .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .why-grid, .testi-grid, .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
    .timeline::before { display: none; }

    .coach-grid { grid-template-columns: 1fr 1fr; }
    .coach-featured { grid-row: auto; grid-column: span 2; }
    .coach-card:nth-child(4) { grid-column: span 2; }

    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-brand { grid-column: 1 / -1; }

    .media-badge { left: 16px; }
    .fit-ticket { right: 16px; }
}

@media (max-width: 991px) {
    .split, .study-grid, .imm-layout, .contact-grid, .work-head { grid-template-columns: 1fr; }
    .split-media { max-width: 640px; }
    .study-media { max-width: 600px; }
    .elig-banner { grid-template-columns: 1fr; }
    .section-head-split { grid-template-columns: 1fr; gap: 16px; }
    .section-head-split .section-sub { justify-self: start; }
}

/* =========================================================
   RESPONSIVE — Mobile (below 768px)
   ========================================================= */
@media (max-width: 767px) {
    :root {
        --header-h: 66px;
        --gutter: 16px;
    }
    body { font-size: 16px; padding-bottom: 64px; }

    .brand-mark svg { width: 36px; height: 36px; }
    .brand-name { font-size: 1rem; }
    .brand-tagline { font-size: .66rem; }

    .section-title { font-size: clamp(1.85rem, 1.2rem + 3vw, 2.25rem); }
    .section-head { margin-bottom: 40px; text-align: left; }
    .lead { font-size: 1.05rem; }

    /* Hero */
    .hero { padding: 48px 0 56px; }
    .hero h1 { font-size: clamp(2.3rem, 1.4rem + 4.5vw, 2.75rem); }
    .hero-kicker { font-size: .72rem; }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { width: 100%; }
    .hero-trust { flex-direction: column; gap: 8px; }
    .pass-card { padding: 24px 20px; }
    .pass-perforation { margin: 18px -20px; }
    .field-row { grid-template-columns: 1fr; }

    .quick-services { padding-top: 56px; }
    .quick-grid, .why-grid, .testi-grid, .story-grid, .work-grid { grid-template-columns: 1fr; }
    .quick-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 18px; padding: 24px 22px; }
    .quick-icon { width: 56px; height: 56px; margin-bottom: 0; }
    .quick-icon .icon { width: 28px; height: 28px; }
    .quick-card h3 { flex: 1; margin: 0; }
    .quick-card p { flex-basis: 100%; margin: 14px 0 10px; }

    /* Stats: 2 x 2 */
    .stats { padding-top: 48px; }
    .stats-grid { grid-template-columns: 1fr 1fr; padding: 8px 0; }
    .stat { padding: 24px 8px; }
    .stat + .stat { border-left: 0; }
    .stat:nth-child(even) { border-left: 1px solid var(--border); }
    .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }

    .check-list.two-col { grid-template-columns: 1fr; }
    .media-badge { position: relative; left: 0; bottom: 0; margin: -40px 16px 0; max-width: none; }
    .fit-ticket { top: 16px; right: 16px; padding: 12px 16px; font-size: .85rem; }
    .split-reverse-mobile .split-media { order: 2; }

    .study-media { padding-bottom: 48px; }
    .study-steps li { padding: 14px 0; }

    /* Vertical timeline */
    .timeline { grid-template-columns: 1fr; row-gap: 0; }
    .timeline::before {
        display: block;
        top: 26px;
        bottom: 26px;
        left: 26px;
        right: auto;
        border-top: 0;
        border-left: 2px dashed #BFD6E8;
    }
    .timeline-step {
        display: grid;
        grid-template-columns: 52px 1fr;
        column-gap: 18px;
        padding-bottom: 28px;
        text-align: left;
    }
    .timeline-num { grid-row: span 2; width: 52px; height: 52px; margin: 0; font-size: 1rem; }
    .timeline-step h3 { align-self: end; margin-top: 4px; }

    .elig-banner .btn-row .btn, .final-box .btn-row .btn, .center-cta .btn { width: 100%; }
    .center-cta { margin-top: 40px; }

    .coach-grid { grid-template-columns: 1fr; }
    .coach-featured, .coach-card:nth-child(4) { grid-column: auto; }

    .work-head { gap: 8px; margin-bottom: 40px; }

    .disclaimer { margin-top: 40px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-legal { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }

    /* Floating contact becomes a compact bottom bar */
    .float-contact {
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: row;
        gap: 0;
        box-shadow: 0 -6px 20px rgba(11, 31, 58, .12);
    }
    .float-btn {
        flex: 1;
        gap: 8px;
        width: auto;
        height: 56px;
        border-radius: 0;
        box-shadow: none;
        font-weight: 600;
    }
    .float-btn:hover { transform: none; }
    .float-btn .icon { width: 22px; height: 22px; }
    .float-btn span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

@media (max-width: 420px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   HERO — "What can we do for you today?" panel
   ========================================================= */
.intent-card {
    position: relative;
    z-index: 2;
    margin-bottom: -72px;
    padding: 40px;
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--text);
    box-shadow: var(--shadow-lg);
}
.intent-title {
    margin-bottom: 28px;
    font-size: clamp(1.75rem, 1.2rem + 1.3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
}
.intent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.intent-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 92px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 600;
    transition: transform .3s var(--ease), box-shadow .3s, background-color .3s, color .3s;
}
.intent-tile .icon { width: 24px; height: 24px; transition: transform .3s var(--ease); }
.intent-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(11, 31, 58, .18); }
.intent-tile:hover .icon { transform: scale(1.12); }

/* Tile / popup colour themes */
.tile-study { background: var(--accent); color: var(--primary); }
.tile-migrate { background: var(--secondary); color: var(--white); }
.tile-work { background: var(--white); border-color: var(--blue); color: var(--blue); }
.tile-work:hover { background: var(--light-blue); }
.tile-visit { background: var(--blue); color: var(--white); }
.tile-counsel { background: var(--light-blue); color: var(--primary); }

.intent-help {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.intent-help-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 52px;
    flex-shrink: 0;
    color: var(--muted);
}
.intent-help-icon .icon { width: 52px; height: 39px; stroke-width: 1.4; }
.intent-help-icon::after {
    content: "";
    position: absolute;
    left: 18px;
    bottom: 4px;
    width: 18px;
    height: 4px;
    border-radius: 2px;
    background: var(--accent);
}
.intent-help-text strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.12rem;
    color: var(--primary);
}
.intent-help-text > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--blue);
}
.intent-help-text .icon { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.intent-help:hover .intent-help-text > span { text-decoration: underline; text-underline-offset: 3px; }
.intent-help:hover .intent-help-text .icon { transform: translateX(4px); }

@media (max-width: 1199px) {
    .intent-card { margin-bottom: 0; max-width: 640px; }
}
@media (max-width: 767px) {
    .intent-card { padding: 26px 20px; }
    .intent-title { margin-bottom: 22px; }
    .intent-grid { gap: 12px; margin-bottom: 24px; }
    .intent-tile { height: 76px; font-size: 1.1rem; }
    .intent-help { gap: 14px; padding-top: 20px; }
}

/* =========================================================
   POPUPS (CSS :target — open with #modal-*, close with #nav-closed)
   ========================================================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s, visibility .3s;
}
.modal:target { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 23, 41, .72); cursor: default; }
.modal-dialog {
    position: relative;
    width: min(700px, 100%);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(24px) scale(.98);
    transition: transform .35s var(--ease);
}
.modal:target .modal-dialog { transform: none; }

.modal-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 26px 28px;
    border: 0;
}
.modal-head.tile-work { background: var(--light-blue); border-bottom: 1px solid #CFE3F2; }
.modal-head h2 { color: inherit; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); font-weight: 700; }
.modal-kicker { margin: 0 0 4px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.modal-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .2);
}
.tile-work .modal-icon, .tile-counsel .modal-icon { background: var(--white); }
.modal-icon .icon { width: 28px; height: 28px; }
.tile-counsel .modal-icon .icon { width: 34px; height: 26px; }
.modal-close {
    display: grid;
    place-items: center;
    align-self: flex-start;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-left: auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    color: inherit;
    transition: transform .25s var(--ease), background-color .25s;
}
.tile-work .modal-close, .tile-counsel .modal-close { background: var(--white); }
.modal-close:hover { transform: rotate(90deg); }

.modal-body { padding: 28px; }
.modal-intro { font-size: 1.02rem; color: var(--text); }
.modal-who { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--light); font-size: .93rem; color: var(--muted); }
.modal-who strong { color: var(--primary); }
.modal-body h3 { margin: 24px 0 12px; font-size: 1.02rem; }
.modal-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.modal-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; line-height: 1.45; }
.modal-list .icon {
    width: 22px;
    height: 22px;
    padding: 4px;
    border-radius: 50%;
    background: var(--light-blue);
    color: var(--blue);
    stroke-width: 2.6;
}
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-tags li {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 600;
    color: var(--secondary);
}
.modal-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 22px 0 0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: #FDF8EA;
    font-size: .84rem;
    line-height: 1.5;
    color: #5B4A17;
}
.modal-note .icon { color: var(--accent-dark); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.modal-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 24px; }
.modal-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: var(--light);
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary);
}
.modal-steps span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent);
    font-size: .85rem;
}

@media (max-width: 767px) {
    .modal { align-items: flex-end; padding: 0; }
    .modal-dialog {
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        transform: translateY(40px);
    }
    .modal-head { padding: 20px; gap: 12px; }
    .modal-icon { width: 46px; height: 46px; }
    .modal-body { padding: 22px 20px 28px; }
    .modal-list, .modal-steps { grid-template-columns: 1fr; }
    .modal-actions .btn { width: 100%; }
    .intent-help-text strong { font-size: 1.02rem; }
}

/* =========================================================
   POPULAR VISAS
   Touch / small screens: list always visible under the cover.
   Desktop with a mouse: list slides over the cover on hover or focus.
   ========================================================= */
.popular-visas { background: var(--light); }
.pv-layout {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr);
    gap: clamp(40px, 5vw, 64px);
    align-items: center;
}
.pv-intro > p:not(.eyebrow) { color: var(--muted); }
.pv-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--secondary) !important;
}
.pv-hint .icon { color: var(--accent-dark); }
.pv-note { margin: 22px 0 0; font-size: .8rem; line-height: 1.55; }
@media (hover: none), (max-width: 991px) {
    .pv-hint { display: none; }
    .pv-intro .btn { margin-top: 8px; }
}

.pv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.visa-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    outline-offset: 4px;
}
.visa-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--primary); }
.visa-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.visa-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 31, 58, .05) 30%, rgba(11, 31, 58, .88));
}
.visa-code {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 5px 10px;
    border-radius: 7px;
    background: rgba(11, 31, 58, .85);
    font-family: var(--font-head);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--accent);
}
.visa-cover-text { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; color: var(--white); }
.visa-cover-text h3 {
    color: var(--white);
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.visa-cover-text h3::before {
    content: "";
    display: block;
    width: 32px;
    height: 4px;
    margin-bottom: 10px;
    border-radius: 2px;
    background: var(--accent);
}
.visa-cover-text p { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: .85rem; color: rgba(255, 255, 255, .8); }
.visa-cover-text p .icon { width: 1em; height: 1em; }

.visa-panel { padding: 16px 20px 20px; }
.visa-panel-title { display: none; }
.visa-panel ul { display: grid; gap: 2px; }
.visa-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: .93rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text);
    transition: color .2s, transform .2s var(--ease);
}
.visa-panel a .icon { width: 16px; height: 16px; color: var(--blue); stroke-width: 2.2; }
.visa-panel a:hover { color: var(--blue); transform: translateX(4px); }
.visa-panel li:last-child a { margin-top: 4px; padding-top: 11px; border-top: 1px dashed var(--border); font-weight: 600; color: var(--secondary); }

/* Desktop with a mouse: reveal-on-hover tiles */
@media (hover: hover) and (min-width: 992px) {
    .visa-tile { height: 364px; cursor: pointer; transition: box-shadow .35s, transform .35s var(--ease); }
    .visa-cover { position: absolute; inset: 0; aspect-ratio: auto; }
    .visa-tile:hover .visa-cover img { transform: scale(1.06); }
    .visa-panel {
        position: absolute;
        inset: 0;
        z-index: 2;
        padding: 22px 22px 18px;
        overflow-y: auto;
        border-top: 4px solid var(--accent);
        background: var(--white);
        opacity: 0;
        visibility: hidden;
        transform: translateY(18px);
        transition: opacity .3s, transform .35s var(--ease), visibility .3s;
        scrollbar-width: thin;
        scrollbar-color: #C5D3E0 transparent;
    }
    .visa-tile:hover, .visa-tile:focus-within { box-shadow: var(--shadow); transform: translateY(-4px); }
    .visa-tile:hover .visa-panel, .visa-tile:focus-within .visa-panel { opacity: 1; visibility: visible; transform: none; }
    .visa-panel-title {
        display: block;
        margin: 0 0 8px;
        font-family: var(--font-head);
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--primary);
    }
    .visa-panel a { padding: 5px 0; font-size: .9rem; }
}

@media (max-width: 1199px) {
    .pv-layout { grid-template-columns: 1fr; }
    .pv-intro { max-width: 720px; }
}
@media (max-width: 991px) {
    .pv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .pv-grid {
        display: flex;
        gap: 16px;
        margin: 0 calc(var(--gutter) * -1);
        padding: 4px var(--gutter) 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .pv-grid::-webkit-scrollbar { display: none; }
    .visa-tile { flex: 0 0 84%; scroll-snap-align: center; }
    .pv-intro .btn { width: 100%; }
}

/* =========================================================
   ELIGIBILITY CHECK CARDS (+ program-specific form popups)
   Each program sets its own accent colour via --c.
   ========================================================= */
.ec-canada { --c: #C8102E; --c-soft: #FCEBED; }
.ec-australia { --c: #00843D; --c-soft: #E6F4EC; }
.ec-germany { --c: #B45309; --c-soft: #FDF1E6; }
.ec-whv { --c: #0E8A9E; --c-soft: #E6F5F7; }
.ec-ausbildung { --c: #6D28D9; --c-soft: #F1EBFC; }
.ec-study { --c: #1678BC; --c-soft: #EEF7FC; }

.ec-section { background: var(--light); }
.ec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ec-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s;
}
.ec-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

/* Image header */
.ec-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--primary); }
.ec-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ec-card:hover .ec-media img { transform: scale(1.07); }
.ec-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 31, 58, .35) 0%, rgba(11, 31, 58, 0) 40%, rgba(11, 31, 58, .55) 100%);
}
.ec-media::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 4px;
    background: var(--c);
}
.ec-badge, .ec-time { position: absolute; top: 16px; z-index: 1; }
.ec-badge {
    left: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--c);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--white);
}
.ec-time {
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    font-size: .76rem;
    font-weight: 600;
    color: var(--primary);
}
.ec-time .icon { width: 14px; height: 14px; color: var(--c); }
.ec-code {
    position: absolute;
    right: 18px;
    bottom: 10px;
    z-index: 1;
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .85);
}

/* Body */
.ec-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 0 26px 26px; }
.ec-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: -30px 0 16px;
    border: 4px solid var(--white);
    border-radius: 18px;
    background: var(--c);
    color: var(--white);
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 22px rgba(11, 31, 58, .18);
    transition: transform .35s var(--ease);
}
.ec-icon .icon { width: 26px; height: 26px; }
.ec-card:hover .ec-icon { transform: rotate(-6deg) scale(1.05); }
.ec-card h3 { font-size: 1.32rem; margin-bottom: 10px; }
.ec-desc { color: var(--muted); font-size: .95rem; }
.ec-checks { display: grid; gap: 8px; margin: 2px 0 24px; padding: 16px; border-radius: var(--radius); background: var(--c-soft); }
.ec-checks li { display: flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 500; }
.ec-checks .icon { width: 18px; height: 18px; color: var(--c); stroke-width: 2.6; }
.ec-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding: 13px 20px;
    border: 2px solid var(--c);
    border-radius: 999px;
    font-weight: 600;
    color: var(--c);
    transition: background-color .25s, color .25s;
}
.ec-btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.ec-card:hover .ec-btn, .ec-btn:focus-visible { background: var(--c); color: var(--white); }
.ec-btn:hover .icon { transform: translateX(4px); }

/* Program popups */
.ec-head { background: var(--c); color: var(--white); }
.ec-form h3 { margin: 6px 0 0; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.ec-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-full { grid-column: 1 / -1; }
.ec-form .btn-primary { margin-top: 6px; background: var(--c); box-shadow: none; }
.ec-form .btn-primary:hover { background: var(--primary); }
.ec-form .modal-note { margin-top: 4px; }

@media (max-width: 1199px) {
    .ec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .ec-grid { grid-template-columns: 1fr; gap: 16px; }
    .ec-body { padding: 0 20px 22px; }
    .ec-form-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
