/* ========== BASE STYLES ========== */

:root {
  --color-bg: #ffffff;
  --color-text: #17212b;
  --color-muted: #6b7280;
  --color-primary: #286b25;       /* Main green */
  --color-primary-dark: #072006;  /* Deep green */
  --color-accent: #cbb96e;        /* Camo tan */
  --color-light: #f5f5f5;
  --color-border: #e5e7eb;

  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.06);
  --radius-lg: 1rem;

  --font-heading: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

/* Match iOS overscroll background to footer/navbar green so there is
   no white bar at the very bottom of the page */
html {
  background-color: rgba(7, 32, 6, 0.94);
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* ===== Layout ===== */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-tight {
  padding: 2.5rem 0;
}

.section-alt {
  background-color: var(--color-light);
}

/* ===== Typography ===== */

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  margin: 0 0 0.5em;
  color: var(--color-primary-dark);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.1;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header p {
  max-width: 640px;
  margin: 0.5rem auto 0;
  color: var(--color-muted);
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.35); /* light edge for glass look */
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  background: rgba(255, 255, 255, 0.08);       /* subtle base glass tint */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28); /* default soft lift */
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); /* stronger hover glow */
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

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

/* this is your white secondary button */
.btn-outline {
  background-color: #ffffff;
  color: var(--color-primary); /* primary green text on white buttons */
  border: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-outline:hover {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.btn-small {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

/* ===== GRID ===== */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ===== CARDS ===== */

.card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.04);
}

/* Light green background for Pest Control Services cards */
.section:not(.section-camo) .card {
  background-color: #dfe8d5;
}

.card h3 {
  margin-top: 0.25rem;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* Card overrides inside camo section */
.section-camo .card {
  background-color: #fdfdf9; /* warm off-white */
  color: #111827;

  /* lifted card look */
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.section-camo .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.section-camo .card p {
  color: #4b5563;
  margin-bottom: 0;
}

/* Accent bar above trust card headings */
.section-camo .card h3 {
  position: relative;
  padding-top: 0.75rem;
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.section-camo .card h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background-color: var(--color-primary); /* main green bar */
}

/* Trust card icons */
.section-camo .trust-icon {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

/* ===== HEADER ===== */

.site-header {
  position: sticky;
  top: 0;
  top: env(safe-area-inset-top, 0);
  z-index: 1000;
  /* glassy deep-green background */
  background: rgba(7, 32, 6, 0.9); /* slightly darker, more opaque glass */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  border-bottom: none;              /* remove faint light line under navbar */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  background-clip: padding-box;
  padding-top: env(safe-area-inset-top, 0);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;            /* slightly tighter spacing between header blocks */
  padding: 0.6rem 0;       /* a bit shorter header height on desktop */
}

.logo img {
  height: 88px;            /* slightly smaller logo to free up horizontal space */
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 0.75rem;            /* reduce gap so nav doesn’t feel stretched */
  align-items: center;
}

.nav-link {
  font-size: 0.85rem;                         /* slightly smaller text to fit more comfortably */
  font-weight: 600;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);           /* semi-translucent glassy white */
  padding: 0.2rem 0.05rem;                    /* tighter vertical padding */
  position: relative;
  letter-spacing: 0.03em;                     /* a bit more spaced like iOS */
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.35); /* subtle outline */
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.7),              /* soft glow behind */
    0 2px 4px rgba(0, 0, 0, 0.65);            /* slight drop shadow */
}

.nav-link:hover,
.nav-link.active {
  color: rgba(255, 255, 255, 0.95);           /* brighter on hover/active */
  -webkit-text-stroke: 0.6px rgba(255, 255, 255, 0.55);
  text-shadow:
    0 0 14px rgba(0, 0, 0, 0.85),
    0 3px 6px rgba(0, 0, 0, 0.75);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 999px;
}

/* ===== Instagram Header Social Icon ===== */
.header-social {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.75rem;           /* small gap between nav links and icon */
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-icon {
  width: 34px;                 /* slightly smaller than before so hamburger feels dominant */
  height: 34px;
  fill: var(--color-primary);  /* primary green for default icon */
  transition: fill 0.18s ease, transform 0.18s ease, filter 0.18s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.65));
}

.social-link-instagram:hover .social-icon {
  fill: var(--color-accent);       /* camo tan accent on hover */
  transform: translateY(-1px);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.8));
}

.header-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

