/*
Theme Name: Meridian Cleaning Co
Author: Meridian Cleaning Co
Description: A clean, professional WordPress theme for Meridian Cleaning Co, a commercial cleaning company serving the Twin Cities. Includes Home, Services, About, and Contact page templates, a built-in quote request form, and easy contact-info editing via the WordPress Customizer.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: meridian-cleaning
Tags: business, services, custom-menu, custom-logo, one-column
*/

/* =========================================================
   1. Design tokens
   ========================================================= */
:root {
  --teal-900: #134E4A;
  --teal-700: #0F766E;
  --teal-600: #0D9488;
  --teal-500: #14B8A6;
  --teal-100: #CCFBF1;
  --teal-50: #F0FDFA;
  --navy-900: #0F172A;
  --navy-800: #1E293B;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --bg: #FFFFFF;
  --bg-alt: #F6F9FB;
  --border: #E2E8F0;
  --danger: #DC2626;
  --success: #15803D;
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  /* Fluid rhythm: scales smoothly from phone to desktop */
  --gutter: clamp(18px, 4.5vw, 24px);
  --section-y: clamp(52px, 8.5vw, 88px);
  --section-y-tight: clamp(40px, 6vw, 56px);
  --grid-gap: clamp(16px, 3vw, 26px);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 2px 6px -2px rgba(15, 23, 42, 0.08), 0 14px 30px -10px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 20px 45px -18px rgba(15, 118, 110, 0.28);
  --container: 1160px;
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Stop iOS from inflating text when a phone is rotated to landscape */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* belt-and-braces against sideways scroll on phones */
}

img { max-width: 100%; height: auto; }

/* Grid children must be allowed to shrink below their content width,
   otherwise long words (emails, URLs) blow the track out past the viewport. */
.card-grid > *, .split > *, .steps > *, .value-grid > *,
.contact-layout > *, .form-grid > *, .footer-grid > *,
.trustbar__grid > *, .stat-grid > *, .hero__inner > * { min-width: 0; }

/* Long unbroken strings (emails) wrap instead of overflowing */
.contact-card a, .footer-contact a, .topbar a { overflow-wrap: anywhere; }

/* Faster taps + no grey flash on iOS/Android */
a, button, input, select, textarea, label {
  -webkit-tap-highlight-color: rgba(15, 118, 110, 0.12);
}
a, button, [role="button"] { touch-action: manipulation; }

/* Anchor jumps clear the sticky header */
:target { scroll-margin-top: 100px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  text-wrap: balance;
}

/* Floors are set for phone screens, caps for desktop, so headings stay
   comfortable on a 375px screen without shrinking the desktop design. */
h1 { font-size: clamp(1.7rem, 0.4rem + 4.2vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.38rem, 0.4rem + 2.6vw, 2.2rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.08rem, 0.98rem + 0.4vw, 1.25rem); }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--teal-700); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--teal-900); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  /* The `0px` fallback is required: without it, browsers that don't define
     these env() variables treat the whole declaration as invalid and the
     side padding collapses to zero, pushing text to the screen edge. */
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.section { padding: var(--section-y) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: var(--section-y-tight) 0; }

.section-head { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.section-head p { color: var(--slate-600); font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.06rem); margin-bottom: 0; }

.kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* Tighter tracking on narrow screens keeps these labels on one line */
@media (max-width: 480px) {
  .kicker { letter-spacing: 0.07em; padding: 6px 12px; }
}

/* =========================================================
   3. Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, scale 0.15s ease;
  text-decoration: none;
  line-height: 1.2;
}

.btn:active { scale: 0.96; }

.btn--primary { background: var(--teal-700); color: #fff; box-shadow: var(--shadow-lg); }
.btn--primary:hover { background: var(--teal-900); color: #fff; transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--navy-900); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--teal-600); color: var(--teal-700); }

.btn--light { background: #fff; color: var(--teal-900); }
.btn--light:hover { background: var(--teal-50); color: var(--teal-900); transform: translateY(-2px); }

.btn svg { width: 18px; height: 18px; }

/* =========================================================
   4. Header
   ========================================================= */
