/* ============================================
   ALEC'S CONSTRUCTION — STYLE SYSTEM
   Modern, Dark, Minimal — Mobile First
   ============================================ */

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

:root {
  --red: #D42B2B;
  --red-dark: #B71C1C;
  --red-glow: rgba(212, 43, 43, 0.15);
  --black: #1a1a1a;
  --dark: #2a2a2a;
  --dark-card: #ffffff;
  --dark-border: #e2e2e2;
  --gray: #666;
  --gray-light: #555;
  --white: #ffffff;
  --off-white: #f7f7f7;
  --bg: #fafafa;
  --bg-alt: #f2f2f2;
  --text: #1a1a1a;
  --text-muted: #555;
  --card-bg: #ffffff;
  --card-border: #e8e8e8;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Montserrat', 'Inter', sans-serif;
  --nav-height: 80px;
  --nav-height-scrolled: 60px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--red);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.5s; }
.stagger-children .reveal:nth-child(7) { transition-delay: 0.6s; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  height: var(--nav-height-scrolled);
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(0,0,0,0.1);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 50px;
  width: auto;
  transition: height 0.4s var(--ease-out);
}

.navbar.scrolled .nav-logo img {
  height: 38px;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--black);
}

.nav-logo-text span {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #666;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #444;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover { color: var(--black); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--red);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--red-glow);
}

.btn-primary:hover::before { opacity: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: #2a2a2a;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 2px solid #2a2a2a;
  border-radius: 6px;
  transition: all 0.3s var(--ease-out);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(212, 43, 43, 0.05);
  transform: translateY(-2px);
}

.hero .btn-outline {
  border-color: rgba(255,255,255,0.3);
  color: #ffffff;
}

