/* ============================================================
   BluePath Pools, Google Ads Landing Page
   Visual identity mirrored from bluepathpools.com
   ============================================================ */

:root {
  --primary: #173a5e;   /* navy */
  --primary-700: #12314f;
  --secondary: #2ba9bc; /* teal */
  --secondary-600: #219aad;
  --accent: #ee5240;    /* coral, primary CTA */
  --accent-600: #e23e2b;
  --ink: #1b2a36;       /* dark text */
  --slate: #5b7183;     /* muted text */
  --tint: #e8f2f5;      /* light section bg */
  --paper: #f4f8fa;
  --line: #e2e9ee;
  --white: #ffffff;
  --brand-grad: linear-gradient(135deg, #173a5e 0%, #2ba9bc 100%);
  --shadow-card: 0 12px 40px -12px rgba(23, 58, 94, .22);
  --shadow-soft: 0 4px 18px -6px rgba(23, 58, 94, .16);
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1180px;
  --font: "Montserrat", system-ui, -apple-system, Segoe UI, sans-serif;
}

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--secondary);
}
.section { padding: 88px 0; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  color: var(--primary); line-height: 1.15; letter-spacing: -.01em; margin-top: 14px;
}
.section-head p { color: var(--slate); font-size: 17px; margin-top: 16px; }
.text-accent { color: var(--accent); }
.text-teal { color: var(--secondary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 16px; padding: 16px 30px; border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap; text-align: center;
}
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -8px rgba(238,82,64,.6); }
.btn-accent:hover { background: var(--accent-600); transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-700); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 34px; font-size: 17px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.topbar img { height: 34px; width: auto; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.tel-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary); font-size: 15px; }
.tel-link svg { color: var(--accent); }
.topbar .btn { padding: 11px 22px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(23,58,94,.94) 0%, rgba(23,58,94,.82) 42%, rgba(27,42,54,.55) 100%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; padding-top: 64px; padding-bottom: 80px; }
.hero-copy .eyebrow { color: #7fd6e2; }
.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; line-height: 1.08;
  letter-spacing: -.015em; margin: 18px 0 20px;
}
.hero h1 em { font-style: normal; color: #ffd3cd; }
.hero-sub { font-size: 18px; color: rgba(255,255,255,.9); max-width: 560px; }
.hero-sub strong { color: #fff; font-weight: 700; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 26px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.92); }
.hero-badge svg { color: var(--secondary); flex-shrink: 0; }
.hero-stats { display: flex; gap: 30px; margin-top: 32px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 26px; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat span { font-size: 12.5px; color: rgba(255,255,255,.72); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }

/* ---------- Price comparison (arm B) ---------- */
.price-compare { margin-top: 28px; max-width: 480px; }
.pc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 18px; border-radius: 12px; margin-bottom: 10px; font-weight: 700; position: relative; overflow: hidden; }
.pc-row .pc-label { font-size: 14px; position: relative; z-index: 1; }
.pc-row .pc-val { font-size: 18px; white-space: nowrap; position: relative; z-index: 1; }
.pc-typical { background: rgba(255,255,255,.1); color: rgba(255,255,255,.78); }
.pc-typical .pc-val { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.5); }
.pc-typical::before { content: ""; position: absolute; inset: 0; width: 100%; background: rgba(255,255,255,.06); }
.pc-ours { background: var(--accent); color: #fff; box-shadow: 0 10px 26px -8px rgba(238,82,64,.55); }
.pc-ours::before { content: ""; position: absolute; inset: 0; width: 61%; background: rgba(0,0,0,.08); }
.pc-save { margin-top: 4px; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: #7fd6e2; }
.pc-save svg { flex-shrink: 0; }
.hero-copy .price-compare { margin-left: 0; }
@media (max-width: 960px) { .hero-copy .price-compare { margin-left: auto; margin-right: auto; } }

/* ---------- Lead form card ---------- */
.lead-card {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 30px 28px; position: relative;
}
.lead-card .ribbon {
  position: absolute; top: -14px; left: 28px; background: var(--brand-grad); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; box-shadow: var(--shadow-soft);
}
.lead-card h3 { font-size: 23px; font-weight: 800; color: var(--primary); margin: 8px 0 4px; }
.lead-card .lead-sub { font-size: 14.5px; color: var(--slate); margin-bottom: 20px; }
.field { margin-bottom: 13px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 15px; color: var(--ink); background: var(--paper);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--secondary); background: #fff;
  box-shadow: 0 0 0 3px rgba(43,169,188,.14);
}
.field textarea { resize: vertical; min-height: 74px; }
.field.invalid input, .field.invalid select { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(238,82,64,.12); }
.field .err { display: none; font-size: 12px; color: var(--accent); margin-top: 4px; font-weight: 600; }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-foot { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 14px; font-size: 12.5px; color: var(--slate); }
.form-foot svg { color: var(--secondary); flex-shrink: 0; }
.lead-card .btn-accent { margin-top: 6px; }

/* Form success state */
.form-success { display: none; text-align: center; padding: 20px 8px 8px; }
.form-success.on { display: block; }
.form-success .check { width: 62px; height: 62px; border-radius: 50%; background: var(--brand-grad); display: grid; place-items: center; margin: 4px auto 18px; }
.form-success h3 { color: var(--primary); font-size: 22px; margin-bottom: 8px; }
.form-success p { color: var(--slate); font-size: 15px; }
.form-success .tel-cta { margin-top: 18px; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--primary); color: #fff; padding: 20px 0; }
.trust-strip .wrap { display: flex; align-items: center; justify-content: center; gap: 14px 40px; flex-wrap: wrap; }
.trust-item { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.9); }
.trust-item svg { color: var(--secondary); flex-shrink: 0; }
.stars { color: #ffb703; letter-spacing: 2px; font-size: 15px; }

/* ---------- Value cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; box-shadow: var(--shadow-soft); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--tint); display: grid; place-items: center; margin-bottom: 18px; color: var(--secondary); }
.card h3 { font-size: 18px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--slate); }

/* ---------- Steps ---------- */
.section.alt { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 30px 24px 26px; box-shadow: var(--shadow-soft); border: 1px solid var(--line); }
.step .num { position: absolute; top: -18px; left: 24px; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-grad); color: #fff; font-weight: 800; font-size: 19px; display: grid; place-items: center; box-shadow: var(--shadow-soft); }
.step h3 { font-size: 17px; font-weight: 800; color: var(--primary); margin: 20px 0 8px; }
.step p { font-size: 14px; color: var(--slate); }

/* ---------- Split: what's included / financing ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.incl-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 8px; }
.incl-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.incl-list li svg { color: var(--secondary); flex-shrink: 0; margin-top: 2px; }
.note { margin-top: 22px; font-size: 13.5px; color: var(--slate); font-style: italic; }

.finance-card { background: var(--brand-grad); border-radius: var(--radius-lg); padding: 38px 34px; color: #fff; box-shadow: var(--shadow-card); }
.finance-card .eyebrow { color: #bff0f6; }
.finance-card h3 { font-size: 26px; font-weight: 800; margin: 12px 0 22px; }
.finance-timeline { list-style: none; display: grid; gap: 16px; }
.finance-timeline li { display: flex; gap: 14px; align-items: flex-start; }
.finance-timeline .dot { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.finance-timeline b { display: block; font-size: 15px; font-weight: 700; }
.finance-timeline span { font-size: 13.5px; color: rgba(255,255,255,.78); }
.finance-apr { margin-top: 24px; display: flex; align-items: baseline; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); }
.finance-apr b { font-size: 38px; font-weight: 800; line-height: 1; }
.finance-apr span { font-size: 14px; color: rgba(255,255,255,.85); }

/* ---------- Why fiberglass ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit { display: flex; gap: 16px; align-items: flex-start; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.benefit .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: var(--secondary); display: grid; place-items: center; flex-shrink: 0; }
.benefit h3 { font-size: 16px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.benefit p { font-size: 14px; color: var(--slate); }
.warranty-bar { margin-top: 34px; display: flex; align-items: center; justify-content: center; gap: 14px 40px; flex-wrap: wrap; background: var(--tint); border-radius: var(--radius); padding: 22px 28px; }
.warranty-bar .w-item { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; color: var(--primary); font-size: 15px; }
.warranty-bar .w-item svg { color: var(--secondary); }

/* ---------- Testimonials ---------- */
.section.navy { background: var(--primary); color: #fff; }
.section.navy .section-head h2 { color: #fff; }
.section.navy .section-head p { color: rgba(255,255,255,.75); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px 26px; }
.quote .stars { display: block; margin-bottom: 14px; }
.quote p { font-size: 14.5px; color: rgba(255,255,255,.9); font-style: italic; line-height: 1.7; }
.quote .who { margin-top: 16px; font-weight: 700; font-size: 14px; color: #7fd6e2; }

/* ---------- Models ---------- */
.models { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.model { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .2s; }
.model:hover { transform: translateY(-4px); }
.model .img { aspect-ratio: 4/3; background: var(--tint); overflow: hidden; }
.model .img img { width: 100%; height: 100%; object-fit: cover; }
.model .body { padding: 16px 16px 18px; }
.model h3 { font-size: 16px; font-weight: 800; color: var(--primary); }
.model p { font-size: 12.5px; color: var(--slate); margin: 5px 0 10px; min-height: 48px; }
.model .from { font-size: 12px; font-weight: 700; color: var(--secondary); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Feature media band (image + copy) ---------- */
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.media-split-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.media-split-copy h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: var(--primary); line-height: 1.15; margin: 14px 0 12px; letter-spacing: -.01em; }
.media-split-copy p { color: var(--slate); font-size: 16px; margin-bottom: 24px; }
.media-split.reverse .media-split-copy { order: -1; }
@media (max-width: 960px) {
  .media-split { grid-template-columns: 1fr; gap: 28px; }
  .media-split-img img { aspect-ratio: 16 / 10; }
  .media-split.reverse .media-split-copy { order: 0; }
}

/* ---------- CTA banner ---------- */
.cta-band { position: relative; overflow: hidden; color: #fff; text-align: center; isolation: isolate; }
.cta-band .cta-media { position: absolute; inset: 0; z-index: -2; }
.cta-band .cta-media video, .cta-band .cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .cta-ov { position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, rgba(23,58,94,.9), rgba(43,169,188,.72)); }
.cta-band .wrap { padding: 84px 22px; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.12; max-width: 780px; margin: 0 auto; }
.cta-band p { font-size: 18px; color: rgba(255,255,255,.9); margin: 18px auto 30px; max-width: 620px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; font-size: 17px; font-weight: 700; color: var(--primary); }
.faq-q .pm { flex-shrink: 0; color: var(--secondary); transition: transform .2s; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 4px 22px; font-size: 15px; color: var(--slate); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer img.flogo { height: 40px; margin-bottom: 18px; }
.footer p.about { font-size: 14px; max-width: 340px; line-height: 1.7; }
.footer h4 { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--secondary); margin-bottom: 16px; }
.footer .fcol a, .footer .fcol div { display: block; font-size: 14px; margin-bottom: 10px; color: rgba(255,255,255,.7); }
.footer .fcol a:hover { color: #fff; }
.footer .contact-line { display: flex; align-items: flex-start; gap: 10px; }
.footer .contact-line svg { color: var(--secondary); flex-shrink: 0; margin-top: 3px; }
.footer-badges { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.footer-badges img { height: 54px; width: auto; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,.45); }
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Sticky mobile bar ---------- */
.mobilebar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; display: none; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -8px rgba(23,58,94,.2); }
.mobilebar .btn { flex: 1; padding: 14px; font-size: 15px; }
.mobilebar .btn-call { background: var(--primary); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; padding-top: 44px; padding-bottom: 54px; }
  .hero-copy { text-align: center; }
  .hero-badges, .hero-stats { justify-content: center; }
  .hero-sub { margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .benefits { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .models { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .topbar .btn { display: none; }
  .cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .incl-list { grid-template-columns: 1fr; }
  .models { grid-template-columns: 1fr; }
  .mobilebar { display: flex; }
  body { padding-bottom: 72px; }
  .hero h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .hero-media video, .cta-media video { display: none; }
}
