/* ==========================================================================
   Sunny 5 Star Retreat — 167Retreat.com
   Master Stylesheet / Design System
   Structured for easy conversion to a WordPress theme (style.css).
   --------------------------------------------------------------------------
   0. Design tokens (:root)      5. Buttons & links
   1. Reset & base               6. Components (cards, stats, testimonials…)
   2. Typography                 7. Header / navigation
   3. Layout helpers             8. Footer
   4. Sections & hero            9. Page-specific & utilities
   ========================================================================== */

/* 0. DESIGN TOKENS ========================================================= */
:root {
  /* Brand palette — 167Retreat / Lavender Hill style guide */
  --lake:        #2F3A4A;   /* primary dark blue — headings, nav, footer, buttons */
  --lake-800:    #3a4757;
  --lake-600:    #4c5867;
  --lake-400:    #8C9098;   /* soft gray */
  --lavender:    #7B6FA6;   /* primary accent — links, hover, icons */
  --lavender-300:#CBB8E8;   /* light lavender */
  --lavender-050:#f2eef8;   /* lavender tint background */
  --accent:      #7B6FA6;   /* accent = lavender (eyebrows, highlights, stars) */
  --accent-dark: #645083;   /* dark lavender — hovers */
  --sage:        #A7B18C;   /* sage green — nature accents, badges */
  --sage-050:    #eef1e8;
  --sage-600:    #7a8a5f;
  --cream:       #FAF7F2;   /* off-white — main background */
  --cream-200:   #F1EADD;
  --sand:        #E7DFD2;   /* warm beige — alternate sections */
  --ink:         #3B4351;   /* strong text */
  --ink-soft:    #555555;   /* paragraph text */
  --muted:       #888888;   /* muted text */
  --white:       #ffffff;
  --card-border: #EFEAE3;
  --line:        rgba(47,58,74,.12);

  /* Typography */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-script:  "Great Vibes", "Playfair Display", cursive;
  --font-body:    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --container: 1200px;
  --container-wide: 1360px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 8rem);
  --radius: 12px;          /* cards */
  --radius-lg: 18px;       /* images / media */
  --radius-btn: 10px;      /* buttons */
  --radius-pill: 999px;    /* pills, tags, chips */

  /* Elevation — brand shadow */
  --shadow-sm: 0 4px 16px rgba(47,58,74,.07);
  --shadow-md: 0 10px 35px rgba(47,58,74,.12);
  --shadow-lg: 0 26px 60px rgba(47,58,74,.18);

  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 106px;
}

