/* Natures Carpet Cleaning — theme: deep forest green + leaf accents,
   warm cream background, gold trust accent. System fonts only —
   zero web-font network requests, kept for fast LCP. */

:root {
  --forest: #1f4235;
  --forest-dark: #16302a;
  --leaf: #4c7a55;
  --leaf-light: #8fb996;
  --cream: #faf6ec;
  --gold: #b8863b;
  --charcoal: #262622;
  --white: #ffffff;
  --shadow: 0 4px 16px rgba(22, 48, 42, 0.12);
  --radius: 10px;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); }
h1, h2, h3 { font-family: var(--font-heading); color: var(--forest); line-height: 1.2; margin-top: 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--forest); color: var(--white);
  padding: .75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Top utility bar */
.topbar {
  background: var(--forest-dark);
  color: var(--leaf-light);
  font-size: 0.85rem;
}
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: .4rem; padding-bottom: .4rem; }
.topbar a { color: var(--white); text-decoration: none; }
.icon-inline { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* Header / nav */
.site-header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 50; }
.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: .6rem; text-decoration: none; }
/* Logo lockup (partials/logo.njk): SVG wordmark, slogan underneath as live text */
.brand { flex-direction: column; align-items: flex-start; gap: .3rem; flex-shrink: 1; min-width: 0; }
.brand-logo { display: block; width: 260px; max-width: 100%; height: auto; }
.brand-slogan { font-family: var(--font-heading); font-style: italic; font-size: .8rem; color: var(--leaf); line-height: 1.2; }

.main-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--charcoal); font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--leaf); }

.header-cta { display: flex; align-items: center; gap: .75rem; }
.header-cta .btn { white-space: nowrap; }
.btn {
  display: inline-block; background: var(--leaf); color: var(--white); text-decoration: none;
  padding: .7rem 1.3rem; border-radius: var(--radius); font-weight: 700; border: none; cursor: pointer;
  font-size: .95rem;
}
.btn:hover { background: var(--forest); }
.btn-gold { background: var(--gold); }
.btn-gold:hover { background: #96702f; }

.nav-toggle { display: none; }

/* Mobile nav */
@media (max-width: 860px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 1rem 1.25rem; gap: .9rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border: 1px solid var(--leaf-light); border-radius: 8px;
    background: var(--white); cursor: pointer; flex-shrink: 0;
  }
  /* The header Call button is redundant on mobile — the topbar link and the
     sticky call bar already cover it; dropping it here also avoids the header
     overflow (text wrapping to 3 lines, button clipped offscreen). */
  .header-cta { display: none; }
  .site-header .container { flex-wrap: nowrap; }
  .brand-logo { width: 220px; }
  .brand-slogan { font-size: .66rem; white-space: nowrap; }
}
/* Between the nav breakpoint and full container width the desktop nav + CTA
   leave little room: shrink the logo and drop the header slogan (the footer
   still carries it). */
@media (min-width: 861px) and (max-width: 1080px) {
  .brand-logo { width: 200px; }
  .brand-slogan { display: none; }
}
@media (max-width: 360px) {
  .brand-slogan { white-space: normal; }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: var(--white);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.75rem); margin-bottom: .75rem; }
.hero p.lede { font-size: 1.15rem; color: var(--leaf-light); margin-bottom: 1.5rem; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero .cta-microline { margin: .85rem 0 0; font-size: .85rem; color: var(--leaf-light); opacity: .85; }
.hero .leaf-bg { position: absolute; right: -60px; top: -40px; width: 320px; height: 320px; opacity: .12; }

/* Trust badges */
.trust-strip { background: var(--white); border-bottom: 1px solid #e8e2d2; }
.trust-strip .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem; padding: 1.5rem 1.25rem; }
.trust-item { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .92rem; color: var(--forest); flex: 1 1 200px; }
.trust-item svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--gold); }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: #f1ece0; }
.section-head { max-width: 640px; margin: 0 auto 2rem; text-align: center; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.section-head p { color: #55554d; }

.leaf-divider { display: block; margin: 0 auto 1rem; width: 40px; height: 40px; color: var(--leaf); }

/* Service grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow); border-top: 4px solid var(--leaf);
}
.card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.card svg { width: 32px; height: 32px; color: var(--leaf); margin-bottom: .75rem; }
.card p { color: #55554d; font-size: .95rem; margin-bottom: 0; }

/* Fixed-column grids that divide evenly at every width (6 and 8 cards) */
@media (min-width: 600px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 599px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.grid-contact { grid-template-columns: 1fr; }
@media (min-width: 861px) { .grid-contact { grid-template-columns: 1fr 1fr; } }
.btn-lg { font-size: 1.2rem; padding: .9rem 1.6rem; }
.contact-call .btn-lg { margin: .25rem 0 1.5rem; }
.contact-call h3 { margin-bottom: .4rem; }
.card .icon-inline { width: 14px; height: 14px; margin-bottom: 0; color: inherit; }

.section .specialty-line { text-align: center; color: var(--forest); font-size: 1.05rem; margin: 1rem 0 2rem; }
.section-head .specialty-line { margin-bottom: 0; }

/* Satisfaction guarantee (About) */
#guarantee { scroll-margin-top: 6rem; }
.guarantee { max-width: 760px; }
.guarantee ul { padding-left: 1.25rem; margin: 0 0 1.5rem; }
.guarantee li { margin-bottom: .5rem; }
.guarantee-terms { border-top: 1px solid #d9d1bd; padding-top: 1rem; font-size: .88rem; color: #55554d; }
.guarantee-terms h3 { font-size: 1rem; margin-bottom: .4rem; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: .75rem 1.5rem; }
.checklist li { display: flex; align-items: flex-start; gap: .55rem; font-weight: 500; }
.checklist svg { width: 20px; height: 20px; color: var(--leaf); flex-shrink: 0; margin-top: .15rem; }

/* CTA banner */
.cta-banner { background: var(--forest); color: var(--white); text-align: center; padding: 3rem 0; }
.cta-banner h2 { color: var(--white); }
.cta-banner .phone-big { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--gold); text-decoration: none; }

/* Footer */
.site-footer { background: var(--forest-dark); color: #cfe0d3; padding: 3rem 0 1.5rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-grid h4 { color: var(--white); font-family: var(--font-heading); margin-bottom: .75rem; }
.footer-logo { display: block; width: 230px; max-width: 100%; height: auto; }
.footer-slogan { font-family: var(--font-heading); font-style: italic; color: var(--white); margin-top: 0; }
.site-footer a { color: #cfe0d3; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.25rem; text-align: center; color: #93a893; font-size: .82rem; }

/* Sticky mobile call bar */
.mobile-call-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--gold); display: none; text-align: center;
  padding: .8rem; font-weight: 700; text-decoration: none; color: var(--forest-dark);
  box-shadow: 0 -4px 12px rgba(0,0,0,.15);
}
@media (max-width: 640px) {
  .mobile-call-bar { display: block; }
  body { padding-bottom: 3.2rem; }
}

/* Page hero (non-home pages) */
.page-hero { background: var(--forest); color: var(--white); padding: 2.5rem 0; }
.page-hero h1 { color: var(--white); margin-bottom: .4rem; }
.page-hero p { color: var(--leaf-light); margin: 0; }
