/* LiveWell Development Group — styles.
   Tokens follow the LiveWell Brand Guidelines v2 (Nov 2026):
   Ricky J Construction\P-FIN-Data-LiveWell-Brand-Guide\LiveWell-Brand-Guidelines.pdf
   Rules applied: two brand colors (evergreen + gold) on cream; 60/25/10/5 proportion;
   Cinzel headlines, Montserrat body; one arch-topped frame per page; gold rules;
   8px cards/buttons, 16px photos; no shadows, no gradients; 1.5px line icons. */
:root {
  /* Brand */
  --brand-evergreen: #2C4012;
  --brand-gold: #C38522;
  /* Surfaces & text */
  --surface-100: #FEF8F1;
  --surface-200: #F3ECDF;
  --ink: #2C4012;
  --ink-muted: #5B6450;
  --text-gold: #8A5E12;
  --on-brand: #FEF8F1;
  --hairline: #DCD3C2;
  /* Support (never in the logo) */
  --support-olive: #616E33;
  --support-meadow: #7E884B;
  --support-bark: #665F18;
  --text-leaf: #616E33;
  --gold-on-dark: #E3A94A;

  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px; --space-5: 40px; --space-6: 64px;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px; --radius-pill: 999px;

  --wrap: 1160px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font: 400 16px/26px var(--sans); color: var(--ink); background: var(--surface-100); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 var(--space-3); }

/* Type scale (display-xl / display-l / heading / eyebrow / body / small / button) */
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: .02em; color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.07; }          /* display-xl 56/60 */
h2 { font-size: clamp(1.75rem, 3.4vw, 2.25rem); line-height: 1.17; max-width: 24ch; } /* display-l 36/42 */
h3 { font-size: 1.5rem; line-height: 1.25; }                               /* heading 24/30 */
.eyebrow { font: 600 12px/16px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--text-gold); margin: 0 0 var(--space-2); }
.rule { width: 64px; height: 2px; background: var(--brand-gold); margin: var(--space-3) 0 var(--space-4); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-5); }
@media (max-width: 700px) { .wrap { padding: 0 var(--space-3); } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface-100); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand-gold); outline-offset: 2px; }

/* Buttons — Montserrat 600 14/20 +0.08em, radius-md */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: var(--radius-md); border: 2px solid var(--brand-evergreen);
  background: var(--brand-evergreen); color: var(--on-brand); font: 600 14px/20px var(--sans); letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--support-olive); border-color: var(--support-olive); }
.btn--ghost { background: transparent; color: var(--brand-evergreen); }
.btn--ghost:hover { background: var(--brand-evergreen); border-color: var(--brand-evergreen); color: var(--on-brand); }
.btn--small { padding: 10px 18px; }
.btn:disabled { opacity: .7; cursor: default; }

/* Header — solid cream so the horizontal lockup sits on its own background */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface-100); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--hairline); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.logo { display: block; flex: none; }
.logo img { width: 270px; margin-left: -14px; }  /* horizontal lockup; artwork includes its own clear space */
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.site-nav a:not(.btn):hover { color: var(--text-gold); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--brand-evergreen); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 1080px) {
  :root { --header-h: 72px; }
  .logo img { width: 220px; margin-left: -10px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface-100); border-bottom: 1px solid var(--hairline); padding: var(--space-2) var(--space-3) var(--space-4);
    display: none;
  }
  .menu-open .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--hairline); }
  .site-nav .btn { margin-top: var(--space-3); text-align: center; }
  .menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Scroll fade-in — classes are added by main.js */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--reveal-delay, 0s); }
.reveal.from-above { transform: translateY(-28px); }
.reveal.is-in { opacity: 1; transform: none; }

/* Hero */
.hero { padding: var(--space-6) 0 calc(var(--space-6) + var(--space-4)); }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-6); align-items: center; }
.hero h1 { max-width: 14ch; }
.lede { font-size: 18px; line-height: 30px; color: var(--ink-muted); max-width: 46ch; margin-bottom: 0; }

