/* ==========================================================================
   Southern Oaks of Pasco Homeowners Association - shared stylesheet
   Rebuilt from the live Duda site (www.southernoakshoa.net), 2026-09-18.
   Every token below was measured off the live pages, not guessed.
   ========================================================================== */

/* --- Fonts ----------------------------------------------------------------
   Live set headings AND body in Droid Serif (Apache 2.0), served from Duda's
   CDN as two latin woff2 files. The same two files are self-hosted here; no
   substitution, so no size-adjust is needed. Nav and buttons ran in Roboto,
   which the system sans stack covers.                                      */
@font-face {
  font-family: 'Droid Serif';
  src: url('/fonts/droid-serif-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Droid Serif';
  src: url('/fonts/droid-serif-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Fallback metrics keep CLS near 0 while the web font loads. */
@font-face {
  font-family: 'Droid Serif Fallback';
  src: local('Georgia');
  size-adjust: 103%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

:root {
  /* Palette, sampled from the live pages:
     tan top bar #b89f76, brown accent #9e7a5d, gold band #e8c88b, orange
     contact panel #ce7a23, ink #34353d, body #494949, footer #33353d.
     Contrast (WCAG AA, measured):
       live link orange #d99855 on white  2.45:1  FAILS  -> --link #b06018 4.63:1
       gold #e8c88b on white               1.61:1  FAILS as an accent word
                                            -> accent words use brown #9e7a5d
                                               3.89:1 (large text AA) everywhere
       white on orange #ce7a23             3.26:1  FAILS at 16px
                                            -> panel uses --orange-deep #b06018,
                                               white on it 4.63:1
       white on tan #b89f76                2.54:1  FAILS -> top bar text is ink
                                               (4.79:1)
       ink on gold #e8c88b                 7.58:1  fine                     */
  --tan: #b89f76;
  --brown: #9e7a5d;
  --gold: #e8c88b;
  --orange: #ce7a23;
  --orange-deep: #b06018;
  --link: #b06018;
  --ink: #34353d;          /* headings, 12.2:1 */
  --body: #494949;         /* copy, 9.0:1 */
  --muted: #6b6b6b;        /* 5.7:1 */
  --band: #f9f9f9;
  --band-2: #f4f4f4;
  --band-3: #e7e7e7;
  --footer: #33353d;
  --white: #fff;

  --font: 'Droid Serif', 'Droid Serif Fallback', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;     /* Duda's .dmRespColsWrapper measured 1200 at 1440 */
  --gutter: 24px;
  --topbar-h: 40px;
  --header-h: 92px;        /* logo 220x112 sits proud of a 92px bar on live */
  --radius: 3px;
  --shadow-sm: 0 2px 8px rgba(52, 53, 61, .10);
  --shadow-md: 0 10px 28px rgba(52, 53, 61, .16);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;              /* live: 29.6px on 16px */
  color: var(--body);
  background: var(--white);
}
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: 46px; }
h2 { font-size: 34px; }
h3 { font-size: 22px; }
h4 { font-size: 20px; }
.accent { color: var(--brown); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 18px; }
ul { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .3em; }
a { color: var(--link); }
.muted { color: var(--muted); }

/* Content links: orange, AA, underline drawn on hover. `:not(.btn)` is load
   bearing: without it these rules outrank .btn and repaint every button
   inside a <p>. Scoped to main so the footer keeps its own colors.       */
main p a:not(.btn), main li a:not(.btn) {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color .2s;
}
main p a:not(.btn):hover, main li a:not(.btn):hover { text-decoration-color: currentColor; }
@media (prefers-reduced-motion: reduce) {
  main p a:not(.btn), main li a:not(.btn) { text-decoration-color: currentColor; }
}

/* --- Layout --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
.section--band { background: var(--band); }
.section--band2 { background: var(--band-3); }
.section--gold { background: var(--gold); }
.section--center { text-align: center; }
.section--center .btn-row { justify-content: center; }
.section--center ul { list-style: none; padding: 0; }
.section--center > .narrow > p { font-size: 17px; max-width: 800px; margin-left: auto; margin-right: auto; }
/* Adjacent plain rows share one rhythm; a row after a band keeps its top. */
.section:not(.section--band):not(.section--band2):not(.section--gold):not(.section--photo):not(.section--split):not(.hero)
  + .section:not(.section--band):not(.section--band2):not(.section--gold):not(.section--photo):not(.section--split) { padding-top: 0; }
.section--split { padding: 0; }
.section--split + .section--split { padding: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--form { align-items: start; }
.split--media-first .split__media { order: -1; }
/* A bleed split: the photo runs to the viewport edge, the copy sits in the
   container's half (live: About / Contact Us / Come to Our Next Meeting). */
.split--bleed { gap: 0; grid-template-columns: 1fr 1fr; min-height: 500px; align-items: stretch; }
.split--bleed .split__media--bleed { position: relative; min-height: 420px; }
.split--bleed .split__media--bleed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The copy cell fills its half (so a panel color bleeds to the edge) and pads
   itself so the copy lines up with the container's half: 600px inside a cell
   that is 50vw wide. */
.split--bleed .split__copy { display: flex; flex-direction: column; justify-content: center; padding: 64px max(var(--gutter), calc(100% - 600px + var(--gutter))) 64px 48px; }
.split--bleed .split__copy:first-child { padding: 64px 48px 64px max(var(--gutter), calc(100% - 600px + var(--gutter))); }
.grid--2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
.grid--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid--4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.narrow { max-width: 900px; margin-left: auto; margin-right: auto; }

/* Panels: a copy column with its own fill (gold meeting band, orange contact) */
.panel { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.panel--gold { background: var(--gold); color: var(--ink); }
.panel--gold h2, .panel--gold h3 { color: var(--ink); }
.panel--gold .accent { color: var(--ink); }
.panel--orange { background: var(--orange-deep); color: var(--white); }
.panel--orange h2, .panel--orange h3, .panel--orange a:not(.btn) { color: var(--white); }
.panel--orange .muted { color: rgba(255, 255, 255, .8); }
.panel--orange .btn { background: var(--white); color: var(--orange-deep); }
.panel--orange .btn:hover { background: var(--gold); color: var(--ink); }
.panel--orange .field label { color: var(--white); }
.panel--orange .form-error { background: rgba(255, 255, 255, .92); }
.contact-lines { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-lines li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; font-weight: 700; }
.contact-lines .ui-icon { flex: 0 0 auto; margin-top: 5px; }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
/* Live buttons were white with a 1px ink border and ink label (outline on
   white). On hover the fill inverts. */
.btn:hover { background: var(--ink); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: 3px solid var(--brown); outline-offset: 2px; }
.btn--outline { background: rgba(255, 255, 255, .08); color: var(--white); border-color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--brown); color: var(--brown); }
.btn--ghost:hover { background: var(--brown); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.btn-row--center { justify-content: center; }

/* --- Top bar / header / nav ---------------------------------------------- */
.topbar { background: var(--tan); color: var(--ink); font-family: var(--font); font-size: 14px; height: var(--topbar-h); }
.topbar .container { display: flex; justify-content: flex-end; align-items: center; gap: 12px; height: 100%; }
.topbar a { color: var(--ink); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  height: var(--header-h);
  box-shadow: 0 1px 0 rgba(52, 53, 61, .08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { width: 176px; height: 90px; }        /* live: 220x112 hanging over the bar; 176x90 fits inside it */
.nav { flex: 1 1 auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; gap: 0; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__extra { display: none; }
.nav__link, .nav__toggle {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 10px 9px;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 13px;                                 /* live: 13px uppercase, letter-spaced */
  letter-spacing: .6px;
  text-transform: uppercase;
  text-decoration: none;
  background: none; border: 0; cursor: pointer;
  border-bottom: 2px solid transparent;
}
.nav__link:hover, .nav__toggle:hover, .nav__item.is-open > .nav__toggle { border-bottom-color: var(--brown); }
.nav__link.is-active { border-bottom-color: var(--brown); font-weight: 700; }
.nav__item > .nav__link + .nav__toggle { padding-left: 0; margin-left: -8px; }
.nav__toggle svg { width: 12px; height: 12px; transition: transform .2s; }
.nav__item.is-open > .nav__toggle svg { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: 100%; left: 0;
  min-width: 260px;
  margin: 0; padding: 8px 0; list-style: none;
  background: var(--white);
  border-top: 2px solid var(--brown);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__item:last-child .nav__sub { left: auto; right: 0; }
.nav__item.is-open > .nav__sub, .nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub {
  opacity: 1; visibility: visible; transform: none;
}
.nav__sub a { display: block; padding: 9px 18px; color: var(--ink); font-size: 14px; text-decoration: none; }
.nav__sub a:hover { background: var(--band-2); color: var(--link); }
.header-phone { display: none; color: var(--ink); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.burger svg { width: 28px; height: 28px; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid; align-items: center;
  min-height: 357px;                               /* live inner-page banners: 357 */
  padding: 48px 0;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.hero--tall { min-height: 460px; }                 /* home: 460 */
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* Live: white copy straight on the photo with a faint dark wash. */
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(20, 20, 24, .38); }
.hero h1 { color: var(--white); margin-bottom: .25em; font-size: 42px; max-width: 760px; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.hero__bar { margin: 0 .25em; font-weight: 400; opacity: .8; }
.hero__org { font-weight: 700; }
.hero .hero__sub { font-size: 20px; color: var(--white); margin: 0 0 .6em; max-width: 760px; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.hero__inner { position: relative; }
.hero .btn-row { margin-top: 20px; }

/* Full-bleed photo band with a light wash and dark centered copy (home Events). */
.section--photo { position: relative; isolation: isolate; overflow: hidden; padding: 80px 0; color: var(--ink); }
.section--photo .section__media, .section--photo .section__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.section--photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .82); }

/* --- Media ---------------------------------------------------------------- */
.media { overflow: hidden; }
.media img { width: 100%; height: auto; }
.media--fit img { width: auto; max-width: 100%; }
.split__media .media + .media { margin-top: 24px; }
/* Live: a photo with an offset outline frame behind it (About the HOA, Get
   Involved). The frame is a pseudo-element, the photo keeps its ratio. */
.split__media--bleed { position: relative; }

/* --- Photo grids (gallery) and lightbox ----------------------------------- */
.photo-grid { display: grid; gap: 16px; }
.photo-grid--3 { grid-template-columns: repeat(3, 1fr); }
.photo-grid--4 { grid-template-columns: repeat(4, 1fr); }
.photo-grid > a { display: block; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--band-3); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; transition: transform .4s; }
.photo-grid > a:hover img { transform: scale(1.04); }
.photo-grid > a.is-more { display: none; }
.photo-grid.is-expanded > a.is-more { display: block; }
.home-gallery .photo-grid img { aspect-ratio: 4 / 3; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 20, 24, .94); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; background: none; border: 0; color: var(--white); cursor: pointer; padding: 12px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 32px; height: 32px; }

/* --- Document cards (Documents & Forms) ----------------------------------- */
.doc-cards { display: grid; gap: 24px; margin-top: 8px; }
.doc-cards--2 { grid-template-columns: repeat(2, minmax(0, 260px)); justify-content: center; }
.doc-cards--3 { grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; }
.doc-cards--4 { grid-template-columns: repeat(4, minmax(0, 260px)); justify-content: center; }
.doc-card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none; text-align: center; overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.doc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.doc-card img { width: 100%; height: auto; aspect-ratio: 1275 / 1650; object-fit: cover; object-position: top; border-bottom: 1px solid var(--band-3); }
.doc-card .doc-card__title { display: block; margin: 0; padding: 14px 12px 16px; font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--ink); }
.doc-card__title small { display: block; margin-top: 6px; font-weight: 400; font-size: 12px; color: var(--muted); letter-spacing: .5px; }

/* --- Icon cards (home Community Resources) -------------------------------- */
.icon-cards { margin-top: 32px; }
.icon-card { display: block; text-decoration: none; color: var(--body); padding: 16px; }
.icon-card__n { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--band-3); color: var(--white); font-size: 12px; font-weight: 700; margin-bottom: 20px; }
.icon-card .ui-icon { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--muted); stroke-width: 1.2; }
.icon-card h3 { font-size: 18px; margin-bottom: .5em; }
.icon-card p { font-size: 15px; }
.icon-card:hover h3 { color: var(--link); }
.icon-card:hover .ui-icon { color: var(--brown); }

/* Board roster: one name per line, no paragraph gaps (live) */
#MeetOurBoard p { margin-bottom: .15em; }

/* --- Cards (New Residents numbers) ---------------------------------------- */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px 24px 20px; }
.card h2 { font-size: 18px; margin-bottom: .6em; }
.card p { font-size: 15px; }
.value { min-width: 0; }
.value h2 { font-size: 20px; }

/* --- Events list ---------------------------------------------------------- */
.events { display: grid; gap: 32px; margin-top: 24px; }
.event { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
.event__img { width: 200px; height: 200px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.event__img img { width: 100%; height: 100%; object-fit: cover; }
.event h3 { font-size: 17px; text-transform: uppercase; letter-spacing: .3px; margin-bottom: .6em; }
.event__line { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 6px; font-size: 15px; }
.event__line .ui-icon { flex: 0 0 auto; margin-top: 6px; color: var(--brown); }
.event__rsvp { display: inline-block; margin-top: 8px; color: var(--link); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; text-decoration: none; }
.event__rsvp:hover { text-decoration: underline; }

/* --- Forms ---------------------------------------------------------------- */
.form-card { background: var(--white); }
.form-card--solo { max-width: 640px; margin: 0 auto; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d5d5d5;
  border-radius: var(--radius);
  font: inherit;
  color: var(--body);
  background: #f4f4f4;                             /* live: gray filled inputs */
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--brown); outline-offset: 1px; border-color: var(--brown); background: var(--white); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); }
/* Sending state: the token wait plus the notification send can take a few
   seconds; make the wait visible so nobody clicks twice. */
.btn.is-sending { opacity: .7; cursor: progress; background: var(--band-3); color: var(--ink); }
.btn.is-sending::after { content: ''; display: inline-block; width: 12px; height: 12px; margin-left: 8px; vertical-align: -1px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: soh-spin .8s linear infinite; }
@keyframes soh-spin { to { transform: rotate(360deg); } }
.form-error { display: none; padding: 16px 20px; border-radius: var(--radius); margin-top: 16px; background: #fbe9e5; color: #8a2e1c; }
.form-error.show { display: block; }
.form-error a { color: inherit; }

/* --- Blog ----------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.post-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.post-card h2 { font-size: 18px; line-height: 1.35; margin: 0; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--link); }
.post-card__meta { font-size: 13px; color: var(--muted); margin: 0; }
.post-card__meta a { color: var(--muted); }
.post-card__excerpt { font-size: 14px; color: var(--muted); margin: 0; }
.post-card__more { font-weight: 700; color: var(--link); text-decoration: none; font-size: 14px; }
.blog-article h1 { font-size: 36px; margin-bottom: .6em; }
.blog-article h2 { font-size: 26px; margin-top: 1.4em; }
.blog-article .media { margin: 8px 0 24px; border-radius: var(--radius); }
.post-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 24px 0; }
.post-split h2 { margin-top: 0; }
.post-split .media { margin: 0; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--footer); color: var(--white); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
.site-footer h3 { font-size: 18px; color: var(--white); margin-bottom: .8em; }
.footer-about { font-size: 15px; max-width: 340px; color: rgba(255, 255, 255, .9); }
.footer-about a { color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--white); text-decoration: none; font-weight: 700; font-size: 17px; }
.footer-links a:hover, .footer-links a.is-active { color: var(--gold); }
.footer-bottom { background: var(--gold); color: var(--ink); margin-top: 56px; padding: 14px var(--gutter); text-align: center; font-size: 13px; font-weight: 700; }

/* --- Election notice popup ------------------------------------------------
   Gradient panel, never a photo: a delayed popup carrying a large background
   image becomes the LCP candidate when it opens. Ink on gold measures 7.58:1.
   -------------------------------------------------------------------------- */
.notice-overlay {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(20, 20, 24, .62);
  overflow-y: auto;
}
.notice-overlay[hidden] { display: none !important; }
.notice {
  position: relative;
  width: 100%; max-width: 620px;
  margin: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  animation: notice-in .28s ease-out;
}
@keyframes notice-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .notice { animation: none; } }
.notice__head {
  background: linear-gradient(135deg, var(--gold), #f2dcae);
  color: var(--ink);
  padding: 22px 28px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.notice__eyebrow {
  margin: 0 0 4px; font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; color: #5c4a2e;
}
.notice .notice__title { margin: 0; font-size: 26px; line-height: 1.25; color: var(--ink); }
.notice__body { padding: 22px 28px 26px; }
.notice__facts { list-style: none; padding: 0; margin: 0 0 18px; }
.notice__facts li {
  position: relative; padding-left: 20px; margin-bottom: 7px; font-size: 16px; color: var(--body);
}
.notice__facts li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--brown);
}
.notice__lead { font-size: 15px; margin-bottom: 20px; }
.notice__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.notice__actions .btn { font-size: 14px; padding: 11px 20px; }
.notice__foot { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.notice__close {
  position: absolute; top: 8px; right: 10px; z-index: 1;
  width: 38px; height: 38px; padding: 0;
  background: none; border: 0; border-radius: 50%;
  font-size: 30px; line-height: 1; color: var(--ink);
  cursor: pointer; opacity: .65;
}
.notice__close:hover { opacity: 1; background: rgba(0, 0, 0, .08); }
.notice__close:focus-visible { outline: 3px solid var(--brown); outline-offset: 2px; opacity: 1; }
@media (max-width: 560px) {
  .notice-overlay { padding: 12px; align-items: flex-start; }
  .notice__head { padding: 20px 20px 16px; }
  .notice .notice__title { font-size: 21px; }
  .notice__body { padding: 18px 20px 22px; }
  .notice__actions .btn { width: 100%; }
}

/* --- Utilities ------------------------------------------------------------ */
.ui-icon { width: 20px; height: 20px; vertical-align: -4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 12px; z-index: 200; }
.skip-link:focus { left: 8px; }

/* --- Motion --------------------------------------------------------------- */
/* Hidden ONLY via a class JS adds, so no-JS and reduced-motion see everything. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav__link, .nav__toggle { font-size: 12px; padding: 10px 6px; letter-spacing: .3px; }
  .logo img { width: 150px; height: 76px; }
}
@media (max-width: 1000px) {
  :root { --header-h: 84px; }
  .topbar { display: none; }
  .nav { position: fixed; top: var(--header-h); right: 0; bottom: 0; width: min(360px, 100%); background: var(--ink); transform: translateX(100%); transition: transform .25s; overflow-y: auto; padding: 8px 0 40px; z-index: 60; }
  .nav.is-open { transform: none; box-shadow: -8px 0 24px rgba(0, 0, 0, .3); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__item { flex-wrap: wrap; }
  .nav__link, .nav__toggle { color: var(--white); font-size: 15px; }
  .nav__link { flex: 1 1 auto; padding: 14px 24px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav__link.is-active { border-bottom-color: var(--gold); }
  .nav__item > .nav__link + .nav__toggle { margin-left: 0; padding: 14px 24px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav__sub { flex: 1 1 100%; position: static; opacity: 1; visibility: visible; transform: none; background: rgba(0, 0, 0, .25); box-shadow: none; border: 0; display: none; padding: 4px 0; }
  .nav__item.is-open > .nav__sub { display: block; }
  .nav__item:hover > .nav__sub:not(.is-open) { display: none; }
  .nav__item.is-open:hover > .nav__sub { display: block; }
  .nav__sub a { color: var(--white); padding: 10px 40px; }
  .nav__sub a:hover { background: rgba(255, 255, 255, .08); color: var(--gold); }
  .nav__extra { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 8px; }
  .nav__extra a { color: var(--gold); text-decoration: none; font-size: 14px; padding: 6px 0; }
  .site-header .container { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; }
  .header-phone { display: inline-flex; }
  .header-phone svg { width: 22px; height: 22px; }
  .logo { justify-content: center; }
  .logo img { width: 140px; height: 71px; }
  .burger { display: inline-flex; justify-self: end; }
  .split, .split--form, .grid--2, .grid--3, .grid--4, .footer-grid, .post-grid, .post-split { grid-template-columns: 1fr; }
  .split--bleed { grid-template-columns: 1fr; min-height: 0; }
  .split--bleed .split__media--bleed { min-height: 280px; order: -1; }
  .split--bleed .split__copy, .split--bleed .split__copy:first-child { padding: 40px var(--gutter); }
  .split--media-first .split__media, .split > .split__media { order: -1; }
  .photo-grid--3, .photo-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .doc-cards--2, .doc-cards--3, .doc-cards--4 { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero { min-height: 300px; }
  .hero--tall { min-height: 400px; }
  .hero h1 { font-size: 32px; }
  h1 { font-size: 36px; } h2 { font-size: 28px; } h3 { font-size: 20px; }
  .hero .hero__sub { font-size: 18px; }
  .event { grid-template-columns: 120px 1fr; gap: 20px; }
  .event__img { width: 120px; height: 120px; }
}
@media (max-width: 480px) {
  .photo-grid--3, .photo-grid--4, .doc-cards--2, .doc-cards--3, .doc-cards--4 { grid-template-columns: 1fr; }
  h1 { font-size: 30px; } h2 { font-size: 25px; }
  .hero h1 { font-size: 27px; }
  .btn { width: 100%; }
  .section--photo { padding: 56px 0; }
  .form-card--solo { padding: 24px; }
}
