/* ==========================================================================
   ABC Roofing & Exteriors — Production Stylesheet
   Version: 1.0.0
   CloudPanel / AWS Optimized — No framework dependencies
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Foundation Palette */
  --foundation: #1B2A3D;
  --foundation-deep: #111D2B;
  --foundation-light: #2A3F57;
  --clean: #FAFAF7;
  --clean-warm: #F5F3EE;
  --action: #D4A94B;
  --action-hover: #C49A3C;
  --action-10: rgba(212, 169, 75, 0.10);
  --action-15: rgba(212, 169, 75, 0.15);
  --action-20: rgba(212, 169, 75, 0.20);
  --action-30: rgba(212, 169, 75, 0.30);
  --action-70: rgba(212, 169, 75, 0.70);
  --text-muted: #7A8A9E;
  --white-5: rgba(255, 255, 255, 0.05);
  --white-10: rgba(255, 255, 255, 0.10);
  --white-15: rgba(255, 255, 255, 0.15);
  --white-20: rgba(255, 255, 255, 0.20);
  --white-30: rgba(255, 255, 255, 0.30);
  --white-40: rgba(255, 255, 255, 0.40);
  --white-50: rgba(255, 255, 255, 0.50);
  --white-60: rgba(255, 255, 255, 0.60);
  --white-70: rgba(255, 255, 255, 0.70);
  --foundation-5: rgba(27, 42, 61, 0.05);
  --foundation-50: rgba(27, 42, 61, 0.50);
  --foundation-60: rgba(27, 42, 61, 0.60);
  --foundation-70: rgba(27, 42, 61, 0.70);
  --red-soft: #FEF2F2;
  --red-400: #C4564A;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-py: 96px;
  --section-py-lg: 128px;
  --container-px: 24px;
  --container-max: 1280px;
}

/* --------------------------------------------------------------------------
   RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--foundation);
  background-color: var(--clean);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: none;
}

input {
  font-family: inherit;
  border: none;
  outline: none;
}

/* --------------------------------------------------------------------------
   UTILITY CLASSES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --------------------------------------------------------------------------
   KEYFRAME ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 169, 75, 0.2), 0 4px 16px rgba(0, 0, 0, 0.3); }
  50% { box-shadow: 0 0 30px rgba(212, 169, 75, 0.35), 0 4px 20px rgba(0, 0, 0, 0.3); }
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero-specific load animations */
.hero-fade-up {
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}
.hero-fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}
.hero-slide-right {
  opacity: 0;
  animation: slideRight 0.6s ease-out forwards;
}
.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.2s; }
.anim-d3 { animation-delay: 0.3s; }
.anim-d4 { animation-delay: 0.4s; }
.anim-d5 { animation-delay: 0.5s; }
.anim-d6 { animation-delay: 0.6s; }
.anim-d7 { animation-delay: 0.7s; }
.anim-d8 { animation-delay: 0.8s; }

/* --------------------------------------------------------------------------
   NAVIGATION
   -------------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(17, 29, 43, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--white-5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--action-10);
  border: 1px solid var(--action-30);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-icon svg {
  width: 20px;
  height: 20px;
  color: var(--action);
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-weight: 700;
  color: #fff;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.nav-logo-sub {
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-left: 8px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white-60);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: #fff; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-phone {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--white-70);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.nav-phone:hover { color: var(--action); }

.nav-phone svg {
  width: 16px;
  height: 16px;
}

.nav-cta {
  background: var(--action);
  color: var(--foundation-deep);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: 12px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--action-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 169, 75, 0.3);
}

/* Mobile hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white-60);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--foundation-deep);
  z-index: 999;
  padding: 40px 24px;
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  color: var(--white-60);
  font-size: 1.25rem;
  font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid var(--white-5);
  transition: color 0.2s ease;
}

.mobile-menu a:hover { color: var(--action); }

.mobile-menu-cta {
  display: block;
  text-align: center;
  background: var(--action);
  color: var(--foundation-deep) !important;
  font-weight: 700 !important;
  padding: 16px !important;
  border-radius: 16px;
  margin-top: 32px;
  border-bottom: none !important;
}

.mobile-menu-phone {
  text-align: center;
  color: var(--white-40) !important;
  font-size: 0.875rem !important;
  border-bottom: none !important;
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(212, 169, 75, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(42, 63, 87, 0.4) 0%, transparent 50%),
    linear-gradient(175deg, #111D2B 0%, #1B2A3D 40%, #1B2A3D 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.hero-deco-1 {
  position: absolute;
  top: 128px;
  right: 0;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  background: rgba(212, 169, 75, 0.03);
  filter: blur(64px);
}

.hero-deco-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(42, 63, 87, 0.2);
  filter: blur(64px);
}

.hero-deco-line {
  position: absolute;
  top: 0;
  right: 25%;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--white-5), transparent);
  transform: rotate(15deg);
  transform-origin: top;
}

.hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

/* Hero Content */
.hero-micro-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--action);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-micro-label .dash {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--action);
}

