/* ============================================================
   BAM BASEMENTS AND MASONS — Global Stylesheet v3.0
   Brand: Montserrat | #9C0000 Red | #0170B9 Blue | #3A3A3A Dark
   Patent-compliant nav: clean top nav, NO mega menu.
   Sub-page navigation lives in hub page body content only.
   Cloudflare Pages Static Site — No Framework Dependencies
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* DESIGN TOKENS */
:root {
  --red:        #9C0000;
  --red-dark:   #7a0000;
  --blue:       #0170B9;
  --blue-dark:  #015a94;
  --dark:       #3A3A3A;
  --dark-alt:   #4B4F58;
  --footer-bg:  #2d2d2d;
  --white:      #FFFFFF;
  --body-text:  #555555;
  --light-bg:   #F5F5F5;
  --border:     #E0E0E0;
  --gold:       #FFD700;
  --green:      #2e7d32;
  --font:       'Montserrat', sans-serif;
  --container:  1400px;
  --radius:     4px;
  --radius-lg:  8px;
  --shadow:     0 2px 10px rgba(0,0,0,0.10);
  --shadow-lg:  0 6px 24px rgba(0,0,0,0.15);
  --transition: 0.2s ease;
  --header-h:   108px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font); font-size: 1rem; line-height: 1.7; color: var(--body-text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 2px; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font); font-weight: 700; line-height: 1.25; color: var(--dark); }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* LAYOUT */
.container         { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 820px; margin: 0 auto; padding: 0 1.25rem; }
.section           { padding: 4rem 0; }
.section--sm       { padding: 2.5rem 0; }
.section--light    { background: var(--light-bg); }
.section--dark     { background: var(--footer-bg); color: var(--white); }
.section--dark h1,.section--dark h2,.section--dark h3,.section--dark h4 { color: var(--white); }
.section--red      { background: var(--red); color: var(--white); }
.section--red h1,.section--red h2,.section--red h3 { color: var(--white); }

/* SKIP LINK */
.skip-link { position: absolute; top: -100%; left: 0; background: var(--red); color: var(--white); padding: 0.5rem 1rem; z-index: 9999; font-weight: 600; }
.skip-link:focus { top: 0; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; font-family: var(--font); font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.75rem 1.6rem; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: all var(--transition); white-space: nowrap; text-decoration: none; min-height: 44px; }
.btn:hover { transform: translateY(-1px); }
.btn--primary   { background: var(--red);   color: var(--white); border-color: var(--red); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn--secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn--secondary:hover { background: var(--white); color: var(--red); }
.btn--blue      { background: var(--blue);  color: var(--white); border-color: var(--blue); }
.btn--blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn--outline-red { background: transparent; color: var(--red); border-color: var(--red); }
.btn--outline-red:hover { background: var(--red); color: var(--white); }
.btn--dark      { background: var(--dark);  color: var(--white); border-color: var(--dark); }
.btn--dark:hover { background: #222; border-color: #222; color: var(--white); }
.btn--lg  { padding: 0.9rem 2rem; font-size: 1rem; }
.btn--sm  { padding: 0.5rem 1rem; font-size: 0.78rem; }
.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.header-topbar { background: var(--dark); color: var(--white); font-size: 0.78rem; padding: 0.35rem 0; }
.header-topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.header-topbar a { color: rgba(255,255,255,0.85); }
.header-topbar a:hover { color: var(--white); }
.topbar-left,.topbar-right { display: flex; align-items: center; gap: 1.25rem; }
.topbar-item { display: flex; align-items: center; gap: 0.35rem; font-weight: 500; }
.topbar-item--phone { font-weight: 700; color: var(--white) !important; }
.header-main { padding: 1rem 0; }
.header-inner { display: flex; align-items: center; gap: 1rem; }
.site-logo { flex-shrink: 0; }
.site-logo img { height: 80px; width: auto; }

/* ============================================================
   PATENT-COMPLIANT TOP NAV
   US7716216 Reasonable Surfer: max 9 links, all hub-level,
   each with high individual click probability.
   US6285999B1 Recursive Authority: hierarchy preserved.
   Homepage -> Hub -> Sub-page. NO sub-pages in top nav.
   Sub-page navigation lives in hub page body content only.
   ============================================================ */
.primary-nav-wrapper { flex: 1; display: flex; align-items: center; justify-content: flex-end; }
.primary-nav { display: flex; align-items: center; list-style: none; padding: 0; margin: 0; gap: 0; }
.primary-nav > li > a { display: block; padding: 1.35rem 0.85rem; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dark); white-space: nowrap; transition: color var(--transition), border-bottom-color var(--transition); border-bottom: 3px solid transparent; }
.primary-nav > li > a:hover, .primary-nav > li > a[aria-current='page'] { color: var(--red); border-bottom-color: var(--red); }

/* About dropdown — single level only */
.primary-nav > li.has-dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; right: 0; background: var(--white); box-shadow: var(--shadow-lg); border-top: 3px solid var(--red); min-width: 190px; z-index: 999; padding: 0.4rem 0; }
.primary-nav > li.has-dropdown:hover .dropdown-menu, .primary-nav > li.has-dropdown.is-open .dropdown-menu { display: block; }
.dropdown-menu li a { display: block; padding: 0.55rem 1.25rem; font-size: 0.84rem; color: var(--dark-alt); font-weight: 500; }
.dropdown-menu li a:hover { background: var(--light-bg); color: var(--red); }