.topbar {
  background: var(--navy-900);
  color: #CBD5E1;
  font-size: 0.85rem;
  padding: 3px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a {
  color: #E2E8F0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 0;
  min-height: 40px;
}
.topbar a:hover { color: var(--teal-500); }
.topbar svg { width: 15px; height: 15px; }
.topbar__contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__note { display: inline-flex; align-items: center; gap: 7px; }

/* On phones the email is too long for the bar. It lives in the footer
   and on the contact page. Keep the tap-to-call number and trust line.
   (`.topbar a` is a class+type selector, so these need matching weight.) */
@media (max-width: 660px) {
  .topbar { font-size: 0.84rem; }
  .topbar .container { justify-content: center; gap: 0 18px; }
  .topbar a.topbar__email { display: none; }
  .topbar a { font-weight: 600; }
}

@media (max-width: 420px) {
  /* Tightest phones: the number alone, given full width to stay tappable */
  .topbar .topbar__note { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px; /* .container side padding must survive */
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-heading);
  font-weight: 700;
  /* Scales down on phones so longer company names still fit beside the menu button */
  font-size: clamp(0.98rem, 0.86rem + 0.75vw, 1.22rem);
  color: var(--navy-900);
  letter-spacing: -0.01em;
  min-height: 44px;
}
.brand:hover { color: var(--teal-700); }
/* Allows the title to shrink/wrap instead of shoving the menu button off-screen
   when a site name is long (e.g. a full domain used as the title). */
.brand { min-width: 0; }
.brand__name { min-width: 0; line-height: 1.2; }
.brand__mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.brand__mark svg { width: 22px; height: 22px; }
.brand .custom-logo { max-height: 48px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
/* Scoped to `ul` so any buttons placed in the nav keep their own colors */
.main-nav ul a {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--navy-800);
  padding: 9px 15px;
  border-radius: 999px;
}
.main-nav ul a:hover { color: var(--teal-700); background: var(--teal-50); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--teal-700); background: var(--teal-50); }

.header-cta { display: inline-flex; }
.header-cta .btn { padding: 11px 22px; font-size: 0.94rem; box-shadow: none; }

.nav-toggle {
  display: none;
  flex-shrink: 0; /* never squeezed by a long site title */
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px;
  cursor: pointer;
  color: var(--navy-900);
  transition: border-color 0.2s ease, background 0.2s ease, scale 0.15s ease;
}
.nav-toggle:hover { border-color: var(--teal-600); background: var(--teal-50); }
.nav-toggle:active { scale: 0.96; }
.nav-toggle svg { width: 22px; height: 22px; display: block; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-header__inner { padding-block: 12px; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.22s ease-out, transform 0.22s ease-out, visibility 0.22s;
  }
  .nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav ul a { padding: 12px 14px; border-radius: 10px; font-size: 1.05rem; min-height: 48px; display: flex; align-items: center; }
  /* Menu scrolls independently if it's taller than the screen */
  .main-nav {
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Prevent the page scrolling behind an open mobile menu */
body.nav-locked { overflow: hidden; }

/* =========================================================
   5. Hero
   ========================================================= */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(20, 184, 166, 0.14), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(13, 148, 136, 0.10), transparent 60%),
    var(--bg-alt);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 5vw, 56px);
  align-items: center;
  /* padding-block only: this element also has .container, whose side
     padding must survive. A `padding: X 0` shorthand would erase it. */
  padding-block: clamp(52px, 8vw, 96px) clamp(60px, 9vw, 104px);
}
.hero p.lead {
  font-size: clamp(0.98rem, 0.92rem + 0.4vw, 1.15rem);
  color: var(--slate-600);
  max-width: 34em;
  margin-bottom: clamp(24px, 3.5vw, 30px);
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: clamp(26px, 4vw, 34px); }

.hero__chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}
.chip svg { width: 15px; height: 15px; color: var(--teal-600); }

