:root {
  --navy: #062b4a;
  --navy-deep: #031d31;
  --blue: #2878a8;
  --blue-soft: #eaf3f8;
  --silver: #dce4e9;
  --ink: #172532;
  --muted: #5f707d;
  --white: #ffffff;
  --line: #d9e2e8;
  --shadow: 0 18px 55px rgba(11, 34, 57, .12);
  --radius: 4px;
  --max: 1220px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Trebuchet MS', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f8fafb; font-family: var(--sans); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid #6eb7df; outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; padding: .75rem 1rem; background: var(--navy); color: white; z-index: 100; }
.skip-link:focus { top: 1rem; }
.container { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px rgba(11, 34, 57, .06); }
.header-top { background: var(--navy-deep); color: white; font-size: .8rem; }
.header-top .container { min-height: 34px; display: flex; justify-content: flex-end; align-items: center; gap: 1rem; }
.phone-link { text-decoration: none; font-weight: 700; letter-spacing: .03em; }
.nav-wrap { min-height: 88px; display: flex; align-items: center; gap: 2.5rem; }
.logo { width: 148px; height: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.site-nav a { text-decoration: none; color: var(--navy); font-size: .86rem; font-weight: 700; white-space: nowrap; }
.site-nav a:not(.button):hover, .site-nav a[aria-current="page"] { color: var(--blue); }
.menu-toggle { display: none; border: 1px solid var(--line); background: white; color: var(--navy); padding: .6rem; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .75rem 1.3rem; border: 1px solid var(--blue); border-radius: var(--radius); background: var(--blue); color: white; text-decoration: none; font-weight: 700; font-size: .9rem; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.site-nav .button { min-height: 44px; padding-inline: 1.15rem; box-shadow: 0 5px 14px rgba(40,120,168,.2); }
.button:hover { transform: translateY(-2px); background: var(--navy); box-shadow: 0 8px 20px rgba(11,34,57,.18); }
.button.secondary { background: white; color: var(--navy); border-color: rgba(255,255,255,.75); }
.button.secondary:hover { background: var(--blue-soft); border-color: var(--blue-soft); }
.hero { min-height: 620px; display: grid; align-items: stretch; background: var(--navy); color: white; scroll-margin-top: 122px; }
.hero .container { width: min(100%, 1440px); max-width: none; margin: 0 auto; padding: 0 2.5rem; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 2rem; }
.hero-content { max-width: 680px; align-self: center; padding: 4.5rem 2rem 4.5rem max(0px, calc((100vw - 1220px) / 2)); animation: rise .7s ease both; }
.hero-image { width: 100%; max-width: 600px; aspect-ratio: 5 / 4; object-fit: cover; align-self: center; justify-self: end; border-radius: 3px; box-shadow: inset 24px 0 48px rgba(3,29,49,.2); }
.eyebrow { display: inline-block; margin-bottom: 1rem; color: #72b7d9; font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.14; margin: 0 0 1rem; color: var(--navy); }
h1 { font-family: var(--serif); font-size: clamp(2.4rem, 4.4vw, 4rem); letter-spacing: -.03em; }
h2 { font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: 1.2rem; }
.hero h1 { color: white; max-width: 720px; line-height: 1.02; }
.hero p { max-width: 600px; color: #e7eff4; font-size: 1.05rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.hero-phone { display: inline-flex; margin-top: 1.4rem; color: white; text-decoration: none; font-size: 1.25rem; font-weight: 800; }
.pathways { position: relative; z-index: 1; margin-top: -1px; padding: 1.1rem 0; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 10px 30px rgba(11,34,57,.07); }
.pathways-label { margin: 0 0 .7rem; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pathway-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.pathway { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; padding: .9rem 1rem; background: white; color: var(--navy); text-decoration: none; transition: background .2s ease, color .2s ease; }
.pathway:hover { background: var(--blue-soft); }
.pathway-number { color: var(--blue); font-family: var(--serif); font-size: 1.2rem; }
.pathway strong, .pathway small { display: block; }
.pathway strong { font-size: .88rem; line-height: 1.25; }
.pathway small { margin-top: .2rem; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.pathway-arrow { color: var(--blue); font-size: 1.25rem; }
.section { padding: 6.5rem 0; }
.section.narrow { padding: 4rem 0; }
.section.silver { background: #f4f6f8; }
.section.navy { background: var(--navy); color: white; }
.section.navy h2, .section.navy h3 { color: white; }
.section-heading { max-width: 720px; margin-bottom: 2.5rem; }
.section-heading p, .intro { color: var(--muted); max-width: 700px; }
.navy .section-heading p { color: #ccdae2; }
.kicker { color: var(--blue); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.grid { display: grid; gap: 1.2rem; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: white; border: 1px solid var(--line); padding: 1.8rem; box-shadow: 0 8px 28px rgba(11,34,57,.045); }
.card p { margin-bottom: 0; color: var(--muted); }
.card .icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 1.2rem; background: var(--blue-soft); color: var(--blue); font-weight: 800; }
.visual { min-height: 390px; background: linear-gradient(135deg, rgba(11,34,57,.1), rgba(47,111,159,.2)), url('../assets/home-placeholder.svg') center/cover; border-radius: var(--radius); position: relative; overflow: hidden; }
.visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(7,24,39,.04), rgba(40,120,168,.12)); pointer-events: none; }
.accommodation-card { min-height: 330px; display: flex; flex-direction: column; justify-content: flex-end; color: white; background-position: center; background-size: cover; position: relative; overflow: hidden; }
.accommodation-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(3,29,49,.92)); }
.accommodation-card > * { position: relative; }
.accommodation-card p { color: #e8f1f5; }
.accommodation-card.shared { background-image: url('../assets/home-placeholder.svg'); }
.accommodation-card.independent { background-image: url('../assets/hero-placeholder.svg'); }
.accommodation-card.maintained { background-image: url('../assets/home-placeholder.svg'); background-position: 70% center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.list { padding: 0; margin: 1.5rem 0 0; list-style: none; display: grid; gap: .8rem; }
.list li { position: relative; padding-left: 1.7rem; }
.list li::before { content: ''; position: absolute; left: 0; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.2); margin-top: 2.5rem; }
.stat { padding: 1.4rem; background: rgba(255,255,255,.06); }
.stat strong { display: block; font-family: var(--serif); font-size: 1.5rem; }
.page-hero { padding: 5.5rem 0 4.8rem; background: linear-gradient(120deg, var(--navy-deep), var(--navy)); color: white; }
.page-hero h1 { color: white; max-width: 760px; }
.page-hero p { max-width: 650px; color: #d8e4eb; font-size: 1.1rem; }
.breadcrumb { margin-bottom: 1.4rem; color: #8fc5de; font-size: .82rem; }
.process { counter-reset: step; }
.process .card { position: relative; padding-top: 4.3rem; }
.process .card::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 1.5rem; left: 1.7rem; color: var(--blue); font-family: var(--serif); font-size: 1.7rem; }
.form-shell { background: white; border: 1px solid var(--line); padding: 2rem; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
label { font-size: .85rem; font-weight: 800; color: var(--navy); }
input, textarea, select { width: 100%; border: 1px solid #bdcbd4; border-radius: 2px; padding: .75rem .8rem; background: white; color: var(--ink); }
textarea { min-height: 145px; resize: vertical; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.check input { width: auto; margin-top: .35rem; }
.form-note { color: var(--muted); font-size: .82rem; }
.notice { border-left: 4px solid var(--blue); background: var(--blue-soft); padding: 1rem 1.2rem; color: var(--navy); }
/* Backend form states share the existing site layout and visual treatment. */
form[data-contact-form] .field { min-width: 0; }
form[data-referral-form] .field { min-width: 0; }
form[data-contact-form] .form-note, form[data-referral-form] .form-note { margin: 0; }
.contact-status:empty, .referral-status:empty { margin: 0; padding: 0; border: 0; }
.contact-status.is-error, .referral-status.is-error { border-color: #a13232; }
form[data-contact-form] .button:disabled, form[data-referral-form] .button:disabled { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }
@media (max-width: 380px) {
  .form-shell:has(form[data-contact-form]), .form-shell:has(form[data-referral-form]) { padding-inline: .65rem; }
}
.cta { padding: 4rem 0; background: var(--blue); color: white; }
.cta h2 { color: white; }
.cta p { color: #e4f0f6; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.site-footer { padding: 4.5rem 0 1.2rem; background: var(--navy-deep); color: #d1dde4; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 4rem; padding-bottom: 3rem; }
.site-footer .logo { width: 220px; background: white; padding: .45rem; margin-bottom: 1rem; }
.footer-legal { max-width: 430px; margin: 0 0 1rem; color: #aebec8; font-size: .74rem; line-height: 1.55; }
.footer-legal strong { color: #dce7ec; font-size: .76rem; }
.footer-email { display: block; width: fit-content; margin-bottom: .4rem; color: #dce7ec; font-size: .86rem; text-decoration: none; }
.footer-email:hover { color: white; text-decoration: underline; }
.site-footer h3 { color: white; font-family: var(--sans); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-links a { color: #d1dde4; text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: white; }
.footer-bottom { padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; }
.whatsapp-contact { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 30; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-width: 56px; min-height: 56px; padding: .7rem 1rem; border: 2px solid white; border-radius: 999px; background: #168a46; color: white; box-shadow: 0 8px 24px rgba(3,29,49,.28); font-size: .9rem; font-weight: 800; line-height: 1; text-decoration: none; transition: background .2s ease, box-shadow .2s ease, opacity .15s ease, transform .15s ease; }
.whatsapp-contact:hover { background: #0c6f36; box-shadow: 0 10px 28px rgba(3,29,49,.34); transform: translateY(-2px); }
.whatsapp-contact:focus-visible { outline-color: #062b4a; outline-offset: 3px; }
.whatsapp-contact.is-avoiding { opacity: 0; pointer-events: none; transform: translateY(8px); }
.whatsapp-contact__icon { width: 25px; height: 25px; flex: 0 0 auto; }
.whatsapp-contact__text { white-space: nowrap; }
.reveal { animation: rise .7s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@media (max-width: 1120px) { .site-nav { gap: .75rem; } .site-nav a { font-size: .76rem; } .nav-wrap { gap: 1rem; } .logo { width: 145px; } .hero .container { gap: 1rem; } .hero-content { padding-left: 1rem; padding-right: 1rem; } }
@media (max-width: 820px) {
  .header-top .container { justify-content: center; }
  .nav-wrap { min-height: 82px; justify-content: space-between; }
  .logo { width: 150px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 116px; padding: 1rem 1.25rem 1.5rem; background: white; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .55rem 0; font-size: .92rem; }
  .site-nav .button { margin-top: .4rem; }
  .split, .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 0; }
  .hero .container { padding: 0 1.25rem; display: block; }
  .hero-content { max-width: 700px; padding: 4.5rem 0; }
  .hero-image { min-height: 0; max-width: none; width: 100%; max-height: 420px; aspect-ratio: 5 / 4; box-shadow: none; }
  .section { padding: 4.5rem 0; }
  .pathway-grid { grid-template-columns: 1fr; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .container { width: min(calc(100% - 1.5rem), var(--max)); }
  h1 { font-size: clamp(2.375rem, 9vw, 2.75rem); }
  .page-hero { padding: 4rem 0 3.5rem; }
  .grid-3, .grid-4, .form-grid, .stat-strip { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .visual { min-height: 270px; }
  .hero .container { padding-inline: .75rem; }
  .hero-content { padding-block: 3.5rem; }
  .hero-image { min-height: 260px; max-height: 320px; aspect-ratio: 5 / 4; }
  .form-shell { padding: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .whatsapp-contact { right: max(.75rem, env(safe-area-inset-right)); bottom: max(.75rem, env(safe-area-inset-bottom)); width: 56px; padding: 0; }
  .whatsapp-contact__text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}
