/* OAN USA Plumbing - Modern Midnight Navy + Electric Cobalt + Copper Theme */
:root {
  --navy: #0B1F3A;
  --navy-deep: #071427;
  --cobalt: #1D4ED8;
  --cobalt-dark: #1E40AF;
  --copper: #EA580C;
  --copper-hover: #C2410C;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-tint: #EFF6FF;
  --text: #0F172A;
  --text-muted: #475569;
  --border: #E2E8F0;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(11, 31, 58, 0.08);
  --shadow-md: 0 12px 32px -8px rgba(11, 31, 58, 0.16);
  --font-head: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.22;
  margin-top: 0;
}
h1 { font-size: clamp(1.95rem, 3.8vw, 2.95rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 2.5vw, 2.05rem); font-weight: 700; margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
p { margin: 0 0 1rem; color: var(--text-muted); }
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code, .mono { font-family: var(--font-mono); font-size: 0.9em; }

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  position: fixed; left: 12px; top: 12px; z-index: 9999;
  background: var(--copper); color: #fff; padding: 8px 14px; border-radius: 6px;
}

/* Top Dispatch Strip */
.top-dispatch-bar {
  background: var(--navy-deep);
  color: #CBD5E1;
  font-size: 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.top-bar-links { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.top-bar-links a { color: #E2E8F0; font-weight: 500; }
.top-bar-phone { color: #FDBA74 !important; font-weight: 700 !important; }

/* Header & Navigation */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(11, 31, 58, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Transparent Header over Video Hero on Homepage */
body.is-home .site-header {
  position: fixed; left: 0; right: 0; top: 0;
  background: rgba(7, 20, 39, 0.18);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
body.is-home .site-header.scrolled {
  background: rgba(11, 31, 58, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(7, 20, 39, 0.28);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  min-height: 74px;
}
.brand-logo {
  display: inline-flex; align-items: center; gap: 0.7rem; color: #fff; text-decoration: none;
}
.brand-logo:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--copper), #F97316);
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 0.95rem;
  letter-spacing: 0.03em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.05rem; color: #fff; }
.brand-text small { font-size: 0.72rem; color: #CBD5E1; letter-spacing: 0.03em; }

.main-nav { display: flex; align-items: center; gap: 1.35rem; }
.nav-link, .has-dropdown > a {
  color: #F1F5F9; font-weight: 600; font-size: 0.93rem; padding: 0.5rem 0;
}
.nav-link:hover, .has-dropdown > a:hover { color: #fff; text-decoration: none; }

.has-dropdown { position: relative; }
.nav-dropdown {
  display: none;
  position: absolute; top: 100%; left: 0; min-width: 245px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-md); padding: 0.5rem; z-index: 1001;
}
.has-dropdown:hover .nav-dropdown, .has-dropdown:focus-within .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: 0.5rem 0.75rem; border-radius: 6px;
  color: var(--text); font-size: 0.9rem; font-weight: 500;
}
.nav-dropdown a:hover { background: var(--bg-soft); color: var(--cobalt); text-decoration: none; }
.nav-dropdown .dropdown-all {
  border-top: 1px solid var(--border); margin-top: 0.35rem; padding-top: 0.65rem;
  color: var(--cobalt); font-weight: 700;
}

.header-actions { display: flex; align-items: center; gap: 0.65rem; }
.mobile-toggle {
  display: none; background: transparent; border: 1px solid rgba(255,255,255,0.35);
  border-radius: 8px; padding: 8px; cursor: pointer;
}
.mobile-toggle span {
  display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  font-family: var(--font-head); font-weight: 700; border-radius: 9px;
  padding: 0.78rem 1.35rem; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.88rem; }
.btn-lg { padding: 0.92rem 1.6rem; font-size: 1rem; }
.btn-accent { background: var(--copper); color: #fff; }
.btn-accent:hover { background: var(--copper-hover); }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-dark); }
.btn-white { background: #fff; color: var(--navy); }
.btn-outline-light { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255,255,255,0.42); }
.btn-outline-dark { background: #fff; color: var(--navy); border-color: var(--border); }

/* Breadcrumbs */
.breadcrumb-strip {
  background: var(--bg-soft); border-bottom: 1px solid var(--border);
  padding: 0.6rem 0; font-size: 0.86rem; color: var(--text-muted);
}
.breadcrumbs a { color: var(--cobalt); font-weight: 500; }
.breadcrumbs .sep { margin: 0 0.4rem; color: #94A3B8; }

/* Hero + Transparent Video Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top right, #163B70 0%, var(--navy) 58%, var(--navy-deep) 100%);
  color: #fff;
  padding: clamp(2.75rem, 5vw, 4.5rem) 0;
}
.hero-transparent {
  background: transparent;
  min-height: clamp(580px, 84vh, 760px);
  display: flex;
  align-items: center;
  padding-top: 6.5rem;
  padding-bottom: 3.5rem;
}
.hero-has-bg {
  background: var(--navy-deep);
}
.hero-bg-video,
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(125deg, rgba(7, 20, 39, 0.56) 0%, rgba(11, 31, 58, 0.36) 55%, rgba(7, 20, 39, 0.52) 100%);
}
.hero > .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; margin-bottom: 0.9rem; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); }
.hero p { color: #F1F5F9; font-size: 1.07rem; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.38); }
.hero-grid {
  display: grid; grid-template-columns: 1.35fr 0.95fr; gap: 2.25rem; align-items: center;
}
.hero-badge {
  display: inline-block; background: rgba(234, 88, 12, 0.24); color: #FED7AA;
  border: 1px solid rgba(253, 186, 116, 0.45); border-radius: 999px;
  padding: 0.3rem 0.85rem; font-size: 0.82rem; font-weight: 700; margin-bottom: 1rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 1.5rem 0 1.25rem; }
.trust-pills {
  display: flex; flex-wrap: wrap; gap: 0.65rem; list-style: none; padding: 0; margin: 0;
}
.trust-pills li {
  background: rgba(255,255,255,0.12); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.22);
  color: #F8FAFC; border-radius: 8px; padding: 0.4rem 0.75rem; font-size: 0.84rem; font-weight: 500;
}

.hero-card {
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px);
  color: var(--text); border-radius: 16px;
  padding: 1.6rem; box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.hero-card h2 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.hero-card p { font-size: 0.92rem; margin-bottom: 1rem; color: var(--text-muted); }

/* Form controls */
.form-group { margin-bottom: 0.85rem; }
.form-group label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; }
.form-control {
  width: 100%; padding: 0.68rem 0.85rem; border: 1px solid #CBD5E1; border-radius: 8px;
  font-family: var(--font-body); font-size: 0.95rem; background: #fff; color: var(--text);
}
.form-control:focus { outline: 2px solid var(--cobalt); border-color: var(--cobalt); }

/* Sections & Cards */
.section { padding: clamp(2.5rem, 4.5vw, 4rem) 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { max-width: 780px; margin-bottom: 2rem; }
.section-kicker {
  display: inline-block; color: var(--copper); font-family: var(--font-head);
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: space-between;
}
.card-media { padding: 0; overflow: hidden; }
.card-media .card-body { padding: 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.card-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--border); }
.card-link {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.card-link:hover {
  border-color: var(--cobalt); box-shadow: var(--shadow-md); transform: translateY(-2px);
}
.card-meta { font-size: 0.84rem; color: var(--cobalt); font-weight: 600; margin-top: 0.75rem; }

/* Feature Media Frames */
.media-frame {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.media-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-caption {
  padding: 0.75rem 1rem; font-size: 0.85rem; color: var(--text-muted);
  background: var(--bg-soft); border-top: 1px solid var(--border);
}

/* Local Geo-Radius Map SVG Card */
.geo-map-card {
  background: #0B1F3A; color: #fff; border-radius: var(--radius);
  padding: 1.25rem; border: 1px solid rgba(255,255,255,0.12);
}
.geo-map-card svg { width: 100%; height: auto; display: block; border-radius: 8px; }

/* GEO Direct-Answer Callout */
.geo-answer-box {
  background: var(--bg-tint); border-left: 4px solid var(--cobalt);
  border-radius: 0 10px 10px 0; padding: 1.15rem 1.35rem; margin: 1.25rem 0;
}
.geo-answer-box strong { color: var(--navy); }
.geo-answer-box p { margin: 0; color: var(--text); font-weight: 500; }

/* Warning Alert Box */
.shutoff-box {
  background: #FFF7ED; border: 1px solid #FED7AA; border-left: 4px solid var(--copper);
  border-radius: 10px; padding: 1.15rem 1.35rem; margin: 1.25rem 0;
}
.shutoff-box h3 { color: #9A3412; margin-bottom: 0.35rem; }
.shutoff-box p { margin: 0; color: #7C2D12; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.94rem; }
table.data-table th {
  background: var(--navy); color: #fff; font-family: var(--font-head);
  padding: 0.85rem 1rem; font-weight: 700;
}
table.data-table td { padding: 0.8rem 1rem; border-top: 1px solid var(--border); vertical-align: top; }
table.data-table tr:nth-child(even) td { background: var(--bg-soft); }

/* Lists & Tags */
.check-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.check-list li {
  position: relative; padding-left: 1.55rem; margin-bottom: 0.6rem; color: var(--text);
}
.check-list li::before {
  content: ">"; position: absolute; left: 0; top: 0;
  color: var(--copper); font-weight: 800; font-family: var(--font-mono);
}

.chip-grid { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 0.45rem 0.95rem; font-size: 0.9rem; font-weight: 600; color: var(--navy);
}
.chip:hover { border-color: var(--cobalt); color: var(--cobalt); text-decoration: none; }
.chip small { color: var(--text-muted); font-weight: 500; }

/* FAQ Accordion */
.faq-list { display: grid; gap: 0.85rem; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.faq-btn {
  width: 100%; text-align: left; background: #fff; border: 0; padding: 1.1rem 1.25rem;
  font-family: var(--font-head); font-size: 1.03rem; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer;
}
.faq-btn:hover { background: var(--bg-soft); }
.faq-panel { padding: 0 1.25rem 1.1rem; color: var(--text-muted); }

/* CTA Banner & Footer */
.cta-banner {
  background: linear-gradient(120deg, var(--navy) 0%, #173A6E 100%);
  color: #fff; padding: 2.75rem 0;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.35rem; }
.cta-banner p { color: #CBD5E1; margin: 0; }
.cta-banner-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.cta-banner-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.site-footer {
  background: var(--navy-deep); color: #CBD5E1; padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 0.85rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; font-size: 0.92rem; }
.site-footer a { color: #CBD5E1; }
.site-footer a:hover { color: #fff; }
.footer-contact { font-size: 0.92rem; color: #94A3B8; margin-top: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.15rem;
  font-size: 0.85rem; color: #94A3B8;
}
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }

/* Mobile Sticky Bar */
.mobile-sticky-bar { display: none; }

@media (max-width: 960px) {
  .hero-grid, .grid-3, .grid-4, .footer-grid, .grid-2 { grid-template-columns: 1fr; }
  .hero-transparent { min-height: auto; padding-top: 6rem; }
  .main-nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--navy-deep); flex-direction: column; align-items: flex-start;
    padding: 1rem 4%; border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .main-nav.open { display: flex; }
  .nav-dropdown { position: static; box-shadow: none; width: 100%; margin-top: 0.4rem; }
  .mobile-toggle { display: block; }
  .hide-mobile { display: none; }
  .mobile-sticky-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1200;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
  }
  .mobile-sticky-bar a {
    text-align: center; padding: 0.9rem 0.5rem; font-family: var(--font-head); font-weight: 800;
    color: #fff; text-decoration: none;
  }
  .sticky-call { background: var(--copper); }
  .sticky-book { background: var(--cobalt); }
  body { padding-bottom: 54px; }
}