.hero__panel { position: relative; }
.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 30px) clamp(20px, 4vw, 30px) clamp(20px, 3.5vw, 26px);
  box-shadow: var(--shadow-md);
}
.hero-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; margin-bottom: 16px; }
.hero-card h3 svg { width: 21px; height: 21px; color: var(--teal-600); }
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid var(--bg-alt);
  color: var(--slate-600);
  font-size: 0.95rem;
}
.hero-card li:last-child { border-bottom: 0; }
.hero-card li svg { width: 17px; height: 17px; color: var(--teal-600); flex-shrink: 0; margin-top: 4px; }
.hero-card li strong { color: var(--navy-900); }

.hero-badge {
  position: absolute;
  bottom: -22px;
  left: -18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-900);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 999px;
  padding: 11px 20px;
  box-shadow: var(--shadow-md);
}
.hero-badge svg { width: 17px; height: 17px; color: var(--teal-500); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero-badge { left: 12px; right: 12px; justify-content: center; }
}

/* Phones: the floating badge needs room and the chips get roomier taps */
@media (max-width: 560px) {
  .hero__inner { padding-bottom: clamp(70px, 14vw, 84px); }
  .hero-badge {
    position: static;
    display: flex;
    margin-top: 18px;
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .chip { padding: 9px 14px; }
}

/* =========================================================
   6. Trust bar / stats
   ========================================================= */
.trustbar { border-top: 1px solid var(--border); background: #fff; }
.trustbar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  padding-block: clamp(22px, 3.5vw, 30px); /* .container side padding must survive */
}
.trustbar__grid { align-items: center; }
.trust-item { display: flex; align-items: center; gap: 13px; }
.trust-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-700);
  flex-shrink: 0;
}
.trust-item__icon svg { width: 21px; height: 21px; }
.trust-item strong { display: block; font-family: var(--font-heading); font-size: 0.94rem; color: var(--navy-900); text-wrap: balance; }
.trust-item span { font-size: 0.85rem; color: var(--slate-500); }

@media (max-width: 900px) { .trustbar__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .trustbar__grid { grid-template-columns: 1fr; gap: 14px; }
  .trust-item__icon { width: 40px; height: 40px; }
}

/* =========================================================
   7. Cards / services
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 3.5vw, 30px) clamp(20px, 3.2vw, 28px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
  color: var(--teal-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.22s ease;
}
.card:hover .card__icon { transform: scale(1.08); }
.card__icon svg { width: 25px; height: 25px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate-600); font-size: 0.97rem; margin-bottom: 14px; }
.card__link {
  margin-top: auto;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0 4px;
  min-height: 44px;
  align-self: flex-start;
}
.card__link svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.card__link:hover svg { transform: translateX(3px); }

@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
  /* Icon beside the title instead of above it, saving about 70px per card,
     which matters when six cards stack on a phone. */
  .card { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; align-items: center; }
  .card__icon { width: 46px; height: 46px; margin-bottom: 0; grid-row: 1; }
  .card__icon svg { width: 22px; height: 22px; }
  .card h3 { grid-column: 2; margin-bottom: 0; }
  .card p { grid-column: 1 / -1; margin: 12px 0 10px; }
  .card__link { grid-column: 1 / -1; justify-self: start; }
}

