/* ============================================================
   QUANTUM ROOFING & CONSTRUCTION — MAIN STYLESHEET v2
   Light-dominant, red/gold brand accent, premium contractor feel
   ============================================================ */

/* ─── CSS CUSTOM PROPERTIES ─── */
:root {
  --color-red:    #C0392B;
  --color-gold:   #F0A500;
  --color-slate:  #1E2D3D;
  --color-light:  #F5F7FA;
  --color-cream:  #FEF6EC;
  --color-white:  #FFFFFF;
  --color-text:   #1A1A2E;
  --color-gray:   #6B7280;
  --color-border: #E2E8F0;

  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;

  --container-max: 1240px;
  --section-pad:   96px;
  --section-pad-m: 60px;

  --transition-base: 0.25s ease;
  --shadow-card:     0 4px 20px rgba(0,0,0,0.07);
  --shadow-lift:     0 14px 36px rgba(0,0,0,0.12);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ─── CONTAINER ─── */
.container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── TYPOGRAPHY — GLOBAL ─── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.1;
}

/* FIX 10 — H2 global scale */
h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

/* FIX 10 — Eyebrow labels */
.eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-red);   /* ALL eyebrows = red */
  margin-bottom: 10px;
}

.eyebrow--gold { color: var(--color-gold); } /* testimonials only */

/* FIX 10 — Section intro paragraph */
.section-intro {
  font-size: 17px;
  color: var(--color-gray);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.75;
}

.section-header.center .section-intro {
  text-align: center;
}

/* ─── SECTION PADDING (FIX 11) ─── */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section--white { background: var(--color-white); }
.section--light { background: var(--color-light); }
.section--cream { background: var(--color-cream); }
.section--dark  { background: var(--color-slate); }
.section--red   { background: var(--color-red); }

/* FIX 11 — Section header spacing */
.section-header         { margin-bottom: 56px; }
.section-header.center  { text-align: center; }
.section-header h2      { margin-top: 8px; }

/* ─── DIAGONAL CLIP PATHS ─── */
.clip-bottom-right {
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  padding-bottom: calc(var(--section-pad) + 56px);
}

.clip-bottom-left {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 94%);
  padding-bottom: calc(var(--section-pad) + 56px);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 32px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

/* FIX 1 — Hero CTA size */
.hero .btn,
.btn-primary {
  min-height: 56px;
  padding: 0 36px;
}

.btn-primary {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
}

.btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-slate);
}

.btn-outline-red {
  background: transparent;
  color: var(--color-red);
  border-color: var(--color-red);
}

.btn-outline-red:hover {
  background: var(--color-red);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--color-red);
  border-color: #fff;
}

.btn-white:hover {
  background: rgba(255,255,255,0.88);
  color: var(--color-red);
}

/* ─── CARD BASE ─── */
.card {
  background: var(--color-white);
  border-radius: 10px;
  padding: 32px;
  border-top: 3px solid var(--color-red);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 0;
    transform: none;
    transition: opacity 0.55s ease;
  }
}

/* ═══════════════════════════════════════════════════
   HEADER & NAV
══════════════════════════════════════════════════════ */

/* ─── TOP INFO BAR ─── */
.top-bar {
  background: var(--color-red);
  height: 36px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.top-bar-text {
  font-size: 12px;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-body);
  font-weight: 500;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar a {
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  font-weight: 500;
}

.top-bar a:hover { color: #fff; }

/* ─── STICKY HEADER ─── */
.site-header {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
}

.site-header.scrolled {
  background: var(--color-slate);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  top: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

/* ─── LOGO ─── */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
}

.logo-text .red { color: var(--color-red); }

/* ─── NAV LINKS ─── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.88);
  padding: 8px 10px;
  border-radius: 3px;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-link.active-page { color: var(--color-gold); }

/* ─── DROPDOWN ─── */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-slate);
  border-top: 2px solid var(--color-red);
  border-radius: 0 0 6px 6px;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 100;
}

.nav-dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  font-family: var(--font-body);
  color: rgba(255,255,255,0.75);
  transition: color 0.15s, background 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-dropdown a:last-child { border-bottom: none; }

.nav-dropdown a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.dropdown-arrow {
  font-size: 10px;
  margin-left: 3px;
  opacity: 0.7;
  transition: transform 0.2s;
}

.nav-item.open .dropdown-arrow { transform: rotate(180deg); }

/* ─── NAV RIGHT ─── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-phone {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gold);
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-phone:hover { color: #fff; }

/* ─── HAMBURGER ─── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 6px;
}

/* ─── MOBILE NAV OVERLAY ─── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 45, 61, 0.97);
  z-index: 2000;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}

.mobile-nav.open { display: flex; }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
}

.mobile-nav-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s;
}

.mobile-nav-link:hover { color: #fff; }

.mobile-subnav {
  display: none;
  flex-direction: column;
  padding: 8px 0 8px 16px;
}

.mobile-subnav.open { display: flex; }

.mobile-subnav-link {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}

.mobile-subnav-link:hover { color: #fff; }

.mobile-nav-cta { margin-top: 32px; }

.mobile-nav-cta .btn {
  width: 100%;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════
   SECTION 1 — HERO (FIX 1)
══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-slate);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 177.77vw; /* (16/9) * 100vw to force 16:9 ratio coverage for a vertical video */
  min-height: 100vh;
  min-width: 177.77vh; /* Minimum fallback so it doesn't get narrow */
  pointer-events: none;
}

/* FIX 1 — Deepened gradient overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,25,35,0.92) 20%, rgba(15,25,35,0.65) 100%);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  padding-top: 160px;
  padding-bottom: 80px;
  max-width: 780px;
}

/* FIX 1 — Hero eyebrow */
.hero .eyebrow {
  color: var(--color-gold);
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 0.2s forwards;
}

/* FIX 1 — Hero H1 — monumental size */
.hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
  font-size: clamp(42px, 6.5vw, 80px);
  line-height: 0.95;
  margin-bottom: 0;
}

.hero-h1-line {
  display: block;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease forwards;
}

.hero-h1-line:nth-child(1) { animation-delay: 0.35s; }
.hero-h1-line:nth-child(2) { animation-delay: 0.50s; }
.hero-h1-line:nth-child(3) { animation-delay: 0.65s; }

/* FIX 1 — Hero subline */
.hero-subline {
  font-size: 19px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  margin-top: 22px;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 0.85s forwards;
}

/* FIX 1 — Hero CTAs */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 1.05s forwards;
}

/* FIX 1 — Trust strip */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 1.25s forwards;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  font-family: var(--font-body);
  padding: 0 20px;
}

.trust-item:first-child { padding-left: 0; }

.trust-item + .trust-item {
  border-left: 1px solid rgba(255,255,255,0.28);
}

.trust-stars {
  color: var(--color-gold);
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   SECTION 2 — STATS BAR (FIX 2)
══════════════════════════════════════════════════════ */
.stats-bar {
  background: #FFFFFF;
  border-top: 4px solid #C0392B;
  border-bottom: 1px solid #E2E8F0;
  padding: 48px 0;
}

.stats-inner {
  display: flex;
  align-items: stretch;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 24px;
  position: relative;
}

/* FIX 2 — Vertical divider (right border, remove on last) */
.stat-item {
  border-right: 1px solid #E2E8F0;
}

.stat-item:last-child {
  border-right: none;
}

/* FIX 2 — Stat number */
.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 58px;
  font-weight: 800;
  color: #C0392B;
  line-height: 1;
  display: block;
}

/* FIX 2 — Stat label */
.stat-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6B7280;
  display: block;
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════
   SECTION 3 — SERVICES (FIX 3)
══════════════════════════════════════════════════════ */

/* FIX 3 — Tab container */
.services-tabs {
  display: flex;
  gap: 0;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
  margin: 0 auto 48px;
}

