/* =========================================================
   BR CIVIL LLC — BRAND COLOR THEME & SYSTEM
   ========================================================= */

:root {
  /* BR Civil LLC Color Reference Palette */
  --black: #0A1B14;               /* Deepest Forest Black */
  --charcoal: #0E241B;            /* Deep Forest Emerald */
  --grey: #8A9D93;                /* Muted Slate Grey */
  --grey-light: #18382B;          /* Dark Forest Border */
  --white: #FFFFFF;
  --off-white: #FAFBF9;

  /* Accent Metallic Gold Shades */
  --gold: #D4AF37;                /* Rich Metallic Gold */
  --gold-dim: #B3922B;            /* Deeper Metallic Gold */
  --gold-glow: rgba(212, 175, 55, 0.18);

  /* Mapping to existing variable names for seamless compatibility */
  --orange: var(--gold);
  --orange-dim: var(--gold-dim);

  --font-display: 'Libre Franklin', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1380px;
  --edge: clamp(24px, 5vw, 80px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

/* Prevent page background scroll when mobile menu is active */
body.menu-open {
  overflow: hidden !important;
}

/* Global Responsive Image Rule */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }

/* Global Container Ceiling */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
  width: 100%;
}

/* De-congested Rhythm System */
.section { 
  padding: clamp(90px, 10vw, 140px) 0; 
}
.section.tight { 
  padding: clamp(60px, 6vw, 90px) 0; 
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: clamp(48px, 6vw, 70px);
}
.section-head p {
  max-width: 500px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
h3 { font-size: 1.35rem; font-weight: 700; }
p { color: var(--grey); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 15px 30px;
  border: 1.5px solid var(--black);
  color: var(--black);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  z-index: -1;
}
.btn:hover {
  background: var(--black);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn.solid {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn.solid:hover {
  background: var(--gold-dim);
  border-color: var(--gold-dim);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}
.btn.sm {
  padding: 10px 20px;
  font-size: 0.82rem;
}
.btn.on-dark {
  border-color: var(--gold);
  color: var(--gold);
}
.btn.on-dark:hover {
  background: var(--gold);
  color: var(--black);
}

.btn-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--grey-light);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-circle:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

/* =========================================================
   SCROLL PROGRESS BAR
   ========================================================= */
#scrollProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), #f0d060);
  z-index: 99999;
  transition: width 0.08s linear;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* =========================================================
   PAGE LOAD PROGRESS BAR
   ========================================================= */
#pageLoader {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), #f0d060);
  z-index: 999999;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
  animation: pageLoad 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageLoad {
  0% { width: 0%; opacity: 1; }
  70% { width: 85%; opacity: 1; }
  90% { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0; pointer-events: none; }
}

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  will-change: transform;
}

body.cursor-hover .cursor-dot {
  width: 12px;
  height: 12px;
  background: var(--gold);
}

body.cursor-hover .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* TOP BAR & STICKY HEADER */
.top-bar {
  background: var(--black);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-info, .top-bar-contact {
  display: flex;
  gap: 28px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: rgba(10, 27, 20, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
  overflow: visible !important;
}
.site-header.on-dark {
  background: rgba(10, 27, 20, 0.96);
  border-bottom-color: rgba(212, 175, 55, 0.2);
}
.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(212, 175, 55, 0.35);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-header.on-dark .logo { color: var(--white); }
.logo span.accent { color: var(--gold); }

nav.main-nav ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}
nav.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
  padding: 12px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
}
nav.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
nav.main-nav a:hover::after,
nav.main-nav a.active::after {
  width: 100%;
}
.site-header.on-dark nav.main-nav a { color: rgba(255, 255, 255, 0.85); }
nav.main-nav a:hover, nav.main-nav a.active { color: var(--gold); }

/* Dedicated Header Button Rules */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.header-btn {
  padding: 10px 20px !important;
  font-size: 0.82rem !important;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1;
}

/* Hamburger icon for mobile */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 10px;
  position: relative;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.mobile-toggle.is-active .hamburger-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.is-active .hamburger-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-toggle.is-active .hamburger-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* CAPABILITIES MEGA MENU */
.has-mega-menu { position: static; }
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(10, 27, 20, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.has-mega-menu:hover .mega-menu,
.mega-menu.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--edge);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.mega-categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mega-cat-item {
  padding: 14px 20px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
}
.mega-cat-item:hover, .mega-cat-item.active {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  padding-left: 26px;
}
.mega-cat-item .count {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

.mega-preview { display: flex; align-items: center; }
.preview-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 24px;
  border-radius: 8px;
  align-items: center;
}
.preview-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.4s ease;
}
.preview-card:hover img { transform: scale(1.05); }
.preview-content h3 { color: var(--white); margin-bottom: 10px; }
.preview-content p { font-size: 0.88rem; color: rgba(255,255,255,0.7); margin-bottom: 18px; line-height: 1.6; }

