/* ============================================================
   Dallas Water Rescue — main stylesheet
   Deep navy #0B2A4A · Water blue #1479C9 · Safety orange #F97316
   ============================================================ */

:root {
  --navy: #0b2a4a;
  --navy-deep: #071d34;
  --blue: #1479c9;
  --blue-dark: #0f5fa3;
  --orange: #f97316;
  --orange-dark: #dd5f06;
  --ink: #16283a;
  --muted: #5b6b7c;
  --line: #dbe4ee;
  --bg: #ffffff;
  --bg-alt: #f2f6fb;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(11, 42, 74, 0.08);
  --shadow-md: 0 10px 30px rgba(11, 42, 74, 0.12);
  --shadow-lg: 0 18px 50px rgba(11, 42, 74, 0.18);
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin-top: 0; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

ul, ol { margin: 0 0 1.2em; padding-left: 1.35em; }
li { margin-bottom: 0.45em; }
li::marker { color: var(--orange); font-weight: 700; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  padding: 15px 28px;
  border-radius: 10px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-align: center;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.35);
}
.btn-primary:hover {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.45);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg { font-size: 1.12rem; padding: 18px 36px; }

.btn-call {
  background: var(--orange);
  color: #fff;
  padding: 12px 20px;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35);
}
.btn-call:hover { background: var(--orange-dark); color: #fff; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(11, 42, 74, 0.12); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand img { height: 52px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav > ul > li { position: relative; margin: 0; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 8px;
}
.main-nav > ul > li > a:hover { background: var(--bg-alt); color: var(--blue-dark); }

.has-dropdown > a::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  border: 5px solid transparent;
  border-top-color: currentColor;
  vertical-align: middle;
  transform: translateY(2px);
}

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 300;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li { margin: 0; }
.dropdown a { font-weight: 600; font-size: 0.93rem; padding: 9px 12px; }
.dropdown a:hover { background: var(--bg-alt); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  color: #fff;
  padding: 84px 0 96px;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(20, 121, 201, 0.55), transparent 60%),
    radial-gradient(800px 420px at 8% 110%, rgba(249, 115, 22, 0.22), transparent 55%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #103a63 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 90%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9fd0f5;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.hero h1 { color: #fff; max-width: 16em; margin-bottom: 0.5em; }

.hero-sub {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: #d7e6f5;
  max-width: 44em;
  margin-bottom: 1.6em;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------- Trust strip ---------------- */
.trust-strip { margin-top: -46px; position: relative; z-index: 5; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--line);
}
.trust-item {
  padding: 22px 26px;
  border-left: 1px solid var(--line);
}
.trust-item:first-child { border-left: 0; }
.trust-item strong {
  display: block;
  color: var(--blue-dark);
  font-size: 1.02rem;
  margin-bottom: 4px;
}
.trust-item span { color: var(--muted); font-size: 0.93rem; }

/* ---------------- Content sections ---------------- */
.content-section { padding: 76px 0; }
.content-section.alt { background: var(--bg-alt); }
.content-section h2 {
  position: relative;
  padding-bottom: 14px;
}
.content-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--orange);
}
.content-section ul { margin-top: 0.6em; }
.content-section p:last-child,
.content-section ul:last-child { margin-bottom: 0; }

.content-img { margin: 34px auto; max-width: 860px; }
.content-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
}

/* ---------------- Cards ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
}
.card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  opacity: 0;
  transition: opacity 0.2s ease;
}
a.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #bcd2e8;
}
a.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 0.45em; font-size: 1.18rem; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.card-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 800;
  color: var(--orange-dark);
  font-size: 0.95rem;
}

/* ---------------- Chips ---------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.chip {
  display: inline-block;
  padding: 9px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  background: #fff;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.chip:hover {
  border-color: var(--blue);
  background: #eaf3fc;
  transform: translateY(-1px);
}

/* ---------------- Tables ---------------- */
.table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; background: #fff; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: #f7fafd; }

