/* ==========================================================================
   Detroit Basement Waterproofing — Design System
   ========================================================================== */

:root {
  --navy: #0b2340;
  --navy-dark: #071730;
  --blue: #1c5d99;
  --blue-light: #eaf2fb;
  --water: #1e88c7;
  --orange: #f2681f;
  --orange-dark: #d4560f;
  --gray-900: #1a1f2b;
  --gray-700: #3d4655;
  --gray-500: #667085;
  --gray-300: #d0d5dd;
  --gray-100: #f4f6f9;
  --white: #ffffff;
  --success: #1b8a5a;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(11, 35, 64, 0.10);
  --shadow-md: 0 8px 24px rgba(11, 35, 64, 0.14);
  --shadow-lg: 0 20px 50px rgba(11, 35, 64, 0.22);
  --max-width: 1180px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Default size for inline icon <svg> elements (not diagram <img> files).
   Component-specific rules below (higher specificity) override this. */
svg { width: 1em; height: 1em; vertical-align: -0.125em; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em 0;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em 0; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.5em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--gray-100); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--orange);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(242, 104, 31, 0.35);
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-secondary:hover { background: transparent; color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 30px; font-size: 1.1rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cfe1f5;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #ffffff; font-weight: 700; }
.topbar-phone { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 0.85rem; }
.topbar-phone svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ---------- Header ---------- */
header.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  white-space: nowrap;
}
.logo span.accent { color: var(--orange); }
.logo-mark { width: 42px; height: 42px; flex-shrink: 0; }
.logo-mark svg { width: 100%; height: 100%; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
nav.main-nav a {
  color: var(--gray-900);
  font-weight: 600;
  font-size: 0.95rem;
}
nav.main-nav a:hover { color: var(--blue); text-decoration: none; }

.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  padding: 10px;
  min-width: 280px;
  max-height: 420px;
  overflow-y: auto;
  columns: 2;
  column-gap: 10px;
  z-index: 50;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 0.87rem;
  font-weight: 500;
  break-inside: avoid;
}
.dropdown-menu a:hover { background: var(--blue-light); text-decoration: none; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: right;
}
.header-phone small { color: var(--gray-500); font-weight: 600; font-size: 0.75rem; }
.header-phone a { color: var(--navy); font-weight: 800; font-size: 1.15rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--navy);
}

/* ---------- Hero + Quote Form ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #123a63 55%, var(--blue) 100%);
  color: var(--white);
  padding: 56px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(30,136,199,0.35) 0%, rgba(30,136,199,0) 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 2;
}
.hero-copy h1 {
  color: var(--white);
  margin-bottom: 18px;
}
.hero-copy .lede {
  font-size: 1.15rem;
  color: #dbe8f7;
  max-width: 560px;
  margin-bottom: 26px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 600;
}
.hero-badge svg { width: 18px; height: 18px; flex-shrink: 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* Quote form card - the star of the show */
.quote-card {
  background: var(--white);
  color: var(--gray-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px 24px 24px;
  position: relative;
  z-index: 3;
}
.quote-card .quote-flag {
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 14px;
}
.quote-card h2 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.quote-card .quote-sub {
  color: var(--gray-500);
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.form-row { margin-bottom: 12px; }
.form-row label {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 5px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-900);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28, 93, 153, 0.15);
}
.form-row textarea { resize: vertical; min-height: 80px; }
.form-disclaimer {
  font-size: 0.76rem;
  color: var(--gray-500);
  margin-top: 10px;
  text-align: center;
}
.form-success {
  display: none;
  background: #e8f7ef;
  border: 1.5px solid var(--success);
  color: #0f5c3a;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  font-size: 0.92rem;
}
.form-success.show { display: block; }
.quote-card form.hidden { display: none; }

.quote-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--gray-500);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}
.quote-or::before, .quote-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-300);
}
.quote-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  padding: 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.05rem;
}
.quote-call-btn:hover { background: var(--navy-dark); color: var(--white); text-decoration: none; }
.quote-call-btn svg { width: 20px; height: 20px; }

