/* ═══════════════════════════════════════════════════════════════
   Excel Mechanical Contractors — Main Stylesheet
   Version: 1.0.0
   Approach: Mobile-first | BEM | CSS Custom Properties

   TABLE OF CONTENTS
    1.  Custom Properties
    2.  Reset & Base
    3.  Layout (container, section)
    4.  Typography
    5.  Buttons
    6.  Top Bar
    7.  Site Header
    8.  Navigation
    9.  Hamburger
   10.  Mobile Sticky CTAs
   11.  Site Footer
   12.  Testimonials Carousel
   13.  Blog Cards & Pagination
   14.  Utilities
   15.  Responsive Breakpoints
═══════════════════════════════════════════════════════════════ */


/* ─── 1. Custom Properties ─────────────────────────────────────────── */
:root {

  /* Brand Colors */
  --clr-navy:         #0F2044;
  --clr-navy-light:   #1A3163;
  --clr-blue:         #1766BF;
  --clr-sky:          #29ABE2;
  --clr-orange:       #F06A00;
  --clr-orange-dark:  #C95800;

  /* Neutrals */
  --clr-white:        #FFFFFF;
  --clr-off-white:    #F5F7FA;
  --clr-gray-100:     #EEF1F5;
  --clr-gray-200:     #DDE2EA;
  --clr-gray-300:     #C0CAD8;
  --clr-gray-500:     #8892A4;
  --clr-gray-700:     #4A5568;
  --clr-text:         #2D3748;
  --clr-text-light:   #718096;

  /* Typography */
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;

  /* Font Scale (clamp: min | preferred | max) */
  --fs-xs:   clamp(0.6875rem, 1.2vw, 0.75rem);
  --fs-sm:   clamp(0.8125rem, 1.5vw, 0.875rem);
  --fs-base: clamp(0.9375rem, 1.8vw, 1rem);
  --fs-md:   clamp(1rem,      2vw,   1.125rem);
  --fs-lg:   clamp(1.125rem,  2.5vw, 1.375rem);
  --fs-xl:   clamp(1.375rem,  3vw,   1.75rem);
  --fs-2xl:  clamp(1.75rem,   4vw,   2.5rem);
  --fs-3xl:  clamp(2.25rem,   5vw,   3.25rem);

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Layout */
  --container-max:  1200px;
  --container-pad:  1rem;

  /* UI Tokens */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);

  --transition: 0.2s ease;

  /* Header dimensions */
  --topbar-h: 2.5rem;
  --header-h: 6rem;
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--clr-text);
  background: var(--clr-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }
address { font-style: normal; }
input, textarea, select { font: inherit; }


/* ─── 3. Layout ────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Offset content below the fixed topbar + header */
#main-content {
  padding-top: calc(var(--topbar-h) + var(--header-h));
  /* Extra bottom space on mobile for the sticky CTA bar */
  padding-bottom: 3.25rem;
}

.section {
  padding-block: var(--sp-12);
}

.section--bg {
  background: var(--clr-off-white);
}


/* ─── 4. Typography ────────────────────────────────────────────────── */
.section__title,
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-navy);
}

.section__title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-8);
  text-align: center;
}


/* ─── 5. Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.btn:focus-visible {
  outline: 3px solid var(--clr-sky);
  outline-offset: 3px;
}

.btn:active { transform: scale(0.97); }

/* -- Orange (primary CTA) -- */
.btn--call {
  background: var(--clr-orange);
  color: var(--clr-white);
  box-shadow: 0 2px 8px rgba(240,106,0,.35);
}
.btn--call:hover {
  background: var(--clr-orange-dark);
  box-shadow: 0 4px 14px rgba(240,106,0,.45);
}

/* -- Navy bordered -- */
.btn--estimate {
  background: transparent;
  color: var(--clr-navy);
  border: 2px solid var(--clr-navy);
}
.btn--estimate:hover {
  background: var(--clr-navy);
  color: var(--clr-white);
}

/* -- Blue outline (blog cards) -- */
.btn--outline {
  background: transparent;
  color: var(--clr-blue);
  border: 2px solid var(--clr-blue);
  font-size: var(--fs-sm);
}
.btn--outline:hover {
  background: var(--clr-blue);
  color: var(--clr-white);
}

/* -- Large primary (hero / section CTAs) -- */
.btn--primary {
  background: var(--clr-orange);
  color: var(--clr-white);
  padding: 0.875rem 2rem;
  font-size: var(--fs-md);
  box-shadow: 0 4px 16px rgba(240,106,0,.4);
}
.btn--primary:hover {
  background: var(--clr-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(240,106,0,.5);
}

/* -- Ghost white (dark backgrounds) -- */
.btn--ghost {
  background: transparent;
  color: var(--clr-white);
  border: 2px solid rgba(255,255,255,.65);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--clr-white);
}


