/* ==========================================================================
   Garage Expert TX — Design System
   Static site stylesheet (single source of truth).
   Palette: steel charcoal (trust) + action orange (urgency).
   ========================================================================== */

:root {
  /* Brand */
  --primary-color:   #1f2937;  /* steel charcoal — nav, headings, footer */
  --primary-dark:    #111827;  /* deeper charcoal */
  --secondary-color: #f97316;  /* action orange — CTAs, links, highlights */
  --secondary-dark:  #ea580c;  /* hover state for orange */
  --emergency-red:   #dc2626;  /* 24/7 / emergency accent only */

  /* Neutrals */
  --text-dark:   #1f2937;
  --text-muted:  #4b5563;
  --border:      #e5e7eb;
  --bg-light:    #f8fafc;
  --bg-alt:      #f1f5f9;
  --white:       #ffffff;
  --star:        #f59e0b;

  /* Type */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* System */
  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow:      0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg:   0 20px 50px rgba(0,0,0,0.15);
  --transition:  all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  --max-width:   1200px;
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}
h1, h2, h3, h4, .logo { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--primary-color); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { margin-bottom: 1rem; }
a { color: var(--secondary-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary-color); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-light); }
.section-dark { background: var(--primary-color); color: #e5e7eb; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-heading); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem;
  color: var(--secondary-dark); margin-bottom: 0.6rem;
  padding: 0.3rem 0.7rem; border-radius: 6px;
  background: rgba(249,115,22,0.1);
  border-left: 3px solid var(--secondary-color);
}
.section-dark .eyebrow, .hero .eyebrow { background: rgba(249,115,22,0.18); color: var(--secondary-color); }
.section-intro { max-width: 720px; margin: 0 auto 2.5rem; color: var(--text-muted); }

/* ---------- Skip link + noscript ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--primary-color); color: var(--white);
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--white); }
.noscript-banner {
  background: var(--emergency-red); color: var(--white);
  text-align: center; padding: 0.75rem 1rem;
}
.noscript-banner a { color: var(--white); text-decoration: underline; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--primary-dark); color: #cbd5e1;
  font-size: 0.85rem; direction: ltr;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #e5e7eb; font-weight: 600; }
.topbar a:hover { color: var(--secondary-color); }
.topbar .topbar-badges { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.topbar .topbar-badges span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------- Nav (PINNED LTR so a browser RTL translate can't break it) ---------- */
nav {
  background: rgba(255,255,255,0.98); backdrop-filter: blur(8px);
  padding: 0.9rem 1.25rem; display: flex; justify-content: space-between; align-items: center;
  box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; direction: ltr;
}
nav .logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 1.35rem; font-weight: 700; color: var(--primary-color);
}
nav .logo svg { flex-shrink: 0; }
nav .logo .logo-accent { color: var(--secondary-color); }
.nav-links, .nav-links .dropdown-menu { direction: ltr; text-align: left; }
.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links > li > a {
  display: block; padding: 0.55rem 0.85rem; color: var(--primary-color);
  font-weight: 600; font-size: 0.95rem; border-radius: var(--radius);
}
.nav-links > li > a:hover, .nav-links > li > a[aria-current="page"] { color: var(--secondary-dark); background: var(--bg-light); }
.nav-cta {
  background: var(--secondary-color) !important; color: var(--white) !important;
  padding: 0.6rem 1.1rem !important; box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: var(--secondary-dark) !important; color: var(--white) !important; }

/* Services dropdown */
.has-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex !important; align-items: center; gap: 0.35rem; }
.dropdown-chevron { transition: var(--transition); }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius);
  padding: 0.5rem; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: var(--transition); border: 1px solid var(--border);
}
.dropdown-menu li a { display: block; padding: 0.6rem 0.8rem; border-radius: var(--radius); color: var(--text-dark); font-weight: 500; }
.dropdown-menu li a:hover { background: var(--bg-light); color: var(--secondary-dark); }
@media (min-width: 1100px) {
  .has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
  .has-dropdown:hover .dropdown-chevron { transform: rotate(180deg); }
}