/* 1. RESET & BASE ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul[class] { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lavender); color: #fff; }

/* 2. TYPOGRAPHY ============================================================ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--lake); letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.2rem; }
p { color: var(--ink-soft); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); color: var(--ink-soft); line-height: 1.6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; font-weight: 600;
  color: var(--accent-dark);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent); }
.eyebrow.center::after { content: ""; width: 34px; height: 1px; background: var(--accent); }
.eyebrow.center { justify-content: center; }

.script { font-family: var(--font-script); color: var(--lavender); font-weight: 400; }
.text-gold { color: var(--accent-dark); }
.serif { font-family: var(--font-display); }

/* 3. LAYOUT HELPERS ======================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.wide { max-width: var(--container-wide); }
.container.narrow { max-width: 760px; }
.section { padding-block: var(--section-y); }
.section.tight { padding-block: clamp(3rem, 6vw, 5rem); }
.bg-cream { background: var(--cream); }
.bg-sand { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-200) 100%); }
.bg-lake { background: var(--lake); color: #eaf1f2; }
.bg-lake h1, .bg-lake h2, .bg-lake h3 { color: #fff; }
.bg-lavender { background: var(--lavender-050); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.75rem}.mt-4{margin-top:2.5rem}
.maxw-60 { max-width: 60ch; }

.section-head { max-width: 660px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: .8rem; }
.section-head p { margin-top: 1rem; }

/* 4. HERO & SECTION DRESSING =============================================== */
.hero {
  position: relative; min-height: 92vh; display: grid; align-items: center;
  color: #fff; overflow: hidden; padding-top: var(--header-h);
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: linear-gradient(135deg, var(--lake), var(--lavender)); }
/* subtle blur + slight scale (scale keeps blurred edges covered) for legible text */
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; filter: blur(3px) brightness(.9); transform: scale(1.08); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(47,58,74,.62) 0%, rgba(47,58,74,.48) 40%, rgba(47,58,74,.82) 100%);
}
.hero__inner { max-width: 780px; padding-block: 4rem; }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero .lead { color: rgba(255,255,255,.9); }
.hero .eyebrow { color: var(--accent); }
.hero .eyebrow::before { background: var(--accent); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-size: .72rem; letter-spacing: .25em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.hero__scroll span { width: 1px; height: 46px; background: rgba(255,255,255,.6); animation: scrollpulse 2.2s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100%{transform:scaleY(.4);opacity:.4} 50%{transform:scaleY(1);opacity:1} }

/* compact page hero (interior pages) */
.pagehero {
  position: relative; padding-top: calc(var(--header-h) + 4rem); padding-bottom: 4rem;
  color: #fff; text-align: center; overflow: hidden;
}
.pagehero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.pagehero__media img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.92); transform: scale(1.06); }
.pagehero__media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(47,58,74,.55), rgba(47,58,74,.8)); }
.pagehero h1 { color: #fff; margin-top: .6rem; }
.pagehero p { color: rgba(255,255,255,.88); max-width: 620px; margin: 1rem auto 0; }
.pagehero .eyebrow { color: var(--accent); }
.pagehero .eyebrow.center::before, .pagehero .eyebrow.center::after { background: var(--accent); }
.breadcrumb { margin-top: 1.4rem; font-size: .82rem; letter-spacing: .05em; color: rgba(255,255,255,.72); }
.breadcrumb a:hover { color: #fff; }

/* decorative divider */
.divider-leaf { display:flex; align-items:center; justify-content:center; gap:1rem; color: var(--accent); margin: 0 auto; }
.divider-leaf::before, .divider-leaf::after { content:""; height:1px; width:60px; background: var(--line); }

/* 5. BUTTONS & LINKS ======================================================= */
.btn {
  --btn-bg: var(--lake); --btn-fg: #fff;   /* primary: dark blue, hover lavender */
  display: inline-flex; align-items: center; gap: .6rem; justify-content: center;
  padding: .95rem 1.9rem; border-radius: var(--radius-btn);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  box-shadow: 0 10px 26px rgba(47,58,74,.20); will-change: transform;
}
.btn:hover { transform: translateY(-3px); background: var(--lavender); box-shadow: 0 16px 34px rgba(123,111,166,.34); }
.btn--outline { --btn-bg: transparent; --btn-fg: #fff; border: 1.5px solid rgba(255,255,255,.75); box-shadow: none; }
.btn--outline:hover { background: rgba(255,255,255,.16); box-shadow: none; }
.btn--dark { --btn-bg: var(--lake); box-shadow: 0 10px 26px rgba(47,58,74,.22); }
.btn--dark:hover { background: var(--lavender); box-shadow: 0 16px 34px rgba(123,111,166,.34); }
.btn--lavender { --btn-bg: var(--lavender); box-shadow: 0 10px 26px rgba(123,111,166,.3); }
.btn--lavender:hover { background: var(--accent-dark); box-shadow: 0 16px 34px rgba(100,80,131,.36); }
/* secondary: transparent, lavender border, fills lavender on hover */
.btn--ghost-dark { --btn-bg: transparent; --btn-fg: var(--lavender); border: 1.5px solid var(--lavender); box-shadow:none; }
.btn--ghost-dark:hover { background: var(--lavender); color: #fff; }
[data-filter].active { background: var(--lavender); color: #fff; border-color: var(--lavender); }
.btn--sm { padding: .7rem 1.3rem; font-size: .85rem; }
.btn--block { display: flex; width: 100%; }

.link-underline { color: var(--lake); font-weight: 600; display: inline-flex; align-items: center; gap: .45rem; }
.link-underline::after { content: "→"; transition: transform .3s var(--ease); }
.link-underline:hover::after { transform: translateX(5px); }

/* 6. COMPONENTS ============================================================ */
/* Feature / amenity card */
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(20,50,63,.05);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(135deg, var(--lavender-050), var(--sand)); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__tag { position: absolute; top: 1rem; left: 1rem; background: rgba(255,255,255,.92); color: var(--lake); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .4rem .8rem; border-radius: var(--radius-pill); }
.card__body { padding: 1.6rem 1.6rem 1.8rem; }
.card__body h3 { font-size: 1.35rem; }
.card__body p { margin-top: .5rem; font-size: .96rem; }

/* Icon feature (no image) */
.feature { text-align: left; padding: 2rem; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); border: 1px solid rgba(20,50,63,.05); transition: transform .4s var(--ease), box-shadow .4s var(--ease); height: 100%; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--lavender-050), var(--sand)); color: var(--lavender); margin-bottom: 1.1rem; font-size: 1.5rem; }

/* FontAwesome icon sizing inside tiles / lists / pills */
.feature__icon i { font-size: 1.45rem; line-height: 1; }
.pillar__ic i { font-size: 1.8rem; line-height: 1; }
.info-list .ic i { font-size: 1.05rem; line-height: 1; }
.pill i { color: var(--lavender); font-size: .82rem; margin-right: .15rem; width: 1em; text-align: center; }
.divider-leaf i { font-size: 1.05rem; }
.footer-social a i { font-size: .95rem; }
.stat__num i { font-size: .8em; }
.i-nat { color: var(--sage-600) !important; }
.feature h3 { font-size: 1.25rem; }
.feature p { margin-top: .5rem; font-size: .95rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1.5rem 1rem; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--accent-dark); line-height: 1; }
.bg-lake .stat__num { color: var(--accent); }
.stat__label { margin-top: .5rem; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.bg-lake .stat__label { color: rgba(255,255,255,.75); }

/* Testimonial / review */
.quote { background: var(--white); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-sm); border: 1px solid rgba(20,50,63,.05); position: relative; height: 100%; display: flex; flex-direction: column; }
.quote__stars { color: var(--accent); letter-spacing: .15em; margin-bottom: .9rem; }
.quote__text { font-family: var(--font-display); font-size: 1.14rem; line-height: 1.5; color: var(--lake); font-style: italic; }
.quote__foot { margin-top: auto; padding-top: 1.3rem; display: flex; align-items: center; gap: .85rem; }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--lavender), var(--lake-600)); color:#fff; display:grid; place-items:center; font-weight:700; font-family: var(--font-display); }
.quote__name { font-weight: 700; color: var(--ink); font-size: .95rem; }
.quote__src { font-size: .8rem; color: var(--ink-soft); }

