/* ============================================
   A1 Drainage Solutions — site components
   Drainix-inspired: video hero, floating dark
   nav, floating lead bar, photo service cards,
   navy CTA band, giant-wordmark footer.
============================================ */

/* ---------- Logo ---------- */
.logo-mark { width: 44px; height: 44px; flex-shrink: 0; object-fit: contain; }
.logo-lockup { display: inline-flex; align-items: center; gap: 11px; }
.logo-wm { display: flex; flex-direction: column; line-height: 1; }
.logo-a1 { font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.logo-a1 b { color: var(--blue-soft); font-weight: 800; }
.logo-sub { font-size: 9px; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; margin-top: 3px; opacity: .8; }
.footer-logo-img { width: 132px; height: auto; display: block; margin-bottom: 18px; }

/* ---------- Buttons (extra variants) ---------- */
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-white:hover svg { transform: translateX(4px); }
.btn-navy { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-navy:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn svg { transition: transform .3s var(--ease); }
/* primary buttons: white text on blue, darken on hover */
.btn-primary { color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); }

/* phone pill used in headers */
.phone-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 15px;
  padding: 12px 22px; border-radius: var(--radius-btn);
  box-shadow: 0 10px 28px -10px rgba(31,99,255,.7);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.phone-pill:hover { transform: translateY(-2px); background: var(--blue-deep); }
.phone-pill svg { width: 16px; height: 16px; }

/* ---------- Floating dark nav ----------
   NB: no transform / backdrop-filter on .nav itself — both create a
   containing block that would trap the mobile drawer's position:fixed.
   The glass sits on .nav::before instead. */
.nav {
  position: fixed; top: 16px; left: 0; right: 0; margin-inline: auto;
  max-width: 1320px; width: calc(100% - 28px);
  background: transparent; border: none;
  border-radius: 20px; padding: 12px 14px 12px 22px;
  box-shadow: 0 18px 50px -22px rgba(0,0,0,.7);
  transition: box-shadow .3s var(--ease), top .3s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(11,28,56,.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid rgba(255,255,255,.12);
  transition: background .3s var(--ease);
}
.nav.scrolled { top: 10px; box-shadow: 0 14px 40px -18px rgba(0,0,0,.8); }
.nav.scrolled::before { background: rgba(8,20,43,.94); }
.nav .logo-a1, .nav .logo-sub { color: #fff; }
.nav-links a { color: rgba(255,255,255,.86); font-weight: 600; }
.nav-links a:hover { color: #fff; }
.nav-links a::after { background: var(--blue-soft); }
.nav-phone { color: #fff; }
.nav-phone svg { color: var(--blue-soft); }
.nav-cta { background: var(--blue); color: #fff; padding: 12px 22px; box-shadow: 0 10px 26px -10px rgba(31,99,255,.7); }
.nav-cta:hover { background: #fff; color: var(--ink); }
.nav-toggle span { background: #fff; }

/* ---------- Nav Services dropdown (compact, dark) ---------- */
.nav-links .has-mega { position: relative; }
.nav-links .has-mega > a .caret { display: inline-block; margin-left: 5px; font-size: 9px; transition: transform .2s var(--ease); }
.nav-links .has-mega:hover > a .caret, .nav-links .has-mega.open > a .caret { transform: rotate(180deg); }
.nav .mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 260px; max-width: none; width: max-content;
  background: rgba(11,28,56,.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 8px;
  box-shadow: 0 26px 60px -20px rgba(0,0,0,.7);
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .22s var(--ease); z-index: 120;
}
.nav .mega::before { display: none; }
.nav .has-mega:hover > .mega, .nav .has-mega.open > .mega, .nav .has-mega:focus-within > .mega {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav .mega a {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 11px;
  color: rgba(255,255,255,.88); font-size: 14.5px; font-weight: 600; white-space: nowrap;
}
.nav .mega a:hover { background: rgba(31,99,255,.18); color: #fff; }
.nav .mega a svg { width: 17px; height: 17px; color: var(--blue-soft); flex-shrink: 0; }
.nav .mega a::after { display: none; }

/* ---------- Hero (video) ---------- */
.hero {
  position: relative; min-height: min(100vh, 880px);
  display: flex; align-items: center; color: #fff; overflow: hidden;
  padding: 150px 0 200px;
}
.hero-video { position: absolute; inset: 0; z-index: 0; }
.hero-video video, .hero-video img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-tint {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(7,16,38,.92) 0%, rgba(7,16,38,.7) 38%, rgba(7,16,38,.28) 70%, rgba(7,16,38,.45) 100%),
    linear-gradient(0deg, rgba(7,16,38,.96) 2%, rgba(7,16,38,0) 42%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.hero-copy { max-width: 720px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
  padding: 8px 16px; border-radius: var(--radius-btn);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.hero-pill .pulse { box-shadow: 0 0 0 0 rgba(31,99,255,.7); }
.hero-title { font-size: clamp(40px, 6.4vw, 78px); font-weight: 800; line-height: 1.03; letter-spacing: -0.035em; margin-bottom: 22px; }
.hero-title .accent { color: var(--blue-soft); }
.hero-sub { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 32px; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trustline { display: flex; gap: 10px 26px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.8); }
.hero-trustline span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trustline svg { width: 16px; height: 16px; color: var(--blue-soft); }

/* ---------- Floating lead bar ---------- */
.leadbar-wrap { position: relative; z-index: 5; margin-top: -78px; }
.leadbar {
  max-width: var(--container-max); margin: 0 auto; width: calc(100% - 2 * var(--container-pad));
  background: #fff; border-radius: 20px; padding: 22px 24px;
  box-shadow: 0 40px 80px -34px rgba(7,16,38,.5); border: 1px solid var(--grey-200);
}
.leadbar-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.leadbar-head strong { font-size: 17px; font-weight: 800; color: var(--ink); }
.leadbar-head span { font-size: 13.5px; color: var(--grey-500); }
.leadbar form { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: stretch; }
.leadbar input, .leadbar select {
  font-family: inherit; font-size: 14.5px; color: var(--ink); background: var(--grey-100);
  border: 1.5px solid var(--grey-200); border-radius: 12px; padding: 14px 15px; width: 100%;
  transition: border-color .2s, background .2s;
}
.leadbar input:focus, .leadbar select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(31,99,255,.1); }
.leadbar .btn { white-space: nowrap; }
.leadbar .iq-done { display: none; }
.leadbar .iq-done.show { display: flex; align-items: center; gap: 12px; padding: 6px 2px; color: var(--ink); font-weight: 600; }
.leadbar .iq-done svg { width: 30px; height: 30px; flex-shrink: 0; }

/* ---------- Section header (left-anchored) ---------- */
.head-left { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.head-left .head-main { max-width: 720px; }
.kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.head-left h2 { font-size: clamp(30px, 3.6vw, 50px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; color: var(--ink); }
.head-left h2 .accent { color: var(--blue); }
.head-left p { margin-top: 14px; font-size: 16px; color: var(--grey-500); max-width: 560px; }

/* ---------- Photo service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--grey-200);
  border-radius: 18px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.svc:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(7,16,38,.4); border-color: transparent; }
.svc-photo { position: relative; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(160deg, var(--blue-deep), var(--ink)); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.svc:hover .svc-photo img { transform: scale(1.06); }
/* subtle bottom wash for tag legibility + brand cohesion (Drainix keeps photos natural) */
.svc-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,16,38,0) 55%, rgba(7,16,38,.42) 100%); }
/* stock-photo cards get a light blue tint so they sit with the real photos */
.svc-photo.tint img { mix-blend-mode: luminosity; opacity: .92; }
.svc-photo.tint { background: linear-gradient(160deg, var(--blue-deep), var(--ink)); }
.svc-tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: rgba(31,99,255,.9); padding: 6px 11px; border-radius: 40px; }
.svc-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 10px; }
.svc-arrow { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grey-100); color: var(--blue); transition: all .3s var(--ease); }
.svc:hover .svc-arrow { background: var(--blue); color: #fff; transform: rotate(45deg); }
.svc-body p { font-size: 14.5px; color: var(--grey-500); line-height: 1.55; }

/* ---------- Why / split with van photo ---------- */
.why { background: var(--paper); padding: clamp(64px, 9vw, 120px) 0; }
.why .btn-primary { margin-top: 4px; }
@media (max-width: 880px){ .why { padding-bottom: clamp(56px, 12vw, 96px); } }
.why-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px,5vw,64px); align-items: center; }
.why-visual { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -34px rgba(7,16,38,.45); aspect-ratio: 4 / 3; }
.why-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 880px){ .why-visual { aspect-ratio: 16 / 10; } }
.why-visual .vchip {
  position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px;
  background: rgba(11,28,56,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14);
}
.why-visual .vchip strong { font-size: 26px; font-weight: 800; line-height: 1; }
.why-visual .vchip span { font-size: 12.5px; color: rgba(255,255,255,.8); }
.why-list { display: grid; gap: 18px; margin: 26px 0 30px; }
.why-list li { display: flex; gap: 14px; }
.why-ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(31,99,255,.1); color: var(--blue); }
.why-ic svg { width: 22px; height: 22px; }
.why-list strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 3px; }
.why-list p { font-size: 14.5px; color: var(--grey-500); line-height: 1.5; }

/* ---------- Stats band ---------- */
.statband { background: var(--ink); color: #fff; }
.statband .container { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; padding-top: 54px; padding-bottom: 54px; }
.statband .s { text-align: center; border-left: 1px solid rgba(255,255,255,.1); padding: 4px 10px; }
.statband .s:first-child { border-left: none; }
.statband .s strong { display: block; font-size: clamp(34px,4vw,48px); font-weight: 800; letter-spacing: -.03em; color: var(--blue-soft); }
.statband .s span { font-size: 13.5px; color: rgba(255,255,255,.72); }
@media (max-width: 720px){ .statband .container { grid-template-columns: 1fr 1fr; } .statband .s:nth-child(3){border-left:none} }

/* ---------- CTA band over photo ---------- */
.ctaband { position: relative; overflow: hidden; border-radius: 0; color: #fff; }
.ctaband-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; text-align: center; padding: clamp(60px,9vw,110px) var(--container-pad); }
.ctaband-bg { position: absolute; inset: 0; z-index: 0; }
.ctaband-bg img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .5; }
.ctaband::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(20,80,216,.92), rgba(7,16,38,.92)); }
.ctaband h2 { font-size: clamp(30px,4.4vw,54px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 16px; }
.ctaband p { font-size: 17px; color: rgba(255,255,255,.85); margin-bottom: 30px; }
.ctaband .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer giant wordmark ---------- */
.footer .footer-bigword {
  font-size: clamp(64px, 17vw, 260px); font-weight: 800; letter-spacing: -0.05em; line-height: .82;
  color: rgba(255,255,255,.06); margin: 40px 0 8px; user-select: none; white-space: nowrap; overflow: hidden;
}
.footer .logo-a1, .footer .logo-sub { color: #fff; }

/* "Get a free quote" button inside the mobile drawer (hidden on desktop) */
.nav-drawer-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px){
  /* show hamburger as soon as the inline links hide */
  .nav-toggle { display: flex; }
  /* phone becomes the always-visible CTA in the sticky bar; quote moves to the drawer */
  .nav-actions .nav-cta { display: none; }
  .nav-phone {
    display: inline-flex; background: var(--blue); color: #fff;
    padding: 10px 16px; border-radius: var(--radius-btn); font-weight: 800; font-size: 14px;
    box-shadow: 0 8px 22px -10px rgba(31,99,255,.8);
  }
  .nav-phone svg { color: #fff; }
  /* dark floating drawer under the nav pill (overrides base light drawer) */
  body.nav-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; inset: 86px 14px auto 14px; margin: 0;
    max-height: calc(100vh - 104px); overflow-y: auto;
    padding: 14px; border-radius: 18px;
    background: rgba(8,20,43,.98);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); z-index: 60; align-items: stretch;
  }
  body.nav-open .nav-links a { color: #fff; padding: 14px 8px; font-size: 18px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.08); }
  body.nav-open .nav-links a::after { display: none; }
  body.nav-open .nav-links .has-mega .mega { position: static; opacity: 1; pointer-events: auto; transform: none; background: transparent; border: none; box-shadow: none; padding: 4px 0 4px 14px; min-width: 0; }
  body.nav-open .nav-links .has-mega .mega a { font-size: 15px; font-weight: 600; border-bottom: none; padding: 10px 8px; }
  /* drawer CTA button */
  body.nav-open .nav-links .nav-drawer-cta { display: block; padding: 0; margin-top: 14px; }
  body.nav-open .nav-links .nav-drawer-cta a {
    display: flex; justify-content: center; align-items: center; gap: 8px;
    border: none; border-radius: var(--radius-btn); background: var(--blue); color: #fff;
    font-size: 16px; font-weight: 800; padding: 16px;
  }
  body.nav-open .nav-links .nav-drawer-cta a:hover { background: var(--blue-deep); }
}
/* very small screens: keep the bar from crowding */
@media (max-width: 380px){
  .nav { padding-left: 16px; }
  .nav-phone { padding: 9px 13px; font-size: 13px; }
}
@media (max-width: 880px){
  .leadbar form { grid-template-columns: 1fr 1fr; }
  .leadbar .btn { grid-column: 1 / -1; justify-content: center; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { order: -1; }
}
@media (max-width: 600px){
  .hero { padding: 130px 0 170px; }
  .leadbar form { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
}