.header-cta { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; padding-right: 0; }
.header-cta .btn { font-size: 0.82rem; padding: 0.75rem 1.25rem; }
/* Override: primary-nav > li > a sets color: dark which cascades into btn inside li.header-cta */
.primary-nav > li.header-cta > a.btn--primary,
.header-cta .btn--primary,
.header-cta a.btn--primary { color: var(--white) !important; background: var(--red) !important; border-color: var(--red) !important; border-bottom: none !important; }
.primary-nav > li.header-cta > a.btn--primary:hover,
.header-cta .btn--primary:hover { color: var(--white) !important; background: var(--red-dark) !important; border-color: var(--red-dark) !important; }
.header-cta .btn--phone { color: var(--white) !important; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--dark); padding: 0.25rem; margin-left: auto; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

/* BREADCRUMB */
.breadcrumb { background: var(--light-bg); border-bottom: 1px solid var(--border); padding: 0.6rem 0; font-size: 0.8rem; }
.breadcrumb__list { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; list-style: none; padding: 0; }
.breadcrumb__item + .breadcrumb__item::before { content: '\203A'; margin-right: 0.3rem; color: var(--body-text); }
.breadcrumb__item a { color: var(--blue); font-weight: 500; }
.breadcrumb__item[aria-current='page'] { color: var(--body-text); font-weight: 600; }

/* HERO */
.hero { position: relative; background-color: #1a1a1a; background-image: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.75)), url('/images/services/hero-team.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; min-height: 520px; display: flex; align-items: center; padding: 4rem 0; color: var(--white); }
.hero--short   { min-height: 280px; }
.hero--service { min-height: 420px; }
.hero--geo     { min-height: 380px; }
.hero--home    { min-height: 580px; }
/* HERO-SECTION / HERO-CONTENT (alternate hero markup used on some sub-pages) */
.hero-section { position: relative; background-color: #1a1a1a; background-image: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.75)), url('/images/services/hero-team.jpg'); background-size: cover; background-position: center; min-height: 420px; display: flex; align-items: center; padding: 4rem 0; color: var(--white); }
.hero-section .overlay { display: none; }
.hero-content { max-width: 780px; margin: 0 auto; text-align: center; padding: 0 1.25rem; }
.hero-content h1 { color: var(--white); font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.4); text-transform: uppercase; }
.hero-content .sub-headline { font-size: 1.05rem; margin-bottom: 1.75rem; opacity: 0.95; color: rgba(255,255,255,0.9); }
.hero-content .cta-buttons { justify-content: center; }
.hero__content { max-width: 680px; }
.hero__content--center { max-width: 780px; margin: 0 auto; text-align: center; }
.hero h1 { color: var(--white); font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.4); text-transform: uppercase; }
.hero__sub { font-size: 1.05rem; margin-bottom: 1.75rem; opacity: 0.95; max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__content--center .hero__cta { justify-content: center; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.5rem; }
.hero__trust-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.hero__trust-item::before { content: '\2713'; color: var(--gold); font-weight: 800; }
.star-badge { display: inline-flex; flex-direction: column; gap: 0.2rem; margin-bottom: 1rem; }
.star-badge__stars { font-size: 1.5rem; color: var(--gold); letter-spacing: 0.1em; }
.star-badge__label { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.9); }