.hero-h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin-top: 24px;
}

.hero-h1 .accent {
  color: var(--action);
}

.hero-sub {
  color: var(--white-60);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 540px;
  margin-top: 24px;
}

/* Hero CTAs */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--action);
  color: var(--foundation-deep);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 16px;
  transition: all 0.25s ease;
  animation: glowPulse 3s ease-in-out infinite;
  width: fit-content;
}

.cta-primary:hover {
  background: var(--action-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 169, 75, 0.3);
}

.cta-primary svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

.cta-primary:hover svg {
  transform: translateX(4px);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white-50);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
  width: fit-content;
}

.cta-secondary:hover { color: #fff; }

.cta-secondary-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--white-10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}

.cta-secondary:hover .cta-secondary-icon {
  border-color: var(--action-30);
}

.cta-secondary svg {
  width: 16px;
  height: 16px;
}

/* Hero Trust Bar */
.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding-top: 8px;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white-40);
  font-size: 0.6875rem;
  font-weight: 500;
}

.hero-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--action-70);
  flex-shrink: 0;
}

.hero-trust-divider {
  width: 1px;
  height: 16px;
  background: var(--white-10);
  display: none;
}

/* Hero Media Column */
.hero-media {
  position: relative;
}

.hero-media-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--white-5);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  aspect-ratio: 4 / 3;
  background: rgba(42, 63, 87, 0.3);
  position: relative;
}

.hero-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}

.hero-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--action-10);
  border: 1px solid var(--action-30);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.hero-play-btn svg {
  width: 28px;
  height: 28px;
  color: var(--action);
}

.hero-media-label {
  color: var(--white-30);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-media-sublabel {
  color: var(--white-20);
  font-size: 0.75rem;
  margin-top: 4px;
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 29, 43, 0.6), transparent, transparent);
}

/* Floating review badge */
.hero-review-badge {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
}

.review-stars {
  display: flex;
  gap: -4px;
}

.review-stars svg {
  width: 16px;
  height: 16px;
  color: var(--action);
}

.review-text-main {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--foundation);
}

.review-text-sub {
  font-size: 0.625rem;
  color: var(--foundation-50);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.hero-scroll span {
  color: var(--white-20);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll svg {
  width: 16px;
  height: 16px;
  color: var(--white-20);
  animation: bounceDown 2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   SECTION HEADERS (Shared)
   -------------------------------------------------------------------------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--action);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-label .dash {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--action);
}

.section-h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.6;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

/* --------------------------------------------------------------------------
   BLOCK 2: NIGHTMARE → DREAM BRIDGE
   -------------------------------------------------------------------------- */
.nightmare-dream {
  padding: var(--section-py) 0;
  background: var(--clean);
}

.nightmare-dream .section-h2 { color: var(--foundation); }
.nightmare-dream .section-sub { color: var(--foundation-50); }

.nd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1024px;
  margin: 0 auto;
}

.nd-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.nd-card--nightmare { border: 1px solid var(--foundation-5); }

.nd-card--dream {
  border: 1px solid var(--action-10);
}

.nd-card--dream .nd-deco {
  position: absolute;
  top: 0;
  right: 0;
  width: 128px;
  height: 128px;
  background: rgba(212, 169, 75, 0.05);
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.nd-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
}

.nd-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nd-card-icon--red {
  background: var(--red-soft);
}

.nd-card-icon--red svg { color: var(--red-400); }

.nd-card-icon--gold {
  background: var(--action-10);
}

.nd-card-icon--gold svg { color: var(--action); }

.nd-card-icon svg {
  width: 20px;
  height: 20px;
}

.nd-card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--foundation);
}

.nd-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.nd-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  line-height: 1.6;
}

.nd-item--bad { color: var(--foundation-60); }
.nd-item--good { color: var(--foundation-70); }

