/* ============================================================
   Coppice Planning, LLC — coppiceplanning.com
   Brand: navy #2B3F5B · stream blue #2E8FBE · cool paper #FBFBFA
   Type: Spectral (serif). Swap via --font-serif if a different
   final serif is chosen.
   ============================================================ */

:root {
  --navy: #2B3F5B;
  --navy-deep: #22334B;
  --stream: #2E8FBE;
  --stream-soft: #7FB6D4;
  --paper: #FBFBFA;
  --paper-cool: #F3F5F6;
  --mist: #E6EBEF;
  --ink: #24303F;
  --ink-soft: #5A6878;
  --line: #D8DFE5;
  --font-serif: "Spectral", Georgia, "Times New Roman", serif;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.075rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--stream); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; font-weight: 500; }

.kicker {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  color: var(--stream);
  margin-bottom: 0.9rem;
}

.lede {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
}
.brand:hover { text-decoration: none; }

.brand-mark { width: 52px; height: auto; flex: none; }

.brand-name {
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-tag {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--stream);
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.98rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { text-decoration: none; color: var(--navy); border-bottom-color: var(--stream-soft); }
.nav-links a[aria-current="page"] { color: var(--navy); font-weight: 500; border-bottom-color: var(--stream); }

.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 3px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--navy-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.7rem 0; }
  .nav-cta { display: inline-block; margin-top: 0.6rem; }
  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); }
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-art { padding: 0 clamp(0rem, 2vw, 1.5rem); }

.hero .lede { margin: 1.4rem 0 2rem; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; order: -1; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1rem;
  padding: 0.75rem 1.6rem;
  border-radius: 3px;
  border: 1px solid var(--navy);
  transition: background 0.15s ease;
}
.btn:hover { text-decoration: none; }

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

.btn-ghost { color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--mist); }

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

/* ---------- sine divider ---------- */

.sine {
  display: block;
  width: 100%;
  height: 44px;
  color: var(--stream-soft);
}
.sine.on-navy { color: var(--stream); }

/* ---------- sections ---------- */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.tint { background: var(--paper-cool); }
.section.navy { background: var(--navy); }
.section.navy h2, .section.navy h3 { color: #fff; }
.section.navy p { color: var(--mist); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--ink-soft); margin-top: 0.8rem; }

/* ---------- pillars (communities / habitats) ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--stream);
  border-radius: 4px;
  padding: 2rem 1.9rem;
}
.pillar h3 { margin-bottom: 0.7rem; }
.pillar p { color: var(--ink-soft); font-size: 1rem; }
.pillar ul { margin: 1rem 0 0 1.1rem; color: var(--ink-soft); font-size: 0.98rem; }
.pillar li { margin-bottom: 0.35rem; }

/* ---------- service blocks ---------- */

.service {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.8rem, 4vw, 2.6rem) 0;
  border-top: 1px solid var(--line);
}
.service:last-of-type { border-bottom: 1px solid var(--line); }
.service h3 { font-size: 1.35rem; }
.service .service-art {
  width: 100%;
  max-width: 185px;
  margin-top: 1.2rem;
  opacity: 0.95;
}
.service .service-no {
  font-size: 0.88rem;
  letter-spacing: 0.25em;
  color: var(--stream);
  margin-bottom: 0.4rem;
}
.service p { color: var(--ink-soft); margin-bottom: 0.8rem; }
.service ul { margin: 0.4rem 0 0 1.1rem; color: var(--ink-soft); font-size: 0.98rem; }
.service li { margin-bottom: 0.3rem; }

@media (max-width: 700px) {
  .service { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* ---------- photo slots (until real imagery is placed) ---------- */

.photo-slot {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, #3A5578 55%, var(--stream) 130%);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: flex-end;
}
.photo-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(46,143,190,0.35), transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(255,255,255,0.07), transparent 50%);
}
.photo-slot .slot-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}
.photo-slot .slot-mark img { width: 45%; }
.photo-slot figcaption {
  position: relative;
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: rgba(251,251,250,0.85);
  background: linear-gradient(transparent, rgba(34,51,75,0.65));
}
.photo-slot.tall { aspect-ratio: 4 / 5; }