/* The arch: radius-arch (50%) on the top corners only. One per page. */
.arch { margin: 0; aspect-ratio: 4 / 5; border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 40% 40% var(--radius-lg) var(--radius-lg); overflow: hidden; background: var(--brand-evergreen); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--brand { display: flex; align-items: center; justify-content: center; padding: 18% 12% 10%; }
.arch--brand img { height: auto; object-fit: contain; }
.hero__logo { margin: 0; }
.hero__logo img { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-5); }
  .arch { max-width: 360px; width: 100%; margin: 0 auto; }
  .hero__logo img { max-width: 300px; }
}

/* Sections — 60% cream / 25% evergreen / 10% gold / 5% support */
.section { padding: clamp(var(--space-6), 9vw, 112px) 0; }
.section--linen { background: var(--surface-200); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-6); }
.about__body p { color: var(--ink-muted); }
.facts { list-style: none; padding: var(--space-4) 0 0; margin: var(--space-3) 0 0; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.facts strong { display: block; font: 600 1.15rem/1.3 var(--display); letter-spacing: .02em; color: var(--ink); }
.facts span { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: var(--space-3); } }

/* Services — line icons, 1.5px stroke, rounded ends, text-leaf */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: var(--space-5); }
.card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: var(--space-4); }
.card svg { width: 36px; height: 36px; fill: none; stroke: var(--text-leaf); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--space-3); }
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--ink-muted); font-size: 15px; line-height: 24px; margin: 0; }
@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* How We Build — numbered steps joined by a gold line */
.steps { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: calc((100% - 3 * var(--space-4)) / 4 - 22px); height: 2px; background: var(--brand-gold); opacity: .5; }
.step { position: relative; }
.step__num { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-evergreen); color: var(--on-brand); font: 600 18px/1 var(--display); margin-bottom: var(--space-3); box-shadow: 0 0 0 6px var(--surface-100); }
.step h3 { margin-bottom: var(--space-2); }
.step p { color: var(--ink-muted); font-size: 15px; line-height: 24px; margin: 0; }
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-5); }
  .steps::before { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Landowners — evergreen band with three path cards */
.section--evergreen { background: var(--brand-evergreen); color: var(--on-brand); }
.section--evergreen h2 { color: var(--on-brand); }
.section--evergreen .eyebrow { color: var(--brand-gold); }
.section__intro { font-size: 18px; line-height: 30px; max-width: 56ch; margin: 0; opacity: .9; }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-5); }
.path { background: var(--surface-100); color: var(--ink); border-radius: var(--radius-md); border-top: 4px solid var(--brand-gold); padding: var(--space-4); display: flex; flex-direction: column; }
.path h3 { margin-bottom: var(--space-2); }
.path > p { color: var(--ink-muted); font-size: 15px; line-height: 24px; margin: 0 0 var(--space-3); }
.path__list { list-style: none; padding: var(--space-3) 0 0; margin: 0 0 var(--space-3); border-top: 1px solid var(--hairline); display: grid; gap: var(--space-2); }
.path__list li { position: relative; padding-left: 26px; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.path__list li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2px solid var(--brand-gold); border-bottom: 2px solid var(--brand-gold); transform: rotate(-45deg); }
.path__list strong { display: block; color: var(--ink); }
.path .path__fit { margin: auto 0 0; padding-top: var(--space-2); font-size: 14px; font-style: italic; color: var(--text-gold); }
@media (max-width: 1020px) { .paths { grid-template-columns: 1fr; max-width: 560px; } }