.nd-item::before {
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.nd-item--bad::before {
  content: '✕';
  color: var(--red-400);
}

.nd-item--good::before {
  content: '✓';
  color: var(--action);
}

.nd-bridge-cta {
  text-align: center;
  margin-top: 48px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--action);
  font-weight: 600;
  font-size: 0.875rem;
  transition: gap 0.2s ease;
}

.link-arrow:hover { gap: 12px; }

.link-arrow svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   BLOCK 3: SERVICES CARDS
   -------------------------------------------------------------------------- */
.services {
  padding: var(--section-py) 0;
  background: var(--clean-warm);
}

.services .section-h2 { color: var(--foundation); }
.services .section-sub { color: var(--foundation-50); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--foundation-5);
  padding: 32px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  border-color: var(--action-30);
}

/* Featured (dark) card */
.service-card--featured {
  background: var(--foundation);
  border-color: var(--action-10);
}

.service-card--featured .service-card-deco-1 {
  position: absolute;
  top: 0; right: 0;
  width: 160px; height: 160px;
  background: rgba(212, 169, 75, 0.05);
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.service-card--featured .service-card-deco-2 {
  position: absolute;
  bottom: 0; left: 0;
  width: 96px; height: 96px;
  background: rgba(212, 169, 75, 0.03);
  border-radius: 50%;
  transform: translate(-50%, 50%);
}

.service-card-badge {
  display: inline-block;
  background: var(--action-20);
  color: var(--action);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  position: relative;
}

.service-card-inner {
  position: relative;
  z-index: 2;
}

.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--action-10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background 0.2s ease;
}

.service-card:hover .service-card-icon {
  background: var(--action-15);
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--action);
}

.service-card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--foundation);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card--featured .service-card-title { color: #fff; }

.service-card-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--foundation-50);
  margin-bottom: 24px;
}

.service-card--featured .service-card-desc { color: var(--white-50); }

.gold-rule {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--action), var(--action-30));
  margin-bottom: 24px;
}

.service-card--featured .gold-rule {
  background: linear-gradient(90deg, var(--action), rgba(212, 169, 75, 0.2));
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-card-price {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foundation-50);
  opacity: 0.6;
}

.service-card--featured .service-card-price { color: var(--white-30); }

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--action);
  font-weight: 600;
  font-size: 0.875rem;
  transition: gap 0.2s ease;
}

.service-card-link:hover { gap: 8px; }

.service-card-link svg {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   BLOCK 4: TRUST BAR
   -------------------------------------------------------------------------- */
.trust-section {
  padding: 80px 0;
  background: var(--clean);
}

.trust-section .section-h2 {
  text-align: center;
  color: var(--foundation);
  margin-bottom: 48px;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  border-radius: 16px;
  border: 1px solid var(--foundation-5);
  background: #fff;
  transition: all 0.3s ease;
}

.trust-badge:hover {
  background: rgba(212, 169, 75, 0.04);
  border-color: var(--action-30);
}

.trust-badge:last-child {
  grid-column: span 2;
}

.trust-badge svg {
  width: 32px;
  height: 32px;
  color: var(--action);
  margin-bottom: 12px;
}

.trust-badge-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foundation);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   BLOCK 5: PROCESS / HOW IT WORKS
   -------------------------------------------------------------------------- */
.process {
  padding: var(--section-py) 0;
  background: var(--foundation);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

.process-deco {
  position: absolute;
  top: 0;
  left: 25%;
  width: 384px;
  height: 384px;
  background: rgba(212, 169, 75, 0.03);
  border-radius: 50%;
  filter: blur(64px);
}

.process .section-h2 { color: #fff; }
.process .section-sub { color: var(--white-40); }

.process-inner {
  position: relative;
  z-index: 2;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.process-step {
  text-align: center;
}

.process-step:last-child {
  grid-column: span 2;
}

.process-step-num {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--action-10);
  border: 1px solid var(--action-20);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--action);
  transition: background 0.2s ease;
}

.process-step:hover .process-step-num {
  background: var(--action-20);
}

.process-step-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  margin-bottom: 8px;
}

.process-step-desc {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--white-30);
}