/* STATS BAR */
.stats-bar { background: var(--red); padding: 1.75rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; text-align: center; }
.stat-item { color: var(--white); }
.stat-number { display: block; font-size: 2.25rem; font-weight: 800; line-height: 1; }
.stat-label  { display: block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.9; margin-top: 0.3rem; }

/* TRUST BAR */
.trust-bar { background: var(--dark); padding: 1.1rem 0; }
.trust-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; color: var(--white); font-size: 0.82rem; font-weight: 600; }
.trust-item__icon { font-size: 1.1rem; color: var(--gold); }

/* WHY BAM CARD GRID */
.why-bam-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.why-bam-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.why-bam-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
  transform: translateY(-3px);
}
.why-bam-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}
.why-bam-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.why-bam-card__text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 900px) {
  .why-bam-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why-bam-grid { grid-template-columns: 1fr; gap: 1rem; }
  .why-bam-card { padding: 1.5rem 1.25rem; text-align: left; display: flex; flex-direction: row; align-items: flex-start; gap: 1rem; }
  .why-bam-card__icon { font-size: 2rem; margin-bottom: 0; flex-shrink: 0; }
  .why-bam-card__title { font-size: 0.95rem; }
}

/* ============================================================
   HUB SERVICE CARDS
   These replace the mega menu. Sub-page links live in the
   content body of each hub page — full PageRank weight.
   ============================================================ */