/* Media + text panel */
.panel-media { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; position: relative; background: linear-gradient(135deg, var(--lake-600), var(--lavender)); }
.pagehero__media { background: linear-gradient(135deg, var(--lake), var(--lavender)); }
.cta-band__media, .gallery-grid figure, .wall .memo img { background: linear-gradient(135deg, var(--lavender-300), var(--lake-400)); }
.panel-media img { width:100%; height:100%; object-fit: cover; border-radius: inherit; }
.panel-media.wide { aspect-ratio: 4/3; }
.media-badge { position: absolute; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 1rem 1.3rem; }
.media-badge.br { bottom: -1.4rem; right: -1.4rem; }
.media-badge .n { font-family: var(--font-display); font-size: 1.8rem; color: var(--accent-dark); line-height: 1; }
.media-badge .l { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }

/* Checklist */
.ticks { display: grid; gap: .8rem; margin-top: 1.5rem; }
.ticks li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink); }
.ticks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--lavender-050); color: var(--accent-dark); display: grid; place-items: center; font-size: .8rem; font-weight: 800; margin-top: .15rem; }

/* Gallery masonry */
.gallery-grid { columns: 3; column-gap: 1rem; }
.gallery-grid figure { margin: 0 0 1rem; break-inside: avoid; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.gallery-grid img { width: 100%; transition: transform .8s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.07); }
.gallery-grid figcaption { position: absolute; inset: auto 0 0 0; padding: 1.4rem 1rem .9rem; color:#fff; font-size:.85rem; letter-spacing:.05em; background: linear-gradient(transparent, rgba(47,58,74,.75)); opacity: 0; transition: opacity .35s var(--ease); }
.gallery-grid figure:hover figcaption { opacity: 1; }

/* Accordion (FAQ) */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--lake); }
.acc__q .plus { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: .3s var(--ease); font-size: 1.2rem; color: var(--accent-dark); }
.acc__item.open .plus { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.acc__a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.acc__a p { padding-bottom: 1.5rem; padding-right: 3rem; }

/* Timeline */
.timeline { position: relative; margin-top: 2rem; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--lavender)); }
.tl-item { position: relative; padding-left: 3.2rem; padding-bottom: 2.4rem; }
.tl-item::before { content: ""; position: absolute; left: 8px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--accent); box-shadow: 0 0 0 4px var(--lavender-050); }
.tl-item .yr { font-family: var(--font-display); color: var(--accent-dark); font-size: 1.2rem; font-weight: 700; }
.tl-item h4 { margin-top: .1rem; color: var(--lake); font-size: 1.15rem; }
.tl-item p { margin-top: .3rem; font-size: .95rem; }
.bg-lake .tl-item::before { background: var(--lake); box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.bg-lake .tl-item h4 { color: #fff; }
.bg-lake .tl-item p { color: rgba(255,255,255,.8); }

/* CTA band */
.cta-band { position: relative; isolation: isolate; text-align: center; color: #fff; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(3rem, 7vw, 5.5rem) var(--gutter); }
.cta-band__media { position: absolute; inset: 0; z-index: 0; background: linear-gradient(120deg, var(--lake), var(--lavender)); }
.cta-band__media img { width:100%; height:100%; object-fit: cover; }
.cta-band__media::after { content:""; position:absolute; inset:0; background: linear-gradient(120deg, rgba(47,58,74,.86), rgba(123,111,166,.72)); }
.cta-band > *:not(.cta-band__media) { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 1rem auto 0; }
.cta-band .hero__actions { justify-content: center; }

/* Embed frame */
.embed-frame { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(1rem,2vw,1.6rem); border: 1px solid rgba(20,50,63,.06); }
.embed-frame iframe { width: 100%; border: 0; border-radius: var(--radius); display: block; }
.embed-placeholder { border: 2px dashed var(--line); border-radius: var(--radius); aspect-ratio: 16/10; display: grid; place-items: center; text-align: center; padding: 2rem; background: var(--cream); }
.embed-placeholder .icon { font-size: 2.5rem; margin-bottom: .5rem; }

/* Contact form */
.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--lake); margin-bottom: .5rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: .95rem 1.1rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); font: inherit; color: var(--ink); transition: border .25s, box-shadow .25s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--lavender); box-shadow: 0 0 0 4px var(--lavender-050); }
.form-field textarea { resize: vertical; min-height: 130px; }

