/* ============================================================
   SubZero Growth — HVAC Local Service Theme
   Version: 1.0.0
   ============================================================ */

/* ── 1. CSS Variables ─────────────────────────────────────── */
:root {
  --primary:      #0d1f35;
  --secondary:    #1d4ed8;
  --accent:       #0ea5e9;
  --background:   #f0f9ff;
  --surface:      #e0f2fe;
  --text:         #0c1a2c;
  --muted:        #5a7a9a;
  --border:       #c0d4e8;
  --dark:         #060d1c;
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
  --radius:       8px;
  --emergency:    #f97316;
  --live:         #22c55e;
  --shadow-sm:    0 1px 3px rgba(13,31,53,0.12);
  --shadow-md:    0 4px 16px rgba(13,31,53,0.18);
  --shadow-lg:    0 12px 40px rgba(13,31,53,0.22);
  --transition:   0.25s cubic-bezier(0.4,0,0.2,1);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* Hide empty images */
img[src=""], img:not([src]) { display: none !important; }

/* ── 3. Livewire wire:loading ─────────────────────────────── */
[wire\:loading],
[wire\:loading\.delay],
[wire\:loading\.inline-block],
[wire\:loading\.inline] { display: none; }

/* ── 4. Data-list grid fix ────────────────────────────────── */
[data-list] { display: grid; }
[data-list] > div { display: block; }

/* ── 5. Skip link ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

/* ── 6. Scroll Progress Bar ───────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  z-index: 9998;
  transition: width 0.1s linear;
}

/* ── 7. Back to Top ───────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 900;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { transform: translateY(-3px); }

/* ── 8. Sticky Mobile CTA ─────────────────────────────────── */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  gap: 0;
  z-index: 800;
  transform: translateY(100%);
  transition: transform var(--transition);
}
.sticky-mobile-cta.visible { transform: translateY(0); }
.sticky-mobile-cta a {
  flex: 1;
  padding: 0.9rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}
.sticky-mobile-cta .cta-call { background: var(--accent); color: #fff; }
.sticky-mobile-cta .cta-quote { background: var(--primary); color: #fff; }

@media (min-width: 768px) {
  .sticky-mobile-cta { display: none; }
}

/* ── 9. Header / Navbar ───────────────────────────────────── */
[data-section="header"] {
  position: sticky;
  top: 0;
  z-index: 700;
  background: rgba(13,31,53,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14,165,233,0.15);
  transition: background var(--transition);
}

[data-section="header"] .nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

[data-section="header"] .nav__logo img {
  height: 40px;
  width: auto;
}
[data-section="header"] .nav__logo .brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -0.02em;
}
[data-section="header"] .nav__logo .brand-text em {
  color: var(--accent);
  font-style: normal;
}

/* Desktop nav */
[data-section="header"] nav:not(.nav__mobile) {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

[data-section="header"] nav:not(.nav__mobile) a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
[data-section="header"] nav:not(.nav__mobile) a:hover {
  color: #fff;
  background: rgba(14,165,233,0.12);
}
[data-section="header"] nav:not(.nav__mobile) a.active { color: var(--accent); }

.nav__phone-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent) !important;
  font-weight: 700 !important;
  border: 1px solid rgba(14,165,233,0.4) !important;
  background: rgba(14,165,233,0.08) !important;
  padding: 0.4rem 0.9rem !important;
}
.nav__phone-link:hover {
  background: rgba(14,165,233,0.2) !important;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav panel */
.nav__mobile {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--dark);
  border-top: 1px solid rgba(14,165,233,0.15);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 699;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--transition), background var(--transition);
}
.nav__mobile a:hover { color: var(--accent); background: rgba(14,165,233,0.08); }
.nav__mobile .nav__phone-link { margin-top: 0.5rem; justify-content: center; border: none !important; background: var(--accent) !important; color: #fff !important; }

@media (max-width: 1023px) {
  [data-section="header"] nav:not(.nav__mobile) { display: none; }
  .nav__toggle { display: flex; }
}

/* ── 10. Hero ─────────────────────────────────────────────── */
[data-section="hero"] {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

/* Hex-pattern overlay */
[data-section="hero"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104'%3E%3Cpath fill='none' stroke='%230ea5e9' stroke-opacity='0.07' stroke-width='1' d='M30 0 L60 17 L60 51 L30 68 L0 51 L0 17 Z M30 68 L60 85 L60 104 M30 68 L0 85 L0 104 M60 17 L60 0 M0 17 L0 0'/%3E%3C/svg%3E");
  background-size: 60px 104px;
  opacity: 0.6;
  pointer-events: none;
}

/* Diagonal split */
[data-section="hero"]::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(135deg, rgba(13,31,53,0.6) 0%, rgba(6,13,28,0.9) 100%);
  pointer-events: none;
}

.hero__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__content { color: #fff; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14,165,233,0.12);
  border: 1px solid rgba(14,165,233,0.35);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.hero__prefix {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.75rem;
}

.hero__content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.3);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}
.hero__chip .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