/* ─── 6. Top Bar ───────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  height: var(--topbar-h);
  background: var(--clr-navy);
  color: var(--clr-white);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center; /* centered on mobile (phone only) */
  height: 100%;
}

.topbar__tagline {
  display: none; /* shown at ≥768 */
  font-size: var(--fs-sm);
  font-weight: 500;
  opacity: 0.85;
}

.topbar__phone {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-white);
  letter-spacing: 0.02em;
  transition: opacity var(--transition);
}
.topbar__phone:hover { opacity: 0.8; }


/* ─── 7. Site Header ───────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: var(--topbar-h);
  inset-inline: 0;
  z-index: 999;
  height: var(--header-h);
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-gray-100);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: 100%;
}

/* Logo */
.site-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.site-header__logo img,
.site-header__logo .custom-logo {
  height: 60px !important;
  width: auto !important;
}
.site-header__logo-text {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--clr-navy);
  line-height: 1.1;
}

/* Header CTAs — desktop only */
.site-header__ctas {
  display: none; /* shown at ≥1024 */
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}


/* ─── 8. Navigation ────────────────────────────────────────────────── */
/* Mobile: slides down from below the header */
.site-nav {
  position: fixed;
  top: calc(var(--topbar-h) + var(--header-h));
  inset-inline: 0;
  z-index: 998;
  background: var(--clr-white);
  border-top: 2px solid var(--clr-orange);
  box-shadow: var(--shadow-md);
  padding: var(--sp-4);
  /* Hidden state */
  transform: translateY(-105%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.site-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.site-nav__list li a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--clr-navy);
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
}
.site-nav__list li a:hover,
.site-nav__list li.current-menu-item > a,
.site-nav__list li.current_page_item > a {
  background: var(--clr-off-white);
  color: var(--clr-orange);
}


/* ─── 9. Hamburger ─────────────────────────────────────────────────── */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  flex-shrink: 0;
  padding: 0;
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--clr-navy);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* X state */
.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* ─── 10. Mobile Sticky CTAs ───────────────────────────────────────── */
.mobile-sticky-ctas {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 1000;
  display: flex;
  height: 3.25rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,.18);
}

.mobile-cta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: filter var(--transition);
}
.mobile-cta:active { filter: brightness(0.9); }

.mobile-cta--call  { background: var(--clr-orange); color: var(--clr-white); }
.mobile-cta--quote { background: var(--clr-navy);   color: var(--clr-white); }


/* ─── 11. Site Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--clr-navy);
  color: var(--clr-white);
  /* Bottom clearance for mobile sticky CTA bar */
  padding-bottom: 3.25rem;
}

/* 4-column grid collapses to 1 on mobile */
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding-block: var(--sp-12);
}

/* Column heading */
.footer-col__title {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-sky);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-5);
}

/* Brand column */
.footer-logo {
  display: inline-block;
  margin-bottom: var(--sp-4);
}
.footer-logo img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1); /* Invert to white on dark bg */
  /* TODO: Replace with proper white variant of logo */
}
.footer-logo__text {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--clr-white);
}

.footer-tagline {
  font-size: var(--fs-sm);
  color: var(--clr-gray-300);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
}

/* Social icons */
.footer-social {
  display: flex;
  gap: var(--sp-3);
}
.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.1);
  color: var(--clr-white);
  transition: background var(--transition), transform var(--transition);
}
.footer-social__link:hover {
  background: var(--clr-sky);
  transform: translateY(-2px);
}

/* Address block */
.footer-address p {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--clr-gray-300);
  margin-bottom: var(--sp-3);
  line-height: 1.55;
}
.footer-address svg { flex-shrink: 0; margin-top: 2px; }

.footer-link {
  color: var(--clr-gray-300);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--clr-sky); }

