/* ==========================================================================
   Foothills Landscape Solutions LLC — brand site
   Deliberate single dark-luxury world (dusk-in-the-foothills palette).
   Motif: topographic contour lines / layered hill silhouettes throughout —
   literal to the "Foothills" name, used structurally (dividers, hero,
   favicon, OG card), not as decoration.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;1,9..144,500&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  /* --- palette --- */
  --ink: #101d17;          /* primary ground: deep forest-charcoal */
  --surface: #16261d;      /* elevated section ground */
  --surface-2: #1d3226;    /* card / raised surface */
  --line: #33493a;         /* hairline strokes on dark */
  --parchment: #f4eee0;    /* primary text on dark */
  --parchment-dim: #c9c2ab;/* secondary/muted text on dark */
  --gold: #c7a15e;         /* brand accent — brass/gold */
  --gold-hi: #e6cd97;      /* accent hover / bright */
  --moss: #7c9a7e;         /* secondary muted accent (tags, focus) */
  --error: #e0a08a;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --max-width: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 1rem;
}

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

a { color: var(--gold); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
  color: var(--parchment);
}

p { margin: 0 0 1em; color: var(--parchment-dim); max-width: 62ch; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(16, 29, 23, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--parchment);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo em { color: var(--gold); font-style: normal; }

.nav-links {
  display: none;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--parchment-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}

.nav-links a:hover { color: var(--gold-hi); }

.nav .nav-cta {
  display: none;
}

.nav-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--parchment);
  border-radius: var(--radius);
  padding: 0.5rem 0.8rem;
  font-size: 1rem;
  cursor: pointer;
}

@media (min-width: 780px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; align-items: center; }
  .nav .nav-cta {
    display: inline-flex;
  }
}

.nav-links.is-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 1.5rem 1.5rem;
  gap: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover, .btn-gold:focus-visible { background: var(--gold-hi); }

.btn-ghost {
  background: transparent;
  color: var(--parchment);
  border-color: var(--line);
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--gold); color: var(--gold-hi); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 7.5rem 0;
  min-height: 34rem;
  isolation: isolate;
}

/* ---------- Hero background slideshow ---------- */
/* Six real job photos auto-crossfading forever. All six share one
   animation; each slide's animation-delay just offsets which point in the
   loop it's showing, so they take turns without any JS timer. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlideshow 40s infinite;
}

/* 8 slides now (2 more real job photos added) — each one just gets a
   1/8th-of-the-cycle offset so they take turns; bump the delay count and
   the keyframe math below together if more photos are added later. */
.hero-bg-slide:nth-child(1) { animation-delay: 0s; }
.hero-bg-slide:nth-child(2) { animation-delay: 5s; }
.hero-bg-slide:nth-child(3) { animation-delay: 10s; }
.hero-bg-slide:nth-child(4) { animation-delay: 15s; }
.hero-bg-slide:nth-child(5) { animation-delay: 20s; }
.hero-bg-slide:nth-child(6) { animation-delay: 25s; }
.hero-bg-slide:nth-child(7) { animation-delay: 30s; }
.hero-bg-slide:nth-child(8) { animation-delay: 35s; }

@keyframes heroSlideshow {
  0%, 100% { opacity: 0; }
  1.5%     { opacity: 1; }
  11%      { opacity: 1; }
  12.5%    { opacity: 0; }
}

/* Darkens the photos so the headline/buttons stay readable no matter which
   slide is showing. */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(16, 29, 23, 0.82), rgba(16, 29, 23, 0.68) 45%, rgba(16, 29, 23, 0.92));
}

/* Anyone who's asked their OS/browser to reduce motion gets a single still
   photo instead of a moving slideshow (global reduced-motion rule above
   already zeroes animation durations, but without this override that would
   leave every slide frozen at opacity: 0 — i.e. no photo at all). */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-slide {
    animation: none;
    opacity: 0;
  }
  .hero-bg-slide:first-child {
    opacity: 1;
  }
}

.hero-texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(199, 161, 94, 0.05) 0px,
    rgba(199, 161, 94, 0.05) 1px,
    transparent 1px,
    transparent 64px
  );
}

