/* ==========================================================================
   JJ's Plumbing Y2K — Unified Design System
   One stylesheet for every page. Tokens and components below are shared by
   the homepage, the service detail pages, the SEO landing pages and the
   utility pages so the whole site reads as a single design.
   ========================================================================== */

:root {
  --navy: #101a46;
  --navy-2: #17265f;
  --navy-deep: #0a102d;
  --red: #c93630;
  --red-dark: #a92723;
  --gold: #f4c542;
  --green: #2f7d4f;
  --ink: #202431;
  --muted: #626978;
  --paper: #ffffff;
  --mist: #f3f5f8;
  --line: #dde1e8;
  --shadow: 0 18px 50px rgba(16, 26, 70, .12);
  --shadow-sm: 0 8px 24px rgba(16, 26, 70, .08);
  --radius: 8px;
  --gutter: max(1rem, calc(50vw - 590px));

  /* Legacy aliases so older markup keeps rendering on-theme */
  --primary: #101a46;
  --primary-dark: #0a102d;
  --accent: #c93630;
  --dark: #101a46;
  --text-light: #626978;
  --text-muted: #626978;
  --border: #dde1e8;
  --success: #2f7d4f;
  --shadow-lg: 0 18px 50px rgba(16, 26, 70, .12);
  --jj-blue: #17265f;
  --jj-dark: #101a46;
  --jj-gold: #f4c542;
  --jj-surface: #f3f5f8;
  --jj-surface-2: #ffffff;
  --jj-border: #dde1e8;
  --jj-text: #202431;
  --jj-muted: #626978;
  --jj-green: #2f7d4f;
  --jj-red: #c93630;
  --jj-orange: #b66c20;
}

/* --------------------------------------------------------------- base --- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: 'Barlow Condensed', 'Manrope', sans-serif; line-height: 1.05; letter-spacing: .01em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 4000; padding: .7rem 1rem; background: var(--gold); color: var(--navy); font-weight: 800; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* ------------------------------------------------------------ top bar --- */

.top-bar {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: .35rem 1rem;
  padding: .45rem 1rem;
  color: #fff; background: var(--navy);
  text-align: center; font-size: .8rem; font-weight: 700;
}
.top-bar a { color: var(--gold); white-space: nowrap; }
.top-bar a:hover { text-decoration: underline; }
.top-bar-social { display: inline-flex; align-items: center; gap: .55rem; }
.top-bar-social a {
  display: grid; place-items: center; width: 26px; height: 26px;
  color: #fff; background: rgba(255, 255, 255, .12); border-radius: 50%;
  font-size: .72rem;
}
.top-bar-social a:hover { color: var(--navy); background: var(--gold); }
.top-bar-sep { opacity: .35; }

/* ------------------------------------------------------------- header --- */

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(16, 26, 70, .1);
  backdrop-filter: blur(14px);
}
.nav-container {
  width: min(1180px, calc(100% - 2rem));
  min-height: 74px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: 'Barlow Condensed', sans-serif; color: var(--navy);
  font-size: 1.45rem; font-weight: 800; line-height: .9; text-transform: uppercase;
}
.logo-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  color: #fff; background: var(--red);
  border-radius: 50% 50% 50% 15%; transform: rotate(-8deg);
}
.logo-mark i { transform: rotate(8deg); font-size: 1rem; }
.logo > span:last-child > span { color: var(--red); }

.nav-links { display: none; align-items: center; gap: 1.15rem; margin: 0; padding: 0; list-style: none; }
.nav-links a { color: #313746; font-size: .82rem; font-weight: 800; }
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-cta {
  padding: .7rem 1.1rem; color: #fff !important; background: var(--red);
  border-radius: 6px; box-shadow: 0 8px 18px rgba(201, 54, 48, .22);
}
.nav-cta:hover { background: var(--red-dark); }
.mobile-menu-btn, .mobile-nav-close {
  display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--navy); background: transparent;
  border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
}

.mobile-nav {
  position: fixed; inset: 0; z-index: 2000;
  padding: 1.1rem; color: var(--navy); background: var(--paper);
  overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform .3s ease, visibility .3s;
}
.mobile-nav.active { transform: translateX(0); visibility: visible; }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.mobile-nav-links { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.mobile-nav-links li { border-bottom: 1px solid var(--line); }
.mobile-nav-links a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .85rem .2rem;
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; font-weight: 700;
}
.mobile-phone { color: var(--red); }