/* Hours */
.footer-hours { margin-top: var(--sp-5); }
.footer-hours__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-gray-300);
  margin-bottom: var(--sp-3);
}
.footer-hours__list li {
  font-size: var(--fs-sm);
  color: var(--clr-gray-300);
  padding-block: var(--sp-1);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-hours__list li:last-child { border-bottom: none; }

/* Quick links */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.footer-links li a {
  font-size: var(--fs-sm);
  color: var(--clr-gray-300);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: color var(--transition), gap var(--transition);
}
.footer-links li a::before {
  content: '›';
  color: var(--clr-sky);
  font-size: 1.1em;
  line-height: 1;
}
.footer-links li a:hover {
  color: var(--clr-white);
  gap: var(--sp-3);
}

/* License */
.footer-license {
  font-size: var(--fs-sm);
  color: var(--clr-sky);
  font-weight: 600;
  margin-top: var(--sp-5);
}

/* Google Map embed */
.footer-map {
  margin-top: var(--sp-5);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.footer-map iframe {
  display: block;
  width: 100%;
  height: 160px;
  border: 0;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: var(--sp-5);
}
.footer-bottom__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  text-align: center;
}
.footer-copyright {
  font-size: var(--fs-sm);
  color: var(--clr-gray-500);
}

/* Footer nav (from wp_nav_menu) */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4);
}
.footer-nav li a {
  font-size: var(--fs-sm);
  color: var(--clr-gray-500);
  transition: color var(--transition);
}
.footer-nav li a:hover { color: var(--clr-white); }


/* ─── 12. Testimonials Carousel ────────────────────────────────────── */
.testimonials {
  background: var(--clr-off-white);
  padding-block: var(--sp-16);
  overflow: hidden;
}

.testimonials__header {
  text-align: center;
  margin-bottom: var(--sp-10);
}
.testimonials__headline {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: var(--sp-3);
}
.testimonials__sub {
  font-size: var(--fs-md);
  color: var(--clr-text-light);
}

/* Viewport clips the track */
.testimonials__viewport {
  overflow: hidden;
  position: relative;
}

/* Track: horizontal flex strip */
.testimonials__track {
  display: flex;
  gap: var(--sp-6);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Individual review card */
.review-card {
  flex: 0 0 calc(100% - 2rem); /* 1 visible on mobile */
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: box-shadow var(--transition), transform var(--transition);
}
.review-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Star rating */
.review-card__stars {
  display: flex;
  gap: 3px;
  font-size: 1.1rem;
  color: #F5A623; /* Angi gold */
}

/* Quote text */
.review-card__quote {
  font-size: var(--fs-md);
  color: var(--clr-text);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}
.review-card__quote::before { content: '\201C'; }
.review-card__quote::after  { content: '\201D'; }

/* Author row */
.review-card__author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--clr-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--clr-navy);
  flex-shrink: 0;
  overflow: hidden;
  /* TODO: Replace initials fallback with reviewer photo when available */
}
.review-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-navy);
}
.review-card__source {
  font-size: var(--fs-xs);
  color: var(--clr-text-light);
  margin-top: 2px;
}

/* Carousel controls */
.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.testimonials__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 2px solid var(--clr-navy);
  background: transparent;
  color: var(--clr-navy);
  font-size: 1.25rem;
  transition: background var(--transition), color var(--transition);
}
.testimonials__btn:hover {
  background: var(--clr-navy);
  color: var(--clr-white);
}
.testimonials__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Dot indicators */
.testimonials__dots {
  display: flex;
  gap: var(--sp-2);
}
.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--clr-gray-300);
  border: none;
  padding: 0;
  transition: background var(--transition), width var(--transition);
}
.testimonials__dot.is-active {
  background: var(--clr-navy);
  width: 24px;
}

/* Angi attribution */
.testimonials__badge {
  text-align: center;
  margin-top: var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--clr-text-light);
}
.testimonials__badge a {
  color: var(--clr-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ─── 13. Blog Cards & Pagination ──────────────────────────────────── */
.blog-archive { background: var(--clr-white); }

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-10);
}

.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-100);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.blog-card__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  /* TODO: Insert post featured image here */
}
.blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card__thumb img { transform: scale(1.04); }

.blog-card__body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.3;
}
.blog-card__title a { color: var(--clr-navy); transition: color var(--transition); }
.blog-card__title a:hover { color: var(--clr-orange); }

.blog-card__meta {
  font-size: var(--fs-sm);
  color: var(--clr-text-light);
}

.blog-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--clr-gray-700);
  line-height: 1.6;
}

/* No posts */
.no-posts {
  text-align: center;
  padding: var(--sp-12);
  color: var(--clr-text-light);
  font-size: var(--fs-lg);
}