/* Info list (contact / policies) */
.info-list { display: grid; gap: 1.3rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--lavender-050); color: var(--lavender); display: grid; place-items: center; font-size: 1.2rem; }
.info-list h4 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.info-list p { color: var(--ink); font-weight: 500; }

/* Pill row */
.pillrow { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.pill { padding: .5rem 1rem; border-radius: var(--radius-pill); background: var(--white); border: 1px solid var(--line); font-size: .85rem; color: var(--lake); font-weight: 500; display: inline-flex; gap: .4rem; align-items: center; }
.bg-lavender .pill, .bg-sand .pill { background: rgba(255,255,255,.7); }

/* 7. HEADER / NAV ========================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(250,247,242,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(47,58,74,.06);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header.scrolled { background: rgba(250,247,242,.97); box-shadow: var(--shadow-sm); height: 84px; }
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--lake); z-index: 2; }
.brand__logo { height: 90px; width: auto; display: block; transition: height .4s var(--ease); }
.scrolled .brand__logo { height: 70px; }
.brand__mark { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--lavender), var(--accent-dark)); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; box-shadow: 0 4px 14px rgba(123,111,166,.4); flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.brand__name small { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; opacity: .85; }

.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links > li > a { color: var(--lake); padding: .6rem .85rem; font-size: .92rem; font-weight: 500; border-radius: 8px; transition: color .25s, background .25s; display: inline-flex; align-items: center; gap: .3rem; }
.nav-links > li > a:hover { color: var(--lavender); }
.nav-links > li > a.active { color: var(--lavender); }

/* dropdown */
.has-sub { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px;
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow-md);
  padding: .6rem; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .28s var(--ease); border: 1px solid rgba(20,50,63,.06);
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: .65rem .9rem; border-radius: 8px; color: var(--lake); font-size: .9rem; transition: background .2s, color .2s; }
.submenu a:hover { background: var(--lavender-050); color: var(--accent-dark); }

