:root {
  --ink: #132133;
  --ink-soft: #4b5a6c;
  --paper: #fbfaf7;
  --surface: #fff;
  --navy: #081728;
  --gold: #c79b3b;
  --gold-strong: #9c741f;
  --line: #e5dfd3;
  --header: rgba(251,250,247,.94);
  --shadow: 0 22px 60px rgba(15,29,47,.1);
}

html[data-theme="dark"] {
  --ink: #f1f5f8;
  --ink-soft: #b7c2cf;
  --paper: #081728;
  --surface: #0d1e31;
  --navy: #081728;
  --gold: #d5ad58;
  --gold-strong: #e2bf73;
  --line: rgba(232,239,246,.14);
  --header: rgba(8,23,40,.93);
  --shadow: 0 22px 60px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 500 16px/1.72 "Manrope", sans-serif; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.display { margin: 0; font: 400 clamp(44px,6vw,78px)/1.03 "DM Serif Display", Georgia, serif; letter-spacing: -.025em; }
.eyebrow { margin: 0 0 13px; color: var(--gold-strong); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 300; padding: 10px 14px; color: #fff; background: var(--navy); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.announcement { color: #132133; background: var(--gold); font-size: 13px; font-weight: 800; }
.announcement .container { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(241,201,82,.18); background-color: #161a20; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.045) 0, rgba(255,255,255,.045) .7px, transparent .8px); background-size: 5px 5px; box-shadow: 0 12px 38px rgba(0,10,24,.28); }
.nav { width: min(1360px, calc(100% - 40px)); min-height: 108px; display: flex; align-items: center; gap: 21px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { width: auto; height: 84px; max-width: 360px; object-fit: contain; object-position: left center; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links a { flex: 0 0 auto; color: #f4f0e6; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.nav-links a[aria-current="page"] { color: #f4d66d; }
.site-header .nav-tools-toggle { color: #f4f0e6; }
.nav-cta { min-height: 44px; display: inline-flex; flex: 0 0 auto; align-items: center; padding: 0 18px; color: #13284d; background: #f0cb56; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.theme-toggle { display: inline-flex; min-width: 98px; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; border: 1px solid rgba(255,255,255,.24); border-radius: 100px; color: #fff; background: rgba(4,18,39,.28); font-size: 13px; font-weight: 800; }
.theme-icon { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: var(--navy); background: var(--gold); }
.menu-toggle { display: none; width: 46px; min-width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.24); color: #fff; background: rgba(4,18,39,.28); font-size: 22px; }

.service-hero { position: relative; overflow: hidden; padding: 86px 0 80px; }
.service-hero::before { content: ""; position: absolute; width: 520px; height: 520px; left: -340px; top: -260px; border: 1px solid rgba(199,155,59,.3); border-radius: 50%; box-shadow: 0 0 0 80px rgba(199,155,59,.04),0 0 0 160px rgba(199,155,59,.025); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 72px; align-items: center; }
.breadcrumb { margin-bottom: 26px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.breadcrumb a { text-decoration: none; }
.hero-copy h1 span { color: var(--gold-strong); }
.hero-copy .lead { max-width: 650px; margin: 24px 0 30px; color: var(--ink-soft); font-size: 18px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 51px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid var(--line); color: var(--ink); background: transparent; font-weight: 800; text-decoration: none; }
.button.primary { border-color: var(--ink); color: var(--paper); background: var(--ink); }
.hero-visual { position: relative; min-height: 520px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow); }
.hero-visual img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: center 45%; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(8,23,40,.9)); }
.hero-caption { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 24px; color: #fff; }
.hero-caption small { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero-caption strong { display: block; margin-top: 6px; font: 400 25px/1.2 "DM Serif Display", Georgia, serif; }

.section { padding: 92px 0; }
.section.alt { background: var(--surface); }
.section-head { display: grid; grid-template-columns: 1fr .72fr; gap: 50px; align-items: end; margin-bottom: 38px; }
.section-head h2 { margin: 0; font: 400 clamp(35px,4vw,55px)/1.07 "DM Serif Display", Georgia, serif; }
.section-head p { margin: 0; color: var(--ink-soft); }
.card-grid { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); }
.card { min-height: 270px; padding: 31px; border-right: 1px solid var(--line); background: var(--surface); }
.card:last-child { border-right: 0; }
.card .num { color: var(--gold-strong); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.card h3 { margin: 38px 0 11px; font: 400 29px/1.15 "DM Serif Display", Georgia, serif; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.detail-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.detail-sticky { position: sticky; top: 160px; align-self: start; }
.detail-sticky h2 { margin: 0; font: 400 clamp(35px,4vw,52px)/1.08 "DM Serif Display", Georgia, serif; }
.detail-sticky p { color: var(--ink-soft); }
.feature-list { display: grid; gap: 14px; }
.feature { padding: 25px 26px; border: 1px solid var(--line); background: var(--surface); }
.feature strong { display: block; margin-bottom: 7px; font-size: 16px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.feature p + p { margin-top: 12px; }
.feature a { color: var(--gold-strong); font-weight: 800; text-underline-offset: 3px; }
.pathways-layout { grid-template-columns: 1fr; gap: 38px; }
.pathways-layout .detail-sticky { position: static; max-width: 760px; }
.pathways-layout .detail-sticky p:last-child { max-width: 680px; margin-bottom: 0; }
.country-pathways-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.country-pathway { --country-accent: #c79b3b; display: grid; min-height: 280px; grid-template-rows: auto 1fr; gap: 21px; padding: 22px 19px; border: 1px solid var(--line); color: var(--ink); background: var(--surface); text-decoration: none; transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.country-pathway:hover { transform: translateY(-3px); border-color: var(--country-accent); box-shadow: 0 16px 34px rgba(15,29,47,.09); }
.country-pathway:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.country-pathway-icon { display: inline-grid; width: 52px; height: 52px; place-items: center; border-radius: 14px; background: color-mix(in srgb,var(--country-accent) 14%,var(--surface)); font-size: 25px; line-height: 1; }
.country-pathway-content { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.country-pathway-content strong { margin-bottom: 8px; font-size: 18px; line-height: 1.3; }
.country-pathway-content > span:not(.country-pathway-link) { color: var(--ink-soft); font-size: 13px; line-height: 1.62; }
.country-pathway-link { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 21px; color: var(--gold-strong); font-size: 13px; font-weight: 800; }
.country-pathway-link b { transition: transform .2s ease; }
.country-pathway:hover .country-pathway-link b { transform: translateX(4px); }
.country-pathway.canada { --country-accent: #d7353f; }
.country-pathway.australia { --country-accent: #3159a7; }
.country-pathway.uk { --country-accent: #6a4c91; }
.country-pathway.usa { --country-accent: #2775a9; }
.country-pathway.portugal { --country-accent: #278653; }
.country-pathway.family { --country-accent: #c79b3b; }
.country-pathway.family .country-pathway-icon { color: var(--country-accent); font-size: 18px; }

.cta { padding: 76px 0; color: #fff; background: var(--navy); }
.cta-grid { display: flex; align-items: center; justify-content: space-between; gap: 45px; }
.cta h2 { max-width: 700px; margin: 0; font: 400 clamp(36px,5vw,56px)/1.08 "DM Serif Display", Georgia, serif; }
.cta p { max-width: 690px; margin: 15px 0 0; color: #b7c2ce; }
.cta .button { flex: 0 0 auto; border-color: var(--gold); color: var(--navy); background: var(--gold); }

.site-footer { padding: 56px 0 28px; color: #b8c2cf; background: #06111f; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 65px; }
.footer-brand img { width: 320px; max-width: 100%; height: auto; object-fit: contain; object-position: left center; }
.footer-brand p { max-width: 450px; color: #8f9dac; font-size: 13px; }
.footer-col h3 { margin: 0 0 14px; color: #fff; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.footer-col a { display: block; margin: 7px 0; color: #aab6c3; font-size: 13px; text-decoration: none; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #718194; font-size: 12px; }

@media (max-width: 1080px) {
  .nav-links,.nav-cta { display: none; }
  .theme-toggle { margin-left: auto; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-links.open { position: fixed; inset: 132px 18px auto; display: grid; gap: 0; padding: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
  .nav-links.open a { padding: 13px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px; }
  .site-header .nav-links.open .nav-tools-toggle { color: var(--ink); }
  .country-pathways-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width:1180px) and (min-width:901px) {
  .service-hero { padding: 56px 0 60px; }
  .hero-grid { gap: 42px; }
  .display { font-size: clamp(50px,5.4vw,64px); }
  .hero-copy .lead { margin: 19px 0 24px; font-size: 16px; line-height: 1.68; }
  .hero-visual,.hero-visual img { min-height: 450px; height: 450px; }
  .section { padding: 78px 0; }
  .section-head { gap: 34px; }
  .detail-grid { gap: 46px; }
  .country-pathway { min-height: 245px; }
}

@media (max-height:800px) and (min-width:901px) {
  .service-hero { padding-top: 44px; padding-bottom: 48px; }
  .display { font-size: clamp(52px,5vw,66px); }
  .hero-visual,.hero-visual img { min-height: 430px; height: 430px; }
}

@media (max-width:900px) {
  .hero-grid,.detail-grid { grid-template-columns: 1fr; }
  .detail-sticky { position: static; }
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .card:last-child { border-bottom: 0; }
  .section-head { grid-template-columns: 1fr; gap: 17px; }
  .cta-grid { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .country-pathways-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width:700px) {
  .container { width: min(100% - 28px,1180px); }
  .announcement .container { min-height: 48px; justify-content: flex-start; }
  .nav { min-height: 88px; gap: 10px; }
  .brand img { width: auto; height: 60px; max-width: 242px; }
  .theme-toggle { min-width: 46px; width: 46px; padding: 0; }
  .theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-links.open { top: 136px; }
  .service-hero { padding: 58px 0 62px; }
  .display { font-size: clamp(43px,14vw,62px); }
  .hero-copy .lead { font-size: 16px; }
  .button-row .button { width: 100%; }
  .hero-visual,.hero-visual img { min-height: 430px; }
  .section { padding: 70px 0; }
  .card,.feature { padding: 25px 23px; }
  .country-pathways-grid { grid-template-columns: 1fr; }
  .country-pathway { min-height: 0; grid-template-columns: 52px 1fr; grid-template-rows: auto; gap: 17px; padding: 22px; }
  .country-pathway-link { padding-top: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