/* Navbar Request a Quote button hover invert */
.header-cta .btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.header-cta .btn-primary:hover {
  background-color: #ffffff;
  color: var(--color-primary); /* primary green text on white navbar button */
  border-color: #ffffff;
}

.header-phone {
  color: #f9fafb;
  font-size: 0.9rem;
  text-decoration: none;
}

.header-phone:hover {
  text-decoration: underline;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 3.6rem;           /* much larger icon so it reads clearly */
  cursor: pointer;
  padding: 1rem 1.4rem;        /* larger tap target for touch */
  position: relative;          /* keep above the full-screen nav overlay */
  z-index: 1001;               /* higher than .main-nav on mobile */
}

/* ===== HERO ===== */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: #ffffff;
  background-color: #111827;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("../img/brett-hero.jpg");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 32, 6, 0.6), rgba(7, 32, 6, 0.3));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
}

.hero-text {
  max-width: 640px;
  background: rgba(7, 32, 6, 0.40);  /* deep green, 40% opacity glass card */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 1.25rem;
  padding: 1.75rem 1.75rem 2rem; /* top / sides / bottom */
}

/* Wrappers inside hero card */
.hero-top-card,
.hero-bottom-card {
  /* inherit layout from .hero-text on desktop/tablet;
     no visual change until mobile overrides */
}

.hero-subhead {
  font-size: 1.05rem;
  color: #e5e7eb;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

/* Ensure hero buttons keep their original colors */
.hero-ctas .btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.hero-ctas .btn-outline {
  background-color: #ffffff;
  color: var(--color-primary-dark);
  border: none;
}

.hero-ctas .btn-primary:hover {
  background-color: var(--color-primary-dark) !important;
  border-color: var(--color-primary-dark) !important;
  color: #ffffff !important;
}

.hero-ctas .btn-outline:hover {
  background-color: var(--color-primary-dark) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25) !important;
}

.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #d1d5db;
  font-weight: 600;
}

/* make hero headings white on top of the image */
.hero h1,
.hero h2,
.hero h3 {
  color: #ffffff;
}

/* Simple hero heading wrapper */
.hero-heading {
  display: inline-block;
  position: relative;
}

/* Base dot style */
.hero-dot {
  display: inline-block;
  margin-left: 0.14em;
  font-size: 1.1em;
  opacity: 0;             /* JS will turn this on */
  vertical-align: baseline;
  transform: scaleX(-1);  /* flipped ant */
}

/* During typing: infinite blink */
.hero-dot--blink {
  opacity: 1;
  animation: hero-dot-blink 0.9s steps(2, start) infinite;
}

/* After typing: blink 5x, then stay solid */
.hero-dot--blink-final {
  opacity: 1;
  animation: hero-dot-blink-final 0.9s steps(2, start) 3 forwards;
}

@keyframes hero-dot-blink {
  0%,
  75% {
    opacity: 1;
  }
  76%,
  100% {
    opacity: 0.35;
  }
}

@keyframes hero-dot-blink-final {
  0%,
  75% {
    opacity: 1;
  }
  76%,
  99% {
    opacity: 0.35;
  }
  100% {
    opacity: 1;
  }
}

/* ===== SECTION CAMO ===== */

.section-camo {
  background-color: #0b2010;
  background-image: url("../img/elza-camo-pattern.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #f9fafb;
}

.section-camo .section-header h2 {
  color: #f9fafb;
}

.section-camo .section-header p {
  color: #e5e7eb;
}

/* Overlay on camo background */
.section-camo {
  position: relative;
}

/* ===== GLASS BLUR LOOK FOR CAMO SECTION CARDS ===== */
.section-camo .card {
  background: rgba(255, 255, 255, 0.22);   /* translucent white */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);    /* iOS fix */
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #111827;                         /* dark readable text */
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.section-camo .section-header h2 {
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* keep all inner content above overlay */

.section-camo > * {
  position: relative;
  z-index: 1;
}

/* Glass card for Service Area band */
.section-camo.section-tight .service-area-glass {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
  text-align: center;
  color: #ffffff;
}

/* Glassy overlay for Serving Green Country band on camo */
.section-camo.section-tight {
  position: relative;
}

.section-camo.section-tight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7, 32, 6, 0.55),
    rgba(7, 32, 6, 0.18)
  );
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 0;
}

.section-camo.section-tight h2,
.section-camo.section-tight p {
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.65);
  position: relative;
  z-index: 1;
}