/* --------------------------------------------------------------- hero --- */

.hero {
  position: relative; overflow: hidden;
  color: #fff; background: var(--navy);
  padding: 3.5rem var(--gutter) 3rem;
  text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: .22;
  background-image:
    linear-gradient(115deg, transparent 48%, rgba(255, 255, 255, .08) 48%),
    radial-gradient(circle at 15% 15%, rgba(244, 197, 66, .25), transparent 30%);
}
.hero > * { position: relative; z-index: 2; }
.hero h1 {
  max-width: 900px; margin: 0 auto 1rem;
  font-size: clamp(2.6rem, 8vw, 5rem); text-transform: uppercase;
}
.hero h1 em, .hero h1 span { color: var(--gold); font-style: normal; }
.hero-sub {
  max-width: 640px; margin: 0 auto 1.6rem;
  color: rgba(255, 255, 255, .82); font-size: clamp(1rem, 2vw, 1.14rem);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem;
  padding: .4rem .8rem; color: var(--navy); background: var(--gold);
  border-radius: 3px; font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.hero-cta-row, .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.hero-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.4rem;
  margin-top: 1.5rem; color: rgba(255, 255, 255, .78);
  font-size: .78rem; font-weight: 700;
}
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-note { margin: 1.1rem 0 0; color: rgba(255, 255, 255, .64); font-size: .78rem; }

/* Homepage split hero */
.hero-grid {
  position: relative;
  width: min(1180px, 100%); min-height: 610px; margin: 0 auto; padding: 1rem 0;
  display: grid; align-items: center; gap: 2.5rem; text-align: left;
}
.hero-grid .hero-cta-row, .hero-grid .hero-actions, .hero-grid .hero-trust { justify-content: flex-start; }
.hero-copy { position: relative; z-index: 2; max-width: 690px; }
.hero-copy h1 { margin-inline: 0; }
.hero-copy .hero-sub { margin-inline: 0; }
.hero-photo { position: relative; min-height: 380px; align-self: stretch; }
.hero-photo img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; object-position: center 60%; filter: saturate(.88) contrast(1.05); }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy), transparent 45%), linear-gradient(0deg, rgba(16, 26, 70, .4), transparent 45%); }
.license-stamp {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 2;
  width: 116px; aspect-ratio: 1; display: grid; place-content: center; text-align: center;
  color: var(--navy); background: var(--gold);
  border: 6px solid var(--navy); outline: 2px solid var(--gold); border-radius: 50%;
  font-family: 'Barlow Condensed', sans-serif; font-size: .8rem; font-weight: 800;
  line-height: 1.05; text-transform: uppercase; transform: rotate(7deg);
}
.license-stamp strong { display: block; font-size: 1.5rem; }

/* Inner page header (services, gallery, contact, privacy) */
.page-header {
  position: relative; overflow: hidden;
  padding: 3.5rem var(--gutter);
  color: #fff; background: var(--navy); text-align: center;
}
.page-header::before {
  content: ''; position: absolute; inset: 0; opacity: .22;
  background-image:
    linear-gradient(115deg, transparent 48%, rgba(255, 255, 255, .08) 48%),
    radial-gradient(circle at 15% 15%, rgba(244, 197, 66, .25), transparent 30%);
}
.page-header .container { position: relative; z-index: 2; padding: 0; }
.page-header h1 { margin-bottom: .8rem; font-size: clamp(2.6rem, 8vw, 4.8rem); text-transform: uppercase; }
.page-header h1 span { color: var(--gold); }
.page-header p { max-width: 640px; margin: 0 auto; color: rgba(255, 255, 255, .82); }

/* ------------------------------------------------------------ buttons --- */

