/* ═══════════════════════════════════════════════════════
   Dewitt Fence – Main Stylesheet
   ═══════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --green:       #1a5c2a;   /* primary brand green */
  --green-dark:  #123d1c;
  --green-light: #e8f5ec;
  --gold:        #c8922a;
  --gold-light:  #fdf3e0;
  --text:        #1f2937;
  --muted:       #6b7280;
  --border:      #e5e7eb;
  --bg:          #ffffff;
  --bg-light:    #f9fafb;
  --radius:      8px;
  --shadow:      0 2px 12px rgba(0,0,0,0.09);
  --max-w:       1160px;
  --font:        'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--green); }
a:hover { color: var(--green-dark); }

/* ── Skip Link ──────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--green);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ── Container ──────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--green);
  color: #fff;
  border: 2px solid var(--green);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: #fff; }

.btn-white {
  background: #fff;
  color: var(--green-dark);
  border: 2px solid #fff;
}
.btn-white:hover { background: var(--green-light); color: var(--green-dark); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  background: var(--green-dark);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  text-decoration: none;
}
.logo-text {
  font-size: 1.45rem;
  color: #fff;
  letter-spacing: -0.5px;
}
.logo-text strong {
  color: var(--gold);
  font-weight: 900;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}
.main-nav a {
  color: #d1fae5;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.main-nav .nav-cta {
  background: var(--gold);
  color: #fff;
  margin-left: 0.5rem;
  padding: 0.45rem 1rem;
}
.main-nav .nav-cta:hover { background: #a87520; color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 1.25rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.header-topbar {
  background: var(--green);
  max-width: 100%;
  padding: 0.35rem 1.25rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #d1fae5;
}
.header-topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.header-topbar a:hover { text-decoration: underline; }

/* Mobile nav */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--green-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    gap: 0.25rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  }
  .main-nav.nav-open { display: flex; }
  .main-nav a { width: 100%; padding: 0.6rem 0.75rem; }
  .main-nav .nav-cta { margin-left: 0; }
}

/* ── Section Padding ────────────────────────────────────── */
.section-pad { padding: 4rem 0; }
.bg-light { background: var(--bg-light); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, #2d7a41 100%);
  color: #fff;
  padding: 5rem 1.25rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  text-align: center;
}
.hero-content { max-width: 680px; }
.hero-eyebrow {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #86efac;
  margin-bottom: 0.75rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #fff;
}
.hero-sub {
  font-size: 1.1rem;
  color: #d1fae5;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.hero-trust {
  font-size: 0.88rem;
  color: #a7f3d0;
}
.hero-badge {
  flex-shrink: 0;
}
.badge-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  background: rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.badge-num  { font-size: 2.2rem; font-weight: 900; color: var(--gold); line-height: 1; }
.badge-label { font-size: 0.72rem; color: #d1fae5; font-weight: 600; text-align: center; padding: 0 0.4rem; }

/* ── Trust Bar ──────────────────────────────────────────── */
.trust-bar { background: var(--gold); padding: 0.85rem 1.25rem; }
.trust-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-item { font-size: 0.88rem; font-weight: 700; color: #fff; white-space: nowrap; }

/* ── Section Headings ───────────────────────────────────── */
.container h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 0.6rem;
}
.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 700px;
  margin-bottom: 2.5rem;
}

/* ── Card Grid ──────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.service-card-link { text-decoration: none; color: inherit; display: block; }
.service-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--green-dark); }
.service-card h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--green-dark); }
.service-card p  { font-size: 0.93rem; color: var(--muted); margin-bottom: 0.75rem; }
.card-link { font-size: 0.9rem; font-weight: 700; color: var(--green); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ── Why Us ─────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.why-list li { padding-left: 1.5rem; position: relative; font-size: 0.97rem; }
.why-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-num   { display: block; font-size: 1.85rem; font-weight: 900; color: var(--green); }
.stat-label { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-top: 0.25rem; }

/* ── Service Areas ──────────────────────────────────────── */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.area-chip {
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid #a7d8b3;
  border-radius: 9999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.area-chip:hover { background: var(--green); color: #fff; border-color: var(--green); }
.areas-note { font-size: 0.9rem; color: var(--muted); }

/* ── Testimonials ───────────────────────────────────────── */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  font-style: normal;
}
.review-card p { font-size: 0.95rem; color: var(--text); margin-bottom: 1rem; font-style: italic; }
.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
}
.review-loc { color: var(--muted); }
.reviews-cta { font-size: 0.9rem; color: var(--muted); }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-container { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  background: var(--bg-light);
  color: var(--green-dark);
  position: relative;
  padding-right: 2.5rem;
}
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--green);
  font-weight: 400;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 1rem 1.25rem; font-size: 0.97rem; color: var(--text); background: var(--bg); }

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  padding: 4rem 1.25rem;
  text-align: center;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 0.75rem; }
.cta-banner p  { color: #d1fae5; margin-bottom: 1.75rem; font-size: 1.05rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-actions   { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.cta-address   { font-size: 0.88rem; color: #a7f3d0; margin-bottom: 0; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--green-dark);
  color: #d1fae5;
  padding: 3.5rem 1.25rem 0;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-col h3 { font-size: 0.95rem; font-weight: 700; color: var(--gold); margin-bottom: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col address { font-style: normal; font-size: 0.88rem; line-height: 1.7; }
.footer-col p   { font-size: 0.88rem; margin-bottom: 0.35rem; }
.footer-col a   { color: #d1fae5; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col ul  { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col ul li a { font-size: 0.88rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 0;
  font-size: 0.78rem;
  color: #6ee7b7;
  text-align: center;
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1.25rem;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin: 0 auto;
  font-size: 0.83rem;
}
.breadcrumb li + li::before { content: "›"; color: var(--muted); margin-right: 0.5rem; }
.breadcrumb a { color: var(--green); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--muted); }

/* ── Page / Interior ────────────────────────────────────── */
.page-container { padding-top: 2.5rem; padding-bottom: 3rem; max-width: 820px; }
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; color: var(--green-dark); line-height: 1.2; margin-bottom: 0.5rem; }
.page-desc { font-size: 1.1rem; color: var(--muted); }
.page-body h2 { font-size: 1.45rem; font-weight: 800; color: var(--green-dark); margin-top: 2rem; margin-bottom: 0.6rem; }
.page-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--green); margin-top: 1.5rem; margin-bottom: 0.4rem; }
.page-body p  { margin-bottom: 1rem; font-size: 0.97rem; }
.page-body ul, .page-body ol { margin-left: 1.5rem; margin-bottom: 1rem; }
.page-body li { margin-bottom: 0.35rem; font-size: 0.97rem; }
.page-body strong { color: var(--green-dark); }
.page-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.page-body th, .page-body td { border: 1px solid var(--border); padding: 0.6rem 0.9rem; font-size: 0.9rem; }
.page-body th { background: var(--green-light); font-weight: 700; color: var(--green-dark); }
.page-body hr { border: none; border-top: 2px solid var(--border); margin: 2rem 0; }

.page-address-strip {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--green-light);
  border: 1px solid #a7d8b3;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--green-dark);
}
.page-address-strip a { color: var(--green); font-weight: 600; }

/* Section page list */
.section-page-list { margin-top: 2rem; }

/* ── Prose (section index body) ─────────────────────────── */
.prose { }

/* ── Utility ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .trust-bar-inner { gap: 0.75rem; }
  .why-stats { grid-template-columns: 1fr 1fr; }
}