.hero__image {
  position: relative;
  z-index: 3;
}
.hero__image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: calc(var(--radius, 8px) * 1.5);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(14,165,233,0.2);
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__content > * {
  animation: heroFadeUp 0.7s ease both;
}
.hero__content .hero__badge   { animation-delay: 0.05s; }
.hero__content .hero__prefix  { animation-delay: 0.12s; }
.hero__content .hero__title   { animation-delay: 0.2s; }
.hero__content .hero__subtitle { animation-delay: 0.28s; }
.hero__content p               { animation-delay: 0.35s; }
.hero__content .hero__ctas     { animation-delay: 0.42s; }
.hero__content .hero__chips    { animation-delay: 0.5s; }

@media (max-width: 1023px) {
  .hero__container { grid-template-columns: 1fr; text-align: center; }
  [data-section="hero"]::after { display: none; }
  .hero__image { display: none; }
  .hero__ctas { justify-content: center; }
  .hero__chips { justify-content: center; }
  .hero__content p { margin-left: auto; margin-right: auto; }
}

/* ── 11. Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(14,165,233,0.4);
}
.btn--primary:hover { background: #0284c7; box-shadow: 0 6px 24px rgba(14,165,233,0.5); transform: translateY(-2px); }
.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(14,165,233,0.08); }
.btn--dark {
  background: var(--primary);
  color: #fff;
}
.btn--dark:hover { background: var(--dark); }
.btn--emergency {
  background: var(--emergency);
  color: #fff;
  box-shadow: 0 4px 20px rgba(249,115,22,0.4);
}
.btn--emergency:hover { background: #ea6c0a; transform: translateY(-2px); }
.btn--magnetic { will-change: transform; }

/* ── 12. Section Utilities ────────────────────────────────── */
.section__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}
.section__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.section__title {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section__subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0.75rem auto 0;
}