.hero .btn-outline:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255,255,255,0.1);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-trigger svg {
  transition: transform 0.3s;
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #444;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-dropdown-menu a::after { display: none; }

.nav-dropdown-menu a:hover {
  background: rgba(212, 43, 43, 0.08);
  color: var(--red);
  padding-left: 20px;
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s var(--ease-out);
  border-radius: 2px;
}

.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 Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer a {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  padding: 16px 0;
  color: var(--gray-light);
  border-bottom: 1px solid var(--dark-border);
  transition: color 0.3s, padding-left 0.3s;
}

.mobile-drawer a:hover {
  color: var(--text);
  padding-left: 12px;
}

.mobile-drawer .drawer-cta {
  margin-top: auto;
  padding-top: 32px;
}

.mobile-drawer .drawer-cta .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

.mobile-drawer .drawer-contact {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 2;
}

.mobile-drawer .drawer-contact a {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0;
  border: none;
  color: var(--gray-light);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}

.drawer-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/images/generated/homepage-hero.jpg') center/cover no-repeat;
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(26,26,46,0.75) 50%, rgba(15,52,96,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-top: calc(var(--nav-height) + 40px);
}

.hero-split {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-left {
  flex: 1;
  min-width: 0;
}

.hero-form {
  flex: 0 0 340px;
  background: rgba(10,10,20,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 28px 24px;
  animation: fadeInUp 0.8s var(--ease-out) 0.9s both;
  align-self: flex-start;
  margin-top: 20px;
}

.hero-form-icon {
  width: 56px;
  height: 56px;
  background: rgba(212,43,43,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .hero-split {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-form {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(212, 43, 43, 0.12);
  border: 1px solid rgba(212, 43, 43, 0.25);
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
  width: fit-content;
  max-width: max-content;
  flex-shrink: 0;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

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

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeInUp 0.8s var(--ease-out) 0.8s both;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  animation: fadeInUp 0.8s var(--ease-out) 1s both;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

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

/* ============================================
   SERVICES — BENTO GRID
   ============================================ */
.services {
  padding: 100px 0;
  position: relative;
  background: var(--bg);
}

.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(212,43,43,0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 0% 100%, rgba(255,255,255,0.015) 0%, transparent 40%);
  pointer-events: none;
}

.services-header {
  margin-bottom: 60px;
}

.services-header p {
  max-width: 500px;
  color: var(--gray);
  font-size: 1.05rem;
  margin-top: 1rem;
}

/* Services — Image Card Layout */
.services-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: block;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.service-card:hover img {
  transform: scale(1.05);
}

.svc-icon-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #111118 0%, #1a1a2e 50%, #0f2847 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-icon-bg--alt {
  background: linear-gradient(135deg, #111118 0%, #1e1e3a 50%, #2c1654 100%);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(15,15,15,0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: background 0.4s;
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(180deg, transparent 10%, rgba(15,15,15,0.95) 100%);
}

.service-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-light);
  line-height: 1.5;
  margin-bottom: 12px;
}

.service-card .card-arrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}

.service-card:hover .card-arrow { gap: 12px; }

.service-card-lg { aspect-ratio: 16/9; }
.service-card-lg h3 { font-size: 1.75rem; }

@media (min-width: 768px) {
  .services-featured { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card-lg { aspect-ratio: 16/9; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(5, 1fr); }
  .services-grid .service-card { aspect-ratio: 3/4; }
}

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

.bento-card {
  position: relative;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 32px;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.bento-card:hover {
  border-color: rgba(212, 43, 43, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.bento-card:hover::before {
  transform: scaleX(1);
}

.bento-icon {
  width: 48px;
  height: 48px;
  background: rgba(212, 43, 43, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  transition: background 0.3s;
}

.bento-card:hover .bento-icon {
  background: rgba(212, 43, 43, 0.2);
}

.bento-card h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 12px;
}

.bento-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

.bento-card .card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  transition: gap 0.3s;
}

.bento-card:hover .card-arrow {
  gap: 12px;
}

/* Featured / Large cards */
.bento-card.featured {
  background: linear-gradient(135deg, #ffffff 0%, rgba(212, 43, 43, 0.08) 100%);
}

/* ============================================
   ABOUT / STATS
   ============================================ */
.about {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background: var(--off-white);
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(212,43,43,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.02) 0%, transparent 50%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  color: var(--text);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--gray-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-text p strong { color: var(--black); }

.about-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
}

.about-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.85rem;
  gap: 12px;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.about-image-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.stat-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.stat-card:hover {
  border-color: rgba(212, 43, 43, 0.3);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--black);
  line-height: 1;
}

.stat-number .counter-suffix {
  color: var(--red);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  justify-content: center;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-light);
}

.trust-badge svg {
  width: 16px;
  height: 16px;
  color: var(--red);
}

/* ============================================
   PROJECTS GALLERY
   ============================================ */
.projects {
  padding: 100px 0;
  background: var(--off-white);
}

.projects-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 60px;
}

.projects-header p {
  color: var(--gray);
  max-width: 500px;
}

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

.project-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.project-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 3rem;
  transition: transform 0.6s var(--ease-out);
}

.project-card:hover .project-card-bg {
  transform: scale(1.05);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 1;
  transition: background 0.4s;
}

.project-card:hover .project-card-overlay {
  background: linear-gradient(180deg, transparent 10%, rgba(0,0,0,0.75) 60%, rgba(0,0,0,0.95) 100%);
}

.project-card-overlay h3 {
  color: #ffffff;
  font-size: 1.1rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.project-card-overlay span {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  margin-top: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ============================================
   INSURANCE CTA
   ============================================ */
.insurance-cta {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.insurance-inner {
  position: relative;
  background: #0a0a12;
  border-radius: 24px;
  padding: 60px 32px;
  text-align: center;
  overflow: hidden;
}

/* ---- STORM ANIMATION SYSTEM ---- */

/* Dark sky base */
.storm-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/images/generated/insurance-hero.jpg') center/cover no-repeat;
  z-index: 0;
}

/* Rolling clouds */
.storm-clouds {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(40, 40, 70, 0.8) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 70% 20%, rgba(50, 30, 50, 0.7) 0%, transparent 60%),
    radial-gradient(ellipse 90% 60% at 50% 50%, rgba(30, 20, 40, 0.5) 0%, transparent 70%);
  animation: storm-clouds-drift 12s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes storm-clouds-drift {
  0% { transform: translateX(-3%) scale(1); opacity: 0.8; }
  50% { transform: translateX(2%) scale(1.05); opacity: 1; }
  100% { transform: translateX(4%) scale(1.02); opacity: 0.9; }
}

/* Diagonal rain — layer 1 */
.storm-rain {
  position: absolute;
  inset: -50% -20% -20% -20%;
  background-image: repeating-linear-gradient(
    105deg,
    transparent,
    transparent 98px,
    rgba(180, 200, 255, 0.07) 98px,
    rgba(180, 200, 255, 0.07) 99px
  );
  background-size: 100px 100%;
  animation: storm-rain-fall 0.8s linear infinite;
  z-index: 2;
  pointer-events: none;
}

.storm-rain-2 {
  background-image: repeating-linear-gradient(
    100deg,
    transparent,
    transparent 67px,
    rgba(180, 200, 255, 0.05) 67px,
    rgba(180, 200, 255, 0.05) 68px
  );
  background-size: 70px 100%;
  animation: storm-rain-fall-2 0.6s linear infinite;
  opacity: 0.7;
}

@keyframes storm-rain-fall {
  0% { transform: translateY(-30%) translateX(-10%); }
  100% { transform: translateY(10%) translateX(5%); }
}

@keyframes storm-rain-fall-2 {
  0% { transform: translateY(-25%) translateX(-8%); }
  100% { transform: translateY(15%) translateX(8%); }
}

/* Wind streaks */
.storm-wind {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -5deg,
    transparent,
    transparent 40px,
    rgba(255, 255, 255, 0.015) 40px,
    rgba(255, 255, 255, 0.03) 42px,
    transparent 44px
  );
  animation: storm-wind-blow 3s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

.storm-wind-2 {
  background: repeating-linear-gradient(
    -3deg,
    transparent,
    transparent 80px,
    rgba(255, 255, 255, 0.02) 80px,
    rgba(255, 255, 255, 0.04) 83px,
    transparent 86px
  );
  animation: storm-wind-blow-2 4.5s ease-in-out infinite;
}

@keyframes storm-wind-blow {
  0% { transform: translateX(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

@keyframes storm-wind-blow-2 {
  0% { transform: translateX(-100%); opacity: 0; }
  15% { opacity: 0.7; }
  85% { opacity: 0.7; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* Lightning flash — layer 1 (bright) */
.storm-lightning {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 20%, rgba(200, 210, 255, 0.6) 0%, transparent 60%);
  opacity: 0;
  animation: lightning-flash 6s ease-out infinite;
  z-index: 3;
  pointer-events: none;
}

.storm-lightning-2 {
  background: radial-gradient(ellipse 40% 60% at 30% 30%, rgba(255, 240, 220, 0.5) 0%, transparent 50%);
  animation: lightning-flash-2 8s ease-out 3s infinite;
}

@keyframes lightning-flash {
  0%, 100% { opacity: 0; }
  1% { opacity: 1; }
  2% { opacity: 0.1; }
  3% { opacity: 0.8; }
  4.5% { opacity: 0; }
  40% { opacity: 0; }
  40.5% { opacity: 0.4; }
  41% { opacity: 0; }
}

@keyframes lightning-flash-2 {
  0%, 100% { opacity: 0; }
  1.5% { opacity: 0.9; }
  2.5% { opacity: 0; }
  3% { opacity: 0.6; }
  4% { opacity: 0; }
  60% { opacity: 0; }
  60.5% { opacity: 0.3; }
  61% { opacity: 0; }
}

/* Dark red overlay to tie to brand */
.storm-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(140, 20, 20, 0.3) 0%,
    rgba(180, 30, 30, 0.25) 40%,
    rgba(100, 10, 10, 0.5) 100%
  );
  z-index: 4;
  pointer-events: none;
}

.insurance-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 4;
}

.insurance-inner h2 {
  color: #ffffff;
  margin-bottom: 1rem;
  position: relative;
}

.insurance-inner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--white);
  color: var(--red);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ============================================
   SERVICE AREA
   ============================================ */
.service-area {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
}

.service-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212,43,43,0.05) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(255,255,255,0.01) 80px, rgba(255,255,255,0.01) 81px);
  pointer-events: none;
}

.service-area-header {
  text-align: center;
  margin-bottom: 60px;
}

.service-area-header h2 {
  color: var(--text);
  margin-bottom: 1rem;
}

.service-area-header p {
  color: var(--gray);
  max-width: 500px;
  margin: 0 auto;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.city-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.city-tag:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212, 43, 43, 0.25);
}

.city-tag svg {
  width: 14px;
  height: 14px;
  color: var(--red);
  flex-shrink: 0;
  transition: color 0.35s, transform 0.35s;
}

.city-tag:hover svg {
  color: #fff;
  transform: scale(1.15);
}

.city-name {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.city-cta {
  position: absolute;
  right: 18px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}

.city-tag:hover .city-cta {
  opacity: 1;
  transform: translateX(0);
}

.city-tag:hover .city-name {
  transform: translateX(-4px);
}

/* ============================================
   TESTIMONIALS V2 — Scrolling Columns
   ============================================ */
.testimonials-v2 {
  padding: 100px 0;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.tv2-header {
  text-align: center;
  margin-bottom: 48px;
}

.tv2-header h2 { color: var(--text); margin-top: 16px; }
.tv2-header p { color: var(--gray); font-size: 1.05rem; margin-top: 12px; max-width: 440px; margin-left: auto; margin-right: auto; }

.tv2-badge {
  display: inline-block;
  border: 1px solid var(--card-border);
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(212,43,43,0.05);
}

.tv2-columns {
  display: flex;
  justify-content: center;
  gap: 24px;
  max-height: 720px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
}

.tv2-col {
  flex: 0 0 340px;
  overflow: hidden;
}

.tv2-col-md { display: none; }
.tv2-col-lg { display: none; }

@media (min-width: 768px) { .tv2-col-md { display: block; } }
@media (min-width: 1024px) { .tv2-col-lg { display: block; } }

.tv2-scroll {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: tv2-scroll-up 30s linear infinite;
}

.tv2-scroll-1 { animation-duration: 28s; }
.tv2-scroll-2 { animation-duration: 34s; }
.tv2-scroll-3 { animation-duration: 31s; }

@keyframes tv2-scroll-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.tv2-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  flex-shrink: 0;
}

.tv2-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.tv2-card-img {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.tv2-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tv2-card:hover .tv2-card-img img {
  transform: scale(1.05);
}

.tv2-stars {
  color: #FFB800;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.tv2-card blockquote {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 16px;
  font-style: italic;
}

.tv2-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tv2-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 700;
}

.tv2-author span {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 1px;
}

@media (max-width: 767px) {
  .tv2-col { flex: 1; min-width: 0; max-width: 100%; }
  .tv2-columns { max-height: 600px; }
  .tv2-card { padding: 20px; }
  .tv2-card-img { height: 140px; }
}

/* ============================================
   LEAD CAPTURE FORM
   ============================================ */
.contact {
  padding: 100px 0;
  position: relative;
  background: var(--off-white);
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(212,43,43,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(255,255,255,0.02) 0%, transparent 40%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

.contact-info h2 {
  color: var(--text);
  margin-bottom: 1.5rem;
}

.contact-info > p {
  color: var(--gray-light);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(212, 43, 43, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}

.contact-detail h4 {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-detail p, .contact-detail a {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}

.contact-detail a:hover { color: var(--red); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 36px 28px;
}

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

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 10px;
  color: #1a1a1a;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: #ffffff;
  color: #1a1a1a;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  margin-top: 8px;
}

.form-submit .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.visible {
  display: block;
}

.form-success svg {
  width: 48px;
  height: 48px;
  color: #4CAF50;
  margin-bottom: 16px;
}

.form-success h3 {
  color: var(--text);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--gray);
}

/* ============================================
   BLOG PREVIEW
   ============================================ */
.blog-preview {
  background: var(--bg);
  padding: 100px 0;
}

.blog-preview-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 60px;
}

.blog-preview-header p { color: var(--gray); }

.blog-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.blog-card:hover {
  border-color: rgba(212, 43, 43, 0.3);
  transform: translateY(-4px);
}

.blog-card-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 2rem;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(212, 43, 43, 0.1);
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 12px;
}

.blog-card h3 {
  color: var(--text);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.blog-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-card .card-arrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}

.blog-card:hover .card-arrow { gap: 12px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--dark-border);
  background: #1a1a1a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 8px;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.2;
}

.footer-logo-text span {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #aaaaaa;
  text-transform: uppercase;
}

.footer-brand > p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

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

.footer-social {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: all 0.3s;
}

.footer-social:hover {
  color: var(--text);
  border-color: var(--red);
  background: rgba(212, 43, 43, 0.1);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
}

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

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--gray);
  transition: color 0.3s;
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--dark-border);
  font-size: 0.8rem;
  color: var(--gray);
}

