/* Luci Homes — core stylesheet
   Palette derived from the Luci Homes logo (sage green + teal),
   warmed for an editorial, photo-first layout. */

:root {
  --forest:      #2F3B30;
  --forest-deep: #1E2620;
  --sage:        #7D9169;
  --teal:        #2E9189;
  --teal-deep:   #1F6D67;
  --cream:       #F7F5EF;
  --cream-warm:  #EFEBE0;
  --ink:         #22271F;
  --ink-soft:    #5B6157;
  --ink-faint:   #8B9086;
  --line:        #DDD8CB;
  --white:       #FFFFFF;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gut:  clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--forest-deep);
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* Paragraph spacing has to beat the line height or paragraphs read as one
   block. Line height is 1.7, so the gap between them needs to be at least
   that much again. */
p { margin: 0 0 1.7em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 1rem;
}
.eyebrow-light { color: #9FD3C4; }

.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 1.9em;
  max-width: 62ch;
}

/* Body copy reads badly past about 70 characters a line. */
.split > div > p,
.narrow > p { max-width: 68ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.7rem;
  border-radius: 3px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); }

.btn-dark { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.btn-dark:hover { background: var(--forest-deep); border-color: var(--forest-deep); }

.btn-ghost { background: transparent; color: var(--forest-deep); border-color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--cream); }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-ghost-light:hover { background: #fff; color: var(--forest-deep); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247,245,239,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: .85rem;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.brand-text {
  font-family: var(--display); font-size: 1.35rem; font-weight: 500;
  color: var(--forest-deep); letter-spacing: -0.01em;
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; padding-block: .3rem;
  border-bottom: 1.5px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--forest-deep); border-bottom-color: var(--teal); text-decoration: none;
}
.nav-phone {
  font-weight: 600 !important; color: var(--forest-deep) !important;
  border: 1.5px solid var(--line); border-radius: 3px;
  padding: .5rem .9rem !important; white-space: nowrap;
}
.nav-phone:hover { border-color: var(--forest) !important; border-bottom-color: var(--forest) !important; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: .4rem; color: var(--forest-deep);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gut) 1.25rem; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-phone { margin-top: .75rem; text-align: center; }
}

/* ---------- Hero ---------- */

.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; }
.hero-media { position: absolute; inset: 0; overflow: hidden; background: #14202E; }
/* Slight upward bias so the canopy stays in frame on short, wide viewports. */
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
/* Two-part scrim. The horizontal pass darkens the left where the copy sits;
   the vertical pass is kept light so the tree on the right stays uncovered.
   Blue-charcoal because it sits opposite the sunset orange on the colour
   wheel, which keeps the sky saturated instead of muddy. */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,18,30,.74) 0%, rgba(10,18,30,.52) 24%, rgba(10,18,30,.14) 42%, rgba(10,18,30,0) 55%),
    linear-gradient(180deg, rgba(10,18,30,.10) 0%, rgba(10,18,30,.06) 45%, rgba(10,18,30,.44) 100%);
}

/* Hero copy sits hard left against the viewport edge, not inside the centred
   content column, so it stays well clear of the tree on the right. */
.hero-body {
  position: relative; z-index: 2; width: 100%; color: #fff;
  padding: clamp(3rem, 8vw, 6rem) var(--gut) clamp(3rem, 8vw, 6rem) clamp(1.25rem, 6vw, 6rem);
}
.hero-copy { max-width: 500px; }
.hero-body h1 {
  color: #fff; max-width: 12ch; margin-bottom: .45em;
  text-shadow: 0 1px 24px rgba(8,14,24,.45);
}
.hero-body p {
  color: rgba(255,255,255,.94); max-width: 40ch; font-size: 1.12rem;
  text-shadow: 0 1px 16px rgba(8,14,24,.5);
}

/* On phones the image crops in and the tree usually falls outside the frame,
   so go back to a plain bottom-weighted scrim for legibility. */
@media (max-width: 820px) {
  .hero-media::after {
    background: linear-gradient(180deg, rgba(10,18,30,.24) 0%, rgba(10,18,30,.30) 45%, rgba(10,18,30,.84) 100%);
  }
  .hero-body { padding-inline: var(--gut); }
  .hero-copy { max-width: none; }
  .hero-body h1 { max-width: 15ch; }
}

.page-hero { background: var(--forest); color: #fff; padding-block: clamp(3.5rem, 9vw, 6rem); }
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 60ch; margin: 0; font-size: 1.15rem; }

