/* ==========================================================================
   Decolawn — styles.css
   Mobile-first, no framework, green/earthy palette.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --green-950: #0b2a19;
  --green-900: #10381f;
  --green-800: #14532d;
  --green-700: #1c6b3a;
  --green-600: #2f8f4e;
  --green-500: #3aa564;
  --green-100: #e7f4ea;
  --green-050: #f2faf4;

  --earth-700: #7a5c3a;
  --earth-500: #b08968;
  --earth-200: #e7dccb;
  --cream: #f8f6f1;
  --sand: #efe9de;

  --ink: #17251c;
  --muted: #4f6357;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 56, 31, .08), 0 2px 8px rgba(16, 56, 31, .06);
  --shadow-md: 0 6px 24px rgba(16, 56, 31, .12);
  --shadow-lg: 0 18px 48px rgba(11, 42, 25, .22);

  --maxw: 1120px;
  --header-h: 72px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Poppins", var(--font-body);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--green-950); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5.4vw, 3.35rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-800); }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }

.visually-hidden {
  position: absolute !important; 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: 12px; top: -60px; z-index: 2000;
  background: var(--green-800); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .72rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: .95rem 1.8rem; font-size: 1.05rem; }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-800); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--green-900); border-color: var(--green-700); }
.btn-ghost:hover { background: var(--green-100); color: var(--green-950); transform: translateY(-2px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--green-100);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--green-950); }
.brand-logo { width: 40px; height: 40px; }
.brand-word { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; border: 1px solid var(--green-100); border-radius: var(--radius-sm);
  background: var(--white); cursor: pointer;
}
.nav-toggle-bar { display: block; width: 22px; height: 2px; margin: 0 auto; background: var(--green-900); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) 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(-7px) rotate(-45deg); }

.primary-nav {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--white); border-bottom: 1px solid var(--green-100);
  box-shadow: var(--shadow-md);
  padding: 1rem 20px 1.4rem;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.primary-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

.nav-list { list-style: none; margin: 0 0 .75rem; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.nav-list a {
  display: block; padding: .7rem .4rem; color: var(--ink); text-decoration: none;
  font-weight: 500; border-bottom: 1px solid var(--green-050);
}
.nav-list a:hover { color: var(--green-700); }

.nav-actions { display: flex; flex-direction: column; gap: .6rem; align-items: stretch; }
.header-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--green-800); text-decoration: none; justify-content: center; padding: .5rem; }
.header-phone .icon { color: var(--green-600); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static; transform: none; opacity: 1; visibility: visible;
    display: flex; align-items: center; gap: 1.5rem; padding: 0; border: 0; box-shadow: none; background: transparent;
  }
  .nav-list { flex-direction: row; margin: 0; gap: .35rem; }
  .nav-list a { border: 0; padding: .5rem .7rem; font-size: .96rem; border-radius: 999px; }
  .nav-list a:hover { background: var(--green-050); }
  .nav-actions { flex-direction: row; align-items: center; gap: 1rem; }
  .header-phone { padding: 0; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--green-100), transparent 60%),
    linear-gradient(180deg, var(--green-050), var(--white) 70%);
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.hero-inner { display: grid; gap: 2.25rem; align-items: center; }
.hero-copy { max-width: 40rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700;
  color: var(--green-600); margin: 0 0 .6rem;
}
.hero-sub { font-size: clamp(1.02rem, 2.2vw, 1.18rem); color: var(--muted); max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0 1.6rem; }

.trust-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; }
.badge { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; color: var(--green-900); }
.badge .icon { color: var(--green-600); flex: none; }

.hero-media img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%;
  border: 1px solid var(--green-100);
}

@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(2.75rem, 7vw, 5rem) 0; }
.section-alt { background: var(--cream); }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }
.section-head .section-intro { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }

/* ---------- Services ---------- */
.card-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.1rem; grid-template-columns: 1fr;
}
.card {
  background: var(--white); border: 1px solid var(--green-100); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green-200, #bfe3c9); }
.card-icon { display: inline-flex; font-size: 1.7rem; line-height: 1; margin-bottom: .6rem; }
.card h3 { margin-bottom: .35rem; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

.services-note {
  margin: 1.75rem 0 0; padding: 1rem 1.2rem; background: var(--green-050);
  border-left: 4px solid var(--green-600); border-radius: var(--radius-sm); color: var(--green-900);
}

@media (min-width: 560px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

/* ---------- Service areas ---------- */
.area-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.area-card {
  background: var(--white); border: 1px solid var(--earth-200); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm);
}
.area-card h3 { color: var(--green-800); margin-bottom: .3rem; }
.area-card p { margin: 0; color: var(--muted); font-size: .95rem; }

@media (min-width: 560px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .area-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Why choose ---------- */
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.why-item {
  position: relative; padding: 1.3rem 1.4rem 1.3rem 3.2rem;
  background: var(--green-050); border-radius: var(--radius); border: 1px solid var(--green-100);
}
.why-item::before {
  content: "✓"; position: absolute; left: 1.1rem; top: 1.15rem;
  width: 1.5rem; height: 1.5rem; display: grid; place-items: center;
  background: var(--green-600); color: #fff; border-radius: 50%; font-size: .85rem; font-weight: 700;
}
.why-item h3 { margin-bottom: .25rem; font-size: 1.05rem; }
.why-item p { margin: 0; color: var(--muted); font-size: .95rem; }

@media (min-width: 620px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Gallery ---------- */
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
.gallery-item {
  position: relative; padding: 0; border: 1px solid var(--earth-200); border-radius: var(--radius);
  overflow: hidden; background: var(--sand); cursor: zoom-in; width: 100%; display: block;
}
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .55rem .7rem;
  background: linear-gradient(180deg, transparent, rgba(11, 42, 25, .85));
  color: #fff; font-size: .82rem; font-weight: 600; text-align: left;
}
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Testimonials ---------- */
.quote-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.quote-card {
  background: var(--white); border: 1px solid var(--green-100); border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.2rem; box-shadow: var(--shadow-sm); position: relative;
}
.quote-mark { font-family: var(--font-head); font-size: 3rem; line-height: .6; color: var(--green-200, #bfe3c9); margin: 0 0 .3rem; }
.quote-card blockquote { margin: 0 0 .8rem; }
.quote-card blockquote p { margin: 0; color: var(--ink); font-size: .98rem; }
.quote-author { margin: 0; font-weight: 600; color: var(--green-700); font-size: .9rem; }
@media (min-width: 820px) { .quote-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--earth-200); }
.faq-item { border-bottom: 1px solid var(--earth-200); }
.faq-q { margin: 0; font-size: 1rem; }
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: 0; padding: 1.15rem .2rem; cursor: pointer; text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--green-950);
}
.faq-trigger:hover { color: var(--green-700); }
.faq-icon { position: relative; flex: none; width: 18px; height: 18px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--green-700); border-radius: 2px; transition: transform .25s ease;
}
.faq-icon::before { left: 50%; top: 0; width: 2px; height: 18px; transform: translateX(-50%); }
.faq-icon::after { top: 50%; left: 0; height: 2px; width: 18px; transform: translateY(-50%); }
.faq-trigger[aria-expanded="true"] .faq-icon::before { transform: translateX(-50%) rotate(90deg); }
.faq-panel { padding: 0 2.2rem 1.2rem .2rem; color: var(--muted); }
.faq-panel p { margin: 0; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.contact-info h3 { margin-bottom: .8rem; }
.contact-list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .85rem; }
.contact-list li { display: grid; gap: .1rem; }
.contact-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--green-600); }
.contact-list a { font-weight: 600; font-size: 1.05rem; }
.contact-area-note { background: var(--green-050); border: 1px solid var(--green-100); border-radius: var(--radius-sm); padding: .9rem 1.1rem; color: var(--green-900); font-size: .95rem; }