.footer-bottom a { color: var(--gray-light); }
.footer-bottom a:hover { color: var(--text); }

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: var(--black);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 20px var(--red-glow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

/* ============================================
   RESPONSIVE — Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
  .container { padding: 0 40px; }

  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: block;
  }

  .nav-hamburger {
    display: none;
  }

  .hero-stats { gap: 3rem; }
  .hero-stat-number { font-size: 2.5rem; }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card.featured {
    grid-column: span 2;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .cities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    padding: 44px 36px;
  }

  .blog-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-preview-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============================================
   RESPONSIVE — Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
  }

  .bento-card.featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cities-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
}

.how-it-works-header h2 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.hiw-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 3rem;
}

.hiw-step {
  text-align: center;
  padding: 40px 28px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

.hiw-step:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}

.hiw-step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--red);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hiw-step-icon {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
}

.hiw-step h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.hiw-step p {
  font-size: 0.9rem;
  color: var(--gray-light);
  line-height: 1.7;
}

.hiw-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.hiw-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-light);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .hiw-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

/* CTA glow pulse */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--red-glow); }
  50% { box-shadow: 0 0 40px var(--red-glow), 0 0 60px rgba(212,43,43,0.2); }
}

.btn-glow {
  animation: glow-pulse 2s infinite;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #1a1a1a 0%, #555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Skeleton loading for images */
.skeleton {
  background: linear-gradient(90deg, var(--dark-card) 25%, var(--dark-border) 50%, var(--dark-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   MOBILE FIXES
   ============================================ */

/* Hero badge — don't stretch full width on mobile */
.hero-badge {
  align-self: flex-start;
}

/* Hero content — tighten mobile spacing */
.hero-content {
  padding-top: calc(var(--nav-height) + 16px);
  padding-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 8vw, 3.5rem);
}

/* Hero stats — keep compact on small screens */
.hero-stats {
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.hero-stat-number {
  font-size: 1.6rem;
}

.hero-stat-label {
  font-size: 0.7rem;
}

/* Insurance section with background image */
.insurance-inner[style*="background-image"] {
  background-size: cover;
  background-position: center;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
  }
  .hero-content {
    padding-top: var(--nav-height);
    padding-bottom: 0;
  }
  .hero-stats {
    margin-top: 4rem;
    padding-top: 2rem;
  }
  .hero-stat-number {
    font-size: 2.5rem;
  }
  .hero-stat-label {
    font-size: 0.8rem;
  }
}

/* ============================================
   LIGHT THEME TYPOGRAPHY FIXES
   ============================================ */

/* Section headings — crisp dark on light backgrounds */
h2 {
  color: #1a1a1a;
}

/* Blog article h2s — ensure always dark and readable */
.article-body h2,
.article-content h2 {
  color: #1a1a1a !important;
}

/* Body text & paragraphs — softer than pure black */
p {
  color: #444;
}

/* About section text */
.about-text p {
  color: #444;
}

/* Section labels stay red */
.section-label {
  color: #D42B2B;
}

/* Service card overlay text stays white (dark card backgrounds) */
.service-card-overlay h3,
.service-card h3 {
  color: #ffffff;
}

.service-card-overlay p,
.service-card p {
  color: rgba(255,255,255,0.75);
}

.service-card .card-arrow {
  color: var(--red);
}

/* Projects section text on light bg */
.projects-header h2 {
  color: #1a1a1a;
}

.projects-header p {
  color: #444;
}

/* ============================================
   FIXED CALL NOW BAR — Mobile Only
   ============================================ */
.call-now-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--red);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 16px 24px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s;
}

.call-now-bar:active {
  background: var(--red-dark);
}

.call-now-bar svg {
  animation: call-ring 1.5s ease-in-out infinite;
}

@keyframes call-ring {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(12deg); }
  20% { transform: rotate(-10deg); }
  30% { transform: rotate(8deg); }
  40% { transform: rotate(-6deg); }
  50% { transform: rotate(0deg); }
}

@media (max-width: 768px) {
  .call-now-bar {
    display: flex;
  }

  /* Push footer and back-to-top above the call bar */
  .footer {
    padding-bottom: 80px;
  }

  .back-to-top {
    bottom: 76px;
  }

  /* Move chat FAB above call bar too */
  .chat-fab {
    bottom: 76px;
  }

  /* Hero form — stack vertically on mobile (overrides inline styles) */
  .hero-form {
    max-width: 100% !important;
  }
  .hero-form form {
    flex-direction: column !important;
  }
  .hero-form input,
  .hero-form button {
    min-width: 100% !important;
    width: 100% !important;
  }

  /* Hero stats — wrap and center on mobile */
  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
    justify-content: center;
    text-align: center;
  }
  .hero-stats > div {
    flex: 1 1 80px;
  }

  /* Testimonial images — slightly shorter on mobile */
  .testimonial-card img {
    height: 140px;
  }
}