/* Hamburger + mobile drawer */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.hamburger span { width: 26px; height: 3px; background: var(--primary-color); border-radius: 3px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-backdrop { display: none; }
.nav-close-item { display: none; }

@media (max-width: 1099px) {
  .hamburger { display: flex; }
  /* Off-canvas drawer via display toggle (NOT translateX): a transformed fixed panel
     parked off the right edge adds to the page's scroll width, which let you pull the page
     sideways to reveal the closed menu. display:none removes it from layout entirely. */
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw);
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 5rem 1.25rem 2rem; gap: 0.25rem; display: none;
    box-shadow: var(--shadow-lg); overflow-y: auto; z-index: 1100;
  }
  .nav-links.open { display: flex; }
  .nav-close-item { display: block; }
  .nav-close {
    position: absolute; top: 0.85rem; right: 1rem; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-light); border: 1px solid var(--border); border-radius: 8px;
    color: var(--primary-color); cursor: pointer; transition: var(--transition);
  }
  .nav-close:hover { background: var(--secondary-color); color: var(--white); border-color: var(--secondary-color); }
  .nav-links > li > a { padding: 0.85rem 1rem; }
  .nav-cta { text-align: center; margin-top: 0.5rem; }
  .dropdown-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 1rem; max-height: 0; overflow: hidden; opacity: 1; visibility: visible; transform: none; transition: max-height 0.3s ease; }
  .has-dropdown.open .dropdown-menu { max-height: 500px; }
  .has-dropdown.open .dropdown-chevron { transform: rotate(180deg); }
  /* Below the sticky nav's stacking context (z-index 1000) so the 45%-black layer dims the
     page content but does NOT paint over the white drawer (which lives inside nav). */
  .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.45); opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999; }
  .nav-backdrop.active { opacity: 1; visibility: visible; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
  padding: 0.95rem 1.75rem; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: var(--transition); text-align: center; line-height: 1.2;
}
.btn-primary { background: var(--secondary-color); color: var(--white); box-shadow: var(--shadow-sm); text-transform: uppercase; letter-spacing: 0.04em; }
.btn-primary:hover { background: var(--secondary-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-call { background: var(--emergency-red); color: var(--white); }
.btn-call:hover { background: #b91c1c; color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary-color); border-color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: var(--white); }
.btn-light { background: var(--white); color: var(--primary-color); }
.btn-light:hover { background: var(--bg-light); color: var(--secondary-dark); transform: translateY(-2px); }
.btn-lg { padding: 1.1rem 2.25rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background:
    linear-gradient(rgba(17,24,39,0.78), rgba(17,24,39,0.86)),
    url('/assets/img/hero-driveway-gate.jpg') center/cover no-repeat;
  background-color: var(--primary-dark);
}
/* Signature: garage-door panel slats — horizontal sections with a recessed groove,
   the brand motif that sets this site apart from generic service templates. */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.05) 0,
    rgba(255,255,255,0.05) 1px,
    transparent 1px,
    transparent 58px,
    rgba(0,0,0,0.18) 58px,
    rgba(0,0,0,0.18) 60px
  );
  mask-image: linear-gradient(to bottom, #000, rgba(0,0,0,0.35));
  -webkit-mask-image: linear-gradient(to bottom, #000, rgba(0,0,0,0.35));
}
.hero .container { position: relative; z-index: 1; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero h1 .hl { color: var(--secondary-color); }
.hero .lead { font-size: 1.2rem; color: #e5e7eb; margin-bottom: 1.75rem; max-width: 38ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; font-size: 0.95rem; color: #e5e7eb; }
.hero-trust span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-trust svg { color: var(--secondary-color); flex-shrink: 0; }

/* Emergency identity badge (signature urgency cue) */
.emergency-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--white);
  background: rgba(220,38,38,0.18); border: 1px solid rgba(220,38,38,0.55);
  padding: 0.4rem 0.85rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.emergency-badge .dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--emergency-red); flex-shrink: 0; }
.emergency-badge .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--emergency-red);
  animation: emg-pulse 1.8s infinite;
}
@keyframes emg-pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .emergency-badge .dot::after { animation: none; } }