/* WordPress posts pagination */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.nav-links a,
.nav-links span.current {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  border: 1px solid var(--clr-gray-200);
  color: var(--clr-text);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.nav-links a:hover {
  background: var(--clr-navy);
  border-color: var(--clr-navy);
  color: var(--clr-white);
}
.nav-links span.current {
  background: var(--clr-navy);
  border-color: var(--clr-navy);
  color: var(--clr-white);
}


/* ─── 14. Utilities ────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-navy   { color: var(--clr-navy); }
.text-orange { color: var(--clr-orange); }
.text-sky    { color: var(--clr-sky); }


/* ════════════════════════════════════════════════════════════════════
   PHASE 2 — HOMEPAGE SECTIONS
   16. Section Intro
   17. Hero
   18. Services Preview
   19. Why Choose Us
   20. Service Areas
   21. Final CTA Banner
════════════════════════════════════════════════════════════════════ */


/* ─── 16. Section Intro ────────────────────────────────────────────── */
.section__intro {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--sp-10);
  font-size: var(--fs-md);
  color: var(--clr-text-light);
  line-height: 1.7;
}


/* ─── 17. Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  /* Fallback color while hero image loads */
  background-color: var(--clr-navy);
  background-image:
    linear-gradient(
      135deg,
      rgba(15, 32, 68, 0.93) 0%,
      rgba(15, 32, 68, 0.72) 60%,
      rgba(15, 32, 68, 0.55) 100%
    ),
    url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
  color: var(--clr-white);
  overflow: hidden;
}

/* Subtle animated gradient shimmer for visual depth until real photo is placed */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(41,171,226,.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: var(--sp-20);
}

.hero__content {
  max-width: 680px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.1;
  margin-bottom: var(--sp-5);
}

.hero__sub {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,.88);
  line-height: 1.6;
  margin-bottom: var(--sp-8);
  max-width: 560px;
}
.hero__sub strong {
  color: var(--clr-sky);
  font-weight: 600;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

/* Trust badges row */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
}
.hero__badges li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(255,255,255,.8);
  letter-spacing: 0.02em;
}
.hero__badges li svg {
  color: var(--clr-sky);
  flex-shrink: 0;
}


/* ─── 18. Services Preview ─────────────────────────────────────────── */
.services-preview { background: var(--clr-white); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-gray-100);
  background: var(--clr-white);
  box-shadow: var(--shadow-sm);
  color: var(--clr-text);
  transition:
    box-shadow var(--transition),
    border-color var(--transition),
    transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-sky);
  transform: translateY(-3px);
}
.service-card:focus-visible {
  outline: 3px solid var(--clr-sky);
  outline-offset: 3px;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--clr-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-blue);
  transition: background var(--transition), color var(--transition);
}
.service-card:hover .service-card__icon {
  background: var(--clr-navy);
  color: var(--clr-white);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-navy);
  line-height: 1.2;
}

.service-card__desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-light);
  line-height: 1.65;
  flex: 1;
}

.service-card__link {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-blue);
  margin-top: auto;
  transition: color var(--transition);
}
.service-card:hover .service-card__link {
  color: var(--clr-orange);
}

/* Featured variant (Emergency HVAC) — orange accent */
.service-card--featured {
  background: var(--clr-navy);
  border-color: var(--clr-navy);
  color: var(--clr-white);
}
.service-card--featured .service-card__icon {
  background: rgba(255,255,255,.1);
  color: var(--clr-orange);
}
.service-card--featured:hover .service-card__icon {
  background: var(--clr-orange);
  color: var(--clr-white);
}
.service-card--featured .service-card__title {
  color: var(--clr-white);
}
.service-card--featured .service-card__desc {
  color: rgba(255,255,255,.75);
}
.service-card--featured .service-card__link {
  color: var(--clr-sky);
}
.service-card--featured:hover {
  border-color: var(--clr-orange);
}

/* "View All Services" CTA row */
.services-preview__footer {
  text-align: center;
  margin-top: var(--sp-10);
}


/* ─── 19. Why Choose Us ────────────────────────────────────────────── */
.why-us .section--bg { background: var(--clr-off-white); }

.why-us__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  align-items: center;
}

/* Image column */
.why-us__img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}
.why-us__img-placeholder {
  aspect-ratio: 6 / 5;
  border-radius: var(--radius-lg);
  background: var(--clr-gray-100);
  border: 2px dashed var(--clr-gray-300);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  color: var(--clr-gray-500);
  font-size: var(--fs-sm);
}

/* Content column */
.why-us__title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-4);
}

.why-us__intro {
  font-size: var(--fs-md);
  color: var(--clr-text-light);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}

.why-us__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.why-us__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-base);
  line-height: 1.6;
}
.why-us__check {
  flex-shrink: 0;
  color: var(--clr-orange);
  margin-top: 2px;
}