/* =========================================================
   EXPANDED LARGE-FORMAT HERO VIDEO SECTION
   ========================================================= */
.hero {
  position: relative;
  min-height: max(100vh, 650px);
  height: auto;
  display: flex;
  align-items: center;
  background: transparent !important;
  color: #FFFFFF;
  overflow: visible !important;
}

.hero-video-section {
  min-height: max(100vh, 650px);
  height: auto;
  align-items: center;
  overflow: visible !important;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: none !important;
  pointer-events: none !important;
}

/* Hide native video control overlays on mobile */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-start-playback-button,
.hero-video::-webkit-media-controls-play-button {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.35) 60%,
    rgba(10, 27, 20, 0.80) 100%
  ) !important;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(110px, 14vw, 180px);
  padding-bottom: clamp(100px, 10vw, 140px);
}

.hero-content { 
  max-width: 920px;
}

/* =========================================================
   HERO STAGGER ENTRANCE ANIMATIONS
   ========================================================= */

.hero-animate {
  opacity: 0;
  transform: translateY(30px);
}

.hero-animate.hero-in {
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate:nth-child(1) { animation-delay: 0.1s; }
.hero-animate:nth-child(2) { animation-delay: 0.25s; }
.hero-animate:nth-child(3) { animation-delay: 0.4s; }
.hero-animate:nth-child(4) { animation-delay: 0.55s; }

/* Animated gold underline on hero h1 */
.hero h1 .hero-underline {
  position: relative;
  display: inline;
}
.hero h1 .hero-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gold);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.9s;
}
.hero-started .hero h1 .hero-underline::after {
  width: 100%;
}

.hero .eyebrow {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
  margin-bottom: 16px;
}

.hero h1 { 
  color: #FFFFFF; 
  font-size: clamp(2.4rem, 4.5vw, 4.2rem); 
  font-weight: 700;
  letter-spacing: -0.01em; 
  line-height: 1.12;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

.hero h1 span { 
  color: var(--gold); 
  display: block; 
  font-weight: 600;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.hero-sub {
  margin-top: 20px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  max-width: 660px;
  line-height: 1.65;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
  padding-left: 18px;
  border-left: 2px solid var(--gold);
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 36px;
  align-items: center;
  flex-wrap: wrap;
}

.hero .btn.on-dark {
  background: rgba(10, 27, 20, 0.82);
  border: 1.5px solid var(--gold);
  color: #FFFFFF;
  padding: 15px 32px;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.hero .btn.on-dark:hover {
  background: var(--gold);
  color: var(--black);
}

.hero-text-link {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.hero-text-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.hero-meta {
  position: absolute;
  right: var(--edge);
  bottom: 40px;
  z-index: 2;
  display: flex;
  gap: 32px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-meta span { color: var(--gold); margin-right: 6px; }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: var(--edge);
  z-index: 2;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 10px;
}

.scroll-cue::after {
  content: '';
  width: 1px;
  height: 28px;
  background: var(--gold);
  display: inline-block;
  animation: scrollCuePulse 2s ease infinite;
}

@keyframes scrollCuePulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.7); }
}

/* ABOUT HERO */
.about-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: flex-end;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.about-hero-image {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?q=85&w=2000&auto=format&fit=crop");
  background-position: center;
  background-size: cover;
  transition: transform 8s ease;
}

.about-hero:hover .about-hero-image {
  transform: scale(1.03);
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,27,20,0.3) 0%, rgba(10,27,20,0.88) 100%);
}

.about-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 150px;
  padding-bottom: 100px;
}
.about-hero h1 span { color: var(--gold); display: block; }