/* Hero side card (quote form / phone) */
.hero-card {
  background: var(--white); color: var(--text-dark); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-lg);
}
.hero-card h2 { font-size: 1.4rem; margin-bottom: 0.35rem; }
.hero-card .muted { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.1rem; }
.hero-card .note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.75rem; margin-bottom: 0; }

/* ---------- Star rating ---------- */
.stars { color: var(--star); letter-spacing: 2px; font-size: 1.05rem; }
.rating-inline { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ---------- Trust badge strip ---------- */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--border); }
.trust-strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.trust-item { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 0.95rem; color: var(--primary-color); }
.trust-item svg { color: var(--secondary-color); flex-shrink: 0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; transition: var(--transition); height: 100%;
}
/* Industrial accent: a top bar that grows in on hover. */
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--secondary-color); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.165,0.84,0.44,1);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card .card-icon {
  width: 56px; height: 56px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(249,115,22,0.12); color: var(--secondary-dark); margin-bottom: 1rem;
  border: 1px solid rgba(249,115,22,0.18);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); margin-bottom: 1rem; }
.card .learn-more { font-weight: 600; color: var(--secondary-dark); display: inline-flex; align-items: center; gap: 0.35rem; }
.card-link { color: inherit; display: block; height: 100%; }

/* ---------- Steps / how it works ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.5rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px;
  background: var(--secondary-color); color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700;
}

/* ---------- Service-area / cities ---------- */
.city-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.city-list a {
  display: inline-block; padding: 0.5rem 1rem; background: var(--white);
  border: 1px solid var(--border); border-radius: 999px; color: var(--primary-color); font-weight: 600; font-size: 0.92rem;
}
.city-list a:hover { background: var(--secondary-color); color: var(--white); border-color: var(--secondary-color); }

/* ---------- Brands ---------- */
.brands { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem 3rem; }
.brands span { font-family: var(--font-heading); font-weight: 600; color: var(--text-muted); font-size: 1.1rem; letter-spacing: 0.02em; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery figure { border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); position: relative; aspect-ratio: 4 / 3; }
.gallery figure .placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-weight: 600; text-align: center; padding: 1rem; font-size: 0.9rem;
}
.gallery figure img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.45s ease;
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(17,24,39,0.8); color: var(--white); font-size: 0.85rem; padding: 0.5rem 0.75rem; }

/* ---------- Reviews ---------- */
.review-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; height: 100%; }
.review-card .stars { margin-bottom: 0.75rem; }
.review-card blockquote { font-style: italic; color: var(--text-dark); margin-bottom: 1rem; }
.review-card .reviewer { display: flex; align-items: center; gap: 0.75rem; }
.review-card .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--secondary-color); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; }
.review-card .reviewer strong { display: block; font-size: 0.95rem; }
.review-card .reviewer small { color: var(--text-muted); }

/* ---------- FAQ accordion (enclosed cards w/ circular toggle — signature finish) ---------- */
.faq-item {
  background: var(--bg-light); border: 1px solid var(--border); border-left: 3px solid transparent;
  border-radius: var(--radius); margin-bottom: 0.85rem; padding: 0 1.35rem;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }
.faq-item.open { background: var(--white); border-left-color: var(--secondary-color); box-shadow: var(--shadow); }
.faq-question {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.08rem; color: var(--primary-color);
  padding: 1.2rem 3rem 1.2rem 0; position: relative; display: block;
}
.faq-question::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; line-height: 1; font-weight: 400;
  background: rgba(249,115,22,0.12); color: var(--secondary-dark); transition: var(--transition);
}
.faq-item.open .faq-question::after { content: '\2212'; background: var(--secondary-color); color: var(--white); transform: translateY(-50%) rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-muted); }
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer p { padding-bottom: 1.25rem; margin: 0; }

