/* =============================================================================
   CBM Administración Condominial — theme stylesheet
   Design system documented in /home/airbender/docker-data/condo/docs/DESIGN-SYSTEM.md
   ========================================================================== */

@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url('../fonts/SourceSerif4-var.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/Figtree-var.woff2') format('woff2'); }

:root {
  /* brand — sampled from the supplied logo */
  --navy: #022E5B;
  --navy-800: #0A3A6E;
  --navy-950: #011E3C;
  --navy-100: #E1E8F1;
  --navy-50: #EEF2F7;
  --gold: #C7922F;
  --gold-300: #DDAB4C;
  --gold-100: #F6ECD8;
  --gold-text: #8A6216;     /* gold for text on light surfaces (AA) */

  /* surfaces + text */
  --cream: #FBF8F3;
  --sand: #F4EEE4;
  --white: #FFFFFF;
  --ink: #152233;
  --muted: #4F5D6E;
  --line: #E7E0D4;

  /* type */
  --font-head: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* spacing scale (4px base) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section-y: clamp(3rem, 6vw, 5.5rem);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(2, 46, 91, .06), 0 2px 8px rgba(2, 46, 91, .05);
  --shadow: 0 10px 30px -12px rgba(2, 46, 91, .22);
  --container: 1200px;
  --header-h: 84px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

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

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem; margin: 0 0 var(--s-4);
  font: 600 .8rem/1.2 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text);
}
.eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--gold); border-radius: 2px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36em; }
.lead-sm { font-size: 1.1rem; color: var(--muted); }
.muted { color: var(--muted); }
.section { padding-block: var(--section-y); }
.section-head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); max-width: 46rem; }
.section-head-split { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); max-width: none; flex-wrap: wrap; }
.section-title { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
.text-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--navy); text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid var(--gold); }
.text-link .icon { transition: transform .2s; }
.text-link:hover .icon { transform: translateX(3px); }
.prose { max-width: 44rem; }
.prose p { color: var(--ink); }
.prose h2 { margin-bottom: var(--s-4); }
.narrow { max-width: 44rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.35rem; border-radius: 12px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-300), var(--gold)); color: var(--navy-950); box-shadow: 0 6px 16px -8px rgba(160, 110, 20, .8); }
.btn-gold:hover { color: var(--navy-950); box-shadow: 0 10px 22px -10px rgba(160, 110, 20, .9); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-lg { min-height: 54px; padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-sm { min-height: 42px; padding: .55rem 1rem; font-size: .95rem; }
.btn .icon-arrow { transition: transform .2s; }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* ---------- header ---------- */
/* Desktop nav from 1024px (brief: desktop >= 1024); hamburger below. */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--s-4); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
/* final logo (1753x685 trimmed, ratio 2.56) carries "ADMINISTRACIÓN CONDOMINIAL" — sized so that line stays legible */
.brand-logo { width: 156px; height: auto; }
.site-nav { display: flex; align-items: center; gap: var(--s-4); }
.nav-links { display: flex; gap: 0; }
.nav-links a { display: block; padding: .6rem .62rem; font-weight: 600; font-size: .94rem; color: var(--navy); text-decoration: none; position: relative; border-radius: 8px; white-space: nowrap; }
.nav-links a::after { content: ''; position: absolute; left: .62rem; right: .62rem; bottom: .25rem; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; border-radius: 2px; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: var(--s-3); }
.btn-portal { background: var(--navy); color: #fff; border-color: var(--navy); gap: .45rem; padding-inline: .95rem; }
.btn-portal:hover, .btn-portal[aria-current="page"] { background: var(--navy-800); color: #fff; }
.btn-portal .icon { width: 1.05em; height: 1.05em; color: var(--gold-300); }
.lang-switch { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--white); }
.lang-switch li { display: flex; }
.lang-switch a, .lang-current { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 34px; padding: 0 .55rem; border-radius: 999px; font: 700 .8rem/1 var(--font-body); letter-spacing: .06em; text-decoration: none; }
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--navy); background: var(--navy-50); }
.lang-current { background: var(--navy); color: #fff; }
.lang-current abbr { text-decoration: none; }
.nav-toggle { display: none; }
@media (min-width: 1280px) { .nav-links a { padding-inline: .8rem; font-size: .98rem; } .nav-links a::after { left: .8rem; right: .8rem; } .brand-logo { width: 184px; } .header-inner { gap: var(--s-5); } }
@media (max-width: 1023px) {
  :root { --header-h: 70px; }
  .brand-logo { width: 148px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    border: 1px solid var(--line); background: var(--white); color: var(--navy); border-radius: 12px; cursor: pointer;
  }
  .nav-toggle .icon { width: 24px; height: 24px; }
  .nav-toggle-close, .nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: var(--s-4);
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: var(--s-2) clamp(16px, 4vw, 32px) var(--s-5);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .nav-links { flex-direction: column; }
  .nav-links a { padding: .8rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav-links a::after { left: .25rem; right: auto; width: 28px; bottom: -1px; }
  .nav-tools { justify-content: space-between; }
  .btn-portal { flex: 1; min-height: 48px; }
  .lang-switch a, .lang-current { min-height: 40px; min-width: 46px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .nav-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-5); }
  .btn-portal { flex: 0 0 auto; }
}

/* ---------- hero (home) ---------- */
/* Production pass: the hero IS the owner's final approved artwork (one image, never rebuilt in CSS).
   Desktop/tablet: the full 1672x941 artwork, scaled proportionally, never enlarged past its native width;
   above 1672px the frame is centred on a softly blurred copy of the same artwork so the band stays full-bleed.
   Phone (< 600px): the stacked derivative of the SAME artwork (hero-final-m-*, 900x1961).
   Hotspots: transparent links over the CTA buttons painted in the artwork, in % of the frame so they scale
   with the image. Rectangles printed by tools/build_production_assets.py. */
.hero-art { position: relative; overflow: hidden; background: var(--navy-950); }
.hero-art::before { content: ''; position: absolute; inset: -40px; background: url('../images/hero-final-840.webp') center / cover no-repeat;
  filter: blur(36px) brightness(.55) saturate(1.1); display: none; }
@media (min-width: 1673px) { .hero-art::before { display: block; } }
.hero-art-frame { position: relative; max-width: 1672px; margin-inline: auto; aspect-ratio: 1672 / 941; }
.hero-art-img { display: block; width: 100%; height: 100%; max-width: none; }
.hero-hotspot { position: absolute; z-index: 2; display: block; border-radius: 1.1% / 2%; background: transparent; -webkit-tap-highlight-color: transparent; }
.hero-hotspot:focus { outline: none; }
.hero-hotspot:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px rgba(2, 46, 91, .85); }
/* desktop/tablet artwork (1672x941): left, top, width, height in % */
.hero-hotspot-primary   { left: 4.49%;  top: 68.86%; width: 30.38%; height: 7.97%; }
.hero-hotspot-secondary { left: 36.06%; top: 68.97%; width: 17.64%; height: 7.65%; }
@media (max-width: 599px) {
  .hero-art-frame { aspect-ratio: 900 / 1961; }
  /* phone derivative (900x1961) */
  .hero-hotspot-primary   { left: 3.91%;  top: 31.18%; width: 56.76%; height: 3.85%; }
  .hero-hotspot-secondary { left: 62.91%; top: 31.23%; width: 32.96%; height: 3.69%; }
}