.about-hero-meta {
  position: absolute;
  right: var(--edge);
  bottom: 40px;
  z-index: 2;
  color: rgba(255,255,255,0.65);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.about-hero-meta span { color: var(--gold); margin-right: 8px; }

/* FEATURE TILES */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.tile {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  color: var(--white);
  border-radius: 6px;
  display: block;
  cursor: pointer;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.tile:hover img { transform: scale(1.06); }
.tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,27,20,0.05) 30%, rgba(10,27,20,0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  transition: background 0.4s ease;
}
.tile:hover .tile-overlay {
  background: linear-gradient(180deg, rgba(10,27,20,0.2) 0%, rgba(10,27,20,0.95) 100%);
}
.tile-overlay .tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.tile-overlay h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 10px; }
.tile-overlay p { color: rgba(255,255,255,0.8); font-size: 0.94rem; max-width: 280px; }

/* =========================================================
   STATS BAR — ENHANCED WITH SHIMMER
   ========================================================= */
.stats-bar {
  background: var(--charcoal);
  padding: 80px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.04), transparent);
  animation: statsShimmer 4s ease infinite;
}

@keyframes statsShimmer {
  0% { left: -60%; }
  100% { left: 160%; }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.stat {
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  transition: transform 0.3s ease;
}
.stat:hover {
  transform: translateY(-4px);
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}
.stat .label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
}

/* =========================================================
   STAGGER REVEAL SYSTEM
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children of reveal containers */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.in > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.55s; }

/* SERVICE ROWS & PROCESS LIST */
.service-row {
  display: grid;
  grid-template-columns: 100px 1fr 1.2fr;
  gap: 40px;
  align-items: start;
  padding: 42px 0;
  border-bottom: 1px solid var(--grey-light);
  transition: background 0.3s ease;
  border-radius: 4px;
  cursor: default;
  position: relative;
}
.service-row::before {
  content: '';
  position: absolute;
  left: -var(--edge);
  right: -var(--edge);
  top: 0;
  bottom: 0;
  background: rgba(212, 175, 55, 0.03);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 4px;
}
.service-row:hover::before { opacity: 1; }
.service-row:first-child { border-top: 1px solid var(--grey-light); }
.service-row .idx {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  transition: font-size 0.3s ease, transform 0.3s ease;
}
.service-row:hover .idx {
  font-size: 1.25rem;
  transform: scale(1.1);
}
.service-row h3 {
  margin-bottom: 6px;
  transition: color 0.3s ease;
}
.service-row:hover h3 { color: var(--gold-dim); }
.service-row p { font-size: 0.98rem; line-height: 1.65; }

.section-dark {
  background: var(--black);
  color: var(--white);
}
.section-dark h2 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.7); }

.process-list { display: flex; flex-direction: column; }
.process-item {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr 1.1fr 280px 40px;
  gap: 32px;
  align-items: center;
  padding: 38px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: background 0.3s ease;
}
.process-item:first-child { border-top: 1px solid rgba(212, 175, 55, 0.2); }
.process-item:hover { background: rgba(212, 175, 55, 0.03); }
.process-item .idx { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--gold); }
.process-item h3 { color: var(--white); font-size: 1.45rem; }
.process-item p { color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.65; }
.process-image { width: 280px; height: 170px; overflow: hidden; border-radius: 4px; }
.process-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.process-item:hover .process-image img { transform: scale(1.06); }
.process-arrow { color: var(--gold); font-size: 1.25rem; transition: transform 0.3s ease; }
.process-item:hover .process-arrow { transform: translate(4px, -4px); }

/* PROJECTS GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
}
.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  grid-column: span 3;
  border-radius: 6px;
  display: block;
}
.project-card.wide { grid-column: span 4; }
.project-card.narrow { grid-column: span 2; }
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover img { transform: scale(1.06); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,27,20,0) 40%, rgba(10,27,20,0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: var(--white);
  transition: background 0.4s ease;
}
.project-card:hover .project-overlay {
  background: linear-gradient(180deg, rgba(10,27,20,0.1) 0%, rgba(10,27,20,0.95) 100%);
}
.project-overlay .tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.project-overlay h3 { font-size: 1.25rem; color: var(--white); }

/* Project filter tabs */
.project-filter-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 8px 20px;
  border: 1.5px solid var(--grey-light);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey);
  cursor: pointer;
  transition: all 0.25s ease;
  background: transparent;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}
