/* ─────────────────────────────────────────
   BACKFLOW SERVICES VA — Global Stylesheet
   ───────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0b1f3a;
  --navy2:   #112847;
  --copper:  #c8813a;
  --copper2: #e09a50;
  --cream:   #f5f0e8;
  --white:   #ffffff;
  --gray:    #6b7280;
  --light:   #f9f7f4;
  --text:    #1a2a3a;
  --border:  rgba(200,129,58,0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

/* ── UTILITY ── */
.max-w {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────────────────────
   NAVBAR
   ───────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11,31,58,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,129,58,0.2);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  transition: box-shadow 0.3s;
}
nav.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--white);
  line-height: 1.1;
}
.nav-logo-text span {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: var(--copper2);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--copper2); }
.nav-links a.active { color: var(--copper2); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--copper);
  border-radius: 2px;
}

.nav-cta {
  background: var(--copper) !important;
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--copper2) !important; }
.nav-cta.active::after { display: none !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--navy);
  border-bottom: 1px solid rgba(200,129,58,0.2);
  padding: 20px 24px 28px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover, .nav-mobile a.active { color: var(--copper2); }
.nav-mobile .nav-cta {
  margin-top: 12px;
  background: var(--copper) !important;
  padding: 13px 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700 !important;
}

/* ─────────────────────────────────────────
   PAGE HERO (inner pages)
   ───────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 130px 40px 80px;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(200,129,58,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 30% 40% at 10% 80%, rgba(17,40,71,0.8) 0%, transparent 60%);
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,129,58,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,129,58,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}
.page-hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-hero-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--copper);
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 20px;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--copper);
}
.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  max-width: 580px;
  font-weight: 300;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
}
.breadcrumb a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--copper2); }
.breadcrumb span { color: rgba(255,255,255,0.25); }

/* ─────────────────────────────────────────
   SECTION COMMONS
   ───────────────────────────────────────── */
section { padding: 100px 40px; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 20px;
}
.section-desc {
  font-size: 17px;
  color: var(--gray);
  line-height: 1.75;
  max-width: 560px;
}
.section-header { margin-bottom: 64px; }
.section-header.centered {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 64px;
}
.section-header.centered .section-desc { margin: 0 auto; }

/* ─────────────────────────────────────────
   TRUST BAR
   ───────────────────────────────────────── */
.trust-bar {
  background: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.trust-icon { font-size: 18px; color: var(--copper); }

/* ─────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────── */
.btn-primary {
  background: var(--copper);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { background: var(--copper2); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 16px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
}
.btn-outline:hover { border-color: var(--copper); background: rgba(200,129,58,0.1); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
}
.btn-dark:hover { background: var(--copper); }

/* ─────────────────────────────────────────
   SERVICE CARDS (shared)
   ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
}
.service-card {
  background: var(--white);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s;
  border: 1px solid rgba(0,0,0,0.06);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  background: rgba(200,129,58,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 24px;
}
.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
.service-card p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-list li::before {
  content: '✓';
  color: var(--copper);
  font-weight: 700;
  font-size: 12px;
}

/* ─────────────────────────────────────────
   EMERGENCY BANNER
   ───────────────────────────────────────── */
.emergency-banner {
  background: var(--copper);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}
.emergency-banner p {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}
.emergency-banner a {
  background: var(--white);
  color: var(--copper);
  padding: 10px 28px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.emergency-banner a:hover { opacity: 0.9; }

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 64px 40px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
  display: block;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--copper2); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--copper2); }
.footer-bottom-links { display: flex; gap: 24px; }

/* ─────────────────────────────────────────
   COMPLIANCE CARDS
   ───────────────────────────────────────── */
.compliance-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 40px;
}
.compliance-card h3 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 16px;
}
.compliance-card p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 24px;
}
.compliance-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compliance-hl {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.compliance-hl-icon {
  width: 32px; height: 32px;
  background: rgba(200,129,58,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.warning-box {
  background: rgba(200,129,58,0.08);
  border: 1.5px solid rgba(200,129,58,0.3);
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
}
.warning-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.warning-box p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  margin: 0;
}

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  section { padding: 72px 24px; }
  .page-hero { padding: 110px 24px 64px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .trust-bar { gap: 24px; padding: 16px 20px; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .emergency-banner { padding: 16px 20px; }
  .emergency-banner p { font-size: 14px; }
}
