:root {
  --color-primary: #2d6a4f;
  --color-primary-dark: #1b4332;
  --color-accent: #e76f51;
  --color-accent-dark: #d45f40;
  --color-white: #ffffff;
  --color-off-white: #f8f9fa;
  --color-light-grey: #e9ecef;
  --color-mid-grey: #6c757d;
  --color-dark: #212529;
  --color-text: #343a40;
  --color-success: #40916c;

  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-pill: 50px;

  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lift: 0 8px 24px rgba(0,0,0,0.12);

  --maxw: 1200px;
  --t: all 0.2s ease;

  --font-head: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img, svg { max-width: 100%; display: block; }

a { color: var(--color-primary); text-decoration: none; transition: var(--t); }
a:hover { color: var(--color-primary-dark); }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--color-dark);
  margin: 0 0 var(--s-2);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 var(--s-2); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-3);
}

.section {
  padding: var(--s-6) 0;
}
.section-off { background: var(--color-off-white); }
.section-green { background: var(--color-primary); color: var(--color-white); }
.section-green p { color: var(--color-white); }

.section-title {
  text-align: center;
  margin-bottom: var(--s-2);
}
.section-title-white { color: var(--color-white); }
.section-sub {
  text-align: center;
  color: var(--color-mid-grey);
  max-width: 720px;
  margin: 0 auto var(--s-5);
  font-size: 1.05rem;
}
.section-green .section-sub { color: rgba(255,255,255,0.9); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--t);
  text-align: center;
  text-decoration: none;
}
.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 10px 22px;
}
.btn-accent:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
}
.btn-pill { border-radius: var(--radius-pill); }
.btn-large {
  font-weight: 700;
  font-size: 1.2rem;
  padding: 18px 36px;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--t);
}
.navbar.scrolled {
  background: rgba(255,255,255,1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}
.brand {
  font-family: var(--font-head);
  color: var(--color-primary);
  font-size: 1.1rem;
}
.nav-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--s-3);
  align-items: center;
}
.nav-menu a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 6px 2px;
  position: relative;
  transition: var(--t);
}
.nav-menu a:hover { color: var(--color-primary); }
.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-menu a:hover::after { transform: scaleX(1); }
.nav-cta-short { display: none; }

/* ---- HERO ---- */
.hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding-top: calc(64px + var(--s-5));
  padding-bottom: var(--s-6);
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: center;
}
.hero h1 { color: var(--color-white); margin-bottom: var(--s-3); }
.hero-sub {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: var(--s-4);
  max-width: 600px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  margin-bottom: var(--s-3);
}
.trust-pill {
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
}
.hero-cta {
  animation: pulse 2s ease-in-out infinite;
  margin-bottom: var(--s-2);
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.hero-note {
  font-size: 0.875rem;
  color: var(--color-white);
  opacity: 0.85;
  margin: 0;
}
.hero-illustration {
  display: none;
}
.hero-illustration svg { width: 100%; max-width: 420px; margin: 0 auto; }

/* ---- SERVICES ---- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--s-3);
  text-align: center;
  transition: var(--t);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--s-2);
  color: var(--color-primary);
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { margin-bottom: var(--s-1); }
.service-card p {
  color: var(--color-mid-grey);
  font-size: 0.95rem;
  margin-bottom: var(--s-2);
}
.service-link {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.95rem;
}
.service-link:hover { color: var(--color-accent-dark); }

.cross-link {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-mid-grey);
  margin: var(--s-3) 0;
}
.cross-link a { color: var(--color-primary); font-weight: 600; text-decoration: underline; }

.green-banner {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--s-3);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  text-align: center;
  margin-top: var(--s-3);
}
.green-banner p { margin: 0; font-size: 1.1rem; }

/* ---- CALCULATOR ---- */
.calc-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--s-4);
  max-width: 700px;
  margin: 0 auto;
}
.calc-row { margin-bottom: var(--s-3); }
.calc-row label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--s-1);
  color: var(--color-dark);
}
.calc-row select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-light-grey);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-text);
  transition: var(--t);
}
.calc-row select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-color: var(--color-primary);
}
.calc-output {
  border-top: 1px solid var(--color-light-grey);
  padding-top: var(--s-3);
  text-align: center;
}
.calc-price {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: var(--s-1);
}
.calc-small {
  color: var(--color-mid-grey);
  font-size: 0.875rem;
  margin-bottom: var(--s-3);
}
.calc-tip {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-mid-grey);
  max-width: 700px;
  margin: var(--s-3) auto 0;
}

/* ---- AREAS ---- */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-1);
  margin-bottom: var(--s-4);
}
.area-pill {
  background: var(--color-white);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
}
.areas-seo {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text);
  font-size: 1rem;
}