.filter-tab:hover {
  border-color: var(--gold);
  color: var(--gold-dim);
}
.filter-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

/* PRINCIPLES SECTION */
.principles {
  margin-top: 60px;
  border-top: 1px solid var(--grey-light);
}
.principle {
  display: grid;
  grid-template-columns: 80px 1fr 1.05fr 320px 40px;
  align-items: center;
  gap: 36px;
  padding: 38px 0;
  border-bottom: 1px solid var(--grey-light);
  transition: background 0.3s ease;
}
.principle:hover { background: rgba(212, 175, 55, 0.02); }
.principle-number { color: var(--gold); font-weight: 700; }
.principle-title { font-size: 2rem; transition: color 0.3s ease; }
.principle:hover .principle-title { color: var(--gold-dim); }
.principle-image { width: 320px; height: 190px; overflow: hidden; border-radius: 4px; }
.principle-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.principle:hover .principle-image img { transform: scale(1.06); }
.principle-arrow { font-size: 1.35rem; color: var(--gold); transition: transform 0.3s ease; }
.principle:hover .principle-arrow { transform: translate(4px, -4px); }

/* WHY CHOOSE US / FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.feature-card {
  padding: 36px 28px;
  border: 1px solid var(--grey-light);
  border-radius: 8px;
  background: var(--white);
  transition: all 0.35s ease;
}
.feature-card .icon { font-size: 2.2rem; margin-bottom: 20px; }
.feature-card h4 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.92rem; line-height: 1.6; }
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 16px 36px rgba(10,27,20,0.08);
}

/* CTA BANNER & FOOTER */
.cta-banner {
  background: var(--charcoal);
  border-top: 1px solid var(--gold);
  color: var(--white);
  padding: clamp(70px, 8vw, 110px) 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ctaPulse 4s ease infinite;
}

@keyframes ctaPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.6; }
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-text h2 { max-width: 650px; color: var(--white); }
.cta-text p { color: rgba(255,255,255,0.88); margin-top: 12px; font-size: 1.05rem; }

footer {
  background: var(--black);
  color: rgba(255,255,255,0.68);
  padding: 90px 0 36px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 14px; font-size: 0.95rem; }
.footer-col a { transition: color 0.25s ease, padding-left 0.25s ease; }
.footer-col a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.48);
}

/* PROJECT TYPES ACCORDION */
.project-types-accordion {
  display: flex;
  gap: 20px;
  height: 520px;
  width: 100%;
}

.type-card {
  position: relative;
  flex: 1;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--grey-light);
  outline: none;
}

.type-card.active {
  flex: 3.5;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 20px 40px rgba(212, 175, 55, 0.15);
}

.type-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.type-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,27,20,0.2) 0%, rgba(10,27,20,0.92) 85%);
  transition: opacity 0.4s ease;
}

.type-card-collapsed {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 24px;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.type-card.active .type-card-collapsed {
  opacity: 0;
  pointer-events: none;
}

.type-card-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
}

.type-card-vert-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--white);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.type-card-expanded {
  position: absolute;
  inset: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease 0.15s;
  color: var(--white);
}

.type-card.active .type-card-expanded {
  opacity: 1;
  pointer-events: auto;
}

.type-card-badge {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.type-card-head h3 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 10px;
}

.type-card-head p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  line-height: 1.6;
}

.type-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0;
}

.type-card-features li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: featureSlideIn 0.4s ease forwards;
  opacity: 0;
}

.type-card.active .type-card-features li:nth-child(1) { animation-delay: 0.3s; }
.type-card.active .type-card-features li:nth-child(2) { animation-delay: 0.45s; }
.type-card.active .type-card-features li:nth-child(3) { animation-delay: 0.6s; }

@keyframes featureSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.type-card-features li span {
  color: var(--gold);
  font-weight: bold;
}

/* =========================================================
   WHY BR CIVIL LLC — NATURAL HORIZONTAL CAROUSEL
   ========================================================= */

.why-blackridge-grid {
  display: flex !important;
  gap: 32px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 10px 4px 32px 4px;
  -webkit-overflow-scrolling: touch;
}

/* Custom Sleek Gold Scrollbar Track */
.why-blackridge-grid::-webkit-scrollbar {
  height: 5px;
}

.why-blackridge-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.why-blackridge-grid::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

/* Why Section Dot Indicators */
.why-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.why-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.why-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