.section-camo.section-tight .service-area-intro {
  margin: 0 0 0.9rem;
  font-weight: 700;
  font-size: 1.15rem;           /* ~15% larger than base text */
  color: #ffffff;               /* white for strong contrast on camo */
}

.section-camo.section-tight .service-area-towns {
  margin: 0 0 1.25rem;
  color: #ffffff;
}

.section-camo.section-tight .service-area-glass strong {
  color: var(--color-primary-dark);
}

.section-camo.section-tight .service-area-cta {
  margin-top: 0.5rem;
}

.section-camo.section-tight .service-area-cta .btn-outline {
  background-color: var(--color-accent); /* light camo tan */
  color: #fff9e4;      /* ~25% lighter khaki tan */
}

.section-camo.section-tight .service-area-cta .btn-outline:hover {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* ===== SERVICE CARDS ===== */

.service-card {
  text-align: left;
}

.service-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

/* ===== PROCESS CARDS ===== */

.process-card {
  text-align: left;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

/* ===== PREP SECTION ===== */

 .prep-grid {
   align-items: stretch;
   gap: 2rem;
 }

 .prep-grid > div {
   background-color: #ffffff;
   border-radius: var(--radius-lg);
   padding: 1.75rem 1.75rem 1.5rem;
   box-shadow: var(--shadow-soft);
   border: 1px solid rgba(15, 23, 42, 0.05);
 }

.checklist-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem;
}

.checklist-list li::before {
  content: "✔";
  color: var(--color-primary);
  margin-right: 0.35rem;
}

.faq-list {
  margin: 0.75rem 0 0;
}

.faq-list dt {
  font-weight: 600;
  margin-top: 0.75rem;
}

.faq-list dd {
  margin: 0.35rem 0 0.75rem 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* ===== SERVICE AREA ===== */

.service-area-list {
  text-align: center;
}

.service-area-towns {
  color: #e5e7eb;
}

/* ABOUT PAGE LAYOUT */
.about-layout {
  align-items: center;
  gap: 2.5rem;
}

/* The card holding the image */
.about-photo-card {
  padding: 1.25rem;
  border-radius: 1.5rem;
  overflow: hidden; /* prevents image from spilling outside rounded corners */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Figure wrapper */
.about-photo-figure {
  margin: 0;
  width: 100%;
}

/* Actual image styling */
.about-photo-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
  object-fit: cover;
  object-position: center top;
}

/* Limit the image height on larger screens so the card doesn't look oversized */
@media (min-width: 900px) {
  .about-photo-figure img {
    max-height: 550px;
  }
}

/* SERVICE PHOTOS ON SERVICES PAGE */
.service-photo-card {
  margin: 0 0 1.5rem;
  border-radius: 24px;        /* match your card radius */
  overflow: hidden;           /* keeps the photo inside the rounded corners */
}

.service-photo-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;          /* adjust taller/shorter if you want */
  object-fit: cover;          /* fills the frame without stretching */
  filter: contrast(0.96) saturate(0.97); /* gently reduce crunchiness */
}

/* ===== TESTIMONIALS ===== */

.testimonial-card {
  /* frosty glass look with soft camo-green tint */
  background: rgba(223, 232, 213, 0.72);             /* light green with transparency */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);               /* iOS/Safari support */
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);       /* brighter edge for glass effect */
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.16);
}

.testimonial-card blockquote {
  margin: 0 0 0.75rem;
  font-style: italic;
}

.testimonial-card figcaption {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Ensure testimonial cards stay wide even if wrapped in a .grid-4 */
@media (min-width: 960px) {
  .grid-4 .testimonial-card {
    grid-column: span 2; /* each card spans two of the four tracks, so only two cards per row */
  }
}

/* Frosty glass look for service & process cards */
.card.service-card,
.card.process-card {
  background: rgba(223, 232, 213, 0.72);             /* light camo green with transparency */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);               /* iOS/Safari support */
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);       /* brighter edge for glass effect */
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.16);
}

/* Google-style badge for testimonials */
.testimonial-google {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.testimonial-google .stars,
.testimonial-google .star {
  color: var(--color-primary);
}

/* ===== FINAL CTA ===== */

.final-cta {
  background-color: rgba(7, 32, 6, 0.96);
  color: #f9fafb;
}

.final-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  text-align: center;
}

.final-cta-inner h2 {
  color: #f9fafb;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Make final CTA text pop on camo background */
.final-cta.section-camo {
  position: relative;
}

.final-cta.section-camo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7, 32, 6, 0.55),
    rgba(7, 32, 6, 0.18)
  );
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 0;
}

