/*  Life · Land · Legacy — shared stylesheet
    ------------------------------------------------------------------
    Everything that appears on every page lives here: tokens, base
    typography, the nav + mobile menu, the sticky section sub-nav, the
    contact CTA, and the footer. Page-specific section styles stay in
    that page's own <style> block.

    There is no build step (netlify.toml pins publish = "."), so this
    file is loaded directly by every page. Edit the nav here once and
    all thirteen pages follow.
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }

:root {
  --cream:       #faf7f2;
  --cream-2:     #f0e9d8;
  --cream-3:     #e5dbc8;
  --green-deep:  #1a2e20;
  --green-mid:   #2d5235;
  --green-sage:  #5a7e5d;
  --green-light: #8aad8d;
  --gold:        #a07828;
  --gold-warm:   #c4982e;
  --gold-light:  #e0b84a;
  --text-dark:   #1c2b1e;
  --text-body:   #3d4e3f;
  --text-muted:  #6b7d6d;
  --white:       #ffffff;

  /* Fixed nav height — the sub-nav sticks to it and anchors offset by it. */
  --nav-h:       68px;
  --subnav-h:    50px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
  color: var(--green-deep);
}
a { color: inherit; text-decoration: none; }
p { line-height: 1.75; color: var(--text-body); }

/* ─── Nav ──────────────────────────────────────────────────────────
   Five flat tabs: Life · Land · Legacy · Listings · Guides.
   No dropdowns anywhere — each tab goes straight to its page, and
   everything under that heading is on that page behind the sub-nav.
*/
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 247, 242, 0.97);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  backdrop-filter: blur(8px);
}
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--green-deep);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}
.nav-links li { position: relative; }
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--green-deep); }

/* The three brand pillars read slightly heavier than the two utility
   tabs, so Life / Land / Legacy stay the spine of the header. */
.nav-links a.pillar { font-weight: 600; color: var(--text-body); }
.nav-links a.pillar:hover,
.nav-links a.pillar.active { color: var(--green-deep); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--gold);
}

.nav-right { display: flex; align-items: center; gap: 1.75rem; }
.nav-phone {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-cta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { color: var(--gold-warm); }

/* Five tabs need more room than four did — hand off to the burger a
   little earlier so the header never crowds the brand mark. */
@media (max-width: 1080px) { .nav-links { display: none; } }
@media (max-width: 640px)  { .nav-phone { display: none; } nav { padding: 0 1.5rem; } }

/* ─── Burger + mobile menu ─────────────────────────────────────────── */
.nav-burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  /* 44x44 minimum tap target (icon stays 22px wide via the spans) */
  min-width: 44px; min-height: 44px;
  padding: 11px; box-sizing: border-box;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  color: var(--green-deep);
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1080px) { .nav-burger { display: flex; } }

.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  z-index: 190;
  background: var(--cream);
  padding: 2rem 1.75rem 3rem;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mm-home {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--green-deep);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--cream-3);
}
.mm-group { margin-bottom: 1.4rem; }
.mm-group a { display: block; padding: 0.32rem 0; }
.mm-group a.mm-primary {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--green-deep);
  margin-bottom: 0.15rem;
}
.mm-group a:not(.mm-primary) { font-size: 0.92rem; color: var(--text-muted); }
.mm-foot {
  margin-top: 2.25rem; padding-top: 1.75rem;
  border-top: 1px solid var(--cream-3);
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.mm-cta {
  display: inline-block;
  background: var(--gold); color: white;
  padding: 0.8rem 1.8rem; border-radius: 4px;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.mm-phone { font-size: 0.95rem; color: var(--text-muted); }

/* ─── Section sub-nav ──────────────────────────────────────────────
   The whole navigation model for a pillar page. It sticks under the
   header, and scroll-spy (js/site.js) marks the section you're in, so
   a long page still tells you where you are and what else is on it.
*/
.subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 150;
  background: rgba(240, 233, 216, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-3);
}
.subnav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 2rem;
  height: var(--subnav-h);
  display: flex; align-items: center;
  gap: 1.6rem;
}
.subnav-label {
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
}
.subnav-links {
  display: flex; align-items: center; gap: 1.6rem;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.subnav-links::-webkit-scrollbar { display: none; }
.subnav a {
  display: block;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 0.35rem 0;
  border-bottom: 1.5px solid transparent;
  white-space: nowrap;
}
.subnav a:hover { color: var(--green-deep); }
.subnav a.active { color: var(--green-deep); border-bottom-color: var(--gold); }

/* "On this page" toggle — desktop hides it; mobile turns the horizontal
   strip into a tappable dropdown so all sections are discoverable. */
.subnav-toggle {
  display: none;
  width: 100%; height: 100%;
  align-items: center; justify-content: space-between;
  background: none; border: 0; cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
  padding: 0;
}
.subnav-toggle-chev { color: var(--gold); font-size: 0.9rem; transition: transform 0.25s; }
.subnav.open .subnav-toggle-chev { transform: rotate(180deg); }

@media (max-width: 760px) {
  .subnav-inner { padding: 0 1.25rem; gap: 0; }
  .subnav-label { display: none; }
  .subnav-toggle { display: flex; }
  .subnav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-3);
    box-shadow: 0 14px 26px rgba(0,0,0,0.14);
    max-height: 70vh; overflow-y: auto;
    padding: 0.25rem 1.25rem 0.75rem;
    display: none;
  }
  .subnav.open .subnav-links { display: flex; }
  .subnav-links li { width: 100%; }
  .subnav a {
    padding: 0.8rem 0; font-size: 0.95rem; white-space: normal;
    border-bottom: 1px solid var(--cream-3);
  }
  .subnav-links li:last-child a { border-bottom: 0; }
  .subnav a.active { color: var(--gold); font-weight: 600; border-bottom-color: var(--cream-3); }
}