/* Roomy Card Layout */
.why-block {
  flex: 0 0 380px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  perspective: 1000px;
}

.why-block:hover {
  transform: translateY(-8px) rotateX(1deg);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.3);
}

.why-block-img-wrap {
  position: relative;
  height: 210px;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.why-block-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.why-block:hover .why-block-img-wrap img {
  transform: scale(1.06);
}

.why-num {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
  background: rgba(10, 27, 20, 0.7);
  padding: 4px 10px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}

.why-block-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: flex-start;
}

.why-block-body h3 {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.why-block-body p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* BEFORE / AFTER SLIDER REFINED STYLES */
.before-after-container {
  margin-top: 70px;
}

.ba-slider {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  border: 1px solid var(--grey-light);
  user-select: none;
  background: var(--black);
}

.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-before-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid var(--gold);
}

.ba-before-wrap .ba-img {
  width: 100%;
  max-width: none;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 40px;
  margin-left: -20px;
  z-index: 3;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-handle-line {
  position: absolute;
  width: 2px;
  height: 100%;
  background: var(--gold);
}

.ba-handle-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 4;
  animation: baHandlePulse 2s ease infinite;
}

@keyframes baHandlePulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 0 0 0 rgba(212,175,55,0.4); }
  50% { box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 0 0 8px rgba(212,175,55,0); }
}

/* =========================================================
   VERTICAL SCROLL TRACK FOR SERVICES / CAPABILITIES
   ========================================================= */

.services-scroll-container {
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 16px;
  scroll-behavior: smooth;
  border-top: 1px solid var(--grey-light);
  border-bottom: 1px solid var(--grey-light);
}

.services-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.services-scroll-container::-webkit-scrollbar-track {
  background: rgba(10, 27, 20, 0.05);
  border-radius: 4px;
}

.services-scroll-container::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

.services-scroll-container .service-row:first-child {
  border-top: none;
}

.services-scroll-container .service-row:last-child {
  border-bottom: none;
}

/* =========================================================
   CUSTOM BRAND LOGO INTEGRATION (HEADER & FOOTER)
   ========================================================= */

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.03);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.footer-logo-wrap {
  margin-bottom: 18px;
}

.footer-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
}

.footer-logo-img:hover { opacity: 0.85; }

/* =========================================================
   HEADER BRAND TYPOGRAPHY STYLING
   ========================================================= */

.logo {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.brand-name-text {
  font-family: 'Libre Franklin', 'Inter', sans-serif;
  transition: opacity 0.25s ease;
}

.logo:hover .brand-name-text {
  opacity: 0.9;
}

/* =========================================================
   TESTIMONIALS SECTION
   ========================================================= */

.testimonials-section {
  background: var(--off-white);
  padding: clamp(90px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.testimonials-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  padding: 36px 32px;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 5rem;
  font-family: var(--font-display);
  color: var(--gold);
  opacity: 0.15;
  line-height: 1;
  font-weight: 800;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 48px rgba(10, 27, 20, 0.1);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
}

.testimonial-stars span {
  color: var(--gold);
  font-size: 1rem;
}

.testimonial-text {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #3a4a42;
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 20px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--black);
  font-size: 0.95rem;
  flex-shrink: 0;
  font-family: var(--font-display);
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--black);
  font-family: var(--font-display);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--grey);
  margin-top: 2px;
}

/* =========================================================
   LEADERSHIP TEAM SECTION
   ========================================================= */

.team-section {
  padding: clamp(90px, 10vw, 140px) 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  margin-top: 56px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 24px 56px rgba(10, 27, 20, 0.12);
}

.team-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.team-card:hover .team-card-img {
  transform: scale(1.04);
}

.team-card-img-wrap {
  overflow: hidden;
  position: relative;
}

.team-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,27,20,0.55) 100%);
}

.team-card-body {
  padding: 32px;
}

.team-card-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.team-card-name {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 12px;
  font-family: var(--font-display);
}

.team-card-bio {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--grey);
  margin-bottom: 24px;
}

.team-card-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.cert-badge {
  padding: 4px 12px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-dim);
  letter-spacing: 0.04em;
}

.team-card-contact {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.team-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.25s ease;
  font-family: var(--font-body);
}