/* FIX 3 — Tab buttons */
.tab-btn {
  padding: 12px 32px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-height: unset;
  border-radius: 0;
}

.tab-btn:not(.active) {
  background: #F5F7FA;
  color: #6B7280;
}

.tab-btn.active {
  background: #C0392B;
  color: #FFFFFF;
}

/* ─── Services grid ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.services-grid.hidden { display: none; }

/* FIX 3 — Service cards */
.service-card {
  background: #FFFFFF;
  border-radius: 10px;
  border-top: 3px solid #C0392B;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}

/* FIX 3 — Card image */
.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* FIX 3 — Card body */
.service-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.service-card-icon {
  color: var(--color-red);
  margin-bottom: 4px;
}

/* FIX 3 — Card title */
.service-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 0;
}

.service-card p {
  font-size: 15px;
  color: var(--color-gray);
  line-height: 1.65;
  flex: 1;
}

/* FIX 3 — Card link with arrow movement */
.service-card-link {
  font-size: 14px;
  font-weight: 600;
  color: #C0392B;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
  margin-top: 4px;
  text-decoration: none;
}

.service-card-link:hover { gap: 8px; }

.services-bottom {
  text-align: center;
  margin-top: 48px;
}

/* ═══════════════════════════════════════════════════
   SECTION 4 — ABOUT (FIX 4)
══════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* FIX 4 — Image wrapper with red left accent */
.about-img-wrap {
  position: relative;
  border-radius: 10px;
  overflow: visible; /* allow ::before to extend outside */
}

.about-img-wrap::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 10%;
  height: 80%;
  width: 4px;
  background: #C0392B;
  border-radius: 2px;
  z-index: 1;
}

/* FIX 4 — About image */
.about-img-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.13);
}

.about-content { }

.about-body {
  color: var(--color-gray);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 16px;
}

/* FIX 4 — Feature list (Sophisticated Typography) */
.feature-list {
  list-style: none;
  margin: 32px 0 40px;
  display: flex;
  flex-direction: column;
}

.feature-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-family: 'Inter', sans-serif;
  font-size: 16.5px;
  color: #4B5563; /* Elegant dark gray */
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.feature-list li:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08); /* Frames the top */
}

.feature-list li strong {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: #111820; /* Very dark slate for strong contrast */
}

/* ═══════════════════════════════════════════════════
   SECTION 5 — STORM DAMAGE BANNER
══════════════════════════════════════════════════════ */
.storm-banner {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.storm-bg {
  position: absolute;
  inset: 0;
}

.storm-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storm-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 35, 0.82);
}

.storm-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px;
}

.storm-content .eyebrow { color: var(--color-gold); }
.storm-content h2       { color: #fff; margin-bottom: 20px; }
.storm-content p        { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 36px; }

.storm-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.storm-pill {
  background: rgba(255,255,255,0.95);
  color: var(--color-text);
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════
   SECTION 6 — PROCESS (FIX 5)
══════════════════════════════════════════════════════ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

/* FIX 5 — Connecting dashed line */
.process-connector {
  position: absolute;
  top: 32px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  border-top: 2px dashed #E2E8F0;
  z-index: 0;
  pointer-events: none;
}

.process-step {
  text-align: center;
  padding: 24px 16px;
  position: relative;
  z-index: 1;
}

/* FIX 5 — Large watermark number */
.process-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 130px;
  font-weight: 800;
  color: #C0392B;
  opacity: 0.15;
  position: absolute;
  top: -35px;
  left: 0px;
  line-height: 1;
  z-index: 0;
  user-select: none;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-step:hover .process-number {
  opacity: 0.22;
  transform: scale(1.04) translate(-4px, -2px);
}

/* FIX 5 — Icon circle (3D Token Effect) */
.process-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #C0392B;
  position: relative;
  z-index: 1;

  /* Premium 3D Base: Gradient background and inner bevel */
  background: linear-gradient(145deg, #FFFFFF 0%, #FEF6EC 100%);
  border: 1px solid rgba(192, 57, 43, 0.12);
  
  /* Multi-layer shadow for sharp 3D extrusion/elevation */
  box-shadow: 
    inset 0 4px 6px rgba(255, 255, 255, 0.95),  /* Top highlight inner */
    inset 0 -3px 6px rgba(192, 57, 43, 0.08),   /* Bottom shadow inner */
    0 4px 8px rgba(0, 0, 0, 0.04),              /* Close contact shadow */
    0 8px 20px rgba(192, 57, 43, 0.08),         /* Mid ambient red glow */
    0 2px 0 rgba(192, 57, 43, 0.18);            /* Bottom lip extrusion */
    
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

/* Subtle glossy specular reflection at the top */
.process-icon::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 12%;
  right: 12%;
  height: 28%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.1));
  border-radius: 30px 30px 0 0;
  pointer-events: none;
  z-index: 0;
}

/* The Lucide icon SVG sits above the glare */
.process-icon svg, .process-icon i {
  position: relative;
  z-index: 2;
  /* Soft shadow underneath the icon itself for micro-depth */
  filter: drop-shadow(0 2px 2px rgba(192, 57, 43, 0.20));
}

/* Hover state — tile lifts up interactively */
.process-step:hover .process-icon {
  transform: translateY(-5px);
  box-shadow: 
    inset 0 4px 6px rgba(255, 255, 255, 0.95),
    inset 0 -3px 6px rgba(192, 57, 43, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.05),
    0 16px 28px rgba(192, 57, 43, 0.12),
    0 3px 0 rgba(192, 57, 43, 0.22);
}

.process-step h3 {
  font-size: 18px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.process-step p {
  font-size: 15px;
  color: var(--color-gray);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════
   SECTION 7 — GALLERY PREVIEW
══════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 360px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  cursor: pointer;
}

.gallery-item.tall { grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,25,35,0.0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  background: rgba(15,25,35,0.72);
}

.gallery-label {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
  text-align: center;
}

.gallery-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-red);
  background: #fff;
  padding: 6px 16px;
  border-radius: 3px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease 0.05s;
}

.gallery-item:hover .gallery-label,
.gallery-item:hover .gallery-cta {
  opacity: 1;
  transform: translateY(0);
}

.gallery-bottom {
  text-align: center;
  margin-top: 40px;
}

/* FIX 11 — Gallery H2 red underline accent */
.heading-accent {
  position: relative;
  display: inline-block;
}

.heading-accent::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: #C0392B;
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ═══════════════════════════════════════════════════
   SECTION 8 — WHY QUANTUM (FIX 6)
══════════════════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  perspective: 1300px;
}

/* FIX 6 — Why tiles (3D Physical Tile Effect) */
.why-tile {
  padding: 36px 30px;
  background: #FFFFFF;
  border-radius: 12px;
  position: relative;
  z-index: 1;

  /* 3D Directional box-shadow layers (simulating thickness + ambient float) */
  box-shadow:
    4px  5px  0 0 rgba(140, 32, 22, 0.54),
    7px  9px  0 0 rgba(112, 22, 14, 0.36),
    9px  12px 0 0 rgba(86,  16, 10, 0.22),
    11px 15px 0 0 rgba(62,  10,  7, 0.11),
    0 3px  8px  rgba(0, 0, 0, 0.10),
    0 16px 34px rgba(0, 0, 0, 0.11),
    0 24px 50px rgba(0, 0, 0, 0.07),
    0 18px 36px rgba(192, 57, 43, 0.07);

  /* Subtle forward lean */
  transform: rotateX(3deg) translateY(4px);
  transform-origin: center bottom;

  transition:
    transform  0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.42s ease,
    background 0.2s ease;
    
  will-change: transform, box-shadow;
}

/* Red accent top bar */
.why-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #9B2D22 0%, #C0392B 30%, #D84334 50%, #C0392B 70%, #9B2D22 100%);
  border-radius: 12px 12px 0 0;
  z-index: 5;
}