.why-us__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}


/* ─── 20. Service Areas ────────────────────────────────────────────── */
.areas { background: var(--clr-white); }

.areas__county-heading {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-navy);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
}
.areas__county-heading:first-of-type { margin-top: 0; }

.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

.area-card {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-gray-200);
  background: var(--clr-off-white);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-navy);
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
}
.area-card:hover {
  background: var(--clr-navy);
  border-color: var(--clr-navy);
  color: var(--clr-white);
  transform: translateY(-2px);
}
.area-card:hover .area-card__pin { color: var(--clr-sky); }
.area-card__pin {
  color: var(--clr-orange);
  flex-shrink: 0;
  transition: color var(--transition);
}


/* ─── 21. Final CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: var(--clr-navy);
  /* Subtle diagonal texture */
  background-image:
    linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-light) 100%);
  padding-block: var(--sp-16);
  color: var(--clr-white);
}

.cta-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-8);
  text-align: center;
}

.cta-banner__title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--clr-white);
  margin-bottom: var(--sp-3);
}

.cta-banner__sub {
  font-size: var(--fs-md);
  color: rgba(255,255,255,.8);
  line-height: 1.6;
}

.cta-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4);
}


/* ════════════════════════════════════════════════════════════════════
   15. RESPONSIVE BREAKPOINTS (mobile-first: min-width)
════════════════════════════════════════════════════════════════════ */

/* ── SM: 480px ── */
@media (min-width: 480px) {
  :root { --container-pad: 1.5rem; }

  .review-card { flex: 0 0 calc(90% - 1rem); }
}

/* ── MD: 768px ── */
@media (min-width: 768px) {
  :root { --container-pad: 2rem; }

  /* Topbar: spread tagline and phone */
  .topbar__inner { justify-content: space-between; }
  .topbar__tagline { display: block; }

  /* Blog: 2-column grid */
  .blog-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer grid: 2 columns */
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer bottom: row layout */
  .footer-bottom__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  /* Carousel: show 2 cards */
  .review-card { flex: 0 0 calc(50% - 1.5rem); }
}

/* ── LG: 1024px ── */
@media (min-width: 1024px) {

  /* Hide hamburger — full nav is inline */
  .hamburger { display: none; }

  /* Hide mobile sticky CTAs */
  .mobile-sticky-ctas { display: none; }

  /* Remove mobile bottom padding from main and footer */
  #main-content { padding-bottom: 0; }
  .site-footer  { padding-bottom: 0; }

  /* Nav: inline horizontal */
  .site-nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 0;
    background: transparent;
    flex: 1;
    display: flex !important;
    justify-content: center;
  }
  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-1);
  }
  .site-nav__list li a {
    font-size: 0.875rem;
    padding: var(--sp-2) var(--sp-3);
  }

  /* Show header CTAs */
  .site-header__ctas { display: flex; }

  /* Footer: 4 columns */
  .site-footer__grid { grid-template-columns: repeat(4, 1fr); }

  /* Carousel: show 3 cards */
  .review-card { flex: 0 0 calc(33.333% - 1.25rem); }
}

/* ── XL: 1280px ── */
@media (min-width: 1280px) {
  :root { --container-pad: 2.5rem; }

  .site-nav__list li a {
    font-size: var(--fs-sm);
    padding: var(--sp-2) var(--sp-4);
  }

  /* Blog: 3-column grid */
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}


/* ════════════════════════════════════════════════════════════════════
   PHASE 2 — HOMEPAGE RESPONSIVE OVERRIDES
════════════════════════════════════════════════════════════════════ */

/* ── SM: 480px ── */
@media (min-width: 480px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── MD: 768px ── */
@media (min-width: 768px) {
  /* Hero */
  .hero { min-height: 85vh; }

  /* Services: 2 columns */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Areas: 3 columns */
  .areas-grid { grid-template-columns: repeat(3, 1fr); }

  /* CTA banner: side-by-side */
  .cta-banner__inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-10);
  }
  .cta-banner__buttons { justify-content: flex-start; }
}