/* =========================================================
   8. Split / checklist sections
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 60px);
  align-items: center;
}
.split .section-head { text-align: left; margin: 0 0 26px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 14px; padding: 13px 0; align-items: flex-start; }
.check-list li + li { border-top: 1px solid var(--border); }
.check-list svg { width: 22px; height: 22px; color: var(--teal-600); flex-shrink: 0; margin-top: 2px; }
.check-list strong { display: block; font-family: var(--font-heading); font-size: 1.02rem; color: var(--navy-900); }
.check-list p { margin: 2px 0 0; color: var(--slate-600); font-size: 0.95rem; }

.stat-panel {
  background: linear-gradient(160deg, var(--navy-900), #16324A 65%, var(--teal-900));
  border-radius: 20px;
  padding: clamp(28px, 5vw, 44px) clamp(24px, 4.5vw, 40px);
  color: #E2E8F0;
  box-shadow: var(--shadow-lg);
}
.stat-panel h3 { color: #fff; font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem); margin-bottom: clamp(18px, 3vw, 24px); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 26px); }
.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  font-weight: 700;
  color: var(--teal-500);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 0.9rem; color: #CBD5E1; }

@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 44px; } }

/* =========================================================
   9. Steps
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); counter-reset: step; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--teal-700);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px -6px rgba(15, 118, 110, 0.5);
}
.step h3 { font-size: 1.12rem; }
.step p { color: var(--slate-600); font-size: 0.96rem; margin: 0; }

@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  /* Number sits beside the heading so each step reads as one compact row */
  .step { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; padding: 24px 22px; align-items: center; }
  .step__num { width: 42px; height: 42px; font-size: 1.05rem; margin-bottom: 0; }
  .step h3 { grid-column: 2; margin-bottom: 0; }
  .step p { grid-column: 1 / -1; margin-top: 12px; }
}

/* =========================================================
   10. Service area
   ========================================================= */
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 760px; margin: 0 auto; }
.area-chips .chip { font-weight: 500; }
.area-note { text-align: center; color: var(--slate-500); font-size: 0.92rem; margin-top: 22px; }

/* =========================================================
   11. CTA band
   ========================================================= */
.cta-band {
  background:
    radial-gradient(900px 400px at 110% -40%, rgba(20, 184, 166, 0.35), transparent 60%),
    linear-gradient(140deg, var(--navy-900), var(--teal-900));
  border-radius: clamp(18px, 3vw, 24px);
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(26px, 4vw, 40px);
  align-items: center;
  color: #E2E8F0;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #CBD5E1; margin: 0; font-size: clamp(1rem, 0.96rem + 0.25vw, 1.05rem); }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.cta-band .btn--primary { background: var(--teal-500); color: var(--navy-900); box-shadow: none; }
.cta-band .btn--primary:hover { background: var(--teal-100); }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.cta-band .btn--ghost:hover { border-color: #fff; color: #fff; }

@media (max-width: 900px) {
  .cta-band { grid-template-columns: 1fr; text-align: center; }
  .cta-band__actions { justify-content: center; }
}
@media (max-width: 560px) {
  .cta-band__actions { display: grid; gap: 12px; }
  .cta-band__actions .btn { justify-content: center; width: 100%; }
}

/* =========================================================
   12. Page hero (inner pages)
   ========================================================= */
.page-hero {
  background:
    radial-gradient(900px 380px at 90% -30%, rgba(20, 184, 166, 0.16), transparent 60%),
    var(--bg-alt);
  padding: clamp(44px, 7vw, 72px) 0 clamp(38px, 6vw, 60px);
  border-bottom: 1px solid var(--border);
}
.page-hero .container { max-width: 820px; text-align: center; }
.page-hero p { color: var(--slate-600); font-size: clamp(0.96rem, 0.9rem + 0.35vw, 1.1rem); margin: 0 auto; max-width: 38em; }

/* =========================================================
   13. Service detail rows
   ========================================================= */
.service-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(16px, 2.5vw, 24px);
  padding: clamp(26px, 4vw, 34px) 0;
}
.service-row + .service-row { border-top: 1px solid var(--border); }
.service-row__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
  color: var(--teal-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.service-row__icon { transition: transform 0.22s ease; }
.service-row:hover .service-row__icon { transform: scale(1.08); }
.service-row__icon svg { width: 27px; height: 27px; }
.service-row h3 { margin-bottom: 6px; }
.service-row p { color: var(--slate-600); margin-bottom: 12px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag-list li {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--teal-900);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: 999px;
  padding: 5px 13px;
}

@media (max-width: 620px) {
  /* Icon inline with the service name rather than stacked above it */
  .service-row { grid-template-columns: auto 1fr; gap: 0 16px; align-items: center; }
  .service-row__icon { width: 48px; height: 48px; }
  .service-row__icon svg { width: 23px; height: 23px; }
  .service-row h3 { grid-column: 2; margin-bottom: 0; }
  .service-row > div { display: contents; }
  .service-row p { grid-column: 1 / -1; margin: 12px 0 12px; }
  .service-row .tag-list { grid-column: 1 / -1; }
}

/* =========================================================
   14. Values grid (About)
   ========================================================= */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--grid-gap); }