/* On hover: tile lifts flat exactly like service cards */
.why-tile:hover {
  transform: rotateX(0deg) translateY(-8px);
  background: #FEF6EC;
  box-shadow:
    2px 3px 0 0 rgba(140, 32, 22, 0.38),
    3px 5px 0 0 rgba(112, 22, 14, 0.22),
    0 8px  18px rgba(0, 0, 0, 0.12),
    0 24px 52px rgba(0, 0, 0, 0.14),
    0 46px 72px rgba(0, 0, 0, 0.09),
    0 30px 54px rgba(192, 57, 43, 0.13),
    0 50px 72px rgba(192, 57, 43, 0.07);
}

/* FIX 6 — Premium 3D Icon Badge */
.why-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  
  /* Engraved / Metallic base depth */
  box-shadow: 
    inset 0 4px 6px rgba(255, 255, 255, 0.9),
    inset 0 -3px 6px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 2px 0 rgba(192, 57, 43, 0.18);
}

/* Make the SVG sharp and distinct */
.why-icon i,
.why-icon svg {
  color: #C0392B !important;
  stroke: #C0392B !important;
  width: 30px !important;
  height: 30px !important;
  stroke-width: 2.2px !important;  /* Bolder, sharper strokes */
  filter: drop-shadow(0 2px 3px rgba(192, 57, 43, 0.3)); /* Lift icon off badge */
}

.why-tile h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 8px;
}

.why-tile p {
  font-size: 15px;
  line-height: 1.65;
  color: #6B7280;
}

/* ═══════════════════════════════════════════════════
   SECTION 9 — TESTIMONIALS (FIX 7)
══════════════════════════════════════════════════════ */
.google-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 24px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #E2E8F0;
}

.google-rating-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.google-rating-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.google-rating-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--color-gray);
  line-height: 1;
  margin-bottom: 4px;
}

.google-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.google-rating-score {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: #1A1A2E;
  line-height: 1;
}

.google-rating-stars-icons {
  color: #F0A500;
  font-size: 14px;
  letter-spacing: 2px;
  line-height: 1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* FIX 7 — Testimonial card */
.testimonial-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-top: 3px solid #F0A500; /* gold top */
  border-radius: 10px;
  padding: 36px 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
}