.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-cta .btn { box-shadow: 0 8px 20px rgba(198,161,91,.3); }

.mobile-cta { display: none; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 10px; color: var(--lake); z-index: 2; }
.nav-toggle span { display:block; width: 24px; height: 2px; background: currentColor; margin: 5px auto; transition: .3s var(--ease); }
body.nav-open .nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* 8. FOOTER ================================================================ */
.site-footer { background: var(--lake); color: rgba(255,255,255,.88); padding-top: clamp(3.5rem, 7vw, 5.5rem); position: relative; }
.footer-cta { background: linear-gradient(135deg, var(--lake-800), var(--lavender)); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 1.3rem; }
.footer-links li { margin-bottom: .7rem; }
.footer-links a { color: rgba(255,255,255,.85); font-size: .93rem; transition: color .25s, padding .25s; }
.footer-links a:hover { color: var(--lavender-300); padding-left: 5px; }
.footer-brand p { font-size: .93rem; margin-top: 1.2rem; max-width: 34ch; color: rgba(255,255,255,.8); }
.footer-social { display: flex; gap: .7rem; margin-top: 1.4rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; color: #fff; transition: .3s var(--ease); }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); padding: 1.6rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: rgba(255,255,255,.78); }
.footer-bottom a { color: rgba(255,255,255,.78); }
.footer-bottom a:hover { color: var(--lavender-300); }
.newsletter { display: flex; gap: .5rem; margin-top: 1rem; }
.newsletter input { flex: 1; padding: .8rem 1rem; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; }
.newsletter input::placeholder { color: rgba(255,255,255,.5); }
.newsletter button { padding: .8rem 1.2rem; border-radius: var(--radius-pill); background: var(--accent); color: #fff; font-weight: 600; }

/* Footer logo — the color emblem on a light chip so it reads on dark blue */
.footer-logo { display: inline-block; background: #fff; border-radius: 16px; padding: .85rem 1.1rem; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.footer-logo img { height: 84px; width: auto; display: block; }

/* 9. PAGE-SPECIFIC & UTILITIES ============================================ */
/* Two-column alternating story rows */
.story-row + .story-row { margin-top: clamp(3rem, 6vw, 5rem); }
.story-row:nth-child(even) .story-row__media { order: 2; }

/* Foundation pillars */
.pillar { text-align: center; padding: 2.2rem 1.5rem; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); border: 1px solid rgba(20,50,63,.05); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pillar__ic { width: 70px; height: 70px; margin: 0 auto 1.2rem; border-radius: 20px; display:grid; place-items:center; font-size: 1.8rem; background: linear-gradient(135deg, var(--lavender-050), var(--sand)); color: var(--lavender); }

/* Owner portal login card */
.login-card { max-width: 440px; margin: 0 auto; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(2rem, 4vw, 3rem); }
.login-card .brand__mark { margin: 0 auto 1.2rem; width: 60px; height: 60px; font-size: 1.7rem; }

/* Reveal animation */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"]{ transition-delay: .1s } [data-reveal][data-delay="2"]{ transition-delay: .2s }
[data-reveal][data-delay="3"]{ transition-delay: .3s } [data-reveal][data-delay="4"]{ transition-delay: .4s }

/* Map */
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 380px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Legacy wall */
.wall { columns: 3; column-gap: 1.2rem; }
.wall .memo { break-inside: avoid; margin-bottom: 1.2rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid rgba(20,50,63,.05); }
.wall .memo img { width: 100%; }
.wall .memo .memo__body { padding: 1.2rem 1.3rem 1.5rem; }
.wall .memo blockquote { font-family: var(--font-display); font-style: italic; color: var(--lake); font-size: 1.05rem; line-height: 1.45; }
.wall .memo cite { display: block; margin-top: .7rem; font-style: normal; font-size: .82rem; color: var(--ink-soft); font-weight: 600; }

/* Badge strip / trust */
.trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(1.5rem,4vw,3.5rem); opacity: .85; }
.trust .t { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.05rem; color: var(--lake); }
.trust .t b { color: var(--accent-dark); }

/* Stat bar — elevated card that overlaps the hero */
.statbar-section { position: relative; z-index: 5; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.statbar {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--white); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem) clamp(.5rem, 2vw, 1.5rem);
}
/* overlap the hero only when used in the homepage stat-bar section */
.statbar-section .statbar { margin-top: clamp(-5.5rem, -6vw, -3.5rem); }
.statbar__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: .3rem clamp(.4rem, 1.5vw, 1.2rem); position: relative; }
.statbar__item + .statbar__item::before { content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: var(--line); }
.statbar__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--lavender-050), var(--sand)); color: var(--lavender); font-size: 1.15rem; margin-bottom: .3rem; }
.statbar__val { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; color: var(--lake); line-height: 1; }
.statbar__stars { font-size: 1.1rem; color: var(--accent); letter-spacing: .12em; }
.statbar__lbl { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Lightbox */
#lightbox.open { display: grid !important; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

/* Skip link */
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color:#fff; padding:.7rem 1.2rem; z-index: 200; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* 10. RESPONSIVE ========================================================== */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid, .wall { columns: 2; }
  .split { grid-template-columns: 1fr; }
  .story-row:nth-child(even) .story-row__media { order: 0; }
  .panel-media { aspect-ratio: 16/10; }
  .statbar { grid-template-columns: repeat(3, 1fr); gap: 1.6rem .4rem; }
  .statbar-section .statbar { margin-top: clamp(-4rem, -6vw, -2.5rem); }
  .statbar__item::before { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 74px; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  /* mobile menu */
  .nav-links.mobile {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--cream);
    padding: 1.5rem var(--gutter); overflow-y: auto; z-index: 90;
    transform: translateX(100%); transition: transform .4s var(--ease); visibility: hidden;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-links.mobile { transform: none; visibility: visible; }
  .nav-links.mobile > li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links.mobile > li > a { color: var(--lake) !important; width: 100%; padding: 1rem .2rem; font-size: 1.05rem; }
  .nav-links.mobile .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .8rem .8rem; background: transparent; }
  .nav-links.mobile .submenu a { padding: .5rem; }
  .nav-links.mobile .mobile-cta { display: block; margin-top: 1.5rem; border-bottom: 0; }
  .nav-links.mobile .mobile-cta .btn { display: flex; }
  .grid-2, .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
  .gallery-grid, .wall { columns: 1; }
  .hero { min-height: 88vh; }
  .media-badge.br { right: 1rem; bottom: 1rem; }
  .brand__logo, .scrolled .brand__logo { height: 54px; }
  .footer-logo img { height: 66px; }
  .statbar { grid-template-columns: repeat(2, 1fr); gap: 1.5rem .4rem; }
  .statbar-section .statbar { margin-top: -2.5rem; }
  .statbar__item:last-child { grid-column: 1 / -1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