.contact-form-wrap { background: var(--white); border: 1px solid var(--green-100); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-md); }
.quote-form { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--green-950); }
.req { color: #c0392b; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--earth-200); border-radius: var(--radius-sm); padding: .7rem .8rem; width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(58, 165, 100, .18);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #c0392b; }
.field-error { margin: 0; color: #c0392b; font-size: .85rem; }
.field-full { grid-column: 1 / -1; }
.form-status {
  margin: 0; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600;
  background: var(--green-100); color: var(--green-900); border: 1px solid var(--green-600);
}
.form-status.is-error { background: #fdecea; color: #a5281b; border-color: #c0392b; }
.form-note { margin: 0; font-size: .9rem; color: var(--muted); }

@media (min-width: 640px) { .quote-form { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .contact-layout { grid-template-columns: .8fr 1.2fr; gap: 2.5rem; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--green-950); color: #d7e7db; padding: 3rem 0 1.5rem; margin-top: 0; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a { color: #bcd6c5; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.brand-footer { color: #fff; margin-bottom: .8rem; }
.brand-footer .brand-word { color: #fff; }
.footer-blurb { color: #a9c4b4; font-size: .93rem; max-width: 30rem; }
.footer-contact a { font-weight: 600; }
.social { margin-top: 1rem; }
.footer-bottom {
  margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .85rem; color: #9fb9a9;
}
.footer-bottom p { margin: 0; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(6, 20, 12, .92);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem;
  padding: 4.5rem 1rem 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; display: grid; gap: .75rem; justify-items: center; }
.lightbox-figure img { max-width: min(92vw, 1000px); max-height: 76vh; width: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-figure figcaption { color: #d7e7db; font-size: .95rem; text-align: center; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.1rem; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: #fff;
  font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.lightbox-nav {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .24); }

body.no-scroll { overflow: hidden; }

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