/* ---- WHY LOCAL ---- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
.why-card {
  background: var(--color-white);
  padding: var(--s-3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.why-icon {
  font-size: 2rem;
  margin-bottom: var(--s-2);
}
.why-card h3 { margin-bottom: var(--s-1); }
.why-card p { color: var(--color-mid-grey); margin: 0; font-size: 0.95rem; }

/* ---- HOW IT WORKS ---- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
  position: relative;
}
.step {
  text-align: center;
  position: relative;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-head);
  font-size: 1.8rem;
  margin: 0 auto var(--s-2);
}
.step h3 { color: var(--color-white); }
.step p { color: rgba(255,255,255,0.9); margin: 0; }
.steps-cta { text-align: center; }

/* ---- FAQ ---- */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--color-light-grey);
}
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: var(--s-3) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-dark);
}
.faq-q:hover { color: var(--color-primary); }
.faq-q:focus { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.faq-chev {
  font-size: 1.2rem;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}
.faq-item.open .faq-chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p {
  padding: 0 0 var(--s-3);
  margin: 0;
  color: var(--color-text);
}
.faq-item.open .faq-a {
  max-height: 600px;
}

/* ---- BLOG ---- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  max-width: 1100px;
  margin: 0 auto;
}
.blog-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: var(--t);
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  color: inherit;
}
.blog-tag {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  margin-bottom: var(--s-2);
}
.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--s-1);
  color: var(--color-dark);
}
.blog-card p {
  color: var(--color-mid-grey);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: var(--s-2);
}
.blog-link {
  color: var(--color-accent);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
}
.blog-card:hover .blog-link { color: var(--color-accent-dark); }

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: start;
}
.contact-cta { text-align: center; }
.contact-cta .section-title { text-align: center; }
.contact-text { color: rgba(255,255,255,0.9); margin-bottom: var(--s-3); }
.contact-small { color: rgba(255,255,255,0.85); font-size: 0.875rem; margin-top: var(--s-2); }

.contact-form-wrap {
  background: rgba(255,255,255,0.05);
  padding: var(--s-4);
  border-radius: var(--radius);
}
.contact-form-wrap h3 { color: var(--color-white); margin-bottom: var(--s-1); }
.field { margin-bottom: var(--s-2); }
.field input,
.field textarea {
  width: 100%;
  background: var(--color-white);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  transition: var(--t);
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.field textarea { resize: vertical; min-height: 80px; }
.field-error {
  color: #ffd5cc;
  font-size: 0.85rem;
  margin-top: 4px;
  min-height: 0;
}
.field-error:not(:empty) { margin-top: 6px; }
.form-submit { width: 100%; margin-top: var(--s-2); }

/* ---- FOOTER ---- */
.footer {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding-top: var(--s-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  padding-bottom: var(--s-4);
}
.footer-col p { color: rgba(255,255,255,0.85); margin: 0 0 var(--s-1); }
.footer-brand {
  font-family: var(--font-head);
  color: var(--color-white) !important;
  font-size: 1.3rem;
}
.footer-tag { font-size: 0.95rem; }
.footer-phone {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-white) !important;
  margin-top: var(--s-1) !important;
}
.footer-head {
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-white) !important;
  margin-bottom: var(--s-2) !important;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 6px; }
.footer-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}
.footer-links a:hover { color: var(--color-white); }
.footer-codes {
  font-size: 0.95rem;
  margin-bottom: var(--s-2) !important;
}
.footer-areas { font-size: 0.875rem; line-height: 1.7; }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--s-2) 0;
}
.footer-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.footer-bar-inner p { margin: 0; color: inherit; }

/* ---- MOBILE STICKY CALL BAR ---- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 16px;
  text-align: center;
  z-index: 9999;
  text-decoration: none;
  align-items: center;
  justify-content: center;
}
.mobile-call-bar:hover { color: var(--color-white); }

/* ---- FOCUS ACCESSIBILITY ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 767px) {
  body { padding-bottom: 70px; }
  .nav-cta-full { display: none; }
  .nav-cta-short { display: inline; }
  .brand { display: none; }
  .nav-cta { width: 100%; padding: 10px 18px; }
  .mobile-call-bar { display: flex; }
  .hero-cta { width: 100%; }
}

@media (min-width: 768px) {
  .container { padding: 0 var(--s-4); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .green-banner { flex-direction: row; justify-content: space-between; text-align: left; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
  .steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: rgba(255,255,255,0.2);
    z-index: 0;
  }
  .step { z-index: 1; }
  .step-num { position: relative; z-index: 2; }
  .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; }
  .footer-bar-inner { flex-direction: row; justify-content: space-between; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .contact-cta { text-align: left; }
  .contact-cta .section-title { text-align: left; }
}

@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1.2fr 1fr; }
  .hero-illustration { display: block; }
  .nav-menu { display: flex; }
}

/* ---- PRINT ---- */
@media print {
  .navbar, .mobile-call-bar, .hero-illustration, .contact-form-wrap, .green-banner .btn, .steps-cta, .hero-cta { display: none !important; }
  .hero, .section-green { background: var(--color-white) !important; color: var(--color-dark) !important; }
  .hero h1, .step h3, .section-title-white { color: var(--color-dark) !important; }
  body { padding-bottom: 0; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-cta { animation: none; }
}