/* FIX 7 — Decorative opening quotation mark */
.testimonial-card::before {
  content: '\201C';
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 96px;
  color: #F0A500;
  opacity: 0.12;
  position: absolute;
  top: 8px;
  left: 16px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* FIX 7 — Stars */
.testimonial-stars {
  color: #F0A500;
  font-size: 18px;
  letter-spacing: 3px;
  margin-bottom: 16px;
  display: block;
}

/* FIX 7 — Quote */
.testimonial-quote {
  font-size: 15px;
  line-height: 1.75;
  font-style: italic;
  color: #1A1A2E;
  margin-bottom: 20px;
  flex: 1;
}

/* FIX 7 — Reviewer name */
.testimonial-reviewer {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1A1A2E;
  display: block;
}

/* FIX 7 — Source badge */
.testimonial-source {
  display: inline-block;
  margin-top: 8px;
  background: #C0392B;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 3px;
}

.testimonials-links {
  text-align: center;
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 32px;
}

.testimonials-links a {
  font-size: 14px;
  color: var(--color-red);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.testimonials-links a:hover { border-bottom-color: var(--color-red); }

/* ═══════════════════════════════════════════════════
   SECTION 10 — SUPPLIERS (FIX 8)
══════════════════════════════════════════════════════ */
.suppliers-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
}

/* FIX 8 — Supplier badge tiles */
.supplier-item {
  padding: 14px 28px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #1E2D3D;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  filter: grayscale(0.4);
  text-align: center;
}

.supplier-item:hover {
  filter: grayscale(0);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  border-color: #C0392B;
}

/* ═══════════════════════════════════════════════════
   SECTION 11 — SERVICE AREAS
══════════════════════════════════════════════════════ */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.city-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.city-pill {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  padding: 8px 20px;
  background: var(--color-light);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.city-pill:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
}

/* ═══════════════════════════════════════════════════
   SECTION 12 — TICKER
══════════════════════════════════════════════════════ */
.ticker-section {
  background: var(--color-red);
  overflow: hidden;
  padding: 14px 0;
}

.ticker-wrap {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
}

.ticker-text {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  padding: 0 8px;
  white-space: nowrap;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════
   SECTION 13 — CTA BANNER
══════════════════════════════════════════════════════ */
.cta-banner {
  background: var(--color-red);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  margin-bottom: 36px;
}

.cta-banner-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ═══════════════════════════════════════════════════
   SECTION 14 — CONTACT FORM (FIX 9)
══════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: start;
}

/* Premium 3D Framed Contact Form */
.contact-form-wrap {
  padding: 48px;
  background: linear-gradient(150deg, #FFFFFF 0%, #FAFAFC 100%);
  border-radius: 12px;
  
  /* Sharp, high-resolution aesthetic border */
  border: 1px solid rgba(192, 57, 43, 0.25);
  
  /* 3D Extrusion + Crisp Inner Borders */
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),   /* Inner crisp highlight */
    inset 0 0 0 6px rgba(192, 57, 43, 0.03),    /* Subtle internal frame */
    
    /* Solid 3D directional thickness (same premium depth language) */
    4px  5px  0 0 rgba(140, 32, 22, 0.54),
    7px  9px  0 0 rgba(112, 22, 14, 0.36),
    9px  12px  0 0 rgba(86, 16, 10, 0.20),
    
    /* Ambient platform shadows */
    0 12px 28px rgba(0, 0, 0, 0.06),
    0 24px 56px rgba(0, 0, 0, 0.08),
    0 32px 72px rgba(192, 57, 43, 0.07);
    
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .contact-form-wrap {
    padding: 32px 24px;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

/* FIX 9 — Form labels */
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #1A1A2E;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

/* FIX 9 — Inputs, selects, textarea */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  color: #1A1A2E;
  background: #FFFFFF;
  transition: all 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  
  /* Internal 3D depth for inputs to match the form's premium feel */
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #C0392B;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.10);
}

.form-radio-group {
  display: flex;
  gap: 24px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  color: var(--color-text);
}

.radio-label input[type="radio"] {
  width: auto;
  accent-color: #C0392B;
}

.form-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #4CAF50;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
}

.form-success.show { display: block; }
.form-success h3   { color: #2e7d32; margin-bottom: 10px; }
.form-success p    { color: #4CAF50; }

/* FIX 9 — Contact info cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #C0392B;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.contact-info-icon {
  color: #C0392B;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-icon i,
.contact-info-icon svg {
  color: #C0392B;
  stroke: #C0392B;
}

.contact-info-content h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray);
  margin-bottom: 4px;
  font-family: var(--font-body);
}

/* FIX 9 — Phone */
.contact-phone-large {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #C0392B;
  text-decoration: none;
  display: block;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════
   SECTION 15 — FOOTER
══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--color-slate);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  height: 58px;
  width: auto;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-badges {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  margin-top: 24px;
}

.footer-col h4:first-child { margin-top: 0; }

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--color-gold); }

.footer-phone {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-gold);
  display: block;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-phone:hover { color: #fff; }

.footer-contact-detail {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-contact-detail a {
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer-contact-detail a:hover { color: #fff; }

.footer-cta-btn { margin-top: 20px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.footer-legal { display: flex; gap: 20px; }

.footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}

.footer-legal a:hover { color: rgba(255,255,255,0.75); }

/* ─── BACK TO TOP ─── */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-red);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 500;
  box-shadow: 0 4px 16px rgba(192,57,43,0.35);
}

.back-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-top:hover { transform: translateY(-3px); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid          { grid-template-columns: repeat(2, 1fr); }
  .about-grid             { grid-template-columns: 1fr; gap: 40px; }
  .about-grid .about-img-wrap { order: -1; }
  .about-img-wrap img     { height: 360px; }
  .about-img-wrap::before { left: -8px; }
  .process-grid           { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .process-connector      { display: none; }
  .gallery-grid           { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery-item.tall      { grid-row: span 1; height: 280px; }
  .gallery-item           { height: 240px; }
  .why-grid               { grid-template-columns: repeat(2, 1fr); }
  .why-tile:nth-child(3n) { border-right: 1px solid #E2E8F0; }
  .why-tile:nth-child(2n) { border-right: none; }
  .why-tile:nth-child(n+4){ border-bottom: 1px solid #E2E8F0; }
  .why-tile:nth-last-child(-n+2) { border-bottom: none; }
  .testimonials-grid      { grid-template-columns: 1fr; }
  .contact-grid           { grid-template-columns: 1fr; }
  .footer-grid            { grid-template-columns: 1fr 1fr; gap: 32px; }
  .areas-grid             { grid-template-columns: 1fr; gap: 40px; }
  .stat-number            { font-size: 44px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px; }

  .top-bar                { display: none; }
  .site-header            { top: 0; }
  .nav-links              { display: none; }
  .nav-right              { display: none; }
  .nav-hamburger          { display: flex; }

  .services-grid          { grid-template-columns: 1fr; }
  .form-row               { grid-template-columns: 1fr; }
  .footer-grid            { grid-template-columns: 1fr; }
  .footer-bottom          { flex-direction: column; align-items: flex-start; }
  .gallery-grid           { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-item           { height: 220px; }
  .gallery-item.tall      { height: 220px; grid-row: span 1; }
  .why-grid               { grid-template-columns: 1fr; }
  .why-tile               { border-right: none !important; border-bottom: 1px solid #E2E8F0 !important; }
  .why-tile:last-child    { border-bottom: none !important; }
  .stats-inner            { flex-wrap: wrap; }
  .stat-item              { flex: 1 0 50%; border-right: none; border-bottom: 1px solid #E2E8F0; padding: 24px; }
  .stat-item:nth-child(odd) { border-right: 1px solid #E2E8F0; }
  .stat-item:last-child,
  .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .hero-trust             { flex-direction: column; gap: 12px; }
  .trust-item             { padding: 0; border-left: none !important; }
  .storm-pills            { flex-direction: column; align-items: center; }
  .testimonials-grid      { grid-template-columns: 1fr; }
  .suppliers-strip        { gap: 12px; }
  .cta-banner-btns        { flex-direction: column; align-items: center; }

  .clip-bottom-right,
  .clip-bottom-left {
    clip-path: none;
    padding-bottom: var(--section-pad);
  }
}

@media (max-width: 640px) {
  .hero h1                { font-size: 42px; }
  .hero-ctas              { flex-direction: column; }
  .hero-ctas .btn         { width: 100%; justify-content: center; }
  .process-grid           { grid-template-columns: 1fr; }
  .services-tabs          { flex-direction: column; width: 100%; border-radius: 6px; }
  .tab-btn                { border-radius: 0; width: 100%; text-align: center; }
  .stat-item              { flex: 1 0 100%; border-right: none !important; }
  .stat-item              { border-bottom: 1px solid #E2E8F0; }
  .stat-item:last-child   { border-bottom: none; }
}

/* ═══════════════════════════════════════════════════════════
   ENHANCEMENT 1 — LOGO ROLLING 360° FLIP
   Periodic Y-axis full rotation: quick flip then long pause.
   Works on both header logo and footer logo.
══════════════════════════════════════════════════════════════ */

@keyframes logoFlip {
  /* Holds flat for the first 60% of the cycle */
  0%    { transform: perspective(480px) rotateY(0deg);   }
  /* Quick 360° spin over ~10% of cycle */
  70%   { transform: perspective(480px) rotateY(0deg);   }
  82%   { transform: perspective(480px) rotateY(180deg); }
  94%   { transform: perspective(480px) rotateY(360deg); }
  /* Micro overshoot then settle */
  97%   { transform: perspective(480px) rotateY(355deg); }
  100%  { transform: perspective(480px) rotateY(360deg); }
}

/* Header logo — desktop & mobile (both use .site-logo img) */
.site-logo img {
  animation: logoFlip 8s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
  display: block;
}

/* Offset the footer logo so the two don't flip simultaneously */
.footer-logo {
  animation: logoFlip 8s ease-in-out 3.5s infinite;
  transform-origin: center center;
  will-change: transform;
}

/* Pause animation when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .site-logo img,
  .footer-logo {
    animation: none;
  }
}


/* ═══════════════════════════════════════════════════════════
   ENHANCEMENT 2 — HERO H1 BARREL-ROLL 3D ENTRANCE
   Each line rolls up from below like text on a rotating drum.
   Replaces the flat fadeSlideUp used previously on h1-lines.
══════════════════════════════════════════════════════════════ */

@keyframes h1RollIn {
  0% {
    opacity: 0;
    transform: perspective(900px) rotateX(68deg) translateY(24px);
    filter: blur(4px);
  }
  55% {
    opacity: 1;
    filter: blur(0);
    transform: perspective(900px) rotateX(-10deg) translateY(-3px);
  }
  75% {
    transform: perspective(900px) rotateX(5deg) translateY(1px);
  }
  90% {
    transform: perspective(900px) rotateX(-2deg) translateY(0);
  }
  100% {
    opacity: 1;
    transform: perspective(900px) rotateX(0deg) translateY(0);
    filter: blur(0);
  }
}

/* Give the H1 a perspective context for child transforms */
.hero h1 {
  transform-style: preserve-3d;
}

/* Override the previous fadeSlideUp on H1 lines */
.hero-h1-line {
  display: block;
  opacity: 0;
  transform-origin: bottom center;
  /* h1RollIn replaces the old fadeSlideUp */
  animation: h1RollIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-h1-line:nth-child(1) { animation-delay: 0.35s; }
.hero-h1-line:nth-child(2) { animation-delay: 0.58s; }
.hero-h1-line:nth-child(3) { animation-delay: 0.81s; }

/* Reduce motion fallback — plain opacity fade */
@media (prefers-reduced-motion: reduce) {
  .hero-h1-line {
    animation: fadeSlideUp 0.6s ease forwards;
    transform-origin: initial;
  }
}


/* ═══════════════════════════════════════════════════════════
   ENHANCEMENT 4 — HERO TYPING CURSOR
   A thick, premium masonry-style block cursor that blinks.
══════════════════════════════════════════════════════════════ */
.typing-cursor::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 0.85em;
  background-color: var(--color-red);
  margin-left: 8px;
  vertical-align: baseline;
  transform: translateY(2px);
  animation: cursorBlink 0.9s step-end infinite;
}

.typing-cursor.done::after {
  display: none;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   ENHANCEMENT 3 — 3D EXTRUDED HERO BUTTONS
   Stacked box-shadows simulate physical depth/extrusion.
   Press-down effect on :hover and :active.
   Scoped to .hero so no other buttons are affected.
══════════════════════════════════════════════════════════════ */

/* ── PRIMARY (GET FREE ESTIMATE) ── red extruded block */
.hero .btn-primary {
  position: relative;
  background: linear-gradient(180deg, #CF4035 0%, #B83228 55%, #A82D23 100%);
  border: none;
  border-radius: 5px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);

  /* Layered shadows = 3D extrusion depth + ambient glow */
  box-shadow:
    /* Top inner highlight */
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    /* Bottom inner shade */
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    /* Extrusion layers — dark red steps */
    0 1px 0 #9B2D22,
    0 2px 0 #9B2D22,
    0 3px 0 #8C281E,
    0 4px 0 #8C281E,
    0 5px 0 #7E231A,
    0 6px 0 #7E231A,
    0 7px 0 #6F1E16,
    /* Soft drop shadow for lift off page */
    0 8px 14px rgba(0, 0, 0, 0.38),
    0 12px 28px rgba(192, 57, 43, 0.30);

  transform: translateY(0px);
  transition: transform 0.10s ease, box-shadow 0.10s ease;
}

.hero .btn-primary:hover {
  background: linear-gradient(180deg, #D4433A 0%, #BE3429 55%, #AE2E24 100%);
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    0 1px 0 #9B2D22,
    0 2px 0 #8C281E,
    0 3px 0 #7E231A,
    0 4px 10px rgba(0, 0, 0, 0.28),
    0 6px 18px rgba(192, 57, 43, 0.22);
}

.hero .btn-primary:active {
  transform: translateY(7px);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.22),
    0 1px 0 #7E231A,
    0 2px 6px rgba(0, 0, 0, 0.18);
}

/* ── OUTLINE (CALL 817 986-9420) ── frosted white extruded block */
.hero .btn-outline {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 5px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  /* Layered translucent white shadows = depth on dark hero bg */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.55),
    0 2px 0 rgba(255, 255, 255, 0.40),
    0 3px 0 rgba(255, 255, 255, 0.28),
    0 4px 0 rgba(255, 255, 255, 0.18),
    0 5px 0 rgba(255, 255, 255, 0.10),
    0 6px 0 rgba(255, 255, 255, 0.06),
    0 8px 14px rgba(0, 0, 0, 0.30),
    0 12px 24px rgba(0, 0, 0, 0.18);

  transform: translateY(0px);
  transition: transform 0.10s ease, box-shadow 0.10s ease, background 0.15s ease;
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.10),
    0 1px 0 rgba(255, 255, 255, 0.45),
    0 2px 0 rgba(255, 255, 255, 0.28),
    0 3px 0 rgba(255, 255, 255, 0.16),
    0 4px 10px rgba(0, 0, 0, 0.22),
    0 6px 18px rgba(0, 0, 0, 0.14);
}

.hero .btn-outline:active {
  transform: translateY(7px);
  background: rgba(255, 255, 255, 0.20);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.30),
    0 2px 6px rgba(0, 0, 0, 0.14);
}

/* Mobile: reduce the extrusion depth slightly on small screens */
@media (max-width: 640px) {
  .hero .btn-primary,
  .hero .btn-outline {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.16),
      0 1px 0 #9B2D22,
      0 2px 0 #8C281E,
      0 3px 0 #7E231A,
      0 5px 10px rgba(0,0,0,0.28);
  }

  .hero .btn-outline {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.16),
      0 1px 0 rgba(255,255,255,0.42),
      0 2px 0 rgba(255,255,255,0.24),
      0 3px 0 rgba(255,255,255,0.12),
      0 5px 10px rgba(0,0,0,0.24);
  }

  .hero .btn-primary:hover,
  .hero .btn-outline:hover {
    transform: translateY(3px);
  }
}


/* ═══════════════════════════════════════════════════════════
   SECTION 2 — PLATFORM TRUST BADGES (3D ORBS)
   Replaces the numeric stats bar entirely.
   Four glossy spheres: Google Reviews, Angi, BBB A+, Yelp.
══════════════════════════════════════════════════════════════ */

/* ── Section wrapper ── */
.trust-bar {
  background: #FFFFFF;
  border-top: 4px solid #C0392B;
  border-bottom: 1px solid #E2E8F0;
  padding: 48px 0 52px;
}

/* ── Eyebrow label ── */
.trust-bar-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #C0392B;
  text-align: center;
  margin-bottom: 36px;
}

/* ── Badge row layout ── */
.trust-badges-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* ── Each badge: orb + caption ── */
.trust-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
  outline: none;
}

/* ── The 3D sphere disc ── */
.badge-orb {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;

  /* Radial gradient for lit-from-top-left 3D effect */
  background: radial-gradient(
    ellipse at 35% 28%,
    #ffffff 0%,
    #f4f6f9 45%,
    #dde3ea 100%
  );

  /* Layered box-shadows = depth, float, and edge definition */
  box-shadow:
    /* Top-left specular edge */
    -2px -2px 4px rgba(255, 255, 255, 0.95),
    /* Inner top highlight */
    inset 0 3px 6px rgba(255, 255, 255, 0.88),
    /* Inner bottom shade */
    inset 0 -4px 10px rgba(0, 0, 0, 0.09),
    /* Close ambient shadow */
    0 4px 8px rgba(0, 0, 0, 0.07),
    /* Mid shadow — gives the float */
    0 12px 24px rgba(0, 0, 0, 0.11),
    /* Far diffuse shadow */
    0 28px 48px rgba(0, 0, 0, 0.09),
    /* Ground shadow — wide and soft */
    0 40px 60px rgba(0, 0, 0, 0.05);

  transition: transform 0.30s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.30s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Hover: float up sharply with deeper shadow */
.trust-badge-wrap:hover .badge-orb {
  transform: translateY(-10px) scale(1.04);
  box-shadow:
    -2px -2px 4px rgba(255, 255, 255, 0.95),
    inset 0 3px 6px rgba(255, 255, 255, 0.88),
    inset 0 -4px 10px rgba(0, 0, 0, 0.09),
    0 6px 12px rgba(0, 0, 0, 0.08),
    0 20px 40px rgba(0, 0, 0, 0.14),
    0 44px 64px rgba(0, 0, 0, 0.10),
    0 56px 72px rgba(0, 0, 0, 0.06);
}

/* ── Gloss highlight bubble (top-left) ── */
.orb-gloss {
  position: absolute;
  top: 14%;
  left: 13%;
  width: 42%;
  height: 34%;
  background: radial-gradient(
    ellipse at 40% 40%,
    rgba(255, 255, 255, 0.80) 0%,
    rgba(255, 255, 255, 0.30) 50%,
    rgba(255, 255, 255, 0.00) 80%
  );
  border-radius: 50%;
  transform: rotate(-28deg);
  pointer-events: none;
  z-index: 3;
}

/* ── Bottom contact shadow ellipse under each orb ── */
.badge-orb::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 14px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.14) 0%, rgba(0,0,0,0) 75%);
  border-radius: 50%;
  pointer-events: none;
  transition: width 0.30s ease, opacity 0.30s ease;
}

.trust-badge-wrap:hover .badge-orb::after {
  width: 80%;
  opacity: 0.7;
}

/* ── SVG logos inside orb ── */
.badge-logo-svg {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  /* Subtle drop shadow on the logo itself for depth */
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
  transition: filter 0.2s ease;
}

.trust-badge-wrap:hover .badge-logo-svg {
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.18));
}

/* Per-platform SVG sizing */
.badge-logo-svg--angi { width: 88px; height: 36px; }
.badge-logo-svg--bbb  { width: 72px; height: 60px; }
.badge-logo-svg--yelp { width: 90px; height: 38px; }

/* ── "Google Reviews" / "Angi Certified" platform label ── */
.badge-platform-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: #1A1A2E;
  text-align: center;
  position: relative;
  z-index: 2;
  line-height: 1;
}

/* ── Stars inside the orb ── */
.badge-stars {
  color: #F0A500;
  font-size: 14px;
  letter-spacing: 2px;
  line-height: 1;
  position: relative;
  z-index: 2;
  /* Gold star glow */
  text-shadow: 0 1px 4px rgba(240, 165, 0, 0.35);
}

/* ── Caption below the orb ── */
.badge-caption {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
  text-align: center;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.trust-badge-wrap:hover .badge-caption {
  color: #C0392B;
}

/* ── Platform accent rings (subtle colored shadow per brand) ── */
.badge-orb--google {
  box-shadow:
    -2px -2px 4px rgba(255, 255, 255, 0.95),
    inset 0 3px 6px rgba(255, 255, 255, 0.88),
    inset 0 -4px 10px rgba(0, 0, 0, 0.09),
    0 4px 8px rgba(0, 0, 0, 0.07),
    0 12px 24px rgba(66, 133, 244, 0.12),
    0 28px 48px rgba(0, 0, 0, 0.08),
    0 40px 60px rgba(0, 0, 0, 0.04);
}

.badge-orb--angi {
  box-shadow:
    -2px -2px 4px rgba(255, 255, 255, 0.95),
    inset 0 3px 6px rgba(255, 255, 255, 0.88),
    inset 0 -4px 10px rgba(0, 0, 0, 0.09),
    0 4px 8px rgba(0, 0, 0, 0.07),
    0 12px 24px rgba(255, 108, 68, 0.14),
    0 28px 48px rgba(0, 0, 0, 0.08),
    0 40px 60px rgba(0, 0, 0, 0.04);
}

.badge-orb--bbb {
  box-shadow:
    -2px -2px 4px rgba(255, 255, 255, 0.95),
    inset 0 3px 6px rgba(255, 255, 255, 0.88),
    inset 0 -4px 10px rgba(0, 0, 0, 0.09),
    0 4px 8px rgba(0, 0, 0, 0.07),
    0 12px 24px rgba(0, 48, 135, 0.14),
    0 28px 48px rgba(0, 0, 0, 0.08),
    0 40px 60px rgba(0, 0, 0, 0.04);
}

.badge-orb--yelp {
  box-shadow:
    -2px -2px 4px rgba(255, 255, 255, 0.95),
    inset 0 3px 6px rgba(255, 255, 255, 0.88),
    inset 0 -4px 10px rgba(0, 0, 0, 0.09),
    0 4px 8px rgba(0, 0, 0, 0.07),
    0 12px 24px rgba(211, 34, 35, 0.12),
    0 28px 48px rgba(0, 0, 0, 0.08),
    0 40px 60px rgba(0, 0, 0, 0.04);
}

/* Hover versions of per-platform colored shadows */
.trust-badge-wrap:hover .badge-orb--google {
  transform: translateY(-10px) scale(1.04);
  box-shadow:
    -2px -2px 4px rgba(255,255,255,0.95),
    inset 0 3px 6px rgba(255,255,255,0.88),
    inset 0 -4px 10px rgba(0,0,0,0.09),
    0 8px 16px rgba(66, 133, 244, 0.15),
    0 24px 44px rgba(66, 133, 244, 0.14),
    0 48px 64px rgba(0,0,0,0.08);
}
.trust-badge-wrap:hover .badge-orb--angi {
  transform: translateY(-10px) scale(1.04);
  box-shadow:
    -2px -2px 4px rgba(255,255,255,0.95),
    inset 0 3px 6px rgba(255,255,255,0.88),
    inset 0 -4px 10px rgba(0,0,0,0.09),
    0 8px 16px rgba(255, 108, 68, 0.18),
    0 24px 44px rgba(255, 108, 68, 0.16),
    0 48px 64px rgba(0,0,0,0.08);
}
.trust-badge-wrap:hover .badge-orb--bbb {
  transform: translateY(-10px) scale(1.04);
  box-shadow:
    -2px -2px 4px rgba(255,255,255,0.95),
    inset 0 3px 6px rgba(255,255,255,0.88),
    inset 0 -4px 10px rgba(0,0,0,0.09),
    0 8px 16px rgba(0, 48, 135, 0.18),
    0 24px 44px rgba(0, 48, 135, 0.16),
    0 48px 64px rgba(0,0,0,0.08);
}
.trust-badge-wrap:hover .badge-orb--yelp {
  transform: translateY(-10px) scale(1.04);
  box-shadow:
    -2px -2px 4px rgba(255,255,255,0.95),
    inset 0 3px 6px rgba(255,255,255,0.88),
    inset 0 -4px 10px rgba(0,0,0,0.09),
    0 8px 16px rgba(211, 34, 35, 0.18),
    0 24px 44px rgba(211, 34, 35, 0.14),
    0 48px 64px rgba(0,0,0,0.08);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .trust-badges-row { gap: 24px; }
  .badge-orb { width: 140px; height: 140px; }
  .badge-logo-svg { width: 56px; height: 56px; }
  .badge-logo-svg--angi { width: 72px; height: 30px; }
  .badge-logo-svg--bbb  { width: 58px; height: 48px; }
  .badge-logo-svg--yelp { width: 74px; height: 32px; }
}

@media (max-width: 540px) {
  .trust-badges-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    justify-items: center;
  }
  .badge-orb { width: 130px; height: 130px; }
}


/* ═══════════════════════════════════════════════════════════
   SERVICE CARDS — 3D ELEVATION SYSTEM
   CSS custom properties (set by JS) drive the tilt transform.
   Layered shadows create real depth at rest; glow on hover.
   A moving specular sheen follows the cursor for a premium feel.
══════════════════════════════════════════════════════════════ */

.service-card {
  /* ── CSS vars initialised to flat state ── */
  --card-rx:       0deg;
  --card-ry:       0deg;
  --card-lift:     0px;
  --shine-x:       50%;
  --shine-y:       50%;
  --shine-opacity: 0;

  /* ── Core layout ── */
  background: #FFFFFF;
  border-radius: 12px;
  border-top: none;       /* replaced by ::after glow bar */
  overflow: visible;      /* allow shadow to cast outside; clip handled per child */
  display: flex;
  flex-direction: column;
  position: relative;

  /* ── 3D perspective + tilt driven by CSS vars ── */
  transform:
    perspective(900px)
    translateY(calc(var(--card-lift) * -1))
    rotateX(var(--card-rx))
    rotateY(var(--card-ry));
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform, box-shadow;

  /* ── Multi-layer shadow — create physical depth at rest ── */
  box-shadow:
    /* Contact shadow — tight, sharp */
    0 1px 2px rgba(0, 0, 0, 0.06),
    /* Near shadow */
    0 4px 10px rgba(0, 0, 0, 0.08),
    /* Mid shadow — gives the "floating plate" feel */
    0 12px 24px rgba(0, 0, 0, 0.07),
    /* Far diffuse */
    0 24px 40px rgba(0, 0, 0, 0.05),
    /* Red brand ambient glow at bottom */
    0 20px 32px rgba(192, 57, 43, 0.05),
    /* Thin 1px border to define edges */
    0 0 0 1px rgba(0, 0, 0, 0.04);

  /* Default transition (snap-back speed set by JS on mouseleave) */
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1);

  cursor: pointer;
}