.value {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 3.5vw, 28px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.value h3 { display: flex; align-items: center; gap: 11px; font-size: 1.08rem; }
.value h3 svg { width: 21px; height: 21px; color: var(--teal-600); }
.value p { color: var(--slate-600); font-size: 0.96rem; margin: 0; }

@media (max-width: 720px) { .value-grid { grid-template-columns: 1fr; } }

/* =========================================================
   15. Contact page
   ========================================================= */
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 44px); align-items: start; }
.contact-cards { display: grid; gap: 18px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.contact-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--teal-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card__icon svg { width: 21px; height: 21px; }
.contact-card strong { display: block; font-family: var(--font-heading); color: var(--navy-900); margin-bottom: 2px; }
.contact-card a, .contact-card span { color: var(--slate-600); font-size: 0.97rem; }
/* Tappable rows, not 17px-tall text links */
.contact-card a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 0; }
.contact-card a:hover { color: var(--teal-700); }

.quote-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 38px 36px;
  box-shadow: var(--shadow-md);
}
.quote-form h3 { margin-bottom: 4px; }
.quote-form > p { color: var(--slate-600); font-size: 0.95rem; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; color: var(--navy-900); }
.form-field .req { color: var(--danger); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy-900);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  min-height: 48px;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field select { cursor: pointer; }
.form-field input:hover:not(:focus),
.form-field select:hover:not(:focus),
.form-field textarea:hover:not(:focus) { border-color: var(--slate-400); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--teal-600);
  background: #fff;
}
.form-hint { font-size: 0.82rem; color: var(--slate-500); }
.form-submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-submit .form-hint { margin: 0; }