.process-cta {
  text-align: center;
  margin-top: 64px;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   BLOCK 6: GALLERY
   -------------------------------------------------------------------------- */
.gallery {
  padding: var(--section-py) 0;
  background: var(--clean-warm);
}

.gallery .section-h2 { color: var(--foundation); }
.gallery .section-sub { color: var(--foundation-50); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: var(--foundation-5);
  border: 1px solid var(--foundation-5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.gallery-item:hover { transform: scale(1.02); }

.gallery-item--tall {
  aspect-ratio: 4 / 5;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-label {
  font-size: 0.75rem;
  color: rgba(27, 42, 61, 0.2);
}

.gallery-cta {
  text-align: center;
  margin-top: 40px;
}

/* --------------------------------------------------------------------------
   BLOCK 7: FINAL CTA
   -------------------------------------------------------------------------- */
.final-cta {
  padding: var(--section-py) 0;
  background: var(--foundation);
  position: relative;
  overflow: hidden;
  /* Same gradient as hero */
  background:
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(212, 169, 75, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(42, 63, 87, 0.4) 0%, transparent 50%),
    linear-gradient(175deg, #111D2B 0%, #1B2A3D 40%, #1B2A3D 100%);
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.final-cta-deco {
  position: absolute;
  top: 0;
  right: 33%;
  width: 384px;
  height: 384px;
  background: rgba(212, 169, 75, 0.05);
  border-radius: 50%;
  filter: blur(64px);
}

.final-cta-inner {
  position: relative;
  z-index: 10;
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
}

.final-cta .section-h2 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.final-cta .section-sub {
  color: var(--white-50);
  max-width: 480px;
  margin: 0 auto;
}

/* GHL Form Container */
.ghl-form-container {
  background: var(--white-5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--white-10);
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  margin: 40px auto 32px;
}

.ghl-form-label {
  color: var(--white-20);
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.ghl-form-id {
  color: var(--white-10);
  font-size: 0.75rem;
  margin-bottom: 24px;
}

.ghl-form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-input {
  width: 100%;
  background: var(--white-5);
  border: 1px solid var(--white-10);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--white-70);
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.form-input::placeholder {
  color: var(--white-20);
}

.form-input:focus {
  border-color: var(--action-30);
  outline: none;
}

.form-submit {
  width: 100%;
  background: var(--action);
  color: var(--foundation-deep);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 12px;
  transition: all 0.25s ease;
  animation: glowPulse 3s ease-in-out infinite;
}

.form-submit:hover {
  background: var(--action-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 169, 75, 0.3);
}

.final-cta-phone {
  color: var(--white-30);
  font-size: 0.875rem;
}

.final-cta-phone a {
  color: var(--action);
  font-weight: 600;
  transition: color 0.2s ease;
}

.final-cta-phone a:hover { color: var(--action-hover); }

.final-cta-emergency {
  color: var(--white-15);
  font-size: 0.75rem;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--foundation-deep);
  padding: 48px 0;
  border-top: 1px solid var(--white-5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--action-10);
  border: 1px solid var(--action-30);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-icon svg {
  width: 16px;
  height: 16px;
  color: var(--action);
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  color: #fff;
  font-size: 0.875rem;
}

.footer-brand-tagline {
  color: var(--white-30);
  font-size: 0.75rem;
  line-height: 1.6;
}

.footer-heading {
  color: var(--white-50);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--white-30);
  font-size: 0.75rem;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--action); }

.footer-contact-text {
  color: var(--white-30);
  font-size: 0.75rem;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--white-5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-30);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  color: var(--action);
  background: var(--action-10);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--action-15), transparent);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-copy {
  color: var(--white-15);
  font-size: 0.75rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--white-15);
  font-size: 0.75rem;
  transition: color 0.2s ease;
}

.footer-legal a:hover { color: var(--white-30); }

/* --------------------------------------------------------------------------
   RESPONSIVE: TABLET (768px+)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  :root {
    --container-px: 40px;
  }

  .nav-phone { display: flex; }
  .nav-hamburger { display: none; }
  .nav-links { display: flex; }

  .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 64px;
  }

  .hero-inner { padding: 0; }

  .hero-cta-group {
    flex-direction: row;
    align-items: center;
  }

  .hero-trust-divider { display: block; }

  .nd-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nd-card { padding: 40px; }

  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card { padding: 40px; }

  .trust-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .trust-badge:last-child { grid-column: span 1; }

  .process-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .process-step:last-child { grid-column: span 1; }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE: LARGE DESKTOP (1024px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  :root {
    --section-py: 128px;
  }

  .hero-sub { font-size: 1.25rem; }

  .nd-card { padding: 48px; }
  .service-card { padding: 48px; }
}

/* --------------------------------------------------------------------------
   PERFORMANCE: Reduce motion for accessibility + battery
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}