/* ── Hover state (also enhanced by JS tilt) ── */
.service-card:hover {
  box-shadow:
    /* Close shadow — sharpens on lift */
    0 2px 4px rgba(0, 0, 0, 0.07),
    /* Near */
    0 8px 20px rgba(0, 0, 0, 0.11),
    /* Mid — bigger spread = more float */
    0 20px 44px rgba(0, 0, 0, 0.10),
    /* Far */
    0 36px 64px rgba(0, 0, 0, 0.07),
    /* Red glow — amplified on hover */
    0 28px 48px rgba(192, 57, 43, 0.12),
    0 44px 60px rgba(192, 57, 43, 0.06),
    /* Edge definition */
    0 0 0 1px rgba(192, 57, 43, 0.10);
}

/* ── Clip image inside card without clipping shadow ── */
.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  border-radius: 12px 12px 0 0;  /* round only top corners */
}

/* ── Card body stays inside with rounded bottom ── */
.service-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  border-radius: 0 0 12px 12px;
  background: #FFFFFF;
  position: relative;
  z-index: 1;
}

/* ── Red top accent bar (replaces border-top) ── */
/* Uses an absolute element so it can have a glow effect */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 4px;
  background: linear-gradient(90deg,
    #9B2D22 0%,
    #C0392B 30%,
    #D84334 55%,
    #C0392B 80%,
    #9B2D22 100%
  );
  border-radius: 0 0 4px 4px;        /* curves at the bottom of the bar */
  z-index: 10;
  transition: left 0.3s ease, right 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.18);
}