.hero-content {
  max-width: 46rem;
  padding-bottom: 3.5rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  font-weight: 600;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-hi);
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--parchment-dim);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.hero-proof-item {
  font-size: 0.82rem;
  color: var(--parchment-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-proof-item strong {
  color: var(--parchment);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.hills {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 2rem;
  position: relative;
  z-index: -1;
  opacity: 0.8; /* lets the slideshow photo read through the silhouette a bit */
}

/* ---------- Section divider (contour motif) ---------- */
.contour-divider {
  display: block;
  width: 100%;
  height: 28px;
  color: var(--line);
}

/* ---------- Sections ---------- */
.section { padding-block: 5rem; }
.section-surface { background: var(--surface); }

.section-head {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

/* ---------- Services ---------- */
.services-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-row {
  background: var(--ink);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem;
}

.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--gold);
  flex-shrink: 0;
}

.service-row h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.service-row p { margin-bottom: 0; font-size: 0.95rem; }

@media (min-width: 700px) {
  .services-list { grid-template-columns: 1fr 1fr; }
  /* odd number of services: let the last one span the row instead of
     leaving an empty cell beside it */
  .service-row:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
  }
  .gallery-item-tall { grid-row: span 2; }
  .gallery-item-wide { grid-column: span 2; }
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  cursor: zoom-in;
  background: var(--surface-2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.5rem 0.85rem 0.6rem;
  background: linear-gradient(0deg, rgba(16, 29, 23, 0.92), transparent);
  color: var(--parchment);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(10, 16, 12, 0.92);
}

.lightbox.is-open { display: flex; }

.lightbox figure {
  margin: 0;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.lightbox figcaption {
  color: var(--parchment-dim);
  font-size: 0.85rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--parchment);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

.lightbox-close:hover { border-color: var(--gold); color: var(--gold-hi); }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 780px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.testimonial .stars {
  color: var(--gold);
  letter-spacing: 0.15em;
  font-size: 0.9rem;
}

.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--parchment);
  line-height: 1.5;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--parchment-dim);
  display: block;
}

.testimonial cite b { color: var(--parchment); font-weight: 700; }

/* ---------- About / founders ---------- */
.about-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 860px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.founder-tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  color: var(--parchment-dim);
}

.founder-tag b { color: var(--gold-hi); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 4rem;
  text-align: center;
}

.cta-band h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.cta-band p { margin-inline: auto; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; }
}

.contact-detail {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.contact-detail strong {
  display: block;
  color: var(--parchment);
  font-size: 0.95rem;
}

.contact-detail span { color: var(--parchment-dim); font-size: 0.9rem; }

.form-field { margin-bottom: 1.15rem; }

.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  margin-bottom: 0.45rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--parchment);
  font: inherit;
}

.form-field textarea { min-height: 130px; resize: vertical; }

.form-field input::placeholder,
.form-field textarea::placeholder { color: #6f8073; }

.form-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

.form-field.has-error .form-error { display: block; }
.form-field.has-error input,
.form-field.has-error textarea { border-color: var(--error); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 1rem; font-weight: 700; font-size: 0.9rem; }
.form-status.success { color: var(--moss); }
.form-status.error { color: var(--error); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  font-size: 0.85rem;
  color: var(--parchment-dim);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a { color: var(--parchment-dim); text-decoration: none; }
.footer-links a:hover { color: var(--gold-hi); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  color: var(--parchment);
  padding: 1.1rem 1.5rem;
  display: none;
  z-index: 100;
}

.cookie-banner.is-visible {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p { margin: 0; font-size: 0.85rem; max-width: 640px; color: var(--parchment-dim); }
.cookie-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cookie-banner .btn { padding: 0.6rem 1.1rem; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0;
}

/* ---------- Legal pages ---------- */
.legal main {
  padding-block: 4rem;
  max-width: 720px;
  margin-inline: auto;
}

.legal .updated { color: var(--parchment-dim); margin-top: 0; }
.legal h2 { margin-top: 2.25rem; font-size: 1.3rem; }

@media print {
  .cookie-banner, .site-header, .site-footer { display: none; }
}