.hero-phone, .secondary-btn, .cta-btn, .btn-primary, .btn-secondary, .submit-btn, .btn-google {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.35rem;
  border: 0; border-radius: 5px; font-weight: 800; cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s, color .2s, border-color .2s;
}
.hero-phone, .btn-primary { color: #fff; background: var(--red); box-shadow: 0 12px 30px rgba(201, 54, 48, .3); }
.hero-phone:hover, .btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.secondary-btn, .btn-secondary { color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .32); }
.secondary-btn:hover, .btn-secondary:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.cta-btn { color: var(--navy); background: var(--gold); box-shadow: 0 10px 28px rgba(16, 26, 70, .2); }
.cta-btn:hover { transform: translateY(-2px); }
.submit-btn { width: 100%; color: #fff; background: var(--red); }
.submit-btn:hover { background: var(--red-dark); }
.btn-google { color: var(--navy); background: #fff; border: 2px solid var(--line); }
.btn-google:hover { border-color: var(--red); color: var(--red); }
.btn-google i { color: #4285f4; }

/* On light backgrounds a ghost button needs dark ink */
.section .btn-secondary, .container .btn-secondary, .cost-note .btn-secondary {
  color: var(--navy); border-color: var(--line); background: #fff;
}
.section .btn-secondary:hover, .container .btn-secondary:hover { background: var(--mist); border-color: var(--navy); }
.cta-banner .btn-secondary, .hero .btn-secondary, .cta-section .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, .32); background: transparent; }

/* ----------------------------------------------------------- sections --- */

.section { padding: 4.5rem var(--gutter); }
.section-alt { background: var(--mist); border-block: 1px solid var(--line); }
.container { width: min(1180px, 100%); margin: 0 auto; }
.section > .container, .page-header > .container { padding: 0; }

.section-heading, .section-header { max-width: 720px; margin-bottom: 2.4rem; }
.section-header { margin-inline: auto; text-align: center; }
.eyebrow, .section-label {
  display: block; margin-bottom: .55rem; color: var(--red);
  font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.section-title {
  margin-bottom: .7rem; color: var(--navy);
  font-size: clamp(2.1rem, 6vw, 3.6rem); text-transform: uppercase;
}
.section-title span { color: var(--red); }
.section-sub { margin-bottom: 0; color: var(--muted); }
.section h2:not(.section-title) { color: var(--navy); font-size: clamp(2rem, 5.5vw, 3rem); text-transform: uppercase; }
.section h3 { color: var(--navy); }

/* Centred titles on the SEO landing pages */
.section > .section-title, .section > .section-sub { max-width: 760px; margin-inline: auto; text-align: center; }
.section > .section-sub { margin-bottom: 2.4rem; }

/* Dark section on light page */
.info-wrap, .services-wrap { border-block: 1px solid var(--line); }
.services-wrap { background: var(--mist); }
.info-wrap { color: #fff; background: var(--navy); border-color: rgba(255, 255, 255, .12); }
.info-wrap .section-title, .info-wrap h2, .info-wrap h3 { color: #fff; }
.info-wrap .section-sub { color: rgba(255, 255, 255, .65); }

/* ------------------------------------------------------------ stats ----- */

.stats-bar { position: relative; z-index: 4; background: var(--mist); border-bottom: 1px solid var(--line); }
.stats-grid {
  width: min(1080px, calc(100% - 2rem)); margin: 0 auto; padding: 1.8rem 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center;
}
.stat-number { font-family: 'Barlow Condensed', sans-serif; color: var(--navy); font-size: 2.4rem; font-weight: 800; line-height: 1; }
.stat-label { margin-top: .25rem; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

/* ------------------------------------------------------------- cards ---- */

.trust-grid { display: grid; gap: 1rem; }
.trust-card {
  position: relative; padding: 1.5rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.trust-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--red); }
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trust-icon { margin-bottom: 1.1rem; color: var(--red); font-size: 1.6rem; }
.trust-card h3 { margin-bottom: .45rem; color: var(--navy); font-size: 1.35rem; text-transform: uppercase; }
.trust-card p { margin-bottom: 0; color: var(--muted); font-size: .86rem; }

.services-grid { display: grid; gap: 1.1rem; }
.service-card {
  display: grid; min-height: 430px; background: #fff;
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-img { width: 100%; height: 220px; object-fit: cover; }
.service-content { display: flex; flex-direction: column; align-items: flex-start; padding: 1.45rem; }
.service-tag {
  display: inline-block; margin-bottom: .7rem; padding: .25rem .55rem;
  color: #fff; background: var(--navy); border-radius: 2px;
  font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.service-card h3 { margin-bottom: .65rem; color: var(--navy); font-size: 1.6rem; text-transform: uppercase; }
.service-card p { margin-bottom: 1rem; color: var(--muted); font-size: .86rem; }
.service-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; color: var(--red); font-size: .8rem; font-weight: 800; }
.service-link i { transition: transform .2s; }
.service-link:hover i { transform: translateX(4px); }
.emergency-card { place-items: center; padding: 2rem; color: #fff; text-align: center; background: var(--navy); }
.emergency-card i { margin-bottom: 1rem; color: var(--gold); font-size: 3rem; }
.emergency-card h3 { color: #fff; font-size: 2rem; }
.emergency-card p { color: rgba(255, 255, 255, .72); }
.emergency-card .service-link { margin: .5rem auto 0; padding: .8rem 1.1rem; color: var(--navy); background: var(--gold); border-radius: 4px; }

/* Detailed service cards (services page) */
.service-detail-card {
  margin-bottom: 1.6rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.service-detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-detail-grid { display: grid; gap: 0; }
.service-detail-img { min-height: 260px; }
.service-detail-img img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.service-detail-content { padding: 1.8rem; }
.service-detail-badge {
  display: inline-block; margin-bottom: .7rem; padding: .25rem .6rem;
  color: #fff; background: var(--red); border-radius: 2px;
  font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.service-detail-content h2, .service-detail-content h3 { margin-bottom: .6rem; color: var(--navy); font-size: clamp(1.7rem, 4vw, 2.3rem); text-transform: uppercase; }
.service-detail-content p { color: var(--muted); }
.service-detail-list { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.service-detail-list li { display: flex; gap: .6rem; color: var(--ink); font-size: .9rem; }
.service-detail-list li::before { content: '\2713'; color: var(--green); font-weight: 800; }

/* Why / diagnostic / pricing cards (SEO pages) */
.why-grid, .diag-grid, .pricing-grid { display: grid; gap: 1rem; }
.why-card, .diag-card, .pricing-card, .info-card, .tip-card {
  padding: 1.4rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.why-card:hover, .diag-card:hover, .pricing-card:hover, .info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(16, 26, 70, .2); }
.why-icon { margin-bottom: .6rem; color: var(--red); font-size: 1.8rem; }
.why-card h4 { margin-bottom: .35rem; color: var(--navy); font-size: 1.2rem; text-transform: uppercase; }
.why-card p { margin: 0; color: var(--muted); font-size: .85rem; }

.diag-card h4 { margin-bottom: .4rem; color: var(--navy); font-size: 1.3rem; text-transform: uppercase; }
.diag-card .symptom { margin-bottom: .9rem; color: var(--red); font-size: .82rem; font-weight: 700; }
.diag-card ul { margin: 0; padding: 0; list-style: none; }
.diag-card li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .88rem;
}
.diag-card li:last-child { border-bottom: none; }
.fix-name { font-weight: 700; color: var(--ink); }
.fix-price { color: var(--green); font-weight: 800; white-space: nowrap; }
.fix-parts { display: block; color: var(--muted); font-size: .74rem; font-weight: 500; }

.pricing-card { display: flex; flex-direction: column; position: relative; }
.pricing-card.popular { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244, 197, 66, .25); }
.popular-tag {
  position: absolute; top: -.7rem; left: 1.4rem;
  padding: .2rem .6rem; color: var(--navy); background: var(--gold);
  border-radius: 3px; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.pricing-card h3 { margin-bottom: .35rem; color: var(--navy); font-size: 1.4rem; text-transform: uppercase; }
.pricing-card p { margin-bottom: 1rem; color: var(--muted); font-size: .85rem; }
.price-row { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.price-old { color: var(--muted); font-size: .95rem; text-decoration: line-through; }
.price-new { font-family: 'Barlow Condensed', sans-serif; color: var(--navy); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.price-save { padding: .18rem .5rem; color: #fff; background: var(--green); border-radius: 3px; font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.price-list { margin: 0 0 1.2rem; padding: 0; list-style: none; font-size: .86rem; }
.price-list li { display: flex; gap: .55rem; padding: .45rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.price-list li:last-child { border-bottom: none; }
.price-list li::before { content: '\2713'; color: var(--green); font-weight: 800; }
.pricing-card .btn-primary { margin-top: auto; }

.tip-card { background: var(--paper); }
.tip-card strong { display: block; margin-bottom: .35rem; color: var(--red); font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; text-transform: uppercase; }
.tip-card p { margin: 0; color: var(--muted); font-size: .85rem; }

/* --------------------------------------------------------- cost table --- */

.cost-table {
  width: 100%; margin: 0 0 1rem; border-collapse: collapse;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; font-size: .88rem;
}
.cost-table thead th {
  padding: .8rem .9rem; color: #fff; background: var(--navy);
  font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-align: left;
}
.cost-table tbody tr { border-top: 1px solid var(--line); }
.cost-table tbody tr:nth-child(even) { background: var(--mist); }
.cost-table tbody tr:hover { background: rgba(201, 54, 48, .05); }
.cost-table td { padding: .75rem .9rem; vertical-align: top; }
.cost-table .prob { color: var(--muted); font-size: .78rem; }
.cost-table .parts { color: var(--red); font-weight: 700; }
.cost-table .labor { color: var(--navy); font-weight: 700; }
.cost-table .total { color: var(--green); font-weight: 800; }
.cost-table .note { color: var(--muted); font-size: .78rem; font-style: italic; }
.cost-table .range { display: block; color: var(--muted); font-size: .76rem; }
.table-scroll { width: 100%; overflow-x: auto; }

/* ---------------------------------------------------------------- FAQ --- */

.info-grid { display: grid; gap: 1rem; }
details {
  padding: 1.2rem; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13); border-radius: 6px;
}
summary { cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-size: 1.25rem; font-weight: 700; text-transform: uppercase; }
details p { margin: .8rem 0 0; color: rgba(255, 255, 255, .68); font-size: .88rem; }

.faq-item {
  margin-bottom: .7rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem; cursor: pointer;
  color: var(--navy); font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem; font-weight: 700; text-transform: uppercase;
}
.faq-q:hover, .faq-q.active { color: var(--red); }
.faq-icon { color: var(--red); font-size: .8rem; transition: transform .25s; }
.faq-q.active .faq-icon { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 1.2rem 1.1rem; color: var(--muted); font-size: .9rem; }
.faq-a.open { display: block; }

/* ------------------------------------------------------------- areas ---- */

.areas-layout { display: grid; gap: 2rem; align-items: center; }
.area-list, .areas-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.area-list span, .area-tag {
  padding: .5rem .85rem; color: var(--navy); background: var(--mist);
  border: 1px solid var(--line); border-radius: 4px;
  font-size: .78rem; font-weight: 800;
}
.area-tag:hover { border-color: var(--red); color: var(--red); }
.area-callout { padding: 1.5rem; color: #fff; background: var(--red); border-radius: var(--radius); box-shadow: 12px 12px 0 var(--gold); }
.area-callout h3 { margin-bottom: .6rem; color: #fff; font-size: 2rem; text-transform: uppercase; }
.area-callout p { margin-bottom: 1rem; opacity: .85; }
.area-callout a { font-weight: 800; border-bottom: 2px solid var(--gold); }

/* ----------------------------------------------------------- gallery ---- */

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.gallery-grid > a, .gallery-item {
  position: relative; min-height: 190px; overflow: hidden;
  background: var(--mist); border-radius: var(--radius);
}
.gallery-grid img, .gallery-item img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; transition: transform .4s; }
.gallery-grid > a:hover img, .gallery-item:hover img { transform: scale(1.04); }
.gallery-label {
  position: absolute; right: .7rem; bottom: .7rem;
  padding: .35rem .55rem; color: #fff; background: var(--navy);
  font-size: .65rem; font-weight: 800; text-transform: uppercase;
}
.gallery-overlay {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem 1rem .9rem;
  color: #fff; background: linear-gradient(0deg, rgba(16, 26, 70, .92), transparent);
  font-size: .85rem; font-weight: 700;
}
.ba-grid { display: grid; gap: 1rem; }
.ba-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ba-card-img { position: relative; }
.ba-card-img img { width: 100%; height: 240px; object-fit: cover; }
.ba-card-label {
  position: absolute; top: .7rem; left: .7rem;
  padding: .25rem .6rem; color: #fff; background: var(--red);
  border-radius: 3px; font-size: .65rem; font-weight: 800; text-transform: uppercase;
}
.ba-card-content { padding: 1.2rem; }
.ba-card-content h3 { margin-bottom: .4rem; color: var(--navy); font-size: 1.35rem; text-transform: uppercase; }
.ba-card-content p { margin: 0; color: var(--muted); font-size: .87rem; }

/* -------------------------------------------------------- contact/form -- */

.contact-grid { display: grid; gap: 1.6rem; align-items: start; }
.contact-form { padding: 1.8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-form h2, .contact-form h3 { margin-bottom: 1rem; color: var(--navy); text-transform: uppercase; }
.form-row { display: grid; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: .35rem; color: var(--navy); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .8rem .9rem; color: var(--ink);
  background: var(--mist); border: 1px solid var(--line); border-radius: 5px;
  transition: border-color .2s, background .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  background: #fff; border-color: var(--navy); outline: none;
}
.form-group textarea { min-height: 120px; resize: vertical; }

.info-card h3, .info-card h4 { margin-bottom: .5rem; color: var(--navy); text-transform: uppercase; }
.info-card p, .info-card a { color: var(--muted); font-size: .9rem; }
.info-card a:hover { color: var(--red); }
.live-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .9rem; color: var(--green); background: rgba(47, 125, 79, .1);
  border-radius: 50px; font-size: .8rem; font-weight: 800;
}
.live-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse-dot 1.8s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.map-embed { max-width: 1000px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-embed iframe { display: block; width: 100%; border: 0; }

.modal-overlay { display: none; position: fixed; inset: 0; z-index: 3000; background: rgba(16, 26, 70, .65); backdrop-filter: blur(5px); justify-content: center; align-items: center; }
.modal-overlay.active { display: flex; }
.modal-box { position: relative; width: min(450px, 90%); padding: 2.5rem; background: #fff; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: .8rem; right: .8rem; background: none; border: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; }
.modal-icon { margin-bottom: 1rem; color: var(--green); font-size: 3rem; }
.modal-box h3 { margin-bottom: .5rem; color: var(--navy); text-transform: uppercase; }
.modal-box p { margin-bottom: 1.5rem; color: var(--muted); }

/* -------------------------------------------------------- long-form ----- */

.content { max-width: 820px; margin: 0 auto; }
.content h2 { margin: 2rem 0 .8rem; color: var(--navy); font-size: clamp(1.8rem, 4.5vw, 2.4rem); text-transform: uppercase; }
.content h3 { margin: 1.4rem 0 .5rem; color: var(--navy); font-size: 1.3rem; text-transform: uppercase; }
.content p, .content li { color: var(--muted); }
.content ul, .content ol { padding-left: 1.2rem; }
.content a { color: var(--red); font-weight: 700; }

/* ---------------------------------------------------------- memorial ---- */

.memorial-hero {
  position: relative; overflow: hidden;
  padding: 4rem var(--gutter); color: #fff; text-align: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}
.memorial-hero-content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.memorial-hero h1 { margin-bottom: .6rem; font-size: clamp(2.6rem, 8vw, 4.4rem); text-transform: uppercase; }
.memorial-hero p { color: rgba(255, 255, 255, .8); }
.dove { margin-bottom: 1rem; color: var(--gold); font-size: 2.6rem; }
.memorial-content { max-width: 820px; margin: 0 auto; padding: 3.5rem 1rem; }
.memorial-content p { color: var(--muted); }
.memorial-content h2, .memorial-content h3 { color: var(--navy); text-transform: uppercase; }
.memorial-img { margin: 0 auto 2rem; max-width: 420px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.memorial-img img { width: 100%; }
.quote-box {
  margin: 2rem 0; padding: 1.6rem 1.8rem;
  color: var(--navy); background: var(--mist);
  border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.1rem; font-style: italic;
}
.signature { margin-top: 1.5rem; color: var(--navy); font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; font-weight: 700; }
.legacy-notice { padding: 1.4rem; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font-size: .9rem; }

/* --------------------------------------------------------------- CTA ---- */

.cta-section, .cta-banner {
  position: relative; overflow: hidden;
  padding: 4.5rem var(--gutter); color: #fff; text-align: center; background: var(--red);
}
.cta-section::before {
  content: '24/7'; position: absolute; left: 50%; top: 50%;
  color: rgba(255, 255, 255, .06); font-family: 'Barlow Condensed', sans-serif;
  font-size: 20rem; font-weight: 800; line-height: 1; transform: translate(-50%, -50%);
}
.cta-inner { position: relative; width: min(700px, 100%); margin: 0 auto; }
.cta-section h2, .cta-banner h2 { margin-bottom: .8rem; color: #fff; font-size: clamp(2.4rem, 7vw, 4.4rem); text-transform: uppercase; }
.cta-section p, .cta-banner p { margin: 0 auto 1.4rem; max-width: 620px; opacity: .88; }
.cta-note { display: block; margin-top: 1rem; font-size: .75rem; opacity: .72; }
.cta-banner > * { position: relative; z-index: 2; }
.cta-phone {
  display: block; margin: 0 auto 1.2rem;
  color: var(--gold); font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 8vw, 3.6rem); font-weight: 800; line-height: 1;
}
.cta-phone:hover { color: #fff; }
.cta-banner .btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 10px 28px rgba(16, 26, 70, .22); }
.cta-banner .btn-primary:hover { background: #fff; }

/* ------------------------------------------------------------ reviews --- */

.reviews-wrap { background: var(--mist); border-block: 1px solid var(--line); }
.review-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem;
  margin-top: 1.8rem;
}
.review-link {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 52px; padding: .75rem 1.2rem;
  color: var(--navy); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .88rem; font-weight: 800;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.review-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--navy); }
.review-link i { font-size: 1.15rem; }
.review-link .fa-google { color: #4285f4; }
.review-link .fa-yelp { color: #d32323; }
.review-link .fa-facebook, .review-link .fa-facebook-f { color: #1877f2; }
.review-link .fa-instagram { color: #c13584; }
.review-link .fa-map-location-dot, .review-link .fa-location-dot { color: var(--red); }
.review-link .fa-shield-halved { color: var(--navy); }
.review-link .fa-house-chimney { color: #00b551; }
.review-link .fa-star { color: var(--gold); }

/* -------------------------------------------------------------- footer -- */

footer, .footer { padding: 3.5rem var(--gutter) 2.5rem; color: #fff; background: var(--navy-deep); }
.footer-grid { width: min(1180px, 100%); margin: 0 auto; display: grid; gap: 2rem; }
.footer-col h4 {
  margin-bottom: .9rem; color: #fff; font-size: 1.2rem;
  letter-spacing: .04em; text-transform: uppercase;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.footer-col a { color: rgba(255, 255, 255, .65); font-size: .86rem; font-weight: 600; }
.footer-col a:hover { color: var(--gold); }
.footer-logo { margin-bottom: .9rem; color: #fff; }
.footer-about { margin: 0 0 1rem; color: rgba(255, 255, 255, .6); font-size: .88rem; }
.footer-contact { display: grid; gap: .45rem; margin-bottom: 1rem; }
.footer-contact a, .footer-contact span { display: flex; align-items: center; gap: .55rem; color: rgba(255, 255, 255, .7); font-size: .86rem; }
.footer-contact a:hover { color: var(--gold); }
.footer-contact .footer-phone { color: var(--gold); font-family: 'Barlow Condensed', sans-serif; font-size: 1.7rem; font-weight: 800; }
.footer-contact i { width: 1.1rem; color: var(--red); }
.footer-social { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.footer-social a {
  display: grid; place-items: center; width: 40px; height: 40px;
  color: #fff; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; font-size: .95rem;
  transition: transform .2s, background .2s, color .2s;
}
.footer-social a:hover { transform: translateY(-3px); color: var(--navy); background: var(--gold); }
.footer-links { display: flex; align-content: flex-start; flex-wrap: wrap; gap: .7rem 1.2rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: rgba(255, 255, 255, .65); font-size: .8rem; font-weight: 700; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom, .footer-copy {
  width: min(1180px, 100%); margin: 2.2rem auto 0; padding-top: 1.3rem;
  color: rgba(255, 255, 255, .42); border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .74rem;
}
.footer-bottom p { margin: 0; }

/* --------------------------------------------------- sticky mobile bar -- */

.sticky-cta, .sticky-call {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
  display: flex; gap: .6rem; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(16, 26, 70, .97); border-top: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
}
.sticky-cta a, .sticky-call a { flex: 1; min-height: 48px; padding: .6rem .8rem; font-size: .85rem; }
.content-pad { padding-bottom: 76px; }
@media (min-width: 820px) {
  .sticky-cta, .sticky-call { display: none; }
  .content-pad { padding-bottom: 0; }
}

/* -------------------------------------------------------------- misc ---- */

.bot-section { background: var(--mist); border-block: 1px solid var(--line); padding: 3.5rem var(--gutter); }
.bot-wrapper { display: flex; justify-content: center; padding: 2rem var(--gutter); }
.bot-hero { padding: 3.5rem var(--gutter) 2.5rem; color: #fff; background: var(--navy); text-align: center; }

/* Inline quote bot (bot.html and landing pages) */
.y2k-container {
  width: min(520px, 100%); margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.y2k-header { padding: 1.1rem 1.2rem; color: #fff; background: var(--navy); }
.y2k-header h2 { margin: 0; color: #fff; font-size: 1.4rem; text-transform: uppercase; }
.y2k-header p { margin: .2rem 0 0; color: rgba(255, 255, 255, .72); font-size: .78rem; }
.y2k-badge { display: inline-block; margin-top: .5rem; padding: .2rem .55rem; color: var(--navy); background: var(--gold); border-radius: 3px; font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.y2k-chat { padding: 1rem; background: var(--mist); overflow-y: auto; display: flex; flex-direction: column; gap: .65rem; }
.y2k-msg { max-width: 92%; padding: .7rem .9rem; border-radius: 14px; font-size: .88rem; line-height: 1.55; }
.y2k-msg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.y2k-msg-user { align-self: flex-end; color: #fff; background: var(--navy); border-bottom-right-radius: 4px; }
.y2k-options { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.y2k-btn {
  padding: .45rem .7rem; color: var(--navy); background: #fff;
  border: 1px solid var(--line); border-radius: 20px;
  font-size: .78rem; font-weight: 700; cursor: pointer; transition: background .2s, color .2s;
}
.y2k-btn:hover { color: #fff; background: var(--navy); }
.y2k-btn-gold { color: var(--navy); background: var(--gold); border-color: var(--gold); }
.y2k-btn-gold:hover { background: var(--navy); color: #fff; }
.y2k-pricing-card { margin: .6rem 0; padding: .8rem; background: var(--mist); border: 1px solid var(--line); border-radius: 6px; }
.y2k-tier { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .4rem 0; }
.y2k-tier-name { font-weight: 800; font-size: .84rem; }
.y2k-tier-desc { color: var(--muted); font-size: .74rem; }
.y2k-tier-price { color: var(--green); font-weight: 800; }
.y2k-discount-tag { margin-left: .35rem; padding: .1rem .35rem; color: #fff; background: var(--green); border-radius: 3px; font-size: .6rem; font-weight: 800; }
.y2k-summary { padding: .9rem; background: var(--mist); border: 1px solid var(--line); border-radius: 6px; }
.y2k-summary h4 { margin-bottom: .6rem; color: var(--navy); font-size: 1.1rem; text-transform: uppercase; }
.y2k-summary-row { display: flex; justify-content: space-between; padding: .28rem 0; font-size: .82rem; }
.y2k-total { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); color: var(--navy); font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; font-weight: 800; }
.y2k-input-row { display: flex; gap: .5rem; padding: .8rem; background: #fff; border-top: 1px solid var(--line); }
.y2k-input { flex: 1; padding: .65rem .8rem; background: var(--mist); border: 1px solid var(--line); border-radius: 6px; }
.y2k-input:focus { background: #fff; border-color: var(--navy); outline: none; }
.y2k-send { padding: .65rem 1.1rem; color: #fff; background: var(--red); border: 0; border-radius: 6px; font-weight: 800; cursor: pointer; }
.y2k-send:hover { background: var(--red-dark); }
.y2k-typing { display: inline-flex; gap: .25rem; align-self: flex-start; padding: .8rem .9rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.y2k-dot { width: 7px; height: 7px; background: var(--muted); border-radius: 50%; animation: y2k-blink 1.2s infinite; }
.y2k-dot:nth-child(2) { animation-delay: .2s; }
.y2k-dot:nth-child(3) { animation-delay: .4s; }
@keyframes y2k-blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* -------------------------------------------------------- breakpoints --- */

@media (min-width: 640px) {
  .trust-grid, .services-grid, .info-grid, .why-grid, .diag-grid, .pricing-grid, .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid > a:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery-grid > a:first-child img { min-height: 395px; }
  .form-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 820px) {
  .nav-links { display: flex; }
  .mobile-menu-btn { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); }
  .hero-photo { position: absolute; inset: 0 0 0 52%; }
  .hero-copy { padding-right: 1rem; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-grid, .why-grid { grid-template-columns: repeat(4, 1fr); }
  .areas-layout { grid-template-columns: 1.4fr .6fr; }
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1.15fr .85fr; }
  .service-detail-grid { grid-template-columns: .85fr 1.15fr; }
  .service-detail-card:nth-child(even) .service-detail-img { order: 2; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; align-items: start; }
}

@media (min-width: 1020px) {
  .services-grid, .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .diag-grid { grid-template-columns: repeat(3, 1fr); }
  .ba-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid .service-card:nth-child(1) { grid-column: span 2; grid-template-columns: .9fr 1.1fr; }
  .services-grid .service-card:nth-child(1) .service-img { height: 100%; min-height: 430px; }
  .services-grid .service-card:nth-child(5) { grid-column: span 2; grid-template-columns: 1.1fr .9fr; }
  .services-grid .service-card:nth-child(5) .service-img { order: 2; height: 100%; min-height: 430px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