/* ---------- Forms ---------- */
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--primary-color); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.8rem 0.95rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem; color: var(--text-dark); background: var(--white); transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.submit-btn { width: 100%; background: var(--secondary-color); color: var(--white); border: 0; padding: 1rem; border-radius: var(--radius); font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; cursor: pointer; transition: var(--transition); }
.submit-btn:hover { background: var(--secondary-dark); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
#formStatus, .form-status { margin-top: 1rem; font-weight: 600; }
.form-status.success { color: #15803d; }
.form-status.error { color: var(--emergency-red); }

/* ---------- Coupon / offer banner ---------- */
.offer-banner {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark)); color: var(--white);
  border-radius: var(--radius-lg); padding: 2rem; text-align: center;
}
.offer-banner h3 { color: var(--white); font-size: 1.6rem; }
.offer-banner .offer-amount { font-size: 2.5rem; font-weight: 800; display: block; }
.offer-banner small { display: block; opacity: 0.9; margin-top: 0.5rem; }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--primary-color); color: var(--white); text-align: center; }
.cta-strip h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-strip p { color: #cbd5e1; max-width: 600px; margin: 0 auto 1.75rem; }
.cta-strip .cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--primary-color); color: var(--white); padding: 3rem 0; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.04) 0,
    rgba(255,255,255,0.04) 1px,
    transparent 1px,
    transparent 47px,
    rgba(0,0,0,0.16) 47px,
    rgba(0,0,0,0.16) 48px
  );
  mask-image: linear-gradient(to bottom, #000, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero .lead { color: #cbd5e1; max-width: 60ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; color: #94a3b8; margin-bottom: 1rem; }
.breadcrumb a { color: #cbd5e1; }
.breadcrumb a:hover { color: var(--secondary-color); }
.breadcrumb [aria-current="page"] { color: var(--secondary-color); }

/* ---------- Article / prose ---------- */
.page-content { max-width: 760px; margin: 0 auto; }
.page-content h2 { margin: 2rem 0 0.75rem; }
.page-content h3 { margin: 1.5rem 0 0.5rem; }
.page-content p, .page-content li { color: var(--text-dark); }
.page-content ul, .page-content ol { margin: 0 0 1rem 1.25rem; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: 0.4rem; }
.prose-list { list-style: none !important; margin-left: 0 !important; }
.prose-list li { position: relative; padding-left: 1.75rem; }
.prose-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--secondary-color); font-weight: 700; }

.info-callout { background: var(--bg-light); border-left: 4px solid var(--secondary-color); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.info-callout h4 { margin-bottom: 0.5rem; }
.info-callout ul { margin: 0; }
.info-callout.related-reading li { margin-bottom: 0.4rem; }

/* ---------- Blog/Tips cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); height: 100%; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card-link { display: block; padding: 1.5rem; color: inherit; height: 100%; }
.blog-card-cat { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--secondary-dark); margin-bottom: 0.6rem; }
.blog-card-title { font-size: 1.2rem; margin-bottom: 0.6rem; }
.blog-card-excerpt { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.blog-card-meta { color: var(--text-muted); font-size: 0.85rem; }
.blog-card .learn-more { display: block; margin-top: 0.75rem; color: var(--secondary-dark); font-weight: 600; }
.blog-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.post-byline { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.legal-disclaimer { font-size: 0.8rem; color: #94a3b8; margin-top: 0.5rem; }

/* ---------- Footer ---------- */
footer { background: var(--primary-dark); color: #cbd5e1; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding: 3.5rem 0 2.5rem; }
.footer-brand .logo { color: var(--white); font-size: 1.3rem; display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.footer-brand .logo .logo-accent { color: var(--secondary-color); }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; }
.footer-links h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.footer-links ul li { margin-bottom: 0.6rem; }
.footer-links a, .footer-contact a { color: #cbd5e1; font-size: 0.92rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--secondary-color); }
.footer-contact li { margin-bottom: 0.6rem; display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.92rem; }
.footer-contact svg { color: var(--secondary-color); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; font-size: 0.82rem; color: #94a3b8; text-align: center; }
.footer-bottom a { color: #cbd5e1; }
.footer-bottom .disclaimer { margin-top: 0.5rem; max-width: 800px; margin-left: auto; margin-right: auto; }

/* ---------- Floating quick-contact + scroll-top ---------- */
.floating-contact { position: fixed; right: 1.25rem; bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; z-index: 900; }
.fc-btn { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); color: var(--white); position: relative; }
.fc-primary { background: var(--emergency-red); } .fc-primary:hover { background: #b91c1c; color: var(--white); }
.fc-secondary { background: var(--primary-color); } .fc-secondary:hover { background: var(--secondary-color); color: var(--white); }
.fc-pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--emergency-red); animation: fc-pulse 2s infinite; z-index: -1; }
@keyframes fc-pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.8); opacity: 0; } }