/* ---------- Sections ---------- */

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-cream { background: var(--cream-warm); }
.section-white { background: var(--white); }
.section-forest { background: var(--forest); color: rgba(255,255,255,.85); }
.section-forest h2, .section-forest h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head p { margin-bottom: 0; }

/* ---------- Stat bar ---------- */

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.stat {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 2rem 1.5rem; text-align: center; background: var(--white);
}
.stat-num {
  font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 500; color: var(--forest-deep); line-height: 1; margin-bottom: .5rem;
}
.stat-label {
  font-size: .82rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 500;
}

/* ---------- Project cards ---------- */

.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.card-pad { padding: 1.6rem 1.7rem 1.8rem; }

.project { display: block; text-decoration: none; color: inherit; }
.project:hover { text-decoration: none; }
.project-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--forest); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project:hover .project-media img { transform: scale(1.04); }
.project-body { padding: 1.35rem 0 0; }
.project-body h3 { margin-bottom: .25rem; }
.project-meta { font-size: .9rem; color: var(--ink-faint); margin: 0 0 .6rem; letter-spacing: .02em; }
.project-note { font-size: .97rem; color: var(--ink-soft); margin: 0; }
.project-note + .project-note { margin-top: 1.1rem; }

.badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: var(--cream); color: var(--forest-deep);
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem .75rem; border-radius: 2px;
}
.badge-live { background: var(--teal); color: #fff; }

.placeholder-media {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--forest); color: rgba(255,255,255,.4);
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; text-align: center;
  padding: 1rem;
}

/* ---------- Split feature ---------- */

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-media img { border-radius: 4px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.split-rev .split-media { order: 2; }
@media (max-width: 780px) { .split-rev .split-media { order: 0; } }

/* ---------- Steps / list ---------- */

.steps { counter-reset: step; display: grid; gap: 2.25rem; }

/* The number, the heading and the paragraph are three children in a
   two-column grid. Without explicit placement the paragraph auto-flows onto
   row 2 column 1 and gets squeezed into the 3rem number column, which renders
   one word per line. Pin the number to column 1 and everything else to
   column 2. */
.step { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0 1.25rem; align-items: start; }
.step::before {
  counter-increment: step; content: counter(step);
  grid-column: 1; grid-row: 1;
  font-family: var(--display); font-size: 1.6rem; color: var(--teal);
  line-height: 1; padding-top: .15rem;
}
.step > * { grid-column: 2; }
.step h3 { margin-bottom: .45rem; font-size: 1.2rem; }
.step p { margin: 0 0 1rem; color: var(--ink-soft); font-size: .98rem; }
.step p:last-child { margin-bottom: 0; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.checklist li { padding-left: 1.9rem; position: relative; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .65rem; height: .65rem; border: 2px solid var(--teal); border-radius: 50%;
}
.section-forest .checklist li { color: rgba(255,255,255,.82); }

/* ---------- Forms ---------- */

.form-shell { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: clamp(1.75rem, 4vw, 2.75rem); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; letter-spacing: .03em; color: var(--forest-deep); margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 3px;
  padding: .75rem .9rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(46,145,137,.14);
}
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.form-note { font-size: .84rem; color: var(--ink-faint); margin: 1rem 0 0; line-height: 1.6; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-error { font-size: .9rem; color: #A33A2B; background: #FBEDEA; border: 1px solid #EBC7C0; border-radius: 3px; padding: .75rem .9rem; margin: 0 0 1rem; }
.form-success { text-align: center; padding: 2rem .5rem; outline: none; }
.form-success h3 { font-family: var(--display); color: var(--forest-deep); font-size: 1.6rem; margin: 0 0 .6rem; }
.form-success p { color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* ---------- CTA band ---------- */

.band { background: var(--cream-warm); border-block: 1px solid var(--line); }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.band-inner h2 { margin-bottom: .35rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.band-inner p { margin: 0; color: var(--ink-soft); max-width: 48ch; }

/* ---------- Footer ---------- */

.site-footer { background: var(--forest-deep); color: rgba(255,255,255,.66); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.13); }
.site-footer h4 { font-family: var(--body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 1rem; font-weight: 600; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-brand img { height: 54px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .9; }
.footer-legal { padding-top: 1.75rem; font-size: .8rem; color: rgba(255,255,255,.45); line-height: 1.7; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.footer-logos { display: flex; gap: .75rem; align-items: center; }
.footer-logos img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .55; }

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--forest); color: #fff;
  padding: .75rem 1.25rem; z-index: 100;
}
.skip-link:focus { left: 0; }

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