/* ─── Floating mobile actions: Talk Story + back to top ─────────────── */
.floaters {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 180;
  display: none;                 /* shown on mobile only */
  justify-content: space-between; align-items: flex-end; gap: 0.75rem;
  pointer-events: none;          /* let taps through the empty gap */
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.floaters.is-visible { opacity: 1; transform: none; }
.floaters > * { pointer-events: auto; }
.float-top {
  background: rgba(23,34,27,0.86); color: #fff;
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 0.7rem 1.05rem; font-family: inherit;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}
.float-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold); color: #fff; border-radius: 999px;
  padding: 0.85rem 1.4rem; white-space: nowrap;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0,0,0,0.26);
}
.float-cta svg { width: 15px; height: 15px; fill: currentColor; }
@media (max-width: 760px) { .floaters { display: flex; } }
@media (prefers-reduced-motion: reduce) {
  .floaters { transition: opacity 0.25s ease; transform: none; }
}

/* Anchor targets must clear both fixed bars, or a jump link lands with
   the heading hidden behind the header. */
[id] { scroll-margin-top: calc(var(--nav-h) + var(--subnav-h) + 1rem); }

/* ─── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 2rem 5rem;
  overflow: hidden;
  background-color: var(--green-deep);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 40%;
  opacity: 0.45;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(14,28,16,0.55) 0%, rgba(8,20,10,0.7) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-warm);
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 500;
  color: white;
  margin-bottom: 1.2rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Shared layout ────────────────────────────────────────────────── */
.wrap { max-width: 1100px; margin: 0 auto; }
section { padding: 6rem 2.5rem; }
.eyebrow {
  display: block;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.75;
  max-width: 700px;
  margin-bottom: 3rem;
}
.btn-primary {
  display: inline-block;
  background: var(--gold); color: white;
  padding: 0.85rem 2rem; border-radius: 4px;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--gold-warm); }
.btn-ghost {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.55);
  color: rgba(255,255,255,0.9);
  padding: 0.85rem 2rem; border-radius: 4px;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: white; color: white; }

/* Divider between the major sections of a merged pillar page, so a long
   page still reads as distinct chapters rather than one scroll. */
.section-rule {
  max-width: 1100px;
  margin: 0 auto;
  border: 0;
  border-top: 1px solid var(--cream-3);
}

/* ─── Contact CTA ──────────────────────────────────────────────────── */
.cta {
  position: relative;
  overflow: hidden;
  padding: 7rem 2.5rem;
  text-align: center;
  background-color: var(--green-mid);
}
.cta-bg {
  position: absolute; inset: 0;
  background-image: url('../photos/lava-wall-sky.jpg');
  background-size: cover; background-position: center;
  opacity: 0.3;
}
.cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(14,28,16,0.65) 0%, rgba(8,18,10,0.8) 100%);
}
.cta-inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.cta .eyebrow { color: var(--gold-warm); margin-bottom: 1rem; }
.cta h2 { font-size: clamp(2rem, 5vw, 3rem); color: white; margin-bottom: 1rem; }
.cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.contact-card {
  margin-top: 3rem;
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 1.5rem 2.5rem;
  text-align: left;
}
.contact-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 500;
  color: white; margin-bottom: 0.15rem;
}
.contact-title {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-warm);
  margin-bottom: 1.25rem;
}
.contact-lines { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-line {
  display: flex; align-items: center; gap: 0.65rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.contact-line:hover { color: var(--gold-light); }
.contact-line svg {
  width: 13px; height: 13px;
  stroke: var(--gold-warm); fill: none;
  stroke-width: 2; stroke-linecap: round;
  flex-shrink: 0;
}

/* ─── Footer ───────────────────────────────────────────────────────── */
footer { background: #0c1a0e; padding: 4.5rem 3rem 2.25rem; }
.footer-top {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
}
.footer-identity { display: flex; flex-direction: column; }
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.92);
}
.footer-name {
  font-size: 0.9rem; letter-spacing: 0.03em;
  color: rgba(255,255,255,0.6);
  margin-top: 0.6rem;
}
.footer-role {
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-top: 0.3rem;
}
.footer-heading {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #c4982e;
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,0.58); transition: color 0.2s; }
.footer-col a:hover { color: #e0b84a; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(255,255,255,0.09);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.75rem;
}
.footer-logo { height: 56px; width: auto; flex-shrink: 0; }
.footer-legal {
  display: flex; flex-direction: column; gap: 0.28rem;
  text-align: right;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.32);
}
.footer-legal p { font-size: 0.7rem; line-height: 1.6; color: inherit; }
.footer-copy { color: rgba(255,255,255,0.22); }
.footer-credit { color: rgba(255,255,255,0.3); margin-top: 0.1rem; }
.footer-credit a { color: rgba(255,255,255,0.5); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.18); transition: color 0.2s ease, border-color 0.2s ease; }
.footer-credit a:hover, .footer-credit a:focus-visible { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.45); }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-identity { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  footer { padding: 3.5rem 1.5rem 2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2.25rem; padding-bottom: 2.25rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .footer-legal { text-align: left; }
  .footer-logo { height: 46px; }
}

/* ─── Shared responsive ────────────────────────────────────────────── */
@media (max-width: 900px) { section { padding: 4rem 1.75rem; } }
@media (max-width: 600px) { .cta-buttons { flex-direction: column; align-items: center; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