.form-notice {
  grid-column: 1 / -1;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center;
}
.form-notice svg { width: 19px; height: 19px; flex-shrink: 0; }
.form-notice--success { background: #F0FDF4; border: 1px solid #BBF7D0; color: var(--success); }
.form-notice--error { background: #FEF2F2; border: 1px solid #FECACA; color: var(--danger); }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  /* Form first on mobile, since it's the reason people are on this page */
  .contact-layout { grid-template-columns: 1fr; }
  .contact-layout .quote-form { order: -1; }
  .form-grid { grid-template-columns: 1fr; }
  .quote-form { padding: clamp(22px, 4vw, 28px); }
}
@media (max-width: 560px) {
  .contact-cards { grid-template-columns: 1fr; }
  .form-submit { display: grid; gap: 10px; }
  .form-submit .btn { justify-content: center; width: 100%; }
  .form-submit .form-hint { text-align: center; }
}

/* =========================================================
   16. Generic page content
   ========================================================= */
.page-content { padding: 64px 0 88px; }
.page-content .entry { max-width: 760px; margin: 0 auto; }
.page-content .entry h2 { margin-top: 1.4em; }
.page-content .entry ul, .page-content .entry ol { color: var(--slate-600); padding-left: 1.3em; }

/* =========================================================
   17. Footer
   ========================================================= */
.site-footer { background: var(--navy-900); color: #94A3B8; margin-top: 0; }
.site-footer a { color: #CBD5E1; }
.site-footer a:hover { color: var(--teal-500); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: clamp(30px, 4.5vw, 48px);
  padding: clamp(44px, 6.5vw, 64px) 0 clamp(34px, 5vw, 48px);
}
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 0.93rem; max-width: 30em; }
.footer-badges { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.footer-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 13px;
}
.footer-badges svg { width: 14px; height: 14px; color: var(--teal-500); }
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { display: flex; }
/* Full-height tap targets rather than 17px-tall text links */
.footer-links a { display: flex; align-items: center; min-height: 44px; padding: 2px 0; }
.footer-contact ul { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; gap: 11px; padding: 4px 0; align-items: flex-start; font-size: 0.94rem; }
.footer-contact li a { display: flex; align-items: center; min-height: 44px; }
.footer-contact li span { padding: 8px 0; }
.footer-contact svg { width: 17px; height: 17px; color: var(--teal-500); flex-shrink: 0; margin-top: 13px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .footer-bottom { flex-direction: column; gap: 6px; text-align: left; }
}

/* =========================================================
   17b. Sticky mobile action bar (phones only)
   Local-service visitors on a phone want to call or request a
   quote without scrolling back to the header.
   ========================================================= */
.mobile-bar { display: none; }

@media (max-width: 700px) {
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    z-index: 120;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px max(14px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-right, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 24px -12px rgba(15, 23, 42, 0.22);
    transform: translateY(110%);
    transition: transform 0.28s ease-out;
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn {
    justify-content: center;
    width: 100%;
    padding: 13px 16px;
    font-size: 0.95rem;
    box-shadow: none;
    min-height: 48px;
  }
  .mobile-bar .btn--ghost { background: #fff; border-color: var(--teal-600); color: var(--teal-700); }
  /* Reserve room so the bar never covers the last of the footer */
  body { padding-bottom: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-bar { transition: none; }
}

/* =========================================================
   17c. Small-phone & landscape refinements
   ========================================================= */
/* =========================================================
   17d. Mobile type scale
   Headings and supporting copy step down on phones; core body
   copy stays at 16px so it never gets hard to read.
   ========================================================= */
@media (max-width: 620px) {
  body { line-height: 1.6; }
  /* Long one-word titles wrap rather than overflow the header */
  .brand__name { overflow-wrap: anywhere; }
  .site-header__inner { gap: 12px; }
  .btn { font-size: 0.95rem; padding: 13px 24px; }
  .main-nav ul a { font-size: 1rem; }
  .hero-card h3 { font-size: 1.05rem; }
  .hero-card li { font-size: 0.92rem; }
  .check-list strong { font-size: 0.97rem; }
  .check-list p { font-size: 0.9rem; }
  .card p, .service-row p, .value p, .step p { font-size: 0.92rem; }
  .trust-item strong { font-size: 0.93rem; }
  .trust-item span { font-size: 0.82rem; }
  .stat span { font-size: 0.85rem; }
  .stat-panel h3 { font-size: 1.1rem; }
  .contact-card a, .contact-card span { font-size: 0.92rem; }
  .footer-brand p { font-size: 0.89rem; }
  .footer-contact li { font-size: 0.9rem; }
  .site-footer h4 { font-size: 0.88rem; }
  .quote-form h3 { font-size: 1.12rem; }
  .form-field label { font-size: 0.87rem; }
  .kicker { font-size: 0.79rem; }
}

@media (max-width: 400px) {
  .brand__mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand__mark svg { width: 19px; height: 19px; }
  .check-list li { padding: 11px 0; }
  .area-chips { gap: 8px; }
  .chip { font-size: 0.82rem; }
  .quote-form { border-radius: 16px; }
}

/* Landscape phones: vertical space is scarce, so compress the tall bits */
@media (max-height: 500px) and (orientation: landscape) {
  .site-header { position: static; }
  .hero__inner { padding-block: 36px 44px; }
  .section { padding: 44px 0; }
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

/* Tablets: keep long-form text from running edge to edge */
@media (min-width: 620px) and (max-width: 900px) {
  .split > div > p, .page-content .entry { max-width: 62ch; }
}

/* =========================================================
   18. Reveal animation + reduced motion
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   19. WordPress helpers
   ========================================================= */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
}
.skip-link {
  left: 8px;
  top: 8px;
  z-index: 200;
  background: var(--teal-700);
  color: #fff;
  padding: 14px 22px;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  position: fixed !important;
}
.wp-block-image img { border-radius: var(--radius); }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
