/* ==========================================================================
   TerraSprout Landscape Design — style.css
   Palette: olive #6B8E23 · terracotta #C4693D · paper #F7F3EC · ink #2C3320
   Fonts: Zilla Slab (headings) · Raleway (body)
   ========================================================================== */

:root {
  --olive: #6B8E23;
  --olive-deep: #55711C;
  --olive-tint: #E7ECD8;
  --terra: #C4693D;
  --terra-deep: #A5522C;
  --terra-tint: #F2E0D5;
  --paper: #F7F3EC;
  --ink: #2C3320;
  --ink-soft: #4A5238;
  --radius-card: 24px;
  --radius-btn: 999px;
  --font-head: "Zilla Slab", Georgia, serif;
  --font-body: "Raleway", arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

a { color: var(--olive-deep); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1.7rem;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-terra {
  background: var(--terra);
  border-color: var(--terra);
  color: #FFFDF8;
}
.btn-terra:hover { background: var(--terra-deep); border-color: var(--terra-deep); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--olive-tint);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}
.logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav-menu > a:not(.btn) {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav-menu > a:not(.btn):hover { border-bottom-color: var(--terra); }

.nav-cta { padding: 0.55rem 1.3rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

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

.hero {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(102deg, rgba(24, 29, 15, 0.82) 0%, rgba(44, 51, 32, 0.62) 52%, rgba(107, 142, 35, 0.38) 100%),
    url("https://images.unsplash.com/photo-1695616827909-6f147f22d40f?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  min-height: 80vh;
}

.hero-copy {
  padding: 5rem 0;
  max-width: 37rem;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #F0B893;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  color: #FFFDF8;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: italic;
  color: #C4DC8A;
}

.hero-subline {
  font-size: 1.18rem;
  color: rgba(255, 253, 248, 0.9);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero .btn-ghost {
  border-color: rgba(255, 253, 248, 0.85);
  color: #FFFDF8;
}
.hero .btn-ghost:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

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

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-intro {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

/* ---------- About ---------- */

.about {
  background: var(--olive-tint);
  padding: 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 3.5rem;
  align-items: center;
}
.about .section-title { margin-bottom: 1.25rem; }
.about-copy p + p { margin-top: 1.1rem; }

.about-photo {
  margin: 0;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 58% 42% 55% 45% / 48% 52% 44% 56%;
}

/* ---------- Services ---------- */

.services { padding: 5rem 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
}
.card-olive { background: var(--olive-tint); }
.card-terra { background: var(--terra-tint); }

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.1rem;
}
.card-olive .card-icon { color: var(--olive-deep); }
.card-terra .card-icon { color: var(--terra-deep); }

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Photo bands ---------- */

.band-photo {
  margin: 0;
  line-height: 0;
}
.band-photo img {
  width: 100%;
  height: clamp(240px, 36vw, 400px);
  object-fit: cover;
}
.band-photo-thin img {
  height: clamp(180px, 24vw, 280px);
}

/* ---------- Process timeline ---------- */

.process {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem 0;
}
.process .section-title { color: var(--paper); }
.process .section-intro { color: #C9CDB9; margin-bottom: 0; }

.process-photo {
  margin: 2.25rem 0 0;
}
.process-photo img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 90px 32px 90px 32px;
}

.process-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: start;
}

.timeline {
  list-style: none;
  position: relative;
  padding-left: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--olive), var(--terra));
}

.timeline-step {
  position: relative;
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}
.timeline-step:last-child { padding-bottom: 0; }

.timeline-marker {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.timeline-step:nth-child(odd) .timeline-marker { background: var(--olive); color: #FFFDF8; }
.timeline-step:nth-child(even) .timeline-marker { background: var(--terra); color: #FFFDF8; }

.timeline-body h3 {
  color: var(--paper);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.timeline-body p { color: #C9CDB9; }

/* ---------- Contact ---------- */

.contact { padding: 5rem 0; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.contact-form-wrap {
  background: var(--olive-tint);
  border-radius: var(--radius-card);
  padding: 2rem;
}

.field { margin-bottom: 1.2rem; }

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.label-hint {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #FFFDF8;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--olive);
}
.field textarea { resize: vertical; }

.field input[type="file"] {
  font-size: 0.95rem;
  width: 100%;
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.field-checkbox input {
  margin-top: 0.3rem;
  width: 18px;
  height: 18px;
  accent-color: var(--olive);
  flex-shrink: 0;
}
.field-checkbox label {
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.form-status {
  margin-top: 0.9rem;
  font-weight: 700;
  min-height: 1.4em;
}
.form-status.is-success { color: var(--olive-deep); }
.form-status.is-error { color: var(--terra-deep); }

.field input.field-invalid,
.field textarea.field-invalid { border-color: var(--terra); }

.contact-info {
  background: var(--terra-tint);
  border-radius: var(--radius-card);
  padding: 2rem;
}
.contact-photo {
  margin: 0 0 1.5rem;
}
.contact-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 32px 90px 32px 90px;
}

.contact-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.contact-info h3 + address,
.contact-info h3 + table { margin-top: 0.2rem; }
.contact-info address {
  font-style: normal;
  margin-bottom: 1rem;
}
.contact-lines { margin-bottom: 1.6rem; }
.contact-lines a { color: var(--terra-deep); font-weight: 700; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(44, 51, 32, 0.12);
}
.hours-table th { font-weight: 700; }
.hours-table td { text-align: right; }
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: none; }

/* ---------- Newsletter ---------- */

.newsletter {
  background: var(--olive);
  padding: 3.5rem 0;
}

.newsletter-inner {
  text-align: center;
  max-width: 620px;
}

.newsletter-pitch {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: #FFFDF8;
  margin-bottom: 1.4rem;
}

.newsletter-form {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1 1 260px;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  background: #FFFDF8;
  color: var(--ink);
}
.newsletter-form input[type="email"]:focus-visible {
  outline: none;
  border-color: var(--ink);
}

.newsletter .form-status { color: #FFFDF8; }
.newsletter .form-status.is-error { color: #FFE0CE; }

.newsletter-microcopy {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: #EAF0DC;
}

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

.site-footer {
  background: var(--ink);
  color: #C9CDB9;
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--paper);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
}
.footer-nav a {
  color: #C9CDB9;
  text-decoration: none;
  font-weight: 600;
}
.footer-nav a:hover { color: var(--paper); text-decoration: underline; }

.footer-copy { font-size: 0.9rem; }

/* ---------- Legal pages ---------- */

.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}
.legal-main h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.4rem;
}
.legal-updated {
  color: var(--terra-deep);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2.2rem;
}
.legal-main h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.6rem;
}
.legal-main p + p { margin-top: 0.9rem; }
.legal-main ul {
  margin: 0.6rem 0 0.9rem 1.4rem;
}
.legal-main li + li { margin-top: 0.35rem; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-inner {
    min-height: 60vh;
  }
  .hero-copy {
    padding: 4rem 0;
  }

  .about-grid,
  .process-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-photo {
    max-width: 420px;
    margin: 0 auto;
  }
  .process .section-intro { margin-bottom: 1rem; }

  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--olive-tint);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1.5rem 1.5rem;
    gap: 1.1rem;
  }
  .nav-menu.is-open { display: flex; }
  .nav { position: relative; }

  .card-grid { grid-template-columns: 1fr; }

  .timeline::before { left: 19px; }
  .timeline-marker {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }
}
