/* Miami Water Extraction — shared styles for legal & contact pages
   Navy + Orange theme matching new homepage */

:root {
  --navy-900:  #0d1b2e;
  --navy-800:  #122438;
  --navy-700:  #1a2e47;
  --navy-600:  #233b58;
  --navy-card: #1a2e47;
  --blue:    #1e88e5;
  --blue-dk: #1565c0;
  --white:     #ffffff;
  --off-white: #e8edf3;
  --muted:     #8c9bb0;
  --line:      rgba(255,255,255,0.10);

  --display: "Oswald", "Helvetica Neue", Arial, sans-serif;
  --body:    "Open Sans", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1200px;
  --content-maxw: 760px;
  --gutter: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute; top: -40px; left: 12px;
  background: var(--blue); color: var(--white);
  padding: 10px 16px; border-radius: 6px;
  z-index: 100; font-weight: 600; font-size: 14px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

.topbar {
  background: var(--navy-900);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 0;
}

/* Main navigation links (between brand and phone) */
.nav-links {
  display: flex; align-items: center; gap: 24px;
  list-style: none; margin: 0; padding: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--white);
  transition: color 0.15s ease;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.has-caret::after {
  content: " ▾"; font-size: 10px; color: var(--muted);
}
.menu-toggle {
  display: none;
  background: transparent; border: 0;
  color: var(--white);
  font-size: 24px;
  padding: 8px;
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-800);
    padding: 18px 24px;
    gap: 14px;
    border-top: 1px solid var(--line);
    z-index: 50;
  }
  .menu-toggle { display: block; }
  .topbar { position: relative; }
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 44px; height: 44px;
  flex-shrink: 0; object-fit: contain;
}
.brand-text {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}
.brand-text .name {
  font-size: 22px; letter-spacing: 0.02em; display: block;
}
.brand-text .sub {
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--off-white); opacity: 0.75;
  font-weight: 500;
  margin-top: 2px; display: block;
}

.top-right { display: flex; align-items: center; gap: 18px; }
.live {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--off-white); opacity: 0.95;
}
.live .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.9);
  animation: pulse 1.6s infinite ease-out;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.phone-top {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}
.phone-top svg { width: 16px; height: 16px; color: var(--blue); }
.phone-top:hover { color: var(--blue); }

.page-hero {
  background: var(--navy-900);
  padding: clamp(20px, 3vw, 40px) 0 0;
}
.page-hero .wrap > .page-hero-card {
  background: var(--navy-800);
  color: var(--white);
  border-radius: 8px;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 56px);
  border: 1px solid var(--line);
}
.page-hero-inner { max-width: 760px; }
.eyebrow {
  font-family: var(--display);
  font-size: 13px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 14px;
}
.page-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 14px;
  color: var(--white);
}
.page-hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.page-hero .lede {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--off-white);
  margin: 0;
  max-width: 580px;
}
.effective {
  margin-top: 22px;
  display: inline-block;
  padding: 6px 14px;
  background: rgba(30, 136, 229, 0.12);
  border: 1px solid rgba(30, 136, 229, 0.3);
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--blue);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.content { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 7vw, 80px); }
.content-inner {
  max-width: var(--content-maxw);
  margin: 0 auto;
}
.content h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 26px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 44px 0 14px;
  color: var(--white);
}
.content h2:first-of-type { margin-top: 0; }
.content h2 .num {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  color: var(--blue);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.content h2 .num::before { content: "§ "; opacity: 0.5; }
.content h2 .heading-text { display: block; }

.content p { margin: 0 0 14px; color: var(--off-white); font-size: 16px; }
.content p.lead { font-size: 17px; color: var(--white); }

.content ul {
  margin: 8px 0 18px;
  padding-left: 0;
  list-style: none;
}
.content ul li {
  position: relative;
  padding: 6px 0 6px 28px;
  color: var(--off-white);
}
.content ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 16px;
  width: 14px; height: 1px;
  background: var(--blue);
}