/* Builder */
.builder { display: grid; grid-template-columns: 320px 1fr; gap: var(--space-6); align-items: center; max-width: 960px; }
.builder__img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 0 0 1px var(--hairline); }
.builder__name { display: inline-block; padding-bottom: var(--space-2); margin-bottom: var(--space-4); border-bottom: 2px solid var(--brand-gold); }
.builder__body p { color: var(--ink-muted); max-width: 52ch; }
.facts--two { grid-template-columns: repeat(2, 1fr); max-width: 52ch; }
@media (max-width: 760px) {
  .builder { grid-template-columns: 1fr; gap: var(--space-4); text-align: center; }
  .builder__img { width: 220px; margin: 0 auto; }
  .builder__body p { margin-left: auto; margin-right: auto; }
}

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-5); }
.project { background: var(--surface-100); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: var(--space-3); display: flex; flex-direction: column; }
.project__img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: var(--radius-lg); }
div.project__img { display: flex; align-items: center; justify-content: center; }
div.project__img svg { width: 56px; height: 56px; fill: none; stroke: var(--on-brand); stroke-opacity: .8; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.project__img--olive { background: var(--support-olive); }
.project__img--meadow { background: var(--support-meadow); }
.project__img--bark { background: var(--support-bark); }
.project__body { padding: var(--space-4) var(--space-2) var(--space-2); }
.project__body h3 { margin-bottom: var(--space-1); }
.project__meta { font-size: 13px; line-height: 20px; color: var(--ink-muted); margin-bottom: var(--space-2); }
.project__body p:last-child { font-size: 15px; line-height: 24px; color: var(--ink-muted); margin: 0; }
.badge { display: inline-block; font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 7px 12px; border-radius: var(--radius-pill); background: var(--surface-200); color: var(--ink-muted); border: 1px solid var(--hairline); margin-bottom: var(--space-3); }
.badge--gold { background: var(--brand-gold); border-color: var(--brand-gold); color: var(--brand-evergreen); }
.badge--done { background: var(--brand-evergreen); border-color: var(--brand-evergreen); color: var(--on-brand); }
@media (max-width: 980px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .projects { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--space-6); align-items: start; }
.contact__intro p { color: var(--ink-muted); }
.contact__list { list-style: none; padding: 0; margin: var(--space-4) 0 0; }
.contact__list li { padding: 14px 0; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.contact__list span { width: 84px; font: 600 12px/22px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--text-gold); }
.contact__list a, .contact__list b { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; gap: var(--space-5); } }

.form { background: var(--surface-200); border-radius: var(--radius-md); padding: clamp(var(--space-4), 4vw, var(--space-5)); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-3); }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; margin-bottom: var(--space-1); }
.field label { font-weight: 600; font-size: 13px; line-height: 20px; margin-bottom: 6px; }
.field label em { color: #9B2C1E; font-style: normal; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-evergreen); box-shadow: 0 0 0 3px rgba(195, 133, 34, .35); }
.field [aria-invalid="true"] { border-color: #9B2C1E; }
.field__err { min-height: 20px; font-size: 13px; line-height: 20px; color: #9B2C1E; }
.form .btn { margin-top: var(--space-2); width: 100%; }
.form__status { margin-top: var(--space-3); padding: 14px 16px; border-radius: var(--radius-sm); font-size: 15px; line-height: 24px; }
.form__status.is-ok { background: #fff; border-left: 3px solid var(--support-olive); }
.form__status.is-warn { background: #fff; border-left: 3px solid var(--brand-gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer — evergreen with the reverse lockup only */
.site-footer { background: var(--brand-evergreen); color: var(--on-brand); padding: var(--space-5) 0; font-size: 13px; line-height: 20px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-5); flex-wrap: wrap; }
.footer__logo { width: 180px; }           /* stacked lockup minimum on screen */
.footer__meta { text-align: right; }
.footer__meta p { margin: 0 0 var(--space-1); opacity: .85; }
.footer__tag { font: 600 16px/24px var(--display) !important; letter-spacing: .04em; color: var(--gold-on-dark); opacity: 1 !important; margin-bottom: var(--space-2) !important; }
.site-footer a { color: var(--on-brand); }
@media (max-width: 640px) { .footer__inner { flex-direction: column; text-align: center; } .footer__meta { text-align: center; } }