/* ── LG: 1024px ── */
@media (min-width: 1024px) {
  /* Services: 3 columns */
  .services-grid { grid-template-columns: repeat(3, 1fr); }

  /* Why Choose Us: 2-column split */
  .why-us__inner { grid-template-columns: 1fr 1fr; }

  /* Areas: 4 columns */
  .areas-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── XL: 1280px ── */
@media (min-width: 1280px) {
  /* Hero title: slightly larger */
  .hero__title { font-size: clamp(2.5rem, 5vw, 3.75rem); }

  /* Why Choose Us: 55/45 split giving image more space */
  .why-us__inner { grid-template-columns: 1.1fr 1fr; }
}


/* ════════════════════════════════════════════════════════════════════
   PHASE 3 — SERVICE PAGES
   22. Breadcrumb
   23. Service Hero
   24. Service Intro (2-col)
   25. Feature Cards
   26. Process Steps
   27. FAQ Accordion
════════════════════════════════════════════════════════════════════ */


/* ─── 22. Breadcrumb ────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-5);
}
.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,.65);
}
.breadcrumb__item a {
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.breadcrumb__item a:hover { color: var(--clr-white); }
.breadcrumb__item--current { color: var(--clr-white); font-weight: 600; }
.breadcrumb__sep { color: rgba(255,255,255,.35); font-size: 0.75em; }


/* ─── 23. Service Hero ─────────────────────────────────────────────── */
.service-hero {
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-light) 100%);
  color: var(--clr-white);
  padding-block: var(--sp-16) var(--sp-12);
  /*
   * TODO: Optionally set a service-specific background image per page:
   *   background-image: linear-gradient(...), url('../img/[service]-bg.jpg');
   */
}
.service-hero__inner { max-width: 760px; }

.service-hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.1;
  margin-bottom: var(--sp-4);
}

.service-hero__sub {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,.85);
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: var(--sp-8);
}

.service-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}


/* ─── 24. Service Intro (2-column: text + image) ────────────────────── */
.service-intro__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  align-items: center;
}

.service-intro__title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-4);
}

.service-intro__body {
  font-size: var(--fs-md);
  color: var(--clr-text-light);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
}
.service-intro__body p + p { margin-top: var(--sp-4); }

.service-intro__img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  /* TODO: Replace with real service photo */
}
.service-intro__img-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--clr-gray-100);
  border: 2px dashed var(--clr-gray-300);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  color: var(--clr-gray-500);
  font-size: var(--fs-sm);
  /* TODO: Replace with service photo at assets/img/[service].jpg (800×600 px, WebP) */
}

/* Flip order on larger screens to alternate image/text sides */
.service-intro__inner--reverse .service-intro__media {
  order: -1; /* image first on LG */
}


/* ─── 25. Feature Cards ────────────────────────────────────────────── */
.service-features { background: var(--clr-off-white); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

.feature-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--clr-orange);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--clr-navy);
}

.feature-card__desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-light);
  line-height: 1.65;
}

/* Plain checklist variant (used for "What's Included" etc.) */
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-base);
  line-height: 1.6;
}
.check-list__icon {
  flex-shrink: 0;
  color: var(--clr-orange);
  margin-top: 2px;
}


/* ─── 26. Process Steps ────────────────────────────────────────────── */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  counter-reset: step-counter;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-5);
  align-items: flex-start;
}

.process-step__number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--clr-navy);
  color: var(--clr-white);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  counter-increment: step-counter;
}

.process-step__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: var(--sp-2);
}

.process-step__desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-light);
  line-height: 1.65;
}


/* ─── 27. FAQ Accordion ────────────────────────────────────────────── */
.faq-section { background: var(--clr-white); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 820px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--clr-sky);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--clr-navy);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary {
  background: var(--clr-off-white);
  color: var(--clr-orange);
}

/* +/× toggle icon */
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  color: var(--clr-blue);
  transition: transform 0.25s ease, color var(--transition);
}
.faq-item[open] summary::after {
  content: '×';
  color: var(--clr-orange);
}

.faq-item__body {
  padding: var(--sp-5) var(--sp-6);
  font-size: var(--fs-base);
  color: var(--clr-text-light);
  line-height: 1.75;
  border-top: 1px solid var(--clr-gray-100);
}


/* ════════════════════════════════════════════════════════════════════
   PHASE 4 — LOCATION PAGES
   28. Location Map
   29. Nearby Areas
════════════════════════════════════════════════════════════════════ */


/* ─── 28. Location Map ──────────────────────────────────────────────── */
.location-map {
  background: var(--clr-off-white);
  padding-block: var(--sp-12);
}

.location-map__embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 7;
  background: var(--clr-gray-100);
}

.location-map__embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.location-map__placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  color: var(--clr-gray-500);
  font-size: var(--fs-sm);
  border: 2px dashed var(--clr-gray-300);
  border-radius: var(--radius-lg);
}


/* ─── 29. Nearby Areas ──────────────────────────────────────────────── */
.nearby-areas { background: var(--clr-white); }