/* Sticky mini CTA that appears once scrolled past hero (mobile) */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  padding: 12px 16px;
  z-index: 200;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
  gap: 10px;
}
.sticky-cta a { flex: 1; text-align: center; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  padding: 22px 0;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--gray-700);
  font-size: 0.92rem;
}
.trust-item svg { width: 26px; height: 26px; color: var(--blue); flex-shrink: 0; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  color: var(--blue);
}
.card .card-icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--gray-700); font-size: 0.95rem; margin-bottom: 10px; }
.card a.card-link { font-weight: 700; font-size: 0.9rem; }

.service-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: inherit;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; }
.service-card .service-icon-wrap {
  background: var(--blue-light);
  padding: 26px;
  display: flex;
  justify-content: center;
}
.service-card .service-icon-wrap svg { width: 64px; height: 64px; color: var(--blue); }
.service-card-body { padding: 18px 20px 22px; }
.service-card h3 { font-size: 1.02rem; margin-bottom: 6px; color: var(--navy); }
.service-card p { font-size: 0.88rem; color: var(--gray-500); margin-bottom: 0; }

/* ---------- Two column with image/graphic ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split-reverse .split-media { order: 2; }
.split-media svg, .split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
}
.split-copy ul { list-style: none; padding: 0; margin: 18px 0; }
.split-copy ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.97rem;
}
.split-copy ul li svg {
  width: 22px; height: 22px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 18px;
  margin-bottom: 26px;
}
.step-num {
  counter-increment: step;
  background: var(--navy);
  color: var(--white);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 1.05rem;
}
.step-num::before {
  content: counter(step);
}
.step-body h3 { margin-bottom: 4px; font-size: 1.05rem; }
.step-body p { color: var(--gray-700); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--gray-300);
  padding: 18px 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
  gap: 12px;
}
.faq-question .plus {
  font-size: 1.4rem;
  color: var(--blue);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-question .plus { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding-top: 10px;
  color: var(--gray-700);
  font-size: 0.96rem;
}
.faq-item.open .faq-answer { display: block; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-300);
}
.stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 10px; font-size: 1rem; }
.testimonial p.quote { font-style: italic; color: var(--gray-700); margin-bottom: 12px; }
.testimonial .name { font-weight: 700; color: var(--navy); font-size: 0.9rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: #ffe9dc; margin-bottom: 0; }
.cta-banner .btn-secondary { color: var(--orange-dark); }

/* ---------- Zip / area list ---------- */
.area-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.area-tags span {
  background: var(--blue-light);
  color: var(--navy);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: #c4d3e5;
  padding: 56px 0 24px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #c4d3e5; }
.footer-grid a:hover { color: var(--white); }
.footer-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 12px;
  display: block;
}
.footer-logo span.accent { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8ea2ba;
}
.footer-cols-service { columns: 2; column-gap: 20px; }
.footer-cols-service li { break-inside: avoid; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--gray-500);
  padding: 16px 0;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb .sep { margin: 0 6px; }

/* ---------- Page hero (interior pages, simpler than home) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 44px 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: #dbe8f7; max-width: 640px; margin-bottom: 0; font-size: 1.05rem; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.max-60 { max-width: 640px; }
.center-col { margin-left: auto; margin-right: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .topbar-links { display: none; }
  .topbar .container { justify-content: center; }
  .logo { font-size: 1rem; white-space: normal; line-height: 1.15; }
  .logo-mark { width: 32px; height: 32px; }
  .header-inner { gap: 10px; flex-wrap: nowrap; }
  .header-cta { gap: 8px; }
  .header-cta > a.btn { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 64px; }
  .dropdown-menu { columns: 1; position: static; box-shadow: none; display: none; }
  .dropdown.open .dropdown-menu { display: block; }
  nav.main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    padding: 16px 24px 20px;
    box-shadow: var(--shadow-md);
  }
}
