/* ==========================================================================
   TopLevel Plumbing Services — Landing Page Design System
   ========================================================================== */

/* ---- Self-hosted brand font (Work Sans) ---- */
@font-face { font-family: 'Work Sans'; src: url('/assets/fonts/WORKSANS-OTF/WorkSans-Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('/assets/fonts/WORKSANS-OTF/WorkSans-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('/assets/fonts/WORKSANS-OTF/WorkSans-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('/assets/fonts/WORKSANS-OTF/WorkSans-SemiBold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('/assets/fonts/WORKSANS-OTF/WorkSans-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('/assets/fonts/WORKSANS-OTF/WorkSans-ExtraBold.otf') format('opentype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('/assets/fonts/WORKSANS-OTF/WorkSans-Black.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  /* Brand colors — from onboarding brand kit */
  --teal-900: #013244;
  --teal-800: #004d65;
  --teal-700: #006883;
  --teal-600: #008cb4;
  --teal-500: #1aa3cb;
  --sky-100: #caf0fe;
  --sky-50: #eefaff;
  --gold-500: #fecb3e;
  --gold-400: #ffd877;
  --ink-900: #0a2530;
  --ink-700: #345363;
  --ink-500: #5c7986;
  --white: #ffffff;
  --off-white: #f7fbfd;
  --line: #dbeaf0;

  --font: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(1, 50, 68, 0.08);
  --shadow: 0 12px 32px rgba(1, 50, 68, 0.12);
  --shadow-lg: 0 24px 56px rgba(1, 50, 68, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; margin: 0 0 14px; color: var(--teal-900); }
p { margin: 0 0 16px; color: var(--ink-700); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ---- Topbar ---- */
.topbar {
  background: var(--teal-900);
  color: var(--sky-100);
  font-size: 0.82rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-msg { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: 0.01em; }
.topbar-msg .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(254, 203, 62, 0.25);
}
.topbar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar-right a { display: inline-flex; align-items: center; gap: 6px; color: var(--white); font-weight: 700; }
.topbar-right a svg { fill: var(--gold-500); }
.badge-license { color: rgba(255,255,255,0.75); }

/* ---- Header ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 40;
}
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { height: 58px; width: auto; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .hours { display: flex; flex-direction: column; text-align: right; font-size: 0.78rem; color: var(--ink-500); }
.header-cta .hours strong { color: var(--teal-800); font-size: 0.92rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--gold-500); color: var(--teal-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-400); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-teal { background: var(--teal-600); color: var(--white); }
.btn-teal:hover { background: var(--teal-700); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-teal { background: transparent; border-color: var(--teal-600); color: var(--teal-700); }
.btn-outline-teal:hover { background: var(--sky-50); }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--teal-900) 0%, var(--teal-800) 55%, var(--teal-700) 100%);
  color: var(--white);
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 140' preserveAspectRatio='none'%3E%3Cpath d='M0 140V80l120-45 90 30 140-55 130 40 160-60 150 45 140-35 130 50 140-30V140z' fill='%23013244' opacity='0.55'/%3E%3Cpath d='M0 140V100l150-38 120 25 170-48 140 32 190-42 160 30 170-25V140z' fill='%23004d65'/%3E%3C/svg%3E") bottom / cover no-repeat;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-500);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.hero .lede { color: var(--sky-100); font-size: 1.12rem; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px 28px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 600; color: var(--white); }
.hero-trust svg { width: 18px; height: 18px; fill: var(--gold-500); flex-shrink: 0; }

/* ---- Lead form ---- */
.lp-quote-wrap { margin-top: -64px; position: relative; z-index: 3; }
.lp-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 680px;
  margin: 0 auto;
}
.lp-form-copy { text-align: center; margin-bottom: 8px; }
.lp-form-copy h2 { font-size: 1.5rem; }
.lp-form-sub { font-size: 0.95rem; }
.lp-form-wrap { border-radius: 12px; overflow: hidden; }
.lp-form-wrap iframe { display: block; }

/* ---- Sections ---- */
.section { padding: 88px 0; }
.section--tint { background: var(--sky-50); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.icon-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--sky-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-wrap svg { width: 26px; height: 26px; fill: var(--teal-700); }
.icon-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.icon-card p { font-size: 0.92rem; margin-bottom: 0; }

.check-list { margin: 18px 0 22px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 0.95rem; color: var(--ink-700); }
.check-list svg { width: 20px; height: 20px; fill: var(--teal-600); flex-shrink: 0; margin-top: 1px; }

/* Pricing */
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card .amount { font-size: 1.7rem; font-weight: 800; color: var(--teal-700); }
.price-card .amount span { font-size: 0.95rem; font-weight: 600; color: var(--ink-500); }
.price-card h4 { font-size: 0.98rem; margin: 10px 0 4px; }
.price-card p { font-size: 0.82rem; color: var(--ink-500); margin: 0; }
.price-note { font-size: 0.85rem; color: var(--ink-500); text-align: center; margin-top: 20px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none; border: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 4px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal-900);
  text-align: left;
}
.faq-q .plus {
  position: relative; width: 20px; height: 20px; flex-shrink: 0;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ''; position: absolute; background: var(--teal-600);
  border-radius: 2px; transition: transform 0.2s ease;
}
.faq-q .plus::before { top: 9px; left: 0; width: 20px; height: 2.5px; }
.faq-q .plus::after { top: 0; left: 9px; width: 2.5px; height: 20px; }
.faq-item.open .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { padding: 0 4px 20px; font-size: 0.94rem; margin: 0; }
.faq-item.open .faq-a { max-height: 300px; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-600));
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); font-size: 1.6rem; margin-bottom: 8px; }
.cta-banner p { color: var(--sky-100); margin-bottom: 0; max-width: 480px; }

/* ---- Footer ---- */
.site-footer { background: var(--teal-900); color: var(--sky-100); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .logo-chip {
  display: inline-flex;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 18px;
}
.footer-brand .logo-chip img { height: 46px; }
.footer-brand p { color: rgba(202, 240, 254, 0.75); font-size: 0.92rem; max-width: 320px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 17px; height: 17px; fill: var(--white); }
.footer-social a:hover { background: var(--teal-600); }
.site-footer h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-links li, .footer-contact li { margin-bottom: 12px; font-size: 0.92rem; color: rgba(202, 240, 254, 0.85); }
.footer-links a:hover { color: var(--gold-500); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact svg { width: 17px; height: 17px; fill: var(--gold-500); flex-shrink: 0; margin-top: 2px; }
.footer-contact a:hover { color: var(--gold-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0 90px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 0.82rem; color: rgba(202, 240, 254, 0.6);
}

/* ---- Mobile call bar ---- */
.mobile-call-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--gold-500);
}
.mobile-call-bar a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; font-weight: 800; color: var(--teal-900); font-size: 1rem;
}
.mobile-call-bar svg { width: 18px; height: 18px; fill: var(--teal-900); }

/* ---- Thank-you page ---- */
.ty-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--teal-900) 0%, var(--teal-800) 55%, var(--teal-700) 100%);
  padding: 32px 24px;
}
.ty-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 56px 44px;
  max-width: 560px;
  text-align: center;
}
.ty-card img { height: 56px; margin: 0 auto 28px; }
.ty-check {
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--sky-100);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.ty-check svg { width: 36px; height: 36px; fill: var(--teal-700); }
.ty-card h1 { font-size: 1.7rem; }
.ty-card p { font-size: 1rem; }
.ty-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .lp-form-card { padding: 28px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .topbar-msg .long { display: none; }
  .header-cta .hours { display: none; }
  .hero { padding: 40px 0 80px; }
  .lp-quote-wrap { margin-top: -48px; }
  .grid-3, .grid-5 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner { padding: 32px; text-align: center; justify-content: center; }
  .mobile-call-bar { display: block; }
  body { padding-bottom: 58px; }
  .ty-card { padding: 40px 26px; }
}