.final-cta.section-camo .final-cta-inner {
  position: relative;
  z-index: 1;
}

.final-cta.section-camo h2,
.final-cta.section-camo p {
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.65);
}

/* ===== FOOTER ===== */

.site-footer {
  /* glassy deep-green footer to match navbar */
  background: rgba(7, 32, 6, 0.94);
  color: #f9fafb;
  margin-top: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1.2fr; /* two proportional columns: main info + quick links */
  gap: 2.25rem;
  padding: 2.5rem 2rem;
  align-items: flex-start;
}

.site-footer .container {
  padding-left: 2rem;
  padding-right: 2rem;
}

.footer-main h3 {
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.footer-main p {
  color: #e5e7eb;
}

.footer-main {
  margin-bottom: 1.5rem; /* add spacing between text block and buttons */
}

.footer-main p {
  margin-bottom: 1.25rem; /* ensure the paragraph above buttons has breathing room */
}

.site-footer a {
  color: var(--color-accent); /* tan like camo pattern */
}

.site-footer a:hover {
  color: #fef3c7;
  text-decoration: underline;
}

.site-footer .btn-outline {
  color: var(--color-primary); /* primary green text for all white footer buttons */
}


.site-footer .btn-outline:hover {
  color: #ffffff; /* white on hover to match dark-green background */
}

/* Match footer button spacing to hero CTAs */
.footer-main .btn {
  margin-right: 0; /* reset any inherited margins */
}

.footer-main .btn + .btn {
  margin-left: 0.75rem; /* same visual gap as .hero-ctas buttons */
}

.services-contact-buttons {
  margin-top: 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.services-contact-buttons .btn {
  margin: 0;
}

.footer-links h4,
.footer-service-area h4 {
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-service-area p {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.footer-bottom {
  border-top: none;              /* remove the thin separator line */
  padding: 0.75rem 0;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ===== UTILITIES ===== */

.section-cta-center {
  text-align: center;
  margin-top: 2rem;
}

/* ========== RESPONSIVE STYLES ========== */

@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .final-cta-actions {
    justify-content: center;
  }

  /* Tablet padding fixes */
  .logo {
    padding-left: 1rem;
  }

  .hero-content {
    padding-left: 2rem;
    padding-right: 1.5rem;
  }

  .header-phone {
    padding-right: 1rem;
  }

  .btn-outline {
    margin-right: 1rem;
  }

  .header-cta {
    padding-right: 1rem;   /* adds space on right side */
  }
}

@media (max-width: 720px) {
  /* Mobile / tablet nav: show hamburger, collapse links into dropdown */
  .mobile-menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;                     /* always flex; show/hide via opacity */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;       /* start from the top of the dropdown area */
    gap: 1.25rem;
    padding: 10vh 1rem 4vh;            /* ~10% down from top, extra room at bottom */
    background: #ffffff;              /* clean white dropdown background */
    min-height: calc(100vh - 80px);   /* keep full-height dropdown feel */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  }

  .main-nav.nav-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav .nav-link {
    display: block;                                /* full-width block for easy tap */
    width: 100%;
    font-size: 2rem;                               /* larger text for readability */
    font-weight: 700;                              /* bold */
    text-align: center;                            /* center text horizontally */
    color: var(--color-primary);                   /* match IG icon green */
    -webkit-text-stroke: 0;                        /* no outline on white */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);    /* soft drop shadow for contrast */
  }

  .main-nav .nav-link.active {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
  }
  .main-nav .nav-link.active::after {
    content: none;
  }
  h1 {
    font-size: 2.1rem;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: flex-start; /* logo on left, social + hamburger on right */
    align-items: center;
  }


  .header-cta {
    display: none;
  }

  .header-social {
    display: flex;                /* show social icon on mobile/tablet */
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;         /* space between icon and hamburger */
    margin-top: 6px;              /* larger nudge down to center with bigger hamburger */
  }

     .hero {
    min-height: 75vh;
    /* keep Brett visible on the right */
    padding: 1rem 0 0;
    align-items: stretch;        /* let inner container fill height */
    justify-content: center;
    background-position: 72% center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom {
    text-align: center;
  }

  .logo img {
    height: 84px;
  }

  .logo {
    padding-left: 1rem;
    margin-right: auto;           /* push social + hamburger cluster to the right */
  }

    .hero-content {
    padding: 0 0.75rem 0.75rem;
    width: 100%;
  }

      .hero-text {
    position: static;          /* no longer the positioning parent */
    width: 100%;
    max-width: 100%;
    height: auto;              /* let content define height */
    display: block;            /* normal block flow */
    padding: 0;                /* backgrounds handled by the inner cards */
    background: none;
    border-radius: 0;
    backdrop-filter: none;           /* 👈 turn off the big blur */
    -webkit-backdrop-filter: none;   /* 👈 iOS/Safari */
  }

  /* TOP CARD: headline + paragraph */
    .hero-top-card {
    background: rgba(7, 32, 6, 0.40);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 1rem;
    padding: 0.85rem 1rem 1rem;
    margin: 0.9rem auto 0;           /* 👈 adds a little gap under the navbar */
  }

    /* BOTTOM CARD: buttons + trust text, bottom-left via flex */
    .hero-bottom-card {
    position: absolute;
    left: 0.75rem;              /* tuck it a bit in from the left */
    bottom: 1rem;               /* more space from the very bottom */
    width: 78%;
    max-width: 360px;

    background: rgba(7, 32, 6, 0.40);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    border-radius: 1rem;
    padding: 0.65rem 0.85rem 0.9rem;
    z-index: 2;                 /* keep it on top of the photo */
  }

  /* smaller hero text on mobile */
  .hero h1 {
    font-size: 1.45rem;
    line-height: 1.15;
  }

  .hero-subhead {
    font-size: 0.95rem;
    margin-top: 0.6rem;
  }

  /* Hero CTAs inside the bottom card */
  .hero-ctas {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;          /* keep buttons on a single row */
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.35rem 0 0.4rem;
  }

  .hero-ctas .btn {
    flex: 1 1 0;                /* allow both buttons to shrink/grow evenly */
    min-width: 0;               /* prevent overflow forcing wrap on small screens */
    padding: 0.55rem 0.6rem;
    font-size: 0.9rem;
    justify-content: center;
  }

  /* Trust bar in the bottom card: small but readable */
  .hero-trust-bar {
    color: #ffffff;
    font-size: 0.72rem;
    text-align: left;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
}

  .services-contact-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  /* Contact page: desktop layout + equal-height main card */
  @media (min-width: 960px) {
    body#contact .section-alt .grid-2 {
      align-items: stretch;  /* stretch both grid items to same column height */
    }

    /* Make the "Send Bret a Message" card fill the column height */
    body#contact .tall-card {
      height: 100%;
    }
  }

  /* Contact page: spacing between the stacked right-hand cards */
  body#contact .tall-match {
    margin-top: 2.5rem;
  }

  /* Contact page: full-width, rounded form fields */
  body#contact form input[type="text"],
  body#contact form input[type="email"],
  body#contact form input[type="tel"],
  body#contact form textarea {
    width: 100%;
    max-width: 100%;
    display: block;
    padding: 0.6rem 0.75rem;
    margin-top: 0.35rem;
    margin-bottom: 0.75rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.18);
    font-family: var(--font-body);
    font-size: 0.95rem;
    box-sizing: border-box;
    background-color: #ffffff;
  }

  /* Softer focus style that matches brand colors (removes harsh default outline) */
  body#contact form input[type="text"]:focus,
  body#contact form input[type="email"]:focus,
  body#contact form input[type="tel"]:focus,
  body#contact form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(40, 107, 37, 0.25);
  }

  /* Make the critters textarea a bit taller by default */
  body#contact form textarea {
    min-height: 140px;
    resize: vertical;
  }

  /* Contact page: breathing room around the Send Message button */

body#contact form .btn-primary {
    margin-top: 0.9rem;
    margin-bottom: 1.1rem;
}

/* ===== SIMPLE CENTERED LAYOUT FOR PRIVACY / THANKS / 404 PAGES ===== */
.not-found-main {
  padding: 4rem 1.5rem;
  background-color: var(--color-bg);
}

.not-found-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;      /* stack logo above card */
  align-items: center;
}

.not-found-container .logo-img {
  max-width: 220px;
  width: 60%;
  height: auto;
  margin-bottom: 1.5rem;
}

.not-found-card {
  width: 100%;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-soft);
  text-align: left;
}

@media (min-width: 900px) {
  .not-found-main {
    padding: 5rem 1.5rem;
  }

  .not-found-card {
    padding: 2.5rem 2.25rem;
  }
}


/* Hide any stray image that appears directly after a not-found style main
   (fixes extra giant logo showing below Privacy/404 style pages) */
main.not-found-main + img {
  display: none;
}