.team-contact-btn.phone {
  border: 1.5px solid var(--grey-light);
  color: var(--black);
}
.team-contact-btn.phone:hover {
  border-color: var(--gold);
  color: var(--gold-dim);
}

.team-contact-btn.whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
}
.team-contact-btn.whatsapp:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

/* =========================================================
   FAQ ACCORDION SECTION
   ========================================================= */

.faq-section {
  padding: clamp(90px, 10vw, 140px) 0;
  background: var(--off-white);
}

.faq-list {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  overflow: hidden;
}

.faq-item:first-child {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
  transition: color 0.25s ease;
  gap: 24px;
}

.faq-trigger:hover {
  color: var(--gold-dim);
}

.faq-item.open .faq-trigger {
  color: var(--gold-dim);
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--grey);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 300;
  line-height: 1;
}

.faq-item.open .faq-icon {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0;
}

.faq-item.open .faq-body {
  max-height: 400px;
  padding-bottom: 28px;
}

.faq-body p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--grey);
  max-width: 760px;
}

/* =========================================================
   SERVICE AREA / LOCATION VISUAL BLOCK
   ========================================================= */

.service-area-section {
  background: var(--black);
  padding: clamp(90px, 10vw, 140px) 0;
  color: var(--white);
}

.service-area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}

.service-area-map {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 48px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-area-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(212,175,55,0.08) 0%, transparent 70%);
}

.nyc-map-visual {
  position: relative;
  text-align: center;
  z-index: 1;
}

.map-pin-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
}

.map-pin-ring::before,
.map-pin-ring::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  animation: mapRingPulse 3s ease infinite;
}

.map-pin-ring::before {
  inset: 0;
  animation-delay: 0s;
}

.map-pin-ring::after {
  inset: -20px;
  animation-delay: 1s;
}

@keyframes mapRingPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.15; transform: scale(1.08); }
}

.map-pin-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--gold);
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.5);
}

.map-pin-center::after {
  content: '';
  width: 14px;
  height: 14px;
  background: var(--black);
  border-radius: 50%;
  rotate: 45deg;
}

.map-city-label {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}

.map-city-sub {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
}

.service-area-boroughs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.borough-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: default;
}

.borough-item:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
  transform: translateX(6px);
}

.borough-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.borough-dot.primary {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.borough-name {
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
  font-family: var(--font-display);
}

.borough-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

/* =========================================================
   CONTACT FORM — FLOATING LABELS
   ========================================================= */

.contact-grid-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.4fr);
  gap: 50px;
  align-items: start;
}