.content a {
  color: var(--blue);
  border-bottom: 1px solid rgba(30, 136, 229, 0.4);
  font-weight: 500;
}
.content a:hover { color: var(--blue-dk); border-bottom-color: var(--blue-dk); }
.content strong { color: var(--white); font-weight: 600; }

.note {
  background: var(--navy-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  padding: 18px 22px;
  margin: 24px 0;
  color: var(--white);
  font-size: 15px;
}
.note strong { color: var(--blue); }

.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 28px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.15s ease, gap 0.15s ease;
}
.back-link:hover { color: var(--blue); gap: 10px; }
.back-link svg { width: 14px; height: 14px; }

footer {
  background: var(--navy-900);
  color: var(--muted);
  padding: 40px 0 30px;
  font-size: 13.5px;
  border-top: 1px solid var(--line);
}
.foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.foot a:hover { color: var(--blue); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.legal-note {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
}

.mobile-call-bar {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 60;
  background: var(--blue);
  color: var(--white);
  border-radius: 6px;
  padding: 14px 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 14px 30px -8px rgba(30,136,229,0.55);
  text-decoration: none;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 12px));
}
.mobile-call-bar:active { background: var(--blue-dk); transform: scale(0.98); }
.mobile-call-bar svg { width: 18px; height: 18px; flex-shrink: 0; }
.mobile-call-bar .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.9);
  animation: pulse 1.6s infinite ease-out;
  flex-shrink: 0;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .live .dot, .mobile-call-bar .pulse-dot {
    animation: none !important; box-shadow: none !important;
  }
}

@media (max-width: 768px) {
  .page-hero { padding: 44px 0 56px; }
  .content { padding: 48px 0 72px; }
  .content h2 { font-size: 19px; margin: 36px 0 10px; }
  .content p, .content ul li { font-size: 15.5px; }
}

@media (max-width: 1300px) {
  .topbar .live { display: none; }
}

@media (max-width: 640px) {
  .mobile-call-bar { display: flex; }
  body { padding-bottom: 84px; }
  .topbar .live { display: none; }
  .topbar-inner { padding: 12px 0; gap: 10px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-text .name { font-size: 18px; }
  .brand-text .sub { font-size: 9.5px; }
  .phone-top { font-size: 15px; gap: 6px; }
  .phone-top svg { width: 14px; height: 14px; }
  .page-hero h1 { font-size: clamp(28px, 7vw, 36px); }
  .foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .foot-links { gap: 16px; font-size: 13px; }
}

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .brand-text .name { font-size: 16px; }
}

/* ───────── Disclaimer modal (shared across all pages) ───────── */
.gate {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(13, 27, 46, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gate.show { display: flex; opacity: 1; }
.gate.show .gate-card { transform: translateY(0); opacity: 1; }
body.gate-open { overflow: hidden; }

.gate-card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 40px);
  max-width: 540px; width: 100%;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.2,.9,.2,1.1), opacity 0.25s ease 0.05s;
}
.gate-logo {
  display: block; margin: 0 auto 20px;
  width: 64px;
}
.gate-card h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  text-align: center;
  margin: 0 0 18px;
}
.gate-card .body-box {
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 22px;
  color: var(--off-white);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 22px;
}
.gate-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
}
.gate-actions .read-more {
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.gate-actions .read-more:hover { color: var(--blue); border-color: var(--blue); }
.gate-continue {
  background: var(--blue);
  color: var(--white);
  border: 0;
  padding: 13px 26px;
  border-radius: 4px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: auto;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.gate-continue:hover { background: var(--blue-dk); transform: translateY(-1px); }
.gate-continue svg { width: 16px; height: 16px; }
@media (max-width: 480px) {
  .gate-actions { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .gate-continue { width: 100%; justify-content: center; }
  .gate-actions .read-more { text-align: center; }
}