.nearby-areas__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

@media (min-width: 640px) {
  .nearby-areas__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .nearby-areas__grid { grid-template-columns: repeat(6, 1fr); }
}


/* ── Phase 3 Responsive ── */
@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .service-intro__inner { grid-template-columns: 1fr 1fr; }
  .service-intro__inner--reverse .service-intro__media { order: -1; }
}
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}


/* ═══════════════════════════════════════════════════════════════════════
   PHASE 5 — ABOUT PAGE
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── 30. Page Hero (About / generic interior pages) ────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--clr-navy) 0%, #1a3a6e 100%);
  color: var(--clr-white);
  padding: calc(var(--header-h) + var(--sp-12)) 0 var(--sp-12);
  text-align: center;
}

.page-hero .breadcrumb { justify-content: center; margin-bottom: var(--sp-5); }
.page-hero .breadcrumb__item a,
.page-hero .breadcrumb__sep { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb__item--current { color: var(--clr-white); }

.page-hero__title {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--sp-4);
  color: var(--clr-orange);
}

.page-hero__sub {
  font-size: var(--fs-lg);
  opacity: .88;
  max-width: 680px;
  margin-inline: auto;
}


/* ─── 31. About — Story section ─────────────────────────────────────── */
.about-story { background: var(--clr-white); }

.about-story__inner {
  display: grid;
  gap: var(--sp-10);
  align-items: center;
}

@media (min-width: 768px) {
  .about-story__inner { grid-template-columns: 1fr 1fr; }
}

.about-story__title {
  font-family: var(--ff-head);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: var(--sp-5);
}

.about-story__body p {
  color: var(--clr-gray-700);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}
.about-story__body p:last-child { margin-bottom: 0; }


/* ─── 32. About — Mission section ───────────────────────────────────── */
.about-mission { background: var(--clr-gray-50); }


/* ─── 33. Team grid ─────────────────────────────────────────────────── */
.about-team { background: var(--clr-white); }

.team-grid {
  display: grid;
  gap: var(--sp-8);
}

@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.team-card:hover { box-shadow: var(--shadow-md); }

.team-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--clr-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  overflow: hidden;
  color: var(--clr-gray-400);
  flex-shrink: 0;
}
.team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__name {
  font-family: var(--ff-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: var(--sp-1);
}

.team-card__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-orange);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: var(--sp-3);
}

.team-card__bio {
  font-size: var(--fs-sm);
  color: var(--clr-gray-600);
  line-height: 1.65;
}


/* ─── 34. Certifications grid ───────────────────────────────────────── */
.about-certs { background: var(--clr-gray-50); }

.certs-grid {
  display: grid;
  gap: var(--sp-6);
}

@media (min-width: 640px) {
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .certs-grid { grid-template-columns: repeat(4, 1fr); }
}

.cert-badge {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}

.cert-badge__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--clr-navy);
  color: var(--clr-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-badge__title {
  font-family: var(--ff-head);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: var(--sp-1);
}

.cert-badge__detail {
  font-size: var(--fs-sm);
  color: var(--clr-gray-600);
  line-height: 1.5;
}


/* ─── 35. About — Service areas ─────────────────────────────────────── */
.about-areas { background: var(--clr-white); }


/* ═══════════════════════════════════════════════════════════════════════
   PHASE 6 — CONTACT PAGE
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── 36. Contact layout ────────────────────────────────────────────── */
.contact-section { background: var(--clr-white); }

.contact-layout {
  display: grid;
  gap: var(--sp-12);
}

@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 340px 1fr; align-items: start; }
}


/* ─── 37. Contact info panel ────────────────────────────────────────── */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.contact-info__block {
  border-left: 3px solid var(--clr-orange);
  padding-left: var(--sp-5);
}

.contact-info__heading {
  font-family: var(--ff-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--clr-gray-500);
  margin-bottom: var(--sp-2);
}

.contact-info__phone {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--ff-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-navy);
  text-decoration: none;
  transition: color .15s;
}
.contact-info__phone:hover { color: var(--clr-orange); }
.contact-info__phone svg { color: var(--clr-orange); flex-shrink: 0; }

.contact-info__link {
  color: var(--clr-navy);
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
}
.contact-info__link:hover { color: var(--clr-orange); }

.contact-info__address {
  font-style: normal;
  color: var(--clr-gray-700);
  line-height: 1.6;
}

.contact-info__note {
  font-size: var(--fs-sm);
  color: var(--clr-gray-500);
  margin-top: var(--sp-2);
}


