/* ============================================================
   AcreShine — styles
   Brand: forest green #1F5A38, gold #E0A93B
   ============================================================ */

:root {
  --green-900: #143d26;
  --green-800: #1a4a2e;
  --green-700: #1f5a38;
  --green-600: #2a7048;
  --green-100: #e8f2ec;
  --green-50: #f3f8f5;
  --gold: #e0a93b;
  --gold-dark: #c8922a;
  --gold-soft: #f7e8c4;
  --ink: #1a1f1c;
  --muted: #5a655e;
  --line: #dce5df;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(20, 61, 38, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 61, 38, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.35rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.9rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(31, 90, 56, 0.25);
}
.btn-primary:hover { background: var(--green-900); color: var(--white); }
.btn-accent {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(224, 169, 59, 0.35);
}
.btn-accent:hover { background: var(--gold-dark); color: var(--ink); }
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--green-700);
  flex-shrink: 0;
}
.brand:hover { color: var(--green-900); }
.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.brand-wordmark {
  height: 36px;
  width: auto;
  object-fit: contain;
  /* Hide the embedded wordmark text duplication — we show logo-horizontal which includes text,
     so hide brand-text when wordmark is used. Prefer mark + text for clarity on dark/light. */
  display: none;
}
.brand-text {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}
.site-nav a:not(.btn):hover { color: var(--green-700); }
.site-nav .nav-cta { margin-left: 0.35rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--green-700);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 55%, #2f7a4e 100%);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 40, 26, 0.88) 0%, rgba(15, 40, 26, 0.62) 48%, rgba(15, 40, 26, 0.35) 100%),
    linear-gradient(to top, rgba(15, 40, 26, 0.55), transparent 45%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 4rem;
  max-width: 720px;
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2));
  margin-right: auto;
  width: min(100% - 2.5rem, 720px);
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.85rem;
}
.eyebrow-on-dark { color: var(--gold-soft); }
.hero h1 { color: var(--white); margin-bottom: 0.75rem; text-wrap: balance; }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.9);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
}
.hero-meta a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(224, 169, 59, 0.6);
}
.hero-meta a:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}
.section-alt {
  background: var(--green-50);
}
.section-head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}
.section-head .eyebrow { color: var(--green-600); }
.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}
.sample-note {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 0.7rem;
  background: var(--gold-soft);
  color: #7a5a12;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #c5d6cb;
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--green-100), #d5ebe0);
  color: var(--green-700);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 0.4rem; }
.service-card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}

/* ---------- Seasons ---------- */
.seasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}
.season-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.season-card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--green-100);
}
.season-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.season-card:hover img { transform: scale(1.05); }
.season-body { padding: 1.2rem 1.2rem 1.4rem; flex: 1; }
.season-body h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--green-700);
}
.season-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.season-body li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.93rem;
}
.season-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-600);
}

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}
.why-card {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white), var(--green-50));
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-700), var(--gold));
}
.why-num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  margin-bottom: 0.6rem;
}
.why-card h3 { margin-bottom: 0.45rem; }
.why-card p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.testimonial-card blockquote {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink);
  flex: 1;
}
.testimonial-card blockquote::before {
  content: "“";
  color: var(--gold);
  font-size: 2.4rem;
  line-height: 0;
  display: block;
  margin-bottom: 0.75rem;
  font-family: Georgia, serif;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.testimonial-author strong { font-size: 0.95rem; }
.testimonial-author span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Service area ---------- */
.area-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
}
.area-highlight {
  background: var(--green-100);
  border-left: 4px solid var(--gold);
  padding: 0.9rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 600;
  color: var(--green-900);
}
.contact-list { margin-top: 1.25rem; }
.contact-list li {
  margin-bottom: 0.55rem;
  color: var(--muted);
}
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.area-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  min-height: 360px;
  background: var(--green-100);
}
.area-map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* ---------- Quote / CTA ---------- */
.section-cta {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(224, 169, 59, 0.18), transparent 50%),
    linear-gradient(145deg, var(--green-900), var(--green-700) 60%, #246644);
  color: var(--white);
  padding: 5rem 0;
}
.quote-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}
.quote-copy h2 { color: var(--white); }
.quote-copy p { color: rgba(255,255,255,0.88); }
.quote-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.quote-perks li {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.quote-form {
  background: var(--white);
  color: var(--ink);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.form-row abbr {
  color: var(--gold-dark);
  text-decoration: none;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(31, 90, 56, 0.15);
}
.form-row textarea { resize: vertical; min-height: 100px; }
.form-status {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}
.form-status.is-success {
  background: var(--green-100);
  color: var(--green-900);
}
.form-status.is-error {
  background: #fde8e8;
  color: #8a1f1f;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand img {
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.footer-brand p { font-size: 0.92rem; }
.site-footer h3 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-links a,
.footer-contact a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--gold); }
.footer-links li,
.footer-contact li,
.footer-hours li { margin-bottom: 0.45rem; font-size: 0.92rem; }
.footer-hours .day { color: var(--white); font-weight: 600; margin-right: 0.35rem; }
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}
.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
.footer-note { color: rgba(255,255,255,0.5); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid,
  .seasons-grid,
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .area-layout,
  .quote-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav .nav-cta {
    margin: 0.75rem 0 0;
    text-align: center;
    border-bottom: 0;
  }
  .hero { min-height: 78vh; align-items: center; }
  .hero-content { padding: 4.5rem 0 3rem; margin-left: auto; }
  .services-grid,
  .seasons-grid,
  .why-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .section-cta { padding: 3.5rem 0; }
}

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

/* Two-tone brand wordmark (parts from site-config.js brandPart1/brandPart2) */
.brand-acre { color: var(--green-700); }
.brand-shine { color: #c8901f; } /* deeper gold for contrast on light backgrounds */
.site-footer .brand-acre { color: var(--white); }
.site-footer .brand-shine { color: var(--gold); } /* bright gold on dark */