/* Dark section text overrides */
.section--dark .section__title,
.section--midnight .section__title { color: #fff; }
.section--dark .section__subtitle,
.section--midnight .section__subtitle { color: rgba(255,255,255,0.6); }

/* ── 13. Stats Band ───────────────────────────────────────── */
.stats-band {
  background: var(--primary);
  padding: 3rem 0;
}
.stats-band .section__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat__item { color: #fff; }
.stat__number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat__label { font-size: 0.85rem; color: rgba(255,255,255,0.65); font-weight: 500; }

@media (max-width: 767px) {
  .stats-band .section__inner { grid-template-columns: repeat(2, 1fr); }
}

/* ── 14. About ────────────────────────────────────────────── */
[data-section="about"] {
  background: var(--background);
  padding: 6rem 0;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about__image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: calc(var(--radius, 8px) * 1.5);
  box-shadow: var(--shadow-lg);
}
.about__content .section__eyebrow { display: block; margin-bottom: 0.5rem; }
.about__content h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.about__content p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about__features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.about__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.about__feature .icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(14,165,233,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

@media (max-width: 1023px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__image { display: none; }
}

/* ── 15. Services ─────────────────────────────────────────── */
[data-section="services"] {
  background: #0a1929;
  padding: 6rem 0;
}

[data-section="services"] [data-list="items"] {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0;
}

.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(14,165,233,0.15);
  border-left: 4px solid var(--accent);
  border-radius: calc(var(--radius, 8px) * 1.5);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(14,165,233,0.15);
  border-color: var(--accent);
}
[data-section="services"] [data-list="items"] > div:nth-child(3n) .service-card,
[data-section="services"] [data-list="items"] > div:nth-child(3n) {
  background: rgba(13,31,53,0.8);
  border-color: rgba(29,78,216,0.3);
  border-left-color: var(--secondary);
}

.service-card__image {
  height: 200px;
  overflow: hidden;
}
.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card__image img { transform: scale(1.05); }

.service-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.service-card__icon {
  width: 44px; height: 44px;
  border-radius: calc(var(--radius, 8px) * 1.25);
  background: rgba(14,165,233,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}
.service-card__subtitle {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.service-card__content {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1rem;
}
.service-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.service-card__price {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: rgba(14,165,233,0.15);
  border: 1px solid rgba(14,165,233,0.3);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}
.service-card__link {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition);
}
.service-card:hover .service-card__link { gap: 0.6rem; }

@media (max-width: 1023px) {
  [data-section="services"] [data-list="items"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  [data-section="services"] [data-list="items"] { grid-template-columns: 1fr; }
}

/* ── 16. Service Areas ────────────────────────────────────── */
[data-section="service_areas"] {
  background: var(--surface);
  padding: 5rem 0;
}

[data-section="service_areas"] [data-list="items"] {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-top: 0;
}

.area-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  cursor: default;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.area-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15), var(--shadow-sm);
  transform: translateY(-2px);
}
.area-chip small {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 400;
}

/* ── 17. Emergency Contact ────────────────────────────────── */
[data-section="emergency_contact"] {
  background: var(--emergency);
  padding: 4rem 0;
  position: relative;
  overflow: clip;
}
[data-section="emergency_contact"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.emergency__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.emergency__icon {
  font-size: 3.5rem;
  animation: shake-bell 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes shake-bell {
  0%,100% { transform: rotate(0deg); }
  10%      { transform: rotate(15deg); }
  20%      { transform: rotate(-12deg); }
  30%      { transform: rotate(10deg); }
  40%      { transform: rotate(-8deg); }
  50%      { transform: rotate(0deg); }
}
.emergency__text { flex: 1; min-width: 200px; }
.emergency__headline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}
.emergency__subline { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.emergency__phone {
  font-family: 'Courier New', monospace;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.emergency__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn--whatsapp {
  background: #22c55e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.btn--whatsapp:hover { background: #16a34a; }

/* ── 18. Before/After Gallery ─────────────────────────────── */
[data-section="before_after_gallery"] {
  background: var(--dark);
  padding: 6rem 0;
}

[data-section="before_after_gallery"] [data-list="items"] {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ba-pair {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(14,165,233,0.12);
  border-radius: calc(var(--radius, 8px) * 1.5);
  overflow: hidden;
}
.ba-pair__images {
  display: flex;
  position: relative;
}
.ba-pair__images::after {
  content: '→';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.ba-pair__side { flex: 1; position: relative; }
.ba-pair__side img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.ba-pair__label {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.ba-pair__label--before { background: rgba(239,68,68,0.9); color: #fff; }
.ba-pair__label--after  { background: rgba(14,165,233,0.9); color: #fff; }
.ba-pair__caption {
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

@media (max-width: 1023px) {
  [data-section="before_after_gallery"] [data-list="items"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  [data-section="before_after_gallery"] [data-list="items"] { grid-template-columns: 1fr; }
}

/* ── 19. Certifications ───────────────────────────────────── */
[data-section="certifications"] {
  background: var(--primary);
  padding: 5rem 0;
}

[data-section="certifications"] [data-list="items"] {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 0;
}

.cert-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(14,165,233,0.18);
  border-radius: calc(var(--radius, 8px) * 1.25);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(14,165,233,0.15);
}
.cert-card__logo {
  height: 56px;
  width: 100%;
  object-fit: contain;
  margin: 0 auto 0.85rem;
  filter: brightness(0) invert(1) opacity(0.7);
}
.cert-card__name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}
.cert-card__issuer { font-size: 0.78rem; color: var(--accent); font-weight: 600; }
.cert-card__note { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 0.25rem; }

@media (max-width: 1023px) {
  [data-section="certifications"] [data-list="items"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  [data-section="certifications"] [data-list="items"] { grid-template-columns: repeat(2, 1fr); }
}

/* ── 20. Quote Request Form ───────────────────────────────── */
[data-section="quote_request"] {
  background: var(--background);
  padding: 6rem 0;
}

.quote__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  border-radius: 16px;
  overflow: clip;
  box-shadow: var(--shadow-lg);
}

.quote__info {
  background: var(--primary);
  padding: 3rem 2.5rem;
  color: #fff;
}
.quote__info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}
.quote__info p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
  font-size: 0.9rem;
  line-height: 1.7;
}
.quote__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.quote__contact-item .icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(14,165,233,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--accent);
}
.quote__contact-item .detail strong {
  display: block;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.quote__contact-item .detail span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.quote__form-panel {
  background: #fff;
  padding: 3rem 2.5rem;
}
.quote__form-panel h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.quote__form-panel p { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.75rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--background);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.quote__submit {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.quote__submit:hover { background: #0284c7; transform: translateY(-1px); }

@media (max-width: 1023px) {
  .quote__grid { grid-template-columns: 1fr; }
  .quote__info { padding: 2rem 1.5rem; }
}
@media (max-width: 767px) {
  .form-row { grid-template-columns: 1fr; }
  .quote__form-panel { padding: 2rem 1.5rem; }
}

/* ── 21. Testimonials ─────────────────────────────────────── */
[data-section="testimonials"] {
  background: var(--dark);
  padding: 6rem 0;
}

[data-section="testimonials"] [data-list="items"] {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid var(--accent);
  border-radius: calc(var(--radius, 8px) * 1.5);
  padding: 2rem;
  backdrop-filter: blur(8px);
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(14,165,233,0.12);
}
.testimonial-card__stars {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}
.testimonial-card__content {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.testimonial-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(14,165,233,0.4);
}
.testimonial-card__avatar-placeholder {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(14,165,233,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.testimonial-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}
.testimonial-card__role { font-size: 0.78rem; color: var(--muted); }

@media (max-width: 1023px) {
  [data-section="testimonials"] [data-list="items"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  [data-section="testimonials"] [data-list="items"] { grid-template-columns: 1fr; }
}

/* ── 22. Opening Hours ────────────────────────────────────── */
[data-section="opening_hours"] {
  background: var(--background);
  padding: 5rem 0;
}

.hours__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.hours__callout {
  background: var(--primary);
  border-radius: calc(var(--radius, 8px) * 1.5);
  padding: 2.5rem;
  color: #fff;
}
.hours__callout h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.hours__callout p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 1.5rem; }
.hours__emergency-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--emergency);
  display: block;
  margin-bottom: 1.25rem;
}

.hours__table-wrap { overflow-x: auto; }
.hours__table {
  width: 100%;
  border-collapse: collapse;
}
.hours__table tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.hours__table tr:last-child { border-bottom: none; }
.hours__table td {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}
.hours__table .day-cell { font-weight: 600; color: var(--text); }
.hours__table .hours-cell { color: var(--muted); text-align: right; }
.hours__table .closed-cell { color: #ef4444; font-weight: 600; text-align: right; font-size: 0.82rem; }
.hours__table tr.today-row {
  background: rgba(14,165,233,0.08);
  border-radius: var(--radius);
}
.hours__table tr.today-row .day-cell {
  color: var(--accent);
  font-weight: 700;
}
.hours__table tr.today-row .day-cell::after {
  content: ' ← Today';
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
  opacity: 0.7;
}

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

/* ── 23. Contact ──────────────────────────────────────────── */
[data-section="contact"] {
  background: #0a1929;
  padding: 6rem 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact__info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}
.contact__info p { color: rgba(255,255,255,0.6); margin-bottom: 2rem; font-size: 0.92rem; }

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact__item .icon {
  width: 42px; height: 42px;
  border-radius: calc(var(--radius, 8px) * 1.25);
  background: rgba(14,165,233,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--accent);
}
.contact__item .detail strong {
  display: block;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.contact__item .detail a,
.contact__item .detail span {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  transition: color var(--transition);
}
.contact__item .detail a:hover { color: var(--accent); }

.contact__form-placeholder {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(14,165,233,0.15);
  border-radius: calc(var(--radius, 8px) * 1.5);
  padding: 3rem 2.5rem;
}

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

/* ── 24. FAQs ─────────────────────────────────────────────── */
[data-section="faqs"] {
  background: var(--background);
  padding: 6rem 0;
}

.faq__list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: #fff;
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: none;
  gap: 1rem;
  transition: color var(--transition), background var(--transition);
}
.faq-trigger:hover { color: var(--accent); background: var(--surface); }
.faq-trigger.open { color: var(--accent); }
.faq-trigger__icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--accent);
}
.faq-trigger.open .faq-trigger__icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-body__inner {
  padding: 0 1.4rem 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── 25. Footer ───────────────────────────────────────────── */
[data-section="footer"] {
  background: var(--dark);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(14,165,233,0.1);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer__brand img { height: 40px; margin-bottom: 1rem; }
.footer__brand .brand-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer__brand .brand-text em { color: var(--accent); font-style: normal; }
.footer__tagline { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.6; max-width: 280px; }

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer__col ul li a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer__socials { display: flex; gap: 0.6rem; }
.footer__social-link {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: background var(--transition), color var(--transition);
}
.footer__social-link:hover { background: var(--accent); color: #fff; }

@media (max-width: 1023px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
}

/* ── 26. Page Hero (inner pages) ──────────────────────────── */
.page-hero {
  background: var(--primary);
  padding: 5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104'%3E%3Cpath fill='none' stroke='%230ea5e9' stroke-opacity='0.06' stroke-width='1' d='M30 0 L60 17 L60 51 L30 68 L0 51 L0 17 Z'/%3E%3C/svg%3E");
  background-size: 60px 104px;
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.page-hero__breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}
.page-hero__breadcrumb a { color: var(--accent); }
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}
.page-hero__sub { color: rgba(255,255,255,0.65); max-width: 520px; margin: 0 auto; }

/* ── 26. Reveal Animation System (GSAP replacement) ─────────
   Resting state is visible at rule level — the hidden from-state lives
   ONLY inside @reveal-in's keyframes, and the whole lane is gated behind
   @supports + no-preference so a non-supporting / reduced-motion visitor
   just sees the content, never a blank section. */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stats-band .stat__item,
    [data-section="about"] .about__content,
    [data-section="about"] .about__image,
    [data-section="services"] .service-card,
    [data-section="service_areas"] .area-chip,
    [data-section="emergency_contact"] .emergency__text,
    [data-section="emergency_contact"] .emergency__phone,
    [data-section="before_after_gallery"] .ba-pair,
    [data-section="certifications"] .cert-card,
    .quote__info,
    .quote__form-panel,
    [data-section="testimonials"] .testimonial-card,
    [data-section="faqs"] .faq-item,
    [data-section="contact"] .contact__item {
      animation: reveal-in .7s ease both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }

    /* Staggered groups — nth-child ranges approximate GSAP's old
       `stagger` option, tied to scroll position rather than a clock. */
    .stats-band .stat__item:nth-child(2) { animation-range: entry 6% entry 91%; }
    .stats-band .stat__item:nth-child(3) { animation-range: entry 12% entry 97%; }
    .stats-band .stat__item:nth-child(n+4) { animation-range: entry 18% entry 100%; }

    [data-section="services"] .service-card:nth-child(2) { animation-range: entry 5% entry 90%; }
    [data-section="services"] .service-card:nth-child(3) { animation-range: entry 10% entry 95%; }
    [data-section="services"] .service-card:nth-child(n+4) { animation-range: entry 15% entry 100%; }

    [data-section="service_areas"] .area-chip:nth-child(2) { animation-range: entry 3% entry 88%; }
    [data-section="service_areas"] .area-chip:nth-child(3) { animation-range: entry 6% entry 91%; }
    [data-section="service_areas"] .area-chip:nth-child(n+4) { animation-range: entry 9% entry 94%; }

    [data-section="before_after_gallery"] .ba-pair:nth-child(2) { animation-range: entry 6% entry 91%; }
    [data-section="before_after_gallery"] .ba-pair:nth-child(n+3) { animation-range: entry 12% entry 97%; }

    [data-section="certifications"] .cert-card:nth-child(2) { animation-range: entry 5% entry 90%; }
    [data-section="certifications"] .cert-card:nth-child(3) { animation-range: entry 10% entry 95%; }
    [data-section="certifications"] .cert-card:nth-child(n+4) { animation-range: entry 15% entry 100%; }

    [data-section="testimonials"] .testimonial-card:nth-child(2) { animation-range: entry 6% entry 91%; }
    [data-section="testimonials"] .testimonial-card:nth-child(3) { animation-range: entry 12% entry 97%; }
    [data-section="testimonials"] .testimonial-card:nth-child(n+4) { animation-range: entry 18% entry 100%; }

    [data-section="faqs"] .faq-item:nth-child(2) { animation-range: entry 4% entry 89%; }
    [data-section="faqs"] .faq-item:nth-child(3) { animation-range: entry 8% entry 93%; }
    [data-section="faqs"] .faq-item:nth-child(n+4) { animation-range: entry 12% entry 97%; }

    [data-section="contact"] .contact__item:nth-child(2) { animation-range: entry 5% entry 90%; }
    [data-section="contact"] .contact__item:nth-child(n+3) { animation-range: entry 10% entry 95%; }
  }
}

/* ── 27. Reduced Motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}


/* __wobooks-defensive__ — appended by HtmlZipThemeConverterV2.
   Hide images whose src resolves to empty (e.g. data-src-field bindings
   for Items / categories the owner hasn't uploaded a photo for yet).
   Without this rule, the browser shows the alt-text fallback —
   that's the bug behind the literal word 'image' showing in avatar
   slots and About images on the production Braise theme. */
img[src=""], img:not([src]) { display: none !important; }

/* Palette roles (BrandColourRoles, 2026-10-06): brand-coloured text on a band this theme draws dark keeps a lightness floor; text on a brand fill follows the fill. */
:where([data-section="services"]) .section__eyebrow { color: oklch(from var(--accent) max(l, 0.75) c h); }
:where([data-section="services"]) .service-card__subtitle { color: oklch(from var(--accent) max(l, 0.75) c h); }
:where([data-section="services"]) .service-card__link { color: oklch(from var(--accent) max(l, 0.75) c h); }
:where([data-section="contact"]) .contact__item .detail strong { color: oklch(from var(--accent) max(l, 0.75) c h); }
:where([data-section="footer"]) .footer__col h4 { color: oklch(from var(--accent) max(l, 0.75) c h); }
:where(.quote__info) .quote__contact-item .detail strong { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }

/* Palette roles, item 53 (BrandColourRoles, 2026-10-06): text on a band filled with a palette brand colour follows the fill; brand-coloured text on a band this theme draws dark keeps a lightness floor. */
.quote__info p { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
:where(.quote__info) .quote__contact-item .detail span { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
:root {
  --muted: #547494; /* was #5a7a9a */
}
.footer__copy { color: oklch(from rgba(255, 255, 255, 0.4) calc(l + 0.02) c h / calc(min(1, alpha + 0.06))); }

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
:where([data-section="about"]) .section__eyebrow { color: oklch(from var(--accent) min(l, 0.495) c h / alpha); }
:where([data-section="quote_request"]) .section__eyebrow { color: oklch(from var(--accent) min(l, 0.495) c h / alpha); }
.quote__submit { background-color: oklch(from var(--accent) min(l, 0.545) c h / alpha); }