/* On hover: accent bar stretches full width and glows */
.service-card:hover::before {
  left: 0;
  right: 0;
  border-radius: 12px 12px 0 0;
  box-shadow:
    0 2px 12px rgba(192, 57, 43, 0.50),
    0 4px 24px rgba(192, 57, 43, 0.28);
}

/* ── Moving specular sheen (follows cursor via JS CSS vars) ── */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(
    circle at var(--shine-x) var(--shine-y),
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.10) 30%,
    rgba(255, 255, 255, 0.00) 65%
  );
  opacity: var(--shine-opacity);
  pointer-events: none;
  z-index: 8;
  transition: opacity 0.3s ease;
  /* Don't clip this — relies on card overflow:visible for outer shadow */
  overflow: hidden;
  border-radius: inherit;
}

/* ── Inner image overlay — deepens on tilt ── */
.service-card .service-card-img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.55s ease;
}

.service-card:hover .service-card-img {
  transform: scale(1.04);
  filter: brightness(1.04) contrast(1.02);
}

/* ── Card title — slight translateZ for depth layering feel ── */
.service-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 0;
  transition: color 0.2s ease;
}

.service-card:hover h3 { color: #C0392B; }

/* ── Card link arrow — arrow gap animation already in main CSS ── */
.service-card-link {
  font-size: 14px;
  font-weight: 700;
  color: #C0392B;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease, letter-spacing 0.2s ease;
  margin-top: 4px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
}

.service-card-link:hover { gap: 10px; }

/* ── Card icon color ── */
.service-card-icon {
  color: #C0392B;
  margin-bottom: 4px;
}

.service-card-icon svg,
.service-card-icon i {
  color: #C0392B;
  stroke: #C0392B;
}

/* ── Grid gap — give cards room to cast their shadow ── */
.services-grid {
  gap: 28px;
}

/* ── Touch / no-hover devices: keep a clean elevated look ── */
@media (hover: none) {
  .service-card {
    transform: none !important;
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.08),
      0 12px 28px rgba(0, 0, 0, 0.07),
      0 0 0 1px rgba(0, 0, 0, 0.04);
  }

  .service-card::after {
    display: none;
  }
}