.info-card-block {
  background: var(--charcoal, #0E241B);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 28px;
  border-radius: 6px;
  color: var(--white, #ffffff);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.info-card-block:hover {
  border-color: var(--gold, #D4AF37);
  transform: translateY(-2px);
}

.btn-whatsapp-direct {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: #FFFFFF !important;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  margin-top: 6px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-direct:hover {
  background-color: #1EBE5D;
  transform: translateY(-2px);
  color: #FFFFFF !important;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

/* Floating label form fields */
.form-field {
  position: relative;
  margin-bottom: 24px;
}

.form-field label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--grey);
  transition: all 0.25s ease;
  pointer-events: none;
  background: transparent;
  z-index: 1;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--grey-light);
  border-radius: 6px;
  padding: 22px 16px 10px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  background: var(--white);
}

.form-field select {
  padding: 16px;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A9D93' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-field input:focus ~ label,
.form-field input:not(:placeholder-shown) ~ label,
.form-field textarea:focus ~ label,
.form-field textarea:not(:placeholder-shown) ~ label {
  top: 6px;
  font-size: 0.72rem;
  color: var(--gold-dim);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.form-success-message {
  display: none;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #1EBE5D;
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 16px;
  align-items: center;
  gap: 10px;
}

.form-success-message.visible {
  display: flex;
}

/* =========================================================
   COMPLETE MOBILE HORIZONTAL OVERFLOW & HEADER RESPONSIVENESS
   ========================================================= */

/* 1. Viewport bounds on root containers */
html, body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 2. Prevent flex and grid children from stretching beyond viewport */
*, *::before, *::after {
  box-sizing: border-box !important;
}

/* 3. Responsive container adjustments */
.wrap, 
.section, 
.top-bar, 
footer {
  max-width: 100vw !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

/* 4. Responsive Breakpoints for Mobile Navigation & Header */
@media (max-width: 1024px) {
  .hero, .hero-video-section { min-height: max(100vh, 600px); }
  .project-types-accordion { height: 480px; }
  .type-card-expanded { padding: 28px; }
  .testimonials-carousel { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .service-area-grid { gap: 40px; }
}

@media (max-width: 768px) {
  /* Fix sticky header bug on mobile */
  .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
  }

  .hero, .hero-video-section { min-height: max(100vh, 550px); }
  .hero-inner {
    padding-top: 110px !important;
    padding-bottom: 80px !important;
  }
  .top-bar { display: none; }
  .hero-meta { display: none; }
  .header-wrap { 
    height: 72px; 
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Hide heavy CTA button in mobile header to give room for logo + menu button */
  .header-actions .header-btn {
    display: none !important;
  }

  .logo {
    gap: 8px !important;
    max-width: 70% !important;
  }

  .logo-img {
    height: 36px !important;
    width: auto !important;
  }

  .brand-name-text {
    font-size: 0.95rem !important;
    white-space: nowrap !important;
  }

  .brand-name-text span {
    font-size: 0.85rem !important;
  }

  nav.main-nav { display: none; }
  nav.main-nav.open {
    display: block !important;
    position: fixed !important;
    top: 72px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    overflow-y: auto !important;
    background: rgba(10, 27, 20, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    padding: 36px var(--edge) !important;
    z-index: 9999 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
  }
  nav.main-nav.open ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  nav.main-nav.open li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    animation: mobileNavItem 0.4s ease forwards;
    opacity: 0;
  }
  nav.main-nav.open li:nth-child(1) { animation-delay: 0.05s; }
  nav.main-nav.open li:nth-child(2) { animation-delay: 0.1s; }
  nav.main-nav.open li:nth-child(3) { animation-delay: 0.15s; }
  nav.main-nav.open li:nth-child(4) { animation-delay: 0.2s; }
  nav.main-nav.open li:nth-child(5) { animation-delay: 0.25s; }
  nav.main-nav.open li:nth-child(6) { animation-delay: 0.3s; }

  @keyframes mobileNavItem {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: none; }
  }

  nav.main-nav.open a { color: var(--white); font-size: 1.15rem; padding: 20px 0; display: block; }
  nav.main-nav.open a::after { display: none; }
  .mobile-toggle {
    display: flex !important;
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  
  .section-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    margin-bottom: 32px !important;
  }

  .section-head p {
    max-width: 100% !important;
    font-size: 0.98rem !important;
    line-height: 1.65 !important;
  }

  .tiles { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card, .project-card.wide, .project-card.narrow { grid-column: span 1; aspect-ratio: 16/10; }
  .footer-grid { grid-template-columns: 1fr; }
  
  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .process-item { grid-template-columns: 1fr; gap: 16px; }
  .process-image { width: 100%; height: 200px; }
  .principle { grid-template-columns: 1fr; gap: 16px; }
  .principle-image { width: 100%; height: 200px; }
  .mega-menu { display: none !important; }

  .project-types-accordion { flex-direction: column; height: auto; gap: 16px; }
  .type-card { height: 320px; flex: none !important; }
  .type-card.active { height: 380px; }
  .why-block { flex: 0 0 300px; min-height: 380px; }
  .ba-slider { height: 360px; }

  .testimonials-carousel { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .service-area-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid-layout { grid-template-columns: 1fr; gap: 40px; }

  .cursor-dot, .cursor-ring { display: none !important; }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    padding: 0 15px !important;
  }
  
  .stat {
    border: none !important;
    text-align: center !important;
  }

  .project-types-accordion,
  .why-blackridge-grid,
  .services-scroll-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .type-card {
    width: 100% !important;
    min-width: 0 !important;
  }

  .testimonials-carousel { gap: 20px; }
}

@media (max-width: 480px) {
  .logo { max-width: 75% !important; gap: 6px !important; }
  .logo-img { height: 32px !important; }
  .brand-name-text { font-size: 0.88rem !important; }
  .brand-name-text span { font-size: 0.78rem !important; }
  .type-card-expanded { padding: 20px; }
  .type-card-head h3 { font-size: 1.4rem; }
  .why-block { flex: 0 0 280px; }
  .team-card-name { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-animate { opacity: 1; transform: none; }
  #pageLoader { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
}