.hub-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.5rem; margin-top: 2rem; }
.hub-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); display: flex; flex-direction: column; }
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--red); }
/* hub-card__img: 3:2 aspect ratio (600×400), object-fit:cover for uniform look */
.hub-card__img  { width: 100%; aspect-ratio: 3 / 2; max-height: 400px; overflow: hidden; display: block; position: relative; flex-shrink: 0; }
.hub-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; top: 0; left: 0; }
.hub-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.hub-card__title { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.hub-card__text  { font-size: 0.875rem; color: var(--body-text); flex: 1; margin-bottom: 1rem; }
.hub-card__link  { color: var(--red); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 0.3rem; }
.hub-card__link::after { content: ' \2192'; }
.hub-card__link:hover { color: var(--red-dark); }

/* SERVICE CARDS */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.5rem; margin-top: 2rem; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* service-card__img: class on img tag directly - natural height, no stretch */
.service-card__img   { width: 100%; height: auto; max-height: 300px; object-fit: cover; display: block; flex-shrink: 0; }
.service-card__body  { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.service-card__title { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.service-card__text  { font-size: 0.875rem; color: var(--body-text); flex: 1; margin-bottom: 1rem; }
.service-card__link  { color: var(--red); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.service-card__link:hover { color: var(--red-dark); }
.service-card__link::after { content: ' \2192'; }

/* REVIEWS */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 1.5rem; margin-top: 2rem; }
.review-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.75rem; }
.review-card--featured { border-color: var(--red); border-width: 2px; }
.review-card__stars    { color: var(--gold); font-size: 1.1rem; letter-spacing: 0.08em; }
.review-card__badge    { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.2rem 0.6rem; border-radius: 2px; background: var(--green); color: var(--white); width: fit-content; }
.review-card__text     { font-size: 0.9rem; color: var(--dark-alt); font-style: italic; line-height: 1.65; flex: 1; border: none; padding: 0; margin: 0; }
.review-card__author   { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.review-card__location { font-size: 0.78rem; color: var(--body-text); }
.review-card__service  { font-size: 0.78rem; color: var(--blue); font-weight: 600; }
.reviews-cta { text-align: center; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }

/* PROCESS STEPS */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.process-step { text-align: center; padding: 1.5rem 1rem; }
.process-step__num { width: 56px; height: 56px; background: var(--red); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; margin: 0 auto 1rem; }
.process-step h3 { font-size: 0.95rem; color: var(--dark); margin-bottom: 0.4rem; }
.process-step p  { font-size: 0.85rem; color: var(--body-text); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.5rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { padding: 1rem 1.25rem; font-weight: 700; font-size: 0.95rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; background: var(--white); color: var(--dark); transition: background var(--transition); min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; font-weight: 400; color: var(--red); flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item[open] summary { background: var(--light-bg); color: var(--red); }
.faq-item__answer { padding: 1rem 1.25rem; font-size: 0.9rem; background: var(--light-bg); border-top: 1px solid var(--border); }
.faq-item__answer p { max-width: none; margin-bottom: 0.5rem; }

/* CTA SECTION */
.cta-section {
  background: #1a1a1a;
  background-image: linear-gradient(135deg, #1a1a1a 0%, #2a1a1a 50%, #1a1a1a 100%);
  padding: 5rem 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(156,0,0,0.03) 40px,
    rgba(156,0,0,0.03) 80px
  );
  pointer-events: none;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  background: rgba(156,0,0,0.12);
  border: 1px solid rgba(156,0,0,0.3);
  padding: 0.3rem 0.85rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}
.cta-inner h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.cta-sub {
  font-size: 1rem;
  opacity: 0.8;
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}
.cta-trust {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 220px;
}
.cta-trust-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.cta-stars {
  font-size: 1.4rem;
  color: #f5a623;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}
.cta-rating-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.cta-reviews {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
}
.cta-trust-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cta-trust-item {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cta-trust-item::before { content: none; }

/* NEXT STEPS */
.next-steps { padding: 3rem 0; background: var(--light-bg); }
.next-steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.next-step-card { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; transition: all var(--transition); }
.next-step-card:hover { border-color: var(--red); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.next-step-card__icon  { font-size: 2rem; }
.next-step-card__title { font-weight: 700; color: var(--dark); font-size: 1rem; margin: 0; }
.next-step-card__desc  { color: var(--body-text); font-size: 0.85rem; margin: 0; }

/* GEO AREA LINKS */
.service-area-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.service-area-link { display: inline-block; padding: 0.5rem 0.9rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.82rem; font-weight: 600; color: var(--dark-alt); transition: all var(--transition); }
.service-area-link:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* CONTENT BODY */
.content-body { padding: 3rem 0; }
.content-body h2 { margin: 2rem 0 0.75rem; color: var(--dark); }
.content-body h3 { margin: 1.5rem 0 0.5rem; color: var(--dark); }
.content-body p  { margin-bottom: 1.1rem; }
.content-body ul,.content-body ol { padding-left: 1.5rem; margin-bottom: 1.1rem; }
.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }
.content-body li { margin-bottom: 0.4rem; }
.content-body blockquote { border-left: 4px solid var(--red); padding: 0.75rem 1.25rem; background: var(--light-bg); margin: 1.5rem 0; font-style: italic; color: var(--dark-alt); }

/* CONTENT + SIDEBAR */
/* Self-constraining: when used without a .container wrapper, max-width + padding are applied */
.content-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; padding-top: 2.5rem; padding-bottom: 2.5rem; width: 100%; }
/* When already inside .container or .section>.container, reset the self-padding to avoid double-padding */
.container .content-with-sidebar,
.section .content-with-sidebar { padding-left: 0; padding-right: 0; padding-top: 0; padding-bottom: 0; }
.sidebar { position: sticky; top: calc(var(--header-h) + 1rem); }
.sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.sidebar-card h3 { font-size: 0.95rem; color: var(--dark); margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--red); }
.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card ul li { margin-bottom: 0.4rem; }
.sidebar-card ul li a { font-size: 0.85rem; color: var(--dark-alt); font-weight: 500; }
.sidebar-card ul li a:hover { color: var(--red); }
.sidebar-cta {
  background: #1e2a35;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.10);
  border-top: 3px solid #e8a020;
  border-radius: 8px;
  padding: 1.5rem !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}
.sidebar-cta h4 {
  color: #e8a020;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}
.sidebar-cta h3 { color: #e8a020; font-size: 1.1rem; font-weight: 800; margin-bottom: 0.75rem; }
.sidebar-cta p  { font-size: 0.875rem; color: rgba(255,255,255,0.80); margin-bottom: 1.25rem; line-height: 1.65; }
/* Override btn--primary inside sidebar-cta to use amber instead of red */
.sidebar-cta .btn--primary {
  background: #e8a020 !important;
  border-color: #e8a020 !important;
  color: #1e2a35 !important;
  font-weight: 800;
  font-size: 0.72rem !important;
  letter-spacing: 0.03em !important;
  padding: 0.7rem 0.75rem !important;
  white-space: normal !important;
  text-align: center !important;
  line-height: 1.3 !important;
}
.sidebar-cta .btn--primary:hover {
  background: #d4911a !important;
  border-color: #d4911a !important;
  color: #1e2a35 !important;
}
/* Override btn--dark inside sidebar-cta to use white outline */
.sidebar-cta .btn--dark {
  background: transparent !important;
  border-color: rgba(255,255,255,0.45) !important;
  color: var(--white) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.03em !important;
  padding: 0.7rem 0.75rem !important;
  white-space: normal !important;
  text-align: center !important;
  line-height: 1.3 !important;
}
.sidebar-cta .btn--dark:hover {
  background: rgba(255,255,255,0.10) !important;
  border-color: rgba(255,255,255,0.70) !important;
  color: var(--white) !important;
}

/* COMPARISON TABLE */
.comparison-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.comparison-table th { background: var(--dark); color: var(--white); padding: 0.75rem 1rem; text-align: left; font-weight: 700; }
.comparison-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); }
.comparison-table tr:nth-child(even) td { background: var(--light-bg); }
.check { color: var(--green); font-weight: 700; }
.cross { color: var(--red);   font-weight: 700; }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
/* blog-card__img: works on both <img> tags and wrapper <div>s */
.blog-card__img  { width: 100%; height: 180px; overflow: hidden; display: block; object-fit: cover; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card__cat  { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red); margin-bottom: 0.4rem; }
.blog-card__title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; line-height: 1.35; }
.blog-card__title a { color: inherit; }
.blog-card__title a:hover { color: var(--red); }
.blog-card__excerpt { font-size: 0.875rem; color: var(--body-text); flex: 1; margin-bottom: 0.75rem; }
.blog-card__meta    { font-size: 0.78rem; color: var(--body-text); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info-item { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; }
.contact-info-item__icon { font-size: 1.25rem; color: var(--red); flex-shrink: 0; margin-top: 0.1rem; }
.contact-info-item__text { font-size: 0.9rem; }
.contact-info-item__text strong { display: block; font-weight: 700; color: var(--dark); margin-bottom: 0.1rem; }

/* FORMS */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--dark); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font); font-size: 0.9rem; color: var(--dark); background: var(--white); transition: border-color var(--transition); min-height: 44px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1,112,185,0.15); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* SECTION HEADER */
.section-header { margin-bottom: 2rem; }
.section-header--center { text-align: center; }
.section-header p { font-size: 1.05rem; color: var(--body-text); max-width: 680px; margin-top: 0.5rem; }
.section-header--center p { margin: 0.5rem auto 0; }

/* FOOTER */
/* ── EMERGENCY BANNER ───────────────────────────────────────── */
.emergency-banner {
  background: #8b0000;
  background: linear-gradient(90deg, #6b0000 0%, #a00000 50%, #6b0000 100%);
  border-top: 2px solid rgba(255,100,100,0.4);
  border-bottom: 2px solid rgba(255,100,100,0.4);
  padding: 0.9rem 0;
}
.emergency-banner__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.emergency-banner__icon {
  font-size: 1.5rem;
  color: #ffcc00;
  flex-shrink: 0;
  animation: pulse-warn 2s ease-in-out infinite;
}
@keyframes pulse-warn {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.emergency-banner__text {
  flex: 1;
  min-width: 0;
}
.emergency-banner__text strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-right: 0.5rem;
}
.emergency-banner__text span {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}
.emergency-banner__cta {
  display: inline-block;
  background: #fff;
  color: #8b0000;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.emergency-banner__cta:hover {
  background: #ffcc00;
  color: #6b0000;
}
@media (max-width: 640px) {
  .emergency-banner__inner { flex-direction: column; text-align: center; gap: 0.6rem; }
  .emergency-banner__text span { display: block; margin-top: 0.2rem; }
}
/* ── END EMERGENCY BANNER ───────────────────────────────────── */

/* ── UNIFIED FOOTER ─────────────────────────────────────────── */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,0.78); }

.footer-main { padding: 3.5rem 0 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Brand column */
.footer-brand img { display: block; margin-bottom: 1rem; height: 48px; width: auto; }
.footer-brand p { font-size: 0.875rem; line-height: 1.65; color: rgba(255,255,255,0.72); max-width: 260px; }
.footer-stars { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; font-size: 1rem; color: #e8c84a; }
.footer-ai-badge { display: inline-block; margin-top: 0.85rem; opacity: 0.9; transition: opacity 0.2s; }
.footer-ai-badge:hover { opacity: 1; }

/* Link columns */
.footer-col h4 { color: var(--white); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--red); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.72); transition: color var(--transition); text-decoration: none; }
.footer-col ul li a:hover { color: var(--white); }

/* Contact column */
.footer-col--contact address { font-style: normal; font-size: 0.875rem; line-height: 1.9; color: rgba(255,255,255,0.72); margin-bottom: 1rem; }
.footer-col--contact address a { color: rgba(255,255,255,0.72); text-decoration: none; }
.footer-col--contact address a:hover { color: var(--white); }
.footer-hours strong { color: var(--white); font-size: 0.875rem; display: block; margin-bottom: 0.4rem; }
.footer-hours p { font-size: 0.875rem; line-height: 1.9; color: rgba(255,255,255,0.72); margin: 0 0 1rem; }


/* Bottom bar */
.footer-bottom { background: rgba(0,0,0,0.35); padding: 0.85rem 0; font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom-badge { display: flex; align-items: center; }

/* Tablet — 2-col */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-col--contact { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-col--contact h4 { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: auto; }
  .footer-col--contact { grid-column: auto; display: block; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}
/* ── END UNIFIED FOOTER ──────────────────────────────────────── */

/* STICKY MOBILE PHONE */
.sticky-phone { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998; background: var(--red); padding: 0.9rem; text-align: center; box-shadow: 0 -4px 12px rgba(0,0,0,0.2); }
.sticky-phone a { color: var(--white); font-weight: 700; font-size: 1.1rem; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }

/* UTILITY */
.text-center { text-align: center; }
.text-red    { color: var(--red); }
.text-blue   { color: var(--blue); }
.text-white  { color: var(--white); }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.visually-hidden, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

/* RESPONSIVE */
  .header-inner { gap: 0.75rem; }
}
@media (max-width: 1100px) {
  .primary-nav > li > a { padding: 1rem 0.45rem; font-size: 0.72rem; }
  .header-inner { gap: 0.5rem; }
}

@media (max-width: 900px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1600px) {
  /* Tighten nav spacing before hamburger kicks in */
  .primary-nav > li > a { padding: 1rem 0.5rem; font-size: 0.74rem; }
  .header-cta .btn { font-size: 0.72rem; padding: 0.5rem 0.75rem; }
}
@media (max-width: 1400px) {
  /* Collapse full nav to hamburger at 1400px */
  .nav-toggle { display: flex; }
  .primary-nav-wrapper { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow-lg); padding: 0.5rem 0; z-index: 998; }
  .primary-nav-wrapper.is-open { display: block; }
  .primary-nav { flex-direction: column; }
  .primary-nav > li > a { padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border) !important; font-size: 0.85rem; }
  .dropdown-menu { position: static; min-width: 100%; box-shadow: none; border-top: none; border-left: 4px solid var(--red); background: var(--light-bg); display: none; }
  .primary-nav > li.has-dropdown.is-open .dropdown-menu { display: block; }
  .header-cta { display: flex !important; }
  .header-topbar .container { flex-direction: column; gap: 0.25rem; }
  .hero { min-height: 380px; }
  .sticky-phone { display: block; }
}
@media (max-width: 768px) {
  .header-cta { display: none !important; }
  .hero h1 { font-size: 1.75rem; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__cta, .cta-buttons { flex-direction: column; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-trust { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
  .cta-trust-badge { flex: 1; min-width: 160px; }
  .btn--lg { width: 100%; text-align: center; }
  .cards-grid, .hub-cards-grid, .reviews-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   GOT CRACKS / VIDEO + CONTACT INFO SECTION
   ============================================================ */
.got-cracks-section {
  background: #1a2a3a;
  color: #fff;
  padding: 4rem 0;
}
.got-cracks-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.got-cracks-info h2 {
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.5rem;
}
.got-cracks-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.got-cracks-item:last-child { border-bottom: none; }
.got-cracks-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  color: #9C0000;
}
.got-cracks-item h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.25rem;
}
.got-cracks-item p { margin: 0.15rem 0; font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.got-cracks-item a { color: #9C0000; font-weight: 700; }
@media (max-width: 768px) {
  .got-cracks-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   AFFILIATIONS BAR
   ============================================================ */
.affiliations-bar {
  background: #4a6a8a;
  color: #fff;
  padding: 2.5rem 0;
  text-align: center;
}
.affiliations-bar__heading {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
}
.affiliations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
}
.affiliation-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.affiliation-item img {
  max-width: 180px;
  max-height: 90px;
  width: auto;
  height: auto;
  background: #fff;
  padding: 0.5rem;
  border-radius: 6px;
  object-fit: contain;
}
.affiliation-item span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
@media (max-width: 768px) {
  .affiliations-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .affiliations-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MEET THE TEAM PAGE
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.team-card {
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
  text-align: center;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}
/* Circular avatar wrapper */
.team-card__img-wrap {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #9C0000;
  flex-shrink: 0;
  background: #e8eef4;
  margin-bottom: 1.25rem;
}
.team-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.team-card__img--placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid #9C0000;
  background: #4a6a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
  margin-bottom: 1.25rem;
}
.team-card__body {
  padding: 0 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.team-card__name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #3A3A3A;
  margin-bottom: 0.2rem;
}
.team-card__title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9C0000;
  margin-bottom: 0.75rem;
}
.team-card__bio {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.65;
  flex: 1;
  text-align: left;
  width: 100%;
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   MISSING BUTTON & CTA VARIANTS (v4.12 patch)
   ============================================================ */

/* btn--white: white background with red text, for use on red CTA sections */
.btn--white { background: var(--white); color: var(--red) !important; border-color: var(--white); }
.btn--white:hover { background: transparent; color: var(--white) !important; border-color: var(--white); }

/* btn--outline-white: transparent with white border, for dark/red backgrounds */
.btn--outline-white { background: transparent; color: var(--white) !important; border-color: var(--white); }
.btn--outline-white:hover { background: var(--white); color: var(--red) !important; }

/* btn--phone: dark phone CTA */
.btn--phone { background: var(--dark); color: var(--white) !important; border-color: var(--dark); }
.btn--phone:hover { background: #222; border-color: #222; color: var(--white) !important; }

/* Bootstrap-style aliases used on some pages */
.btn-primary { background: var(--red); color: var(--white) !important; border: 2px solid var(--red); border-radius: var(--radius); padding: 0.75rem 1.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: all var(--transition); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white) !important; }
.btn-secondary { background: transparent; color: var(--white) !important; border: 2px solid var(--white); border-radius: var(--radius); padding: 0.75rem 1.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: all var(--transition); }
.btn-secondary:hover { background: var(--white); color: var(--red) !important; }
.btn-white { background: var(--white); color: var(--red) !important; border: 2px solid var(--white); border-radius: var(--radius); padding: 0.75rem 1.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: all var(--transition); }
.btn-white:hover { background: transparent; color: var(--white) !important; }
.btn-white-outline { background: transparent; color: var(--white) !important; border: 2px solid var(--white); border-radius: var(--radius); padding: 0.75rem 1.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: all var(--transition); }
.btn-white-outline:hover { background: var(--white); color: var(--red) !important; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.78rem; }

/* Force white text on all red/dark CTA sections */


/* Inline CTA box (used in foundation repair, etc.) */
.inline-cta { background: var(--red); color: var(--white); padding: 2rem; border-radius: var(--radius); margin: 2rem 0; }
.inline-cta h2, .inline-cta h3 { color: var(--white) !important; margin-bottom: 0.5rem; }
.inline-cta p { color: rgba(255,255,255,0.92) !important; margin-bottom: 1rem; }

/* Sidebar CTA red variant */
.sidebar-cta.red-bg { background: #1a1a1a; color: var(--white); }
.sidebar-cta.red-bg h3 { color: var(--white) !important; }
.sidebar-cta.red-bg p { color: rgba(255,255,255,0.75) !important; }

/* Nav responsive fix — hamburger triggers at 1200px so no mid-range overrides needed */


/* ============================================================
   MOBILE OPTIMIZATIONS (v5.0 — comprehensive)
   ============================================================ */

/* Hide topbar on very small screens — show only sticky phone bar */
@media (max-width: 480px) {
  .header-topbar { display: none; }
  .header-main { padding: 0.6rem 0; }
}

/* Reduce hero height on mobile so content is immediately visible */
@media (max-width: 768px) {
  .hero--home    { min-height: 420px; padding: 2.5rem 0; }
  .hero--service { min-height: 300px; padding: 2rem 0; }
  .hero--geo     { min-height: 280px; padding: 2rem 0; }
  .hero--short   { min-height: 200px; padding: 1.5rem 0; }
  .hero h1       { font-size: 1.6rem; line-height: 1.25; }
  .hero__sub     { font-size: 0.95rem; }
  .hero__trust   { gap: 0.75rem; margin-top: 1rem; }
  .hero__trust-item { font-size: 0.78rem; }
}

@media (max-width: 480px) {
  .hero--home    { min-height: 360px; padding: 2rem 0; }
  .hero h1       { font-size: 1.4rem; }
  .hero__cta .btn--lg { width: 100%; text-align: center; justify-content: center; }
}

/* Topbar: stack on tablet */
@media (max-width: 768px) {
  .header-topbar .container { flex-direction: column; gap: 0.2rem; text-align: center; }
  .topbar-left, .topbar-right { justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
}

/* Sidebar CTA: full width on mobile (sidebar already stacks, but ensure CTA looks good) */
@media (max-width: 900px) {
  .sidebar-cta { max-width: 480px; margin: 0 auto; }
  .sidebar-cta .btn { width: 100%; text-align: center; display: block; margin-bottom: 0.5rem; }
}

/* CTA section: better mobile layout */
@media (max-width: 768px) {
  .cta-inner { padding: 2rem 1.25rem; }
  .cta-section { padding: 2.5rem 0; }
  .cta-headline { font-size: 1.5rem; }
  .cta-sub { font-size: 0.9rem; }
  .cta-buttons { flex-direction: column; gap: 0.75rem; }
  .cta-buttons .btn { width: 100%; text-align: center; }
  .cta-trust { flex-direction: row; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
  .cta-trust-item { font-size: 0.78rem; }
  .cta-trust-badge { flex: 1 1 140px; }
}

/* Service cards: 2-col on tablet, 1-col on phone */
@media (max-width: 640px) {
  .cards-grid, .hub-cards-grid { grid-template-columns: 1fr; }
  /* Keep 3:2 aspect ratio on mobile — images stay proportional */
  .service-card__img { max-height: 220px; }
  .hub-card__img { aspect-ratio: 3 / 2; max-height: 400px; height: auto; padding-bottom: 0; overflow: hidden; position: relative; flex-shrink: 0; }
  .hub-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; top: 0; left: 0; }
}

/* Reviews grid: 1-col on mobile */
@media (max-width: 640px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* Blog grid: 1-col on mobile */
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card__img { height: auto; aspect-ratio: 16 / 9; }
  .blog-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
}

/* Stats bar: 2-col on mobile */
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-number { font-size: 2rem; }
}

/* Contact form: full width inputs on mobile */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  input, textarea, select { font-size: 16px !important; } /* Prevent iOS zoom */
}

/* Footer: better mobile spacing */
@media (max-width: 768px) {
}

/* Sticky phone bar: add bottom padding so widget button isn't hidden */
@media (max-width: 1400px) {
  .sticky-phone { padding-bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px)); }
  /* Ensure BAM widget button sits above sticky phone bar */
  #bam-widget-btn { bottom: calc(70px + 1rem) !important; }
}

/* Navigation hamburger: larger tap target */
.nav-toggle { min-width: 48px; min-height: 48px; }

/* Prevent horizontal scroll from oversized elements */
body { overflow-x: hidden; }
img, video, iframe { max-width: 100%; }
table { overflow-x: auto; display: block; }

/* Typography: fluid sizing for section headings */
@media (max-width: 768px) {
  .section-title { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .section-sub { font-size: 0.9rem; }
  h2 { font-size: clamp(1.25rem, 4.5vw, 1.75rem); }
  h3 { font-size: clamp(1.05rem, 3.5vw, 1.35rem); }
}

/* Comparison table: horizontal scroll on mobile */
@media (max-width: 768px) {
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 0.5rem 0.6rem; }
}

/* Got Cracks section: stack on mobile */
@media (max-width: 768px) {
  .got-cracks-inner { grid-template-columns: 1fr; gap: 2rem; }
  .got-cracks-info h2 { font-size: 1.35rem; }
}

/* Affiliations: 2-col on mobile */
@media (max-width: 480px) {
  .affiliations-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .affiliation-item img { max-width: 120px; }
}

/* Service area map: responsive */
@media (max-width: 768px) {
  .service-area-map { height: 280px; }
}

/* Process steps: stack on mobile */
@media (max-width: 600px) {
  .process-steps, .steps-grid { grid-template-columns: 1fr; }
}
