: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;

  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-card: 0 2px 16px rgba(0,0,0,0.07);
  --transition:  0.2s ease;

  --max-width: 1200px;
  --section-padding: 5rem 1.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.7;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary-dark); line-height: 1.2; font-weight: 400; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { font-size: 1rem; }

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

ul { list-style: none; }

:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

section { padding: var(--section-padding); }

.section-heading { text-align: center; margin-bottom: 0.75rem; }
.section-sub { text-align: center; color: var(--color-mid-grey); margin-bottom: 3rem; font-size: 1.05rem; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- BUTTONS ---------- */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-accent-dark); color: var(--color-white); }

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary); color: var(--color-white); }

.btn-large { padding: 1.1rem 2.5rem; font-size: 1.1rem; }
.btn-full-width { width: 100%; }

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(231, 111, 81, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(231, 111, 81, 0); }
  100% { box-shadow: 0 0 0 0 rgba(231, 111, 81, 0); }
}
.btn-pulse { animation: pulse-ring 2s ease-out infinite; }

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  min-height: 56px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-light-grey);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
#navbar.navbar--scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  min-height: 56px;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .navbar-inner { flex-wrap: nowrap; }
}

.navbar-brand {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-body);
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-brand:hover { color: var(--color-primary-dark); }

/* Nav menu — hidden by default (mobile collapsed) */
.navbar-menu {
  display: none;
  order: 3;
  width: 100%;
  background: var(--color-white);
  border-top: 1px solid var(--color-light-grey);
}
.navbar-menu ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  margin: 0;
}
.navbar-menu li { list-style: none; }
.navbar-menu a {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--color-primary-dark);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.navbar-menu a:hover { background: #eef5f1; color: var(--color-primary); }

/* Open state on mobile */
.navbar-menu.is-open { display: block; }

/* Hamburger toggle button (mobile only) */
.navbar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--color-primary);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  color: var(--color-primary);
  flex-shrink: 0;
}
.navbar-toggle:hover { background: #eef5f1; }

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 20px;
  height: 16px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.navbar-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.navbar-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
}
.navbar-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Call button in nav */
.btn-call--nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}
.btn-call--nav:hover { background: var(--color-accent-dark); color: var(--color-white); }
.btn-call__full { display: none; }
.btn-call__short { display: inline; font-size: 1.1rem; }

/* ---------- NAVBAR — TABLET / DESKTOP ---------- */
@media (min-width: 768px) {
  #navbar { min-height: 64px; }
  .navbar-inner { min-height: 64px; padding: 0 1.5rem; gap: 1.25rem; }
  .navbar-brand { font-size: 1.05rem; }

  /* Show menu inline, hide hamburger */
  .navbar-menu {
    display: block;
    order: 2;
    width: auto;
    background: transparent;
    border-top: none;
    flex-grow: 1;
  }
  .navbar-menu ul {
    flex-direction: row;
    justify-content: center;
    padding: 0;
    gap: 0.25rem;
  }
  .navbar-menu a {
    padding: 0.5rem 0.85rem;
    font-size: 0.95rem;
  }
  .navbar-toggle { display: none; }

  .btn-call--nav {
    padding: 0.6rem 1.1rem;
    font-size: 1rem;
    order: 3;
  }
  .btn-call__full { display: inline; }
  .btn-call__short { display: none; }
}

@media (min-width: 1024px) {
  .navbar-brand { font-size: 1.15rem; }
  .navbar-menu a { padding: 0.55rem 1rem; font-size: 1rem; }
}

/* ---------- HERO ---------- */
#hero {
  padding-top: calc(56px + 3rem);
  padding-bottom: 4rem;
  background: linear-gradient(180deg, #f5fbf7 0%, var(--color-white) 100%);
}
@media (min-width: 640px) { #hero { padding-top: calc(64px + 4rem); } }

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #d8f3e3;
  color: #1b4332;
  border-radius: 100px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
}
.trust-badge svg { width: 14px; height: 14px; }

.hero-sub {
  margin-top: 1.25rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--color-text);
  max-width: 560px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-illustration {
  display: none;
  justify-self: center;
}
@media (min-width: 1024px) {
  .hero-illustration { display: block; }
}

/* ---------- SERVICES ---------- */
#services { background: var(--color-off-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.service-card {
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-2px); box-shadow: 0 4px 22px rgba(0,0,0,0.1); }

.service-icon {
  width: 40px; height: 40px;
  color: var(--color-primary);
}
.service-card h3 { font-size: 1.1rem; color: var(--color-primary-dark); }
.service-card p { font-size: 0.95rem; line-height: 1.6; color: var(--color-text); flex-grow: 1; }
.service-cta {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--color-accent);
}
.service-cta:hover { color: var(--color-accent-dark); }

.banner-strip {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 1.5rem 1.5rem;
  margin-top: 3rem;
  font-weight: 500;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}