/* ─── 38. Hours table ───────────────────────────────────────────────── */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.hours-table tr + tr td { padding-top: var(--sp-2); }

.hours-table__day {
  color: var(--clr-gray-700);
  font-weight: 600;
  padding-right: var(--sp-6);
  white-space: nowrap;
}

.hours-table__time { color: var(--clr-gray-600); }


/* ─── 39. Contact form ──────────────────────────────────────────────── */
.contact-form-wrap {
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
}

.contact-form-wrap__title {
  font-family: var(--ff-head);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: var(--sp-2);
}

.contact-form-wrap__sub {
  color: var(--clr-gray-600);
  margin-bottom: var(--sp-7);
  font-size: var(--fs-sm);
}

.contact-form__row {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 560px) {
  .contact-form__row { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-bottom: var(--sp-5);
}
.form-group:last-child { margin-bottom: 0; }

.contact-form__row .form-group { margin-bottom: 0; }
.contact-form__row { margin-bottom: var(--sp-5); }

.form-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-gray-700);
}

.form-req { color: var(--clr-orange); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: .65rem var(--sp-4);
  font-size: var(--fs-base);
  font-family: var(--ff-body);
  color: var(--clr-gray-900);
  background: var(--clr-white);
  border: 1.5px solid var(--clr-gray-300);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--clr-gray-400); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--clr-orange);
  box-shadow: 0 0 0 3px rgba(240,106,0,.15);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: var(--sp-10);
  cursor: pointer;
}

.form-textarea { resize: vertical; min-height: 120px; }

.contact-form__submit {
  width: 100%;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--fs-base);
  padding: .875rem var(--sp-6);
  margin-top: var(--sp-2);
}

.contact-form__privacy {
  font-size: var(--fs-xs, .75rem);
  color: var(--clr-gray-400);
  text-align: center;
  margin-top: var(--sp-3);
}

.cf-feedback {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  min-height: 1.5em;
}
.cf-feedback--success { color: #16a34a; font-weight: 600; }
.cf-feedback--error   { color: #dc2626; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════
   Section 28 — Locations Hub: county-title + grid modifiers
   ═══════════════════════════════════════════════════════════════════ */

.section__county-title {
  font-size: var(--fs-xl);
  font-family: var(--font-heading);
  color: var(--clr-navy);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-6);
}

/* Hub card variant — slightly larger padding */
.area-card--hub {
  padding: var(--sp-5) var(--sp-6);
  font-size: var(--fs-base);
}

/* Large grid for hub page — more columns at wider breakpoints */
.nearby-areas__grid--large {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 480px) {
  .nearby-areas__grid--large { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .nearby-areas__grid--large { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .nearby-areas__grid--large { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 1280px) {
  .nearby-areas__grid--large { grid-template-columns: repeat(6, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════
   Section 29 — Locations Hub: Tabbed Interface + Search
   ═══════════════════════════════════════════════════════════════════ */

/* Search input */
.locations-search {
  text-align: center;
  margin: var(--sp-8) 0 var(--sp-4);
}

#city-search {
  width: 100%;
  max-width: 420px;
  padding: var(--sp-3) var(--sp-5);
  border: 2px solid var(--clr-gray-200);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--clr-text);
  background: var(--clr-white);
  outline: none;
  transition: border-color var(--transition);
}

#city-search:focus {
  border-color: var(--clr-navy);
}

/* Tab buttons */
.locations-tabs {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
  margin: var(--sp-6) 0;
}

.locations-tabs__btn {
  background: transparent;
  border: 2px solid var(--clr-navy);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-navy);
  transition: background var(--transition), color var(--transition);
}

.locations-tabs__btn[aria-selected="true"] {
  background: var(--clr-navy);
  color: var(--clr-white);
}

.locations-tabs__btn:hover:not([aria-selected="true"]) {
  background: var(--clr-gray-100);
}

/* Tab panels — hidden by default, fade in on activation */
.locations-panel {
  display: none;
}

.locations-panel.is-active {
  display: block;
  animation: locFadeIn .25s ease both;
}

@keyframes locFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* No-results message */
.locations-no-results {
  display: none;
  text-align: center;
  color: var(--clr-text-light);
  font-size: var(--fs-md);
  padding: var(--sp-12) 0;
}

.locations-no-results.is-visible {
  display: block;
}


/* =========================================================
   Section 29 — Theme Image System
   ========================================================= */

.theme-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-section img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.service-card img,
.location-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.about-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
}

/* Give service-intro__media a defined aspect ratio so theme-image fills correctly */
.service-intro__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-lg);
}
