/* ==========================================================================
   Crusader of Texas — Shared Stylesheet (redesign)
   Clean & modern: Poppins headings / Inter body, water-blue palette
   Reusable across all pages. Edit colors in :root once, applies everywhere.
   ========================================================================== */

:root {
  /* Brand palette — water blues */
  --navy:      #0b2545;   /* deep headings / footer */
  --blue:      #1565c0;   /* primary brand */
  --blue-dark: #0d47a1;   /* hover */
  --cyan:      #19a3c4;   /* accent */
  --sky:       #e8f3fb;   /* light section bg */
  --ink:       #1f2933;   /* body text */
  --muted:     #5b6b7b;   /* secondary text */
  --line:      #e2e8f0;   /* borders */
  --white:     #ffffff;
  --gold:      #f5a623;   /* CTA accent */

  --maxw: 2100px;   /* near-full-width; minimal 32px gutters, caps only on monitors wider than this */
  --radius: 12px;
  --shadow: 0 8px 28px rgba(11,37,69,.10);
  --shadow-sm: 0 2px 10px rgba(11,37,69,.07);
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 2.4vw, 32px); }
.section { padding: 72px 0; }
.section--tint { background: var(--sky); }
.section--navy { background: var(--navy); color: #dbe7f3; }
.section--navy h2, .section--navy h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; margin: 0 auto 1.5rem; }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em;
  font-size: .8rem; font-weight: 600; color: var(--cyan); margin-bottom: .5rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: .5rem; font-family: var(--font-head);
  font-weight: 600; font-size: 1rem; padding: 14px 26px; border-radius: 50px; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #ffb83d; color: var(--navy); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--lg { padding: 16px 34px; font-size: 1.08rem; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--navy); color: #cfe0f0; font-size: .9rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .topbar__hours { color: #9fb8d0; }

/* ---------- Header / Nav ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px clamp(18px, 2.4vw, 32px); max-width: var(--maxw); margin: 0 auto; }
.nav__logo { flex: 0 0 auto; }
.nav__logo img { height: 66px; width: auto; max-width: none; }
.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__menu > li { position: relative; }
.nav__menu > li > a { display: block; padding: 12px 12px; font-family: var(--font-head);
  font-weight: 500; color: var(--navy); font-size: .96rem; border-radius: 8px; white-space: nowrap; }
.nav__menu > li > a:hover { background: var(--sky); color: var(--blue-dark); }
.nav__menu .has-sub > a::after { content: "▾"; font-size: .7rem; margin-left: 6px; color: var(--muted); }

/* Dropdowns */
.submenu { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff;
  box-shadow: var(--shadow); border-radius: 10px; padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease; }
.nav__menu > li:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li a { display: block; padding: 9px 12px; border-radius: 7px; font-size: .94rem; color: var(--ink); }
.submenu li a:hover { background: var(--sky); color: var(--blue-dark); }
.submenu__head { font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); padding: 10px 12px 4px; }
.submenu__head a { color: inherit; text-decoration: none; }
.submenu__head a:hover { text-decoration: underline; }
/* Breadcrumbs */
.breadcrumbs { background: var(--sky); border-bottom: 1px solid var(--line); font-size: .85rem; }
.breadcrumbs .container { padding: 9px 0; color: var(--muted); }
.breadcrumbs a { color: var(--blue-dark); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: var(--muted); margin: 0 2px; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 500; }

.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__phone { font-family: var(--font-head); font-weight: 700; color: var(--navy); white-space: nowrap; }
.nav__phone:hover { color: var(--blue); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  font-size: 1.6rem; color: var(--navy); }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(135deg, #0b2545 0%, #0d47a1 55%, #1565c0 100%);
  color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(25,163,196,.35), transparent 45%); }