/* ---------- cards / services overview ---------- */
.services-overview { background: var(--white); }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-5) var(--s-5); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #DCCDB0; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: var(--s-5); }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--gold-100); color: var(--navy); margin-bottom: var(--s-4); }
.card-icon .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.card-icon-lg { width: 72px; height: 72px; }
.card-icon-lg .icon { width: 34px; height: 34px; }
.card-title { font-size: 1.3rem; margin-bottom: var(--s-3); }
.card-title a { text-decoration: none; color: inherit; }
.stretched::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card-go { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; transition: background .2s; }
.card:hover .card-go { background: var(--gold); color: var(--navy-950); }
.card-go .icon { width: 18px; height: 18px; }
.card:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.card a:focus-visible { outline: none; }
@media (max-width: 1080px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } .card { padding: var(--s-5); } }

/* ---------- value / pillars ---------- */
.value { background: var(--sand); }
.value-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.value-copy .text-link { margin-top: var(--s-3); }
.pillars { display: grid; gap: var(--s-4); }
.pillars-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pillar { display: flex; gap: var(--s-4); align-items: flex-start; background: var(--white); border-radius: var(--radius); padding: var(--s-5); box-shadow: var(--shadow-sm); border-left: 4px solid var(--gold); }
.pillar p { margin: 0; color: var(--muted); }
.pillar-icon { flex: none; display: inline-flex; width: 48px; height: 48px; border-radius: 12px; align-items: center; justify-content: center; background: var(--navy); color: #fff; }
.pillar-icon .icon { width: 24px; height: 24px; }
.pillar-title { font-size: 1.2rem; margin-bottom: .3rem; }
@media (max-width: 960px) { .value-grid { grid-template-columns: 1fr; } .pillars-row { grid-template-columns: 1fr; } }

/* ---------- process steps ---------- */
.process { background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); counter-reset: none; position: relative; }
.step { position: relative; }
.step-marker { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.step-num { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; background: linear-gradient(180deg, var(--gold-300), var(--gold)); color: var(--navy-950); font-weight: 700; font-size: 1.05rem; box-shadow: 0 0 0 6px var(--gold-100); }
.step-icon { color: var(--navy); }
.step-icon .icon { width: 34px; height: 34px; stroke-width: 1.5; }
.steps:not(.steps-detailed) .step:not(:last-child) .step-marker::after { content: ''; flex: 1; height: 2px; margin-left: var(--s-2); background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 14px); opacity: .7; }
.step-title { font-size: 1.22rem; margin-bottom: .4rem; }
.step p { color: var(--muted); margin: 0; }
.steps-detailed { grid-template-columns: 1fr; gap: 0; max-width: 52rem; }
.steps-detailed .step { display: grid; grid-template-columns: 72px 1fr; gap: var(--s-5); padding-bottom: var(--s-7); }
.steps-detailed .step-marker { flex-direction: column; margin: 0; }
.steps-detailed .step-icon { display: none; }
.steps-detailed .step:not(:last-child)::before { content: ''; position: absolute; left: 20px; top: 52px; bottom: 8px; width: 2px; background: repeating-linear-gradient(180deg, var(--gold) 0 8px, transparent 8px 14px); opacity: .7; }
.steps-detailed .step-title { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.steps-detailed .step p { font-size: 1.08rem; }
.steps-detailed .ticks { margin-top: var(--s-4); }
@media (max-width: 960px) { .steps:not(.steps-detailed) { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); } .steps:not(.steps-detailed) .step-marker::after { display: none; } }
@media (max-width: 560px) { .steps:not(.steps-detailed) { grid-template-columns: 1fr; } .steps-detailed .step { grid-template-columns: 48px 1fr; gap: var(--s-4); } }