/* real imagery inside a slot */
.photo-slot > img.ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* schematic sketches inside a slot: light background, so captions go navy-on-paper */
.photo-slot.sketch {
  background: #FBFBFA;
  border-bottom: 1px solid var(--line);
}
.photo-slot.sketch > img.ph { object-fit: contain; }
.photo-slot.sketch figcaption {
  color: rgba(43,63,91,0.88);
  background: linear-gradient(rgba(251,251,250,0), rgba(251,251,250,0.94) 40%);
}

/* gradient variety for empty slots until photos land */
.projects-grid .project-card:nth-child(3n+2) .photo-slot {
  background: linear-gradient(160deg, #35608A 0%, #2E8FBE 70%, #7FB6D4 135%);
}
.projects-grid .project-card:nth-child(3n) .photo-slot {
  background: linear-gradient(160deg, #2B3F5B 0%, #46608A 55%, #C89A45 140%);
}

/* ---------- project cards ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.2rem);
}

.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-card .photo-slot { border-radius: 0; aspect-ratio: 16 / 10; }
.project-body { padding: 1.5rem 1.6rem 1.7rem; }
.project-body .proj-type {
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stream);
  margin-bottom: 0.5rem;
}
.project-body h3 { margin-bottom: 0.55rem; font-size: 1.22rem; }
.project-body p { font-size: 0.98rem; color: var(--ink-soft); }
.proj-news { margin-top: 0.6rem; font-size: 0.92rem; }
.proj-news a { color: var(--stream); }

/* ---------- name story / coppice explainer ---------- */

.name-story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.name-story blockquote {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.55;
  color: var(--navy);
}
.name-story blockquote strong { font-weight: 500; }
@media (max-width: 820px) {
  .name-story { grid-template-columns: 1fr; }
  .name-story .hero-art { max-width: 360px; margin: 0 auto; }
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-grid .photo-slot { position: sticky; top: 6rem; }
.about-copy p { margin-bottom: 1.1rem; }
.about-copy h2 { margin: 2rem 0 0.8rem; }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  /* keep position:relative — the portrait img is absolutely positioned inside this
     box, and a static container lets it escape and overlay the page (mobile bug, fixed 8/28) */
  .about-grid .photo-slot { position: relative; top: auto; width: 100%; max-width: 380px; margin: 0 auto; }
}

.creds {
  list-style: none;
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.creds li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.creds li strong { color: var(--navy); font-weight: 500; }

/* ---------- photo band ---------- */

.photo-band {
  padding: clamp(1.6rem, 3vw, 2.6rem) 0;
}
.photo-band-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.photo-band-row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
@media (max-width: 700px) {
  .photo-band-row { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- quotes band ---------- */

.quotes-band .section-head { margin-bottom: 1.6rem; }
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}
.quote p {
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 300;
  color: #fff;
  line-height: 1.65;
  margin: 0 0 0.9rem;
}
.quote cite {
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stream-soft);
}
.quote { margin: 0; border-left: 2px solid #E0A63C; padding-left: 1.2rem; }

/* ---------- inline photos ---------- */

.inline-photo {
  margin: 2.2rem 0;
}
.inline-photo img {
  width: 100%;
  display: block;
  border-radius: 6px;
}
.inline-photo figcaption {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin-top: 1.5rem; }
.contact-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.contact-list .c-label {
  flex: none;
  width: 5.5rem;
  font-size: 0.86rem;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--stream);
}

form .field { margin-bottom: 1.1rem; }
form label {
  display: block;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 0.35rem;
  font-weight: 500;
}
form input, form textarea, form select {
  width: 100%;
  font-family: var(--font-serif);
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}
form input:focus, form textarea:focus, form select:focus {
  outline: 2px solid var(--stream-soft);
  border-color: var(--stream);
}
form textarea { min-height: 140px; resize: vertical; }

.form-note { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.8rem; }

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

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 0.7rem; }
.cta-band p { max-width: 52ch; margin: 0 auto 1.8rem; }
.cta-band .btn { border-color: #fff; }
.cta-band .btn-primary { background: var(--stream); border-color: var(--stream); }
.cta-band .btn-primary:hover { background: #257AA5; }
.cta-band .btn-ghost { color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--mist);
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer .f-logo { width: 190px; margin-bottom: 1rem; }
.site-footer h4 {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  font-weight: 500;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--mist); }
.site-footer a:hover { color: #fff; }
.f-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.3rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--stream-soft);
}

/* ---------- utility ---------- */

.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