/* Homepage hero with team/vans photo behind it (B-MID overlay) */
.hero.hero--photo { background: linear-gradient(100deg, rgba(11,37,69,.90) 0%, rgba(12,52,110,.70) 40%, rgba(13,71,161,.46) 72%, rgba(21,101,192,.32) 100%), url("images/hero-family-patio.jpg") center / cover no-repeat; }
.hero.hero--photo::after { background: rgba(11,37,69,.05); }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 48px; align-items: center; padding-top: 70px; padding-bottom: 70px; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p { color: #d7e6f5; font-size: 1.18rem; max-width: 540px; }
.hero__points { list-style: none; margin: 1.2rem 0 1.6rem; display: grid; gap: 8px; }
.hero__points li { padding-left: 30px; position: relative; color: #eaf3fb; }
.hero__points li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Lead form card ---------- */
.leadform { background: #fff; color: var(--ink); border-radius: 16px; padding: 28px;
  box-shadow: var(--shadow); }
.leadform h3 { color: var(--navy); margin-bottom: 4px; }
.leadform p.sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.1rem; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 9px; font-family: var(--font-body); font-size: 1rem; background: #fbfdff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,101,192,.15); }
.leadform .btn { width: 100%; justify-content: center; margin-top: 6px; }
.leadform .fineprint { font-size: .78rem; color: var(--muted); margin-top: 10px; margin-bottom: 0; }

/* ---------- Local water data / source citation ---------- */
.datasource { margin-top: 16px; padding: 12px 16px; background: var(--sky); border-left: 3px solid var(--cyan);
  border-radius: 6px; font-size: .9rem; color: var(--muted); }
.datasource a { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border-top: 1px solid var(--line); padding: 18px 0; }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item h3 { margin-bottom: 6px; font-size: 1.12rem; }
.faq__item p { margin: 0; color: var(--ink); }
.nearby { columns: 2; gap: 28px; margin: 14px 0 0 1.1rem; }
@media (max-width: 600px) { .nearby { columns: 1; } }

/* ---------- Contaminant chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line);
  border-radius: 50px; padding: 9px 16px; font-family: var(--font-head); font-weight: 500; font-size: .92rem;
  color: var(--navy); box-shadow: var(--shadow-sm); transition: border-color .15s ease, color .15s ease, transform .15s ease; }
.chip:hover { border-color: var(--blue); color: var(--blue-dark); transform: translateY(-2px); }

/* ---------- Trust bar ---------- */
.trustbar { background: #fff; border-bottom: 1px solid var(--line); }
.trustbar .container { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 18px;
  padding: 22px; text-align: center; }
.trust { display: flex; flex-direction: column; }
.trust strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--blue); }
.trust span { font-size: .9rem; color: var(--muted); }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--sky);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 14px; }
.card__img { width: 100%; height: 170px; object-fit: contain; border-radius: 10px; margin-bottom: 14px;
    background: #fff; border: 1px solid var(--line); padding: 10px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 12px; }
.card a.more { font-family: var(--font-head); font-weight: 600; font-size: .92rem; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Product media (photo or drop-in placeholder) ---------- */
.product-media { margin: 0; }
.product-media img { display: block; max-width: 100%; max-height: 440px; width: auto; height: auto;
    margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.product-media__ph { align-items: center; justify-content: center; text-align: center;
  min-height: 300px; border: 2px dashed var(--cyan); border-radius: var(--radius); color: var(--muted);
  background: var(--sky); font-family: var(--font-head); padding: 24px; line-height: 1.5; }
.product-media__ph code { background: #fff; padding: 3px 8px; border-radius: 6px; color: var(--blue-dark);
  font-size: .9rem; display: inline-block; margin-top: 8px; }

/* ---------- Photo gallery (real installs) ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); gap: 18px;
  margin-top: 30px; justify-content: center; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { display: block; width: 100%; height: auto; object-fit: contain; background: #f3f5f7; }
.gallery figcaption { padding: 12px 14px; font-size: .92rem; color: var(--muted); line-height: 1.45; }

/* ---------- Comparison / spec table ---------- */
.spectable-wrap { overflow-x: auto; margin-top: 26px; -webkit-overflow-scrolling: touch; }
.spectable { width: 100%; border-collapse: collapse; min-width: 680px; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.spectable th, .spectable td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.spectable thead th { background: var(--navy); color: #fff; font-family: var(--font-head); font-size: 1rem; }
.spectable thead th:first-child { text-align: left; }
.spectable td:first-child { text-align: left; font-weight: 500; }
.spectable .grp td { background: var(--sky); font-family: var(--font-head); font-weight: 600;
  color: var(--blue-dark); text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; }
.spectable tbody tr:hover td { background: #f3f9fd; }
.spectable .grp:hover td { background: var(--sky); }
.spectable .yes { color: #1b9e3e; font-weight: 700; font-size: 1.15rem; }
.spectable .no  { color: #d3dbe3; }
.spectable-note { font-size: .9rem; color: var(--muted); margin-top: 10px; }
/* Spec tables (product specifications) */
.spectable--specs { min-width: 520px; }
.spectable--specs th[scope="row"] { text-align: left; font-weight: 500; background: #fff; color: var(--ink);
    font-family: var(--font-body); font-size: .95rem; }
.spectable--specs td { font-size: .95rem; }
.spectable--specs + .spectable--specs, .spectable-wrap + .spectable-wrap { margin-top: 22px; }
/* Benefit tiles (product pages, styled after the manufacturer) */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 22px; }
.benefit { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue);
    border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.benefit h4 { margin: 0 0 5px; font-family: var(--font-head); color: var(--navy); font-size: 1.02rem; }
.benefit p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.benefit--check p { padding-left: 1.5em; position: relative; color: var(--ink); }
.benefit--check p::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 700; }

/* ---------- Features & benefits list ---------- */
.featlist { margin: 0 0 1rem 1.2rem; }
.featlist li { margin-bottom: .5rem; }

/* ---------- How it works (animation / cutaway) ---------- */
.hiw { text-align: center; margin: 0; }
.hiw img { max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }
.hiw figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.hiw-title { margin-bottom: 22px; }
.hiw-split { grid-template-columns: fit-content(280px) 1fr; gap: 24px; align-items: start; }
.hiwtext h3 { margin-top: 1.1rem; }
.hiwtext h3:first-child { margin-top: 0; }
.hiwtext p { margin-bottom: 1rem; }

/* ---------- Blog ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article .post-meta { color: var(--muted); font-size: .92rem; margin-bottom: 1.4rem; }
.article h2 { margin-top: 1.8rem; margin-bottom: .5rem; font-size: 1.5rem; }
.article h3 { margin-top: 1.2rem; margin-bottom: .4rem; }
.article p { margin-bottom: 1rem; }
.article ul, .article ol { margin: 0 0 1.1rem 1.3rem; }
.article li { margin-bottom: .4rem; }
.article .post-cta { background: var(--sky); border-radius: var(--radius); padding: 22px 24px; margin-top: 26px; }
.blogcard { display: flex; flex-direction: column; }
.blogcard .tag { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em;
  font-size: .72rem; font-weight: 600; color: var(--cyan); }
.blogcard h3 { margin: 6px 0 8px; }
.blogcard .date { color: var(--muted); font-size: .85rem; margin-bottom: 8px; }

/* ---------- Financing callout ---------- */
.finance { background: linear-gradient(120deg, #0d47a1, #19a3c4); color: #fff; border-radius: var(--radius);
  padding: 30px; text-align: center; }
.finance h2 { color: #fff; margin-bottom: 6px; }
.finance p { color: #eaf3fb; max-width: 640px; margin: 0 auto 14px; }

/* ---------- Trust badges (BBB etc.) ---------- */
.badges { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.badge-ph { border: 2px dashed rgba(255,255,255,.4); border-radius: 8px; padding: 10px 14px;
  font-size: .8rem; color: #cfe0f0; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.quote { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); }
.quote .stars { color: var(--gold); margin-bottom: 8px; }
.quote p { font-style: italic; color: var(--ink); }
.quote .who { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-style: normal; }

/* ---------- CTA band ---------- */
.ctaband { background: linear-gradient(120deg, var(--blue-dark), var(--cyan)); color: #fff; text-align: center; }
.ctaband h2 { color: #fff; }
.ctaband .phone { font-family: var(--font-head); font-size: clamp(1.6rem,4vw,2.4rem); font-weight: 700; color: #fff; }
.ctaband .phone a { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.ctaband .phone a:hover { color: var(--gold); }
.ctaband .btn { margin-top: 10px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #aebfd2; font-size: .94rem; padding: 56px 0 0; }
.footer a { color: #cfe0f0; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer__logo { height: 60px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; margin-bottom: 14px; }
.footer__social { display: flex; gap: 12px; margin-top: 14px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: grid; place-items: center; color: #fff; font-weight: 700; }
.footer__social a:hover { background: var(--blue); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding: 18px 0;
  text-align: center; font-size: .85rem; color: #8aa1bb; }
.footer__license { display: inline-block; margin: 6px 0; font-size: .8rem; color: #7e96b1; line-height: 1.6; }
.footer__license a { color: #aebfd4; }

/* ---------- Sticky mobile call bar ---------- */
.callbar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  box-shadow: 0 -4px 16px rgba(0,0,0,.18); }
.callbar__btn { flex: 1; text-align: center; padding: 14px 8px; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; }
.callbar__call { background: var(--gold); color: var(--navy); }
.callbar__cta { background: var(--blue); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .grid--3 { grid-template-columns: repeat(2,1fr); }
  .quotes { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  .nav__toggle { display: block; }
  .nav__phone { display: none; }
  .nav__menu { position: fixed; inset: 64px 0 0 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 12px; overflow-y: auto; transform: translateX(100%);
    transition: transform .25s ease; box-shadow: var(--shadow); }
  .nav__menu.open { transform: translateX(0); }
  .nav__menu > li > a { padding: 14px 12px; border-bottom: 1px solid var(--line); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    padding: 0 0 8px 12px; min-width: 0; }
  .nav__menu .has-sub > a::after { content: "+"; float: right; }
}
@media (max-width: 600px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .callbar { display: flex; }
  body { padding-bottom: 56px; } /* room for call bar */
}