/* ── Reduced motion: disable tilt, keep shadow only ── */
@media (prefers-reduced-motion: reduce) {
  .service-card {
    transform: none !important;
    transition: box-shadow 0.3s ease;
  }
  .service-card::after { display: none; }
}


/* ═══════════════════════════════════════════════════════════
   3D CARD FLIP SYSTEM
   Overrides the previous tilt-based 3D card styles.
   Structure (built by JS):
     .card-flip-wrapper   — perspective context + outer shadow
       .card-flip-inner   — the rotating slab (rotateY 180° on hover)
         .card-flip-front — original .service-card (face A)
         .card-flip-back  — new dark face (face B) with Book Now CTA
══════════════════════════════════════════════════════════════ */

/* ─── Reset previous tilt CSS vars on service-card ─── */
.service-card {
  --card-rx: 0deg !important;
  --card-ry: 0deg !important;
  --card-lift: 0px !important;
  --shine-opacity: 0 !important;
  transform: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
  border-radius: 12px;
}

/* ─── Flip Wrapper — 3D Physical Tile Effect ─── */
.card-flip-wrapper {
  perspective: 1300px;
  perspective-origin: center 40%;
  height: 460px;
  position: relative;
  border-radius: 12px;

  /* ── Directional box-shadow layers: simulate card edge / extrusion ──
     Each stacked offset step creates visible "thickness" in the brand
     red, evoking a physical tile sitting on a surface. Ambientshadows
     provide the floating-plate depth beneath the card. ── */
  box-shadow:
    /* Extrusion edge — red-tinted steps, right + bottom */
    4px  5px  0 0 rgba(140, 32, 22, 0.54),
    7px  9px  0 0 rgba(112, 22, 14, 0.36),
    9px  12px 0 0 rgba(86,  16, 10, 0.22),
    11px 15px 0 0 rgba(62,  10,  7, 0.11),
    /* Contact shadow — tight and sharp */
    0 3px  8px  rgba(0, 0, 0, 0.10),
    /* Mid-range ambient — "floating plate" feel */
    0 16px 34px rgba(0, 0, 0, 0.11),
    /* Far diffuse */
    0 28px 50px rgba(0, 0, 0, 0.07),
    /* Red brand ambient glow at base */
    0 18px 36px rgba(192, 57, 43, 0.07);

  /* Subtle forward lean at rest — shows the 3D dimension */
  transform: rotateX(3deg) translateY(4px);
  transform-origin: center bottom;

  transition:
    transform  0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.42s ease;

  will-change: transform, box-shadow;
}

/* On hover: card lifts flat — like physically picking it up — then flips */
.card-flip-wrapper:hover {
  transform: rotateX(0deg) translateY(-10px);

  box-shadow:
    /* Extrusion edge contracts (card lifted, base less visible) */
    2px 3px 0 0 rgba(140, 32, 22, 0.38),
    3px 5px 0 0 rgba(112, 22, 14, 0.22),
    /* Expanded ambient — card is higher off the surface */
    0 8px  18px rgba(0, 0, 0, 0.12),
    0 24px 52px rgba(0, 0, 0, 0.14),
    0 46px 72px rgba(0, 0, 0, 0.09),
    /* Red brand glow amplified on lift */
    0 30px 54px rgba(192, 57, 43, 0.13),
    0 50px 72px rgba(192, 57, 43, 0.07);
}

/* ─── Flip Inner (rotating slab) ─── */
.card-flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform;
}

/* CSS hover trigger (desktop) — reveals the light card face */
.card-flip-wrapper:hover .card-flip-inner,
.card-flip-wrapper.flipped .card-flip-inner {
  transform: rotateY(180deg);
}

/* ─── Both faces: shared rules ─── */
.card-flip-front,
.card-flip-back {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* ─── Front face (dark cinematic — pre-rotated 180°, reveals on hover) ─── */
.card-flip-front {
  /* Pre-rotated 180°. When inner also rotates 180° on hover:
     180 + 180 = 360 = 0° → visible and unmirrored. */
  transform: rotateY(180deg);
  background-color: #111820;
  border-top: 3px solid rgba(192, 57, 43, 0.80);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dark face: full-bleed photo background (uses CSS var set by JS) */
.card-flip-front::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background-image: var(--card-bg-img, none);
  background-size: cover;
  background-position: center;
  filter: brightness(0.62) saturate(0.80) contrast(1.08);
  z-index: 0;
}

/* Cinematic overlay: near-black at bottom → transparent at top + vignette */
.card-flip-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(6, 10, 18, 0.97) 0%,
      rgba(8, 13, 22, 0.90) 18%,
      rgba(10, 16, 28, 0.75) 36%,
      rgba(12, 18, 32, 0.50) 55%,
      rgba(14, 20, 34, 0.24) 74%,
      rgba(16, 22, 36, 0.06) 100%
    ),
    radial-gradient(
      ellipse 92% 88% at 50% 50%,
      transparent 42%,
      rgba(0, 0, 0, 0.42) 100%
    );
  z-index: 1;
}