/* ---------- ticks ---------- */
.ticks { display: grid; gap: .6rem; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; }
.ticks .icon { color: var(--gold-text); width: 1.2em; height: 1.2em; margin-top: .22em; stroke-width: 2.4; }

/* ---------- outcomes ---------- */
.outcomes { background: var(--cream); }
.outcome-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.outcome { background: var(--white); border-radius: var(--radius); padding: var(--s-5); border: 1px solid var(--line); }
.outcome-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; align-items: center; justify-content: center; border: 2px solid var(--gold); color: var(--navy); margin-bottom: var(--s-4); }
.outcome-icon .icon { width: 24px; height: 24px; }
.outcome-title { font-size: 1.14rem; line-height: 1.25; }
.outcome p { margin: .5rem 0 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .outcome-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .outcome-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: auto -10% -60% auto; width: 46rem; height: 46rem; border-radius: 50%; border: 2px solid rgba(221, 171, 76, .25); }
.cta-band::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-300), var(--gold)); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); padding-block: clamp(2.75rem, 5vw, 4rem); flex-wrap: wrap; }
.cta-title { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); max-width: 18em; }
.cta-text { margin: .75rem 0 0; color: #D5DEEA; max-width: 36em; }
@media (max-width: 560px) { .cta-band .btn { width: 100%; } }

/* ---------- interior page hero ---------- */
.page-hero { background: radial-gradient(50rem 20rem at 90% 0%, rgba(221, 171, 76, .13), transparent 60%), var(--cream); padding-block: clamp(2.75rem, 6vw, 4.75rem) clamp(2rem, 4vw, 3.25rem); border-bottom: 1px solid var(--line); }
.page-title { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: var(--s-4); max-width: 18em; }
.page-hero .lead { margin: 0; }

/* ---------- services detail ---------- */
.jump { padding-top: var(--s-6); }
.jump ul { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.jump a { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--navy); min-height: 44px; }
.jump a:hover { border-color: var(--gold); }
.jump .icon { width: 18px; height: 18px; color: var(--gold-text); }
.services-detail { padding-top: var(--s-6); }
.service-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(2rem, 4vw, 3rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: var(--s-5); align-items: start; }
.service-title { font-size: clamp(1.6rem, 2.8vw, 2.05rem); margin-bottom: var(--s-3); }
.service-summary { color: var(--muted); font-size: 1.08rem; margin: 0; }
.ticks-grid { align-self: center; gap: .9rem; }
.ticks-grid li { padding: .9rem 1rem; background: var(--cream); border-radius: 12px; }
@media (max-width: 860px) { .service-row { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about-story { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-grid .prose p { font-size: 1.1rem; }
.quote-card { margin: 0; background: var(--cream); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem); border: 1px solid var(--line); position: relative; }
.quote-card::before { content: ''; position: absolute; left: 0; top: 2rem; bottom: 2rem; width: 4px; background: var(--gold); border-radius: 0 4px 4px 0; }
.quote-logo { width: 150px; height: auto; margin-bottom: var(--s-5); }
.quote-card blockquote { margin: 0; }
.quote-card p { font: italic 600 clamp(1.35rem, 2.4vw, 1.7rem)/1.3 var(--font-head); color: var(--navy); margin: 0; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.form-title { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: var(--s-2); }
.contact-aside { background: var(--cream); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); }
.aside-title { font-size: 1.35rem; margin-bottom: var(--s-4); }
.contact-list { display: grid; gap: var(--s-4); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list .icon { color: var(--navy); width: 22px; height: 22px; margin-top: .2rem; }
.contact-list .label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

/* Grav form plugin markup */
.form-card form { margin-top: var(--s-5); }
.form-field { margin-bottom: var(--s-4); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-4); }
.form-label label, .form-field > label { display: block; font-weight: 600; font-size: .95rem; color: var(--navy); margin-bottom: .35rem; }
.form-label .required, .required { color: #A3341E; }
.form-input-wrapper input, .form-input-wrapper textarea, .form-field input[type="text"], .form-field input[type="email"], .form-field input[type="tel"], .form-field textarea, .form-field select {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid #CFC6B6; border-radius: 10px; padding: .75rem .9rem; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(199, 146, 47, .45); }
.form-field .form-extra-wrapper, .form-field .checkboxes { font-size: .95rem; }
.form-field input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--navy); margin: .15rem .5rem 0 0; flex: none; }
.form-field .checkboxes label, .form-field .form-input-wrapper label.inline { display: flex; align-items: flex-start; font-weight: 400; color: var(--ink); }
.form-data .form-input-wrapper { display: block; }
.buttons { margin-top: var(--s-5); }
.buttons .button, .form-card button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .85rem 1.6rem; border-radius: 12px; border: 0; cursor: pointer;
  font: 600 1.05rem/1.2 var(--font-body); color: var(--navy-950); background: linear-gradient(180deg, var(--gold-300), var(--gold));
}
.form-hint, .hint { font-size: .85rem; color: var(--muted); }
.notices { border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: var(--s-4); }
.notices.green, .notices.success { background: #E8F3EA; color: #1D4F2A; border: 1px solid #B8D9BF; }
.notices.red, .notices.error { background: #FBEAE6; color: #7A2414; border: 1px solid #EDC1B6; }
.form-honeybear, .form-honeypot { position: absolute !important; left: -9999px !important; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } .buttons .button, .form-card button[type="submit"] { width: 100%; } }

/* ---------- footer (compact) ---------- */
.site-footer { background: var(--navy-950); color: #C9D4E2; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr; gap: var(--s-6); padding-block: clamp(2.25rem, 4vw, 3rem) var(--s-5); }
.footer-logo { width: 170px; height: auto; margin-bottom: var(--s-3); }
.footer-brand p { max-width: 26em; margin: 0; line-height: 1.55; }
.footer-h { font: 600 .74rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); margin-bottom: var(--s-3); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem var(--s-4); }
.footer-nav a { display: inline-block; padding: .3rem 0; }
.footer-contact ul { display: grid; gap: .5rem; margin-bottom: var(--s-4); }
.footer-contact li { display: flex; gap: .55rem; align-items: center; }
.footer-contact .icon { color: var(--gold-300); width: 18px; height: 18px; }
.footer-contact .btn { color: var(--navy-950); }
.footer-contact .btn:hover { text-decoration: none; color: var(--navy-950); }
.footer-social { display: flex; gap: .5rem; margin-top: var(--s-4); }
.footer-social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); }
.footer-social a:hover { border-color: var(--gold-300); text-decoration: none; }
.footer-social .icon { width: 18px; height: 18px; }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem var(--s-5); border-top: 1px solid rgba(255, 255, 255, .12); padding-block: var(--s-4); font-size: .85rem; color: #A9B7C9; }
.footer-base p { margin: 0; }
.footer-legal { display: flex; gap: var(--s-4); }
.footer-legal a { color: #C9D4E2; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-6); } .footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: .4rem var(--s-5); align-items: center; } .footer-brand picture { grid-row: span 2; } .footer-logo { margin: 0; } .footer-social { margin: 0; } }
@media (max-width: 639px) {
  .footer-grid { gap: var(--s-5) var(--s-4); padding-block: var(--s-6) var(--s-4); }
  .footer-brand { grid-template-columns: 1fr; }
  .footer-logo { width: 150px; } .footer-brand picture { grid-row: auto; }
  .footer-nav { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
  .footer-contact .footer-h { display: none; }
  .footer-contact ul { margin: 0; }
  .footer-base { padding-bottom: 88px; }
}

/* ---------- AI receptionist (frontend demo) ---------- */
/* Closed: transparent mascot cut-out (owner upload 2026-10-02) rising out of a navy disc with a gold ring —
   no white box; production pass made it markedly bigger (84 / 76 / 68px disc, figure 1.42x the disc).
   Open: compact panel that never covers the whole viewport; the mascot bust stands in the header and rises
   above it (design reference assets/source/production/chat-mockup-reference.png). */
.assistant { position: fixed; right: clamp(10px, 2.2vw, 26px); bottom: clamp(10px, 2.2vw, 22px); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; pointer-events: none; }
.assistant > * { pointer-events: auto; }
.assistant-launcher { display: flex; align-items: center; gap: .35rem; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.assistant-launcher-disc { --d: 84px; position: relative; border-radius: 50%; width: var(--d); height: var(--d); flex: none; transition: transform .2s; }
.assistant-launcher-disc::before { content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #12497F, var(--navy) 72%); box-shadow: 0 0 0 2px var(--gold-300), 0 10px 22px -8px rgba(1, 30, 60, .6); }
/* mascot pops out above the disc; below the disc's centre line it is masked to the circle */
.assistant-launcher-disc picture { position: absolute; left: 50%; bottom: 0; width: calc(var(--d) * 1.42); height: calc(var(--d) * 1.42); transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(#000 0 0), radial-gradient(circle calc(var(--d) / 2) at 50% calc(100% - var(--d) / 2), #000 98%, transparent 100%);
  -webkit-mask-size: 100% calc(100% - var(--d) / 2), 100% 100%; -webkit-mask-position: top, 0 0; -webkit-mask-repeat: no-repeat;
  mask-image: linear-gradient(#000 0 0), radial-gradient(circle calc(var(--d) / 2) at 50% calc(100% - var(--d) / 2), #000 98%, transparent 100%);
  mask-size: 100% calc(100% - var(--d) / 2), 100% 100%; mask-position: top, 0 0; mask-repeat: no-repeat; }
.assistant-launcher-disc img { position: absolute; left: 0; bottom: -6%; width: 100%; height: auto; filter: drop-shadow(0 2px 3px rgba(1, 30, 60, .35)); }
.assistant-online { position: absolute; z-index: 2; right: 3px; top: 5px; width: 15px; height: 15px; border-radius: 50%; background: #2F9E5A; box-shadow: 0 0 0 2.5px #fff; }
.assistant-launcher:hover .assistant-launcher-disc { transform: translateY(-2px); }
.assistant-launcher-label { padding: .55rem 1rem; background: var(--white); color: var(--navy); border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-sm); white-space: nowrap; }
.assistant-launcher:focus-visible { outline: none; }
.assistant-launcher:focus-visible .assistant-launcher-disc { outline: 3px solid var(--gold); outline-offset: 4px; }
.assistant-launcher[aria-expanded="true"] .assistant-launcher-label { display: none; }
@media (max-width: 1023px) { .assistant-launcher-disc { --d: 76px; } }
@media (max-width: 639px) { .assistant-launcher-label { display: none; } .assistant-launcher-disc { --d: 68px; } .assistant-online { width: 13px; height: 13px; } }

.assistant-panel {
  width: min(372px, calc(100vw - 20px)); max-height: min(600px, calc(100dvh - var(--header-h) - 150px)); display: flex; flex-direction: column;
  background: var(--white); border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(1, 30, 60, .45), 0 0 0 1px var(--line);
  overflow: visible; margin-top: 34px;   /* room for the mascot rising above the header */
}
.assistant-panel[hidden] { display: none; }
.assistant-head { position: relative; display: flex; align-items: center; gap: .65rem; min-height: 92px; padding: .6rem .7rem .6rem 136px;
  background: radial-gradient(14rem 7rem at 0% 100%, #12497F, transparent 70%), var(--navy); color: #fff; border-bottom: 3px solid var(--gold);
  border-radius: 18px 18px 0 0; flex: none; }
/* mascot bust stands on the gold rule and rises ~26px above the header — no circle, no white box */
.assistant-avatar { position: absolute; left: 4px; bottom: 0; width: 128px; height: 128px; pointer-events: none; }
.assistant-avatar img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 2px 5px rgba(1, 30, 60, .45));
  clip-path: inset(-40px -40px 0 -40px); }   /* keep the shadow off the gold rule under the flat bust cut */
.assistant-name { font: 700 1.15rem/1.2 var(--font-body); color: #fff; }
.assistant-status { margin: .2rem 0 0; font-size: .82rem; color: #C9D4E2; display: flex; align-items: center; gap: .4rem; }
.assistant-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #4CC27A; }
.assistant-close { margin-left: auto; width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.assistant-close:hover { background: rgba(255, 255, 255, .22); }
.assistant-log { flex: 1 1 auto; min-height: 96px; overflow-y: auto; overscroll-behavior: contain; padding: .8rem; display: flex; flex-direction: column; gap: .5rem; background: var(--cream); }
.msg { max-width: 88%; padding: .55rem .8rem; border-radius: 14px; font-size: .92rem; line-height: 1.45; }
.msg p { margin: 0; }
.msg-bot { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-user { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .4rem; font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--gold); }
.msg-link .icon { width: 16px; height: 16px; }
.assistant-quick { display: flex; flex-wrap: wrap; gap: .35rem; padding: .55rem .8rem .15rem; background: var(--white); flex: none; border-top: 1px solid var(--line); }
.chip { border: 1px solid var(--navy-100); background: var(--navy-50); color: var(--navy); border-radius: 999px; padding: .3rem .65rem; font: 600 .8rem/1.2 var(--font-body); cursor: pointer; min-height: 32px; text-align: left; }
.chip:hover { border-color: var(--gold); background: var(--gold-100); }
.assistant-form { display: flex; gap: .45rem; padding: .55rem .8rem; background: var(--white); flex: none; }
.assistant-form input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; border: 1.5px solid #CFC6B6; border-radius: 12px; padding: .5rem .75rem; min-height: 42px; }
.assistant-form input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(199, 146, 47, .45); }
.assistant-form button { width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--navy); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.assistant-form button .icon { width: 19px; height: 19px; }
.assistant-notice { margin: 0; padding: 0 .8rem .6rem; font-size: .72rem; line-height: 1.35; color: var(--muted); background: var(--white); flex: none; border-radius: 0 0 18px 18px; }
.typing { display: inline-flex; gap: 4px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #9AA6B4; animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@media (max-width: 639px) {
  .assistant-panel { max-height: min(490px, calc(100dvh - 200px)); margin-top: 30px; }
  .assistant-head { min-height: 84px; padding-left: 122px; }
  .assistant-avatar { width: 116px; height: 116px; }
  .assistant-name { font-size: 1.05rem; }
  /* one scrollable row of suggestions instead of a tall wrapped block */
  .assistant-quick { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .45rem; scrollbar-width: none; }
  .assistant-quick::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; flex: none; }
}
@media (max-height: 560px) { .assistant-panel { max-height: calc(100dvh - 120px); } .assistant-notice { display: none; } .assistant-head { min-height: 60px; } }

/* ---------- phone compaction ---------- */
@media (max-width: 560px) {
  .card { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; padding: 1.1rem 1.1rem 1.1rem 1rem; }
  .card-icon { width: 52px; height: 52px; margin: 0; grid-row: span 2; }
  .card-icon .icon { width: 24px; height: 24px; }
  .card-title { font-size: 1.15rem; margin: .1rem 0 .3rem; }
  .card p { margin: 0; font-size: .95rem; }
  .card-go { display: none; }
  .outcome-grid { gap: .75rem; }
  .outcome { display: flex; align-items: center; gap: 1rem; padding: 1rem; }
  .outcome-icon { margin: 0; flex: none; width: 46px; height: 46px; }
  .pillar { padding: 1.1rem; }
  .section-head { margin-bottom: 1.5rem; }
}

/* consent checkbox: box + label on one line */
.form-field .form-input-wrapper:has(> input[type="checkbox"]) { display: flex; align-items: flex-start; gap: .1rem; }
.form-field .form-input-wrapper > label.inline { display: inline !important; font-weight: 400; color: var(--ink); font-size: .95rem; }
.nav-toggle, .assistant-launcher, .chip, .btn { -webkit-tap-highlight-color: transparent; }
.nav-toggle[aria-expanded="true"] { background: var(--navy-50); border-color: var(--navy-100); }

/* ---------- gold balance (target 5–10 % accent) ---------- */
.card-icon { background: linear-gradient(180deg, #EBCB8B, #DDAB4C); color: var(--navy-950); }
.pillar-icon { background: linear-gradient(180deg, var(--gold-300), var(--gold)); color: var(--navy-950); }
.outcome-icon { background: linear-gradient(180deg, var(--gold-300), var(--gold)); border: 0; color: var(--navy-950); }
.cta-band::after { height: 6px; }
.jump .icon { color: var(--navy); }

/* =============================================================================
   Phase 2 — maintenance, portal, legal, misc
   ========================================================================== */
.service-link { margin-top: var(--s-4); }
.card-static:hover { transform: none; }
.maint-areas { background: var(--white); }
.maint-areas .section-head .lead-sm { margin: var(--s-3) 0 0; }
.maint-priority { background: var(--cream); }
.priority-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: stretch; }
.priority-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.1rem); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: var(--s-3); }
.priority-card::before { content: ''; position: absolute; left: 0; top: 1.5rem; bottom: 1.5rem; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold); }
.priority-urgent::before { background: #B23A26; }
.priority-card p { margin: 0; color: var(--muted); }
.priority-icon { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; align-items: center; justify-content: center; background: linear-gradient(180deg, var(--gold-300), var(--gold)); color: var(--navy-950); }
.priority-urgent .priority-icon { background: #FBEAE6; color: #9E2F1C; }
.priority-icon .icon { width: 24px; height: 24px; }
.priority-title { font-size: clamp(1.35rem, 2.4vw, 1.6rem); }
.priority-card .ticks { margin: var(--s-2) 0; font-size: .97rem; }
.priority-card .btn { align-self: flex-start; margin-top: auto; }
.emergency-note { display: flex; gap: .7rem; align-items: flex-start; background: #FBEAE6; border: 1px solid #EDC1B6; color: #6E1F10 !important; border-radius: 12px; padding: .85rem 1rem; font-weight: 600; line-height: 1.45; }
.emergency-note .icon { color: #9E2F1C; width: 22px; height: 22px; margin-top: .1rem; }
.priority-urgent .ticks .icon { color: #9E2F1C; }
@media (max-width: 860px) { .priority-grid { grid-template-columns: 1fr; } }
.status-note { display: flex; gap: .6rem; align-items: center; margin: var(--s-6) 0 0; padding: .85rem 1.1rem; border-radius: 12px; background: var(--navy-50); color: var(--navy); font-weight: 600; }
.status-note .icon { color: var(--gold-text); }
.maint-request { background: var(--sand); }
.request-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.request-copy .lead-sm { margin: var(--s-3) 0 var(--s-5); }
.preview-banner { display: flex; gap: .7rem; align-items: flex-start; margin: 0 0 var(--s-5); padding: .85rem 1rem; border-radius: 12px; background: var(--gold-100); color: var(--navy-950); font-size: .95rem; line-height: 1.45; }
.preview-banner .icon { color: var(--gold-text); width: 22px; height: 22px; margin-top: .05rem; }
.preview-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.preview-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-4); }
.preview-fields .is-wide { grid-column: 1 / -1; }
.preview-form .form-field > label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: .3rem; }
.preview-form input, .preview-form select, .preview-form textarea { width: 100%; font: inherit; color: var(--ink); background: #F6F3EE; border: 1.5px dashed #D3CABA; border-radius: 10px; padding: .6rem .8rem; min-height: 44px; }
.preview-form textarea { min-height: 88px; resize: none; }
.preview-form input[type="file"] { padding: .5rem; }
.preview-form .button { display: inline-flex; align-items: center; min-height: 48px; padding: .8rem 1.4rem; border: 0; border-radius: 12px; background: #DAD3C6; color: #5E5649; font: 600 1rem/1.2 var(--font-body); cursor: not-allowed; margin-top: var(--s-2); }
.form-preview { opacity: 1; }
@media (max-width: 960px) { .request-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .preview-fields { grid-template-columns: 1fr; } .preview-form .button { width: 100%; justify-content: center; } }

.portal { background: var(--white); }
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.portal-card { display: flex; flex-direction: column; gap: var(--s-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.1rem); box-shadow: var(--shadow); border-top: 4px solid var(--navy); }
.portal-card-head { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.portal-icon { display: inline-flex; width: 56px; height: 56px; border-radius: 16px; align-items: center; justify-content: center; background: var(--navy); color: var(--gold-300); flex: none; }
.portal-icon .icon { width: 28px; height: 28px; }
.portal-kicker { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.portal-role { font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
.badge-soon { margin-left: auto; padding: .3rem .7rem; border-radius: 999px; background: var(--gold-100); color: var(--navy-950); font-size: .78rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.portal-desc { margin: 0; color: var(--muted); }
.portal-features { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem var(--s-4); }
.portal-features li { display: flex; gap: .55rem; align-items: center; padding: .65rem .75rem; border-radius: 10px; background: var(--cream); font-size: .95rem; font-weight: 600; color: var(--navy); }
.portal-features .icon { color: var(--gold-text); width: 20px; height: 20px; }
.portal-access { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: auto; min-height: 50px; border-radius: 12px; border: 1.5px dashed #C9BFAE; color: var(--muted); font-weight: 600; background: #FAF8F4; }
.portal-access .icon { width: 18px; height: 18px; }
.portal-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-6); margin-top: var(--s-6); padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius-lg); background: var(--navy); color: #D8E1EC; }
.portal-note-title { color: #fff; font-size: 1.35rem; margin-bottom: .3rem; }
.portal-note p { margin: 0; }
.portal-note .btn-row { margin: 0; }
.portal-note .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .85); }
.portal-note .btn-outline:hover { background: #fff; color: var(--navy); }
@media (max-width: 960px) { .portal-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .portal-features { grid-template-columns: 1fr; } .badge-soon { margin-left: 0; } .portal-note .btn { width: 100%; } }

.legal { background: var(--white); }
.legal-prose h2 { font-size: 1.35rem; margin: var(--s-6) 0 var(--s-3); }
.legal-prose h2:first-of-type { margin-top: var(--s-4); }
.legal-updated { font-size: .9rem; color: var(--muted); }
.form-field .form-input-wrapper > label.inline a, .form-field label.inline a { color: var(--navy); font-weight: 600; }