/* ---------------- FAQ ---------------- */
.faq-list { margin-top: 26px; display: grid; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-item.open { border-color: #bcd2e8; box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: 0;
  padding: 18px 22px;
  font-family: inherit;
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}
.faq-icon {
  position: relative;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef4fb;
  transition: background 0.2s ease, transform 0.25s ease;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--orange);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 12px; height: 2.5px; }
.faq-icon::after { width: 2.5px; height: 12px; }
.faq-item.open .faq-icon { background: var(--orange); transform: rotate(135deg); }
.faq-item.open .faq-icon::before, .faq-item.open .faq-icon::after { background: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------------- CTA band ---------------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 50% -40%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(120deg, var(--blue-dark) 0%, var(--blue) 60%, #1a86d6 100%);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { color: #fff; }
.cta-band h2::after { display: none; }
.cta-band p { color: #e3f0fc; font-size: 1.08rem; }
.cta-band a:not(.btn) { color: #fff; font-weight: 800; }
.cta-band .btn { margin-top: 10px; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy-deep);
  color: #b9c9db;
  padding: 60px 0 0;
  font-size: 0.96rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
}
.footer-brand img { height: 46px; margin-bottom: 14px; }
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b9c9db; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  font-size: 0.88rem;
  color: #8fa3ba;
}
.footer-bottom p { margin: 0; }

/* ---------------- Forms ---------------- */
.quote-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 34px 30px;
  max-width: 720px;
  margin: 26px 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.quote-form label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 14px;
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fbfdff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 121, 201, 0.15);
}
.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 6px;
}
.map-embed { margin: 26px 0; }
.map-embed iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.note {
  background: #fff8ec;
  border-left: 4px solid var(--orange);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  color: var(--ink);
  font-size: 0.97rem;
  margin: 20px 0;
}

/* ---------------- Reveal animations ---------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
html.js .reveal.visible { opacity: 1; transform: none; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1020px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-inner .btn-call { display: none; }
  .main-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(340px, 88vw);
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    transition: transform 0.3s ease;
    padding: 84px 26px 30px;
    overflow-y: auto;
    margin: 0;
  }
  .main-nav.open { transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 12px 10px; font-size: 1.02rem; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 3px solid var(--line);
    border-radius: 0; padding: 0 0 0 10px; margin: 2px 0 8px;
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown > a::after { float: right; margin-top: 8px; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero { padding: 60px 0 84px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .trust-item:first-child { border-top: 0; }
  .card-grid { grid-template-columns: 1fr; }
  .content-section { padding: 54px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* ---------------- Split layout with sticky sidebar ---------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.split-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 38px 36px; min-width: 0; }
.split-side { position: sticky; top: 96px; }
.side-card { background: linear-gradient(165deg, #123c66 0%, var(--navy-deep) 100%); border-radius: var(--radius); padding: 32px 28px; color: #fff; box-shadow: var(--shadow-md); }
.side-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: 12px; }
.side-card p { color: #c9d8ea; font-size: 0.98rem; margin-bottom: 22px; }
.side-card .btn { width: 100%; }

/* ---------------- Content images: constrained size ---------------- */
.content-img { max-width: 840px; }

/* ---------------- Footer: 5 link columns ---------------- */
.footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr 0.8fr; gap: 36px 28px; }
.footer-brand > a { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 16px; margin-bottom: 16px; }
.footer-brand img { height: 64px; margin-bottom: 0; }
.footer-bottom p + p { margin-top: 8px; }

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split-side { position: static; }
  .split-main { padding: 28px 22px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------------- Previous-style refinements ---------------- */
.split-main, .panel { background-color: #fff; background-image: radial-gradient(circle at 96% 88%, rgba(30,111,191,0.07) 0, rgba(30,111,191,0) 42%); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 38px 36px; min-width: 0; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin: 0 0 10px; }
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--orange); border-radius: 2px; flex: none; }
.kicker + h2 { margin-top: 0; }
.card-stack { grid-template-columns: 1fr; }
.card-stack .card { max-width: none; }
@media (max-width: 960px) {
  .split-main, .panel { padding: 28px 22px; }
}