.scroll-top { position: fixed; right: 1.25rem; bottom: 1.5rem; width: 46px; height: 46px; border-radius: 50%; background: var(--primary-color); color: var(--white); border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); z-index: 899; }
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--secondary-color); }

/* ---------- Sticky mobile call bar (biggest conversion lever) ---------- */
.mobile-callbar { display: none; }
@media (max-width: 768px) {
  /* The bottom call bar already covers Call + Quote, so drop the redundant round quick-contact
     buttons — they otherwise stack right on top of the scroll-to-top ("go up") button. */
  .floating-contact { display: none; }
  .scroll-top { bottom: 5rem; }
  .emergency-badge { font-size: 0.68rem; letter-spacing: 0.03em; white-space: nowrap; padding: 0.38rem 0.7rem; }
  .mobile-callbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  }
  .mobile-callbar a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.9rem; font-family: var(--font-heading); font-weight: 700; color: var(--white); font-size: 1rem; }
  .mobile-callbar .mc-call { background: var(--emergency-red); }
  .mobile-callbar .mc-quote { background: var(--secondary-color); }
  body { padding-bottom: 56px; }
}

/* ---------- Accessibility widget ---------- */
.accessibility-widget { position: fixed; left: 1.25rem; bottom: 1.5rem; z-index: 900; }
.acc-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-color); color: var(--white); border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.acc-btn:hover { background: var(--secondary-color); }
.acc-menu { position: absolute; left: 0; bottom: 60px; width: 240px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); }
.acc-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
.acc-menu h4 { font-size: 0.95rem; margin-bottom: 0.75rem; }
.acc-option { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem; border-radius: var(--radius); cursor: pointer; font-size: 0.9rem; }
.acc-option:hover, .acc-option:focus { background: var(--bg-light); outline: none; }
.acc-menu #accReset { margin-top: 0.5rem; width: 100%; padding: 0.5rem; background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-weight: 600; }
@media (max-width: 768px) { .accessibility-widget { bottom: 5rem; } }

/* Accessibility states (toggled by shared.js) */
body.high-contrast { background: #000 !important; color: #fff !important; }
body.high-contrast nav, body.high-contrast .card, body.high-contrast .hero-card, body.high-contrast .review-card { background: #000 !important; color: #fff !important; border-color: #fff !important; }
body.high-contrast h1, body.high-contrast h2, body.high-contrast h3, body.high-contrast h4, body.high-contrast p, body.high-contrast a, body.high-contrast li { color: #fff !important; }
body.high-contrast .btn-primary, body.high-contrast .nav-cta { background: #ff0 !important; color: #000 !important; }
body.large-text { font-size: 1.18rem; }
body.large-text h1 { font-size: clamp(2.4rem, 6vw, 3.75rem); }
body.highlight-links a { text-decoration: underline !important; background: #fff3cd; color: #1f2937 !important; padding: 0 2px; }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .acc-option:focus-visible {
  outline: 3px solid var(--secondary-color); outline-offset: 2px;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }
.muted { color: var(--text-muted); }
.hide-mobile { } .hide-desktop { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .grid-2, .grid-3, .grid-4, .blog-grid, .gallery { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; }
  .hide-mobile { display: none !important; }
  .hide-desktop { display: revert; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}
