/* ===========================================================================
   Frisco Gardeners — Professional Gardener Lead-Gen Site
   Single stylesheet. Mobile-first. System font stack for speed (no FOUT).
   Color: Deep forest green primary, warm cream secondary, gold accent.
=========================================================================== */

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #1c2a1c;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2d5016; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: #1c2a1c; margin-top: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: .75rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }
p  { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: #2d5016; color: #fff; padding: .75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { top: 0; }

/* ---------- Top bar ---------- */
.topbar {
  background: #2d5016; color: #f5f1e6;
  font-size: .9rem; padding: .5rem 0;
}
.topbar .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.topbar a { color: #f5f1e6; }

/* ---------- Header ---------- */
.site-header {
  background: #fff; border-bottom: 1px solid #e8e5dc;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .9rem; padding-bottom: .9rem; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg,#2d5016 0%,#4a7c2a 100%);
  display: grid; place-items: center; color: #fff; font-weight: 800;
  box-shadow: 0 2px 6px rgba(45,80,22,.3);
}
.brand-name { font-weight: 800; font-size: 1.2rem; color: #1c2a1c; letter-spacing: -.01em; }
.brand-tag { font-size: .75rem; color: #6a7a65; display: block; line-height: 1; margin-top: 2px; }

/* ---------- Nav ---------- */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: #1c2a1c; margin: 5px 0; border-radius: 2px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.primary-nav a { color: #1c2a1c; font-weight: 600; font-size: .98rem; }
.primary-nav a:hover, .primary-nav a.active { color: #2d5016; text-decoration: none; border-bottom: 2px solid #d4a017; }
.header-cta { display: flex; align-items: center; gap: .75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.5rem; border-radius: 8px; font-weight: 700;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 0; cursor: pointer; font-size: 1rem; line-height: 1;
}
.btn-primary { background: #d4a017; color: #1c2a1c; box-shadow: 0 4px 12px rgba(212,160,23,.35); }
.btn-primary:hover, .btn-primary:focus { background: #e0b030; transform: translateY(-1px); text-decoration: none; }
.btn-secondary { background: #2d5016; color: #fff; }
.btn-secondary:hover, .btn-secondary:focus { background: #1f3a0f; text-decoration: none; }
.btn-outline { background: transparent; color: #2d5016; border: 2px solid #2d5016; padding: .8rem 1.4rem; }
.btn-outline:hover { background: #2d5016; color: #fff; text-decoration: none; }
.btn-call { font-size: 1.05rem; }
.btn-call::before { content: "📞"; font-size: 1.1rem; }
.btn-lg { padding: 1.1rem 1.8rem; font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 4rem 0 3.5rem; overflow: hidden;
  background: linear-gradient(135deg, #2d5016 0%, #1f3a0f 100%); /* fallback if photos fail */
  color: #f5f1e6;
}
.hero > .container { position: relative; z-index: 2; }

/* Auto-rotating photo carousel behind the hero */
.hero-carousel { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-carousel::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(45,80,22,.66) 0%, rgba(31,58,15,.58) 100%);
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  animation: heroSlideFade 24s infinite;
  will-change: opacity;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }

@keyframes heroSlideFade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  25%  { opacity: 1; }
  29%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 1; }
  .hero-slide:not(:first-child) { display: none; }
}

.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero .lead { font-size: 1.2rem; color: #e8e5dc; margin-bottom: 1.75rem; max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .92rem; color: #e8e5dc; }
.hero-trust span::before { content: "✓ "; color: #d4a017; font-weight: 700; }

/* ---------- Inline quote form ---------- */
.quote-card {
  background: #fff; color: #1c2a1c; padding: 1.75rem;
  border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.quote-card h2 { font-size: 1.4rem; margin-bottom: .25rem; }
.quote-card p { font-size: .92rem; color: #6a7a65; margin-bottom: 1.1rem; }
.field { margin-bottom: .85rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; color: #1c2a1c; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid #cfd2c5; border-radius: 6px;
  font-size: 1rem; font-family: inherit; background: #fafaf6;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #2d5016; border-color: #2d5016; }
.form-note { font-size: .78rem; color: #6a7a65; margin-top: .5rem; }

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head .eyebrow { color: #2d5016; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; margin-bottom: .5rem; }
.section-head p { color: #4a5947; font-size: 1.08rem; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: #f5f1e6; padding: 1.5rem 0; border-top: 1px solid #e8e5dc; border-bottom: 1px solid #e8e5dc;
}
.trust-strip .container { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 1.5rem; text-align: center; }
.trust-item { font-size: .95rem; color: #1c2a1c; font-weight: 600; }
.trust-item strong { display: block; font-size: 1.6rem; color: #2d5016; font-weight: 800; }

/* ---------- Services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.service-card {
  background: #fff; border: 1px solid #e8e5dc; border-radius: 12px; padding: 1.75rem 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(45,80,22,.12); border-color: #2d5016; }
.service-icon { width: 56px; height: 56px; border-radius: 12px; background: #f0ead2; color: #2d5016;
  display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.2rem; }
.service-card p { color: #4a5947; font-size: .96rem; flex-grow: 1; }
.service-card .more { color: #2d5016; font-weight: 700; margin-top: .5rem; font-size: .95rem; }
.service-card .more::after { content: " →"; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.why-item h3 { color: #2d5016; }
.why-item .num { display: inline-block; background: #d4a017; color: #1c2a1c; font-weight: 800;
  width: 38px; height: 38px; border-radius: 50%; line-height: 38px; text-align: center; margin-bottom: .75rem; }

/* ---------- Areas ---------- */
.areas { background: #f5f1e6; }
.areas-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; max-width: 800px; margin: 1.5rem auto 0; }
.areas-list li { background: #fff; border: 1px solid #e8e5dc; border-radius: 8px; padding: .75rem 1rem; list-style: none; text-align: center; font-weight: 600; color: #1c2a1c; }
.areas-list { padding-left: 0; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.testimonial {
  background: #fff; padding: 1.5rem; border-radius: 12px; border: 1px solid #e8e5dc;
  position: relative;
}
.testimonial::before { content: "“"; position: absolute; top: -10px; left: 16px; font-size: 4rem; color: #d4a017; font-family: Georgia, serif; line-height: 1; }
.testimonial blockquote { margin: 0 0 1rem; font-style: italic; color: #2a3a28; }
.testimonial cite { font-style: normal; font-weight: 700; color: #1c2a1c; font-size: .95rem; }
.testimonial .stars { color: #d4a017; margin-bottom: .5rem; }

/* ---------- FAQ ---------- */
.faq details {
  background: #fff; border: 1px solid #e8e5dc; border-radius: 10px;
  margin-bottom: .75rem; padding: 1rem 1.25rem; transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: 0 4px 12px rgba(45,80,22,.08); }
.faq summary {
  font-weight: 700; font-size: 1.05rem; cursor: pointer; color: #1c2a1c;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: #2d5016; font-size: 1.5rem; font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .75rem 0 0; color: #4a5947; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #2d5016 0%, #1f3a0f 100%);
  color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #e8e5dc; max-width: 560px; margin: 0 auto 1.5rem; }
.cta-band .btn-primary { font-size: 1.15rem; padding: 1.1rem 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: #1c2a1c; color: #d8d2c0; padding: 3rem 0 1.5rem; font-size: .94rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.site-footer a { color: #d8d2c0; }
.site-footer a:hover { color: #d4a017; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid #2e3e2e; padding-top: 1.25rem; font-size: .85rem; color: #95a08e; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: #f5f1e6; padding: .85rem 0; font-size: .9rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; color: #6a7a65; }
.breadcrumbs li + li::before { content: "›"; margin-right: .35rem; color: #95a08e; }
.breadcrumbs a { color: #2d5016; font-weight: 600; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, #2d5016 0%, #1f3a0f 100%);
  color: #fff; padding: 3rem 0;
}
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero p { color: #e8e5dc; max-width: 64ch; font-size: 1.1rem; margin-bottom: 1.25rem; }

/* ---------- Content (article) ---------- */
.content { padding: 3.5rem 0; }
.content .container { max-width: 880px; }
.content h2 { margin-top: 2rem; padding-bottom: .35rem; border-bottom: 2px solid #f0ead2; }
.content h3 { margin-top: 1.75rem; color: #2d5016; }
.content ul, .content ol { margin: 0 0 1.25rem 1.25rem; }
.content li { margin-bottom: .4rem; }
.content .callout {
  background: #f0ead2; border-left: 4px solid #d4a017; padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0;
}
.content .callout strong { color: #2d5016; }

/* ---------- Article images ---------- */
.post-image { margin: 1.75rem 0 2rem; }
.post-image img {
  width: 100%; height: auto; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(45,80,22,.15);
  background: #f0ead2; /* visible fallback if image fails */
}
.post-image figcaption {
  font-size: .9rem; color: #6a7a65; margin-top: .5rem; text-align: center; font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e8e5dc; padding: 1rem; }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: .75rem; }
  .header-cta .btn-text { display: none; }
  .header-cta .btn-call::after { content: "Call"; margin-left: .25rem; }
  .topbar { font-size: .82rem; }
  .topbar .topbar-hours { display: none; }
  section { padding: 3rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  body { font-size: 16px; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .hero-ctas, .cta-band, .site-footer { display: none; }
}

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