/* ─── Back face (light style — visible by default at rotateY(0deg)) ─── */
.card-flip-back {
  transform: rotateY(0deg);
  background-color: #111820;  /* fallback for dark face */
  border-top: 3px solid rgba(192, 57, 43, 0.80);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── LIGHT FACE overrides (the .card-light-face modifier) ─── */
.card-light-face {
  background: #FFFFFF;
  border-top: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  border-radius: 12px;
  overflow: hidden;
}

/* Image — high quality, fills top portion */
.card-light-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  border-radius: 12px 12px 0 0;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-flip-wrapper:hover .card-light-img {
  transform: scale(1.04);
}

/* Red accent bar on top of light face */
.card-light-face::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    #9B2D22 0%, #C0392B 35%, #D84334 55%, #C0392B 80%, #9B2D22 100%
  );
  border-radius: 12px 12px 0 0;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(192,57,43,0.30);
}

/* Body area — white, clean */
.card-light-body {
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  background: #FFFFFF;
  border-radius: 0 0 12px 12px;
}

/* Title */
.card-light-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #1A1A2E;
  line-height: 1.1;
  margin-bottom: 0;
  transition: color 0.2s ease;
}

.card-flip-wrapper:hover .card-light-title {
  color: #C0392B;
}

/* Description */
.card-light-desc {
  font-size: 14.5px;
  color: #6B7280;
  line-height: 1.68;
  flex: 1;
  margin: 0;
}

/* Learn More link */
.card-light-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #C0392B;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: auto;
  transition: gap 0.20s ease, letter-spacing 0.20s ease;
}

.card-light-link:hover {
  gap: 10px;
  letter-spacing: 0.12em;
}

/* .card-flip-back::before and ::after are only used by the dark face (.card-flip-front).
   The light face (.card-light-face) uses its own <img> element and needs no pseudo-elements. */

/* ─── Back face inner content ─── */
.card-back-inner {
  position: relative;
  z-index: 3;   /* sits above ::before image (z0) and ::after overlay (z1) and glow (z2) */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 24px 18px;
  width: 100%;
  height: 100%;
  /* Push content toward lower half — darker overlay area for readability */
  justify-content: flex-end;
  padding-bottom: 22px;
  gap: 0;
}

/* Subtle upward red glow just above the CTA area — warms the lower photo */
.card-back-glow {
  position: absolute;
  bottom: 28%;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 140px;
  background: radial-gradient(
    ellipse at center,
    rgba(192, 57, 43, 0.30) 0%,
    rgba(192, 57, 43, 0.10) 55%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 2;  /* sits above overlay, below content */
}

/* ─── 3D Icon — premium Lucide SVG floating freely over the cinematic photo ─── */
.card-back-icon-3d {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 3;
  /* Multi-layer drop-shadow: crisp white inner glow + red brand underlight + deep ambient */
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.65))
    drop-shadow(0 2px 12px rgba(255, 255, 255, 0.30))
    drop-shadow(0 6px 20px rgba(192, 57, 43, 0.55))
    drop-shadow(0 12px 36px rgba(0, 0, 0, 0.70));
  transition: filter 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hover: icon rises subtly before the flip takes over */
.card-flip-wrapper:hover .card-back-icon-3d {
  transform: translateY(-6px) scale(1.08);
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.80))
    drop-shadow(0 4px 18px rgba(255, 255, 255, 0.40))
    drop-shadow(0 8px 28px rgba(192, 57, 43, 0.75))
    drop-shadow(0 16px 48px rgba(0, 0, 0, 0.75));
}

/* The Lucide SVG itself — large, white, fine stroke weight */
.card-back-icon-3d svg,
.card-back-icon-3d i {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
  fill: none !important;
  width: 64px !important;
  height: 64px !important;
  stroke-width: 1.2 !important;
}

/* ─── Back title — strong shadow since it sits over photo ─── */
.card-back-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.05;
  margin-bottom: 8px;
  position: relative;
  z-index: 3;
  /* Multi-layer shadow ensures legibility over ANY photo */
  text-shadow:
    0 1px 3px rgba(0,0,0,0.70),
    0 4px 12px rgba(0,0,0,0.55),
    0 8px 24px rgba(0,0,0,0.35);
}

/* ─── Back tagline ─── */
.card-back-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin-bottom: 20px;
  position: relative;
  z-index: 3;
  max-width: 190px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.60);
}

/* ─── 3D "BOOK NOW" button ─── */
.card-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 34px;
  background: linear-gradient(180deg, #CF4035 0%, #B83228 52%, #A82D23 100%);
  color: #FFFFFF;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: 5px;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
  margin-bottom: 12px;
  position: relative;
  z-index: 3;

  /* 7-layer extrusion — same depth system as hero CTAs */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 0 rgba(0, 0, 0, 0.20),
    0 1px 0 #9B2D22,
    0 2px 0 #9B2D22,
    0 3px 0 #8C281E,
    0 4px 0 #8C281E,
    0 5px 0 #7E231A,
    0 6px 0 #7E231A,
    0 7px 0 #6F1E16,
    0 8px 16px rgba(0, 0, 0, 0.45),
    0 14px 32px rgba(192, 57, 43, 0.38);

  transform: translateY(0px);
  transition: transform 0.10s ease, box-shadow 0.10s ease;
}

.card-back-btn:hover {
  transform: translateY(5px);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16),
    0 1px 0 #9B2D22,
    0 2px 0 #8C281E,
    0 3px 0 #7E231A,
    0 4px 12px rgba(0, 0, 0, 0.32),
    0 8px 22px rgba(192, 57, 43, 0.26);
}

.card-back-btn:active {
  transform: translateY(8px);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.25),
    0 1px 0 #7E231A,
    0 2px 8px rgba(0, 0, 0, 0.20);
}

/* ─── "View Details" link ─── */
.card-back-detail-link {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.20s;
  margin-bottom: 16px;
  position: relative;
  z-index: 3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.50);
}

.card-back-detail-link:hover {
  color: rgba(255, 255, 255, 0.92);
}

/* ─── Trust strip ─── */
.card-back-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.50);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
  width: 100%;
  justify-content: center;
  position: relative;
  z-index: 3;
  margin-top: auto;
  text-shadow: 0 1px 4px rgba(0,0,0,0.50);
}

/* ─── Grid: wrappers replace cards as grid children ─── */
.services-grid {
  gap: 28px;
}

/* Both face elements fill the wrapper completely */
.card-flip-front,
.card-flip-back {
  height: 100%;
  width: 100%;
}

/* ─── Responsive heights ─── */
@media (max-width: 1200px) {
  .card-flip-wrapper { height: 480px; }
}

@media (max-width: 1024px) {
  .card-flip-wrapper { height: 440px; }
  .card-light-img { height: 185px; }
}

@media (max-width: 768px) {
  .card-flip-wrapper { height: 400px; }
  .card-back-btn { font-size: 15px; padding: 11px 28px; }
}

@media (max-width: 640px) {
  .card-flip-wrapper { height: 380px; }
  .card-back-title { font-size: 20px; }
}

/* ─── Touch / no-hover devices: flat look, no 3D tilt ─── */
@media (hover: none) {
  .card-flip-wrapper {
    transform: none !important;
    box-shadow:
      0 4px 12px rgba(0,0,0,0.09),
      0 16px 32px rgba(0,0,0,0.09),
      0 0 0 1px rgba(0,0,0,0.04);
  }
}

/* ─── Reduced motion: disable flip and tilt, show light face only ─── */
@media (prefers-reduced-motion: reduce) {
  .card-flip-wrapper {
    transform: none !important;
    box-shadow:
      0 4px 14px rgba(0,0,0,0.09),
      0 14px 30px rgba(0,0,0,0.08);
  }
  .card-flip-inner {
    transition: none;
  }
  .card-flip-wrapper:hover .card-flip-inner,
  .card-flip-wrapper.flipped .card-flip-inner {
    transform: none;
  }
  /* Hide dark cinematic face; always show the light card */
  .card-flip-front {
    display: none;
  }
}