.banner-strip a { color: var(--color-white); font-weight: 700; text-decoration: underline; }
.banner-strip a:hover { color: #ffd6cc; }

.sister-link {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-mid-grey);
}

/* ---------- CALCULATOR ---------- */
#calculator { background: var(--color-white); }

.calc-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--color-light-grey);
}

.calc-field { margin-bottom: 1.25rem; }
.calc-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}
.calc-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-light-grey);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color var(--transition);
}
.calc-field select:focus { border-color: var(--color-primary); outline: none; }

.calc-result {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #f5fbf7;
  border-radius: var(--radius-sm);
  text-align: center;
  border-left: 4px solid var(--color-primary);
}
.calc-label { font-size: 0.95rem; color: var(--color-mid-grey); margin-bottom: 0.4rem; }
.calc-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

.calc-tip {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-mid-grey);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ---------- AREAS ---------- */
#areas { background: var(--color-off-white); }

.areas-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 960px;
  margin: 0 auto 2.5rem;
}
.area-pill {
  display: inline-flex;
  background: var(--color-white);
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 100px;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.area-pill:hover { background: var(--color-primary); color: var(--color-white); }

.areas-seo {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.8;
}

/* ---------- WHY LOCAL ---------- */
#why-local { background: var(--color-white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.why-card {
  background: var(--color-off-white);
  border-left: 4px solid var(--color-primary);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.why-card svg { width: 28px; height: 28px; color: var(--color-primary); }
.why-card h3 { font-size: 1.1rem; }
.why-card p { font-size: 0.95rem; line-height: 1.6; }

/* ---------- HOW IT WORKS ---------- */
#how-it-works { background: var(--color-off-white); }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
}
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.step-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.75rem 1.75rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.step-num {
  position: absolute;
  top: -1rem;
  right: 0.75rem;
  font-family: var(--font-heading);
  font-size: 6rem;
  color: rgba(45, 106, 79, 0.12);
  line-height: 1;
  pointer-events: none;
}
.step-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; position: relative; z-index: 1; }
.step-card p { font-size: 0.97rem; line-height: 1.7; position: relative; z-index: 1; }

.how-cta { text-align: center; }

/* ---------- FAQ ---------- */
#faq { background: var(--color-white); }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--color-off-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-light-grey);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  line-height: 1.4;
}
.faq-question:hover { background: #eef5f1; }

.faq-toggle {
  display: inline-flex;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: transform var(--transition);
}
.faq-question[aria-expanded="true"] .faq-toggle { transform: rotate(45deg); }

.faq-panel {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--color-text);
}
.faq-panel[aria-hidden="true"] { display: none; }

/* ---------- CONTACT ---------- */
#contact { background: var(--color-off-white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.contact-phone-block {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
.contact-phone-label { font-weight: 600; color: var(--color-primary-dark); font-size: 1.05rem; }
.contact-response-time {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
}
.contact-hours { color: var(--color-mid-grey); font-size: 0.9rem; }

.contact-form {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-primary-dark);
  font-size: 0.95rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1.5px solid var(--color-light-grey);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--color-primary); outline: none; }

.form-error {
  display: block;
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  min-height: 1.1em;
}

.form-success {
  background: #d8f3e3;
  color: var(--color-primary-dark);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 500;
}

/* ---------- FOOTER ---------- */
#footer {
  background: var(--color-primary-dark);
  color: #d8e6dd;
  padding: 3.5rem 1.5rem 0;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) { .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; gap: 3rem; } }

#footer h3 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}
#footer p, #footer li { font-size: 0.92rem; line-height: 1.7; color: #d8e6dd; }
#footer ul { display: flex; flex-direction: column; gap: 0.3rem; }
#footer a { color: var(--color-white); }
#footer a:hover { color: var(--color-accent); }

.footer-postcodes {
  text-align: center;
  padding: 1.75rem 0;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.9rem;
  color: #b8cdc1;
}

.footer-bottom {
  background: #122b22;
  color: #b8cdc1;
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  margin: 0 -1.5rem;
}

/* ---------- MOBILE STICKY BAR ---------- */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-accent);
  z-index: 9999;
  padding: 1rem 1.5rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  text-align: center;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}
.mobile-sticky-link {
  display: block;
  color: var(--color-white);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}
.mobile-sticky-link:hover { color: var(--color-white); }

@media (min-width: 768px) {
  .mobile-sticky-bar { display: none; }
}

/* Add bottom padding on mobile so sticky bar doesn't cover footer */
@media (max-width: 767px) {
  body { padding-bottom: 70px; }
}

/* ---------- PRINT ---------- */
@media print {
  #navbar,
  .mobile-sticky-bar,
  .btn-primary,
  .btn-secondary,
  .btn-call--nav,
  .btn-pulse { display: none !important; }
  body { padding-bottom: 0; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}
