/* Sioux Falls Basement Pros — global stylesheet
   Mobile-first, fast, accessible. No external dependencies. */

:root {
  --navy: #0d2a4a;
  --navy-dark: #061a30;
  --navy-light: #1c4274;
  --accent: #f5a623;
  --accent-dark: #d8881a;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white: #ffffff;
  --success: #16a34a;
  --max: 1200px;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

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

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

a { color: var(--navy-light); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }
p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.4rem; }
ul li, ol li { margin-bottom: 0.4rem; }

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

/* ---- Top bar / call now ---- */
.topbar {
  background: var(--navy-dark);
  color: var(--white);
  font-size: 0.9rem;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar a { color: var(--white); }
.topbar .left { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar .left span { display: inline-flex; align-items: center; gap: 6px; }

/* ---- Header ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.brand img { width: 44px; height: 44px; border-radius: 6px; }
.brand span small { display: block; font-size: 0.7rem; font-weight: 500; color: var(--gray-500); letter-spacing: 0.04em; text-transform: uppercase; }

.nav-toggle { background: none; border: 1px solid var(--gray-300); border-radius: 6px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer; display: block; }
.main-nav { display: none; }
.main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-lg); }
.main-nav ul { list-style: none; padding: 8px 20px; margin: 0; }
.main-nav li { margin: 0; border-bottom: 1px solid var(--gray-100); }
.main-nav li:last-child { border-bottom: none; }
.main-nav a { display: block; padding: 14px 0; color: var(--gray-900); font-weight: 600; }
.main-nav .cta-btn { margin: 12px 0; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav, .main-nav.open { display: block; position: static; box-shadow: none; border: none; background: transparent; }
  .main-nav ul { display: flex; gap: 6px; padding: 0; }
  .main-nav li { border: none; }
  .main-nav a { padding: 8px 14px; border-radius: 6px; }
  .main-nav a:hover { background: var(--gray-100); text-decoration: none; }
  .main-nav .cta-btn { margin: 0 0 0 8px; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: transform 0.08s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--navy-dark); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--gray-100); }
.cta-btn { background: var(--accent); color: var(--navy-dark) !important; padding: 10px 18px; border-radius: var(--radius); font-weight: 700; }
.cta-btn:hover { background: var(--accent-dark); text-decoration: none; }

/* ---- Hero ---- */
.hero {
  position: relative;
  background: var(--navy-dark);
  color: var(--white);
  overflow: hidden;
  padding: 0;
}
.hero-inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 70px 20px 90px; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
.hero p.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 660px; margin-bottom: 1.5rem; opacity: 0.95; }
.hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 1;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6,26,48,0.85) 0%, rgba(13,42,74,0.65) 100%);
  z-index: 1;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1rem; }
.hero-trust { margin-top: 2.2rem; display: flex; gap: 26px; flex-wrap: wrap; font-size: 0.95rem; opacity: 0.9; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; fill: var(--accent); flex-shrink: 0; }

/* ---- Sections ---- */
section { padding: 70px 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-title { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-title p { color: var(--gray-500); font-size: 1.05rem; }
.section-dark .section-title p { color: rgba(255,255,255,0.85); }

/* ---- Service grid ---- */
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .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-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { color: var(--navy); margin-bottom: 0.5rem; }
.card-body p { color: var(--gray-700); font-size: 0.97rem; flex: 1; }
.card-link { color: var(--navy-light); font-weight: 600; margin-top: 8px; display: inline-block; }
.card-link::after { content: " →"; }

/* ---- Why-choose-us ---- */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--navy); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700;
}
.feature h3 { font-size: 1.15rem; }

/* ---- Testimonials ---- */
.review {
  background: var(--white);
  border-left: 4px solid var(--accent);
  padding: 22px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.review .stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 8px; letter-spacing: 1px; }
.review-author { font-size: 0.9rem; color: var(--gray-500); margin-top: 10px; }
.review-author strong { color: var(--navy); }

/* ---- Service area pills ---- */
.area-list { display: flex; flex-wrap: wrap; gap: 10px; }
.area-list a {
  background: var(--white);
  border: 1px solid var(--gray-300);
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}
.section-dark .area-list a { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); color: var(--white); }
.area-list a:hover { background: var(--accent); color: var(--navy-dark); border-color: var(--accent); text-decoration: none; }

/* ---- Big CTA band ---- */
.cta-band {
  background: var(--accent);
  color: var(--navy-dark);
  text-align: center;
  padding: 60px 20px;
}
.cta-band h2 { color: var(--navy-dark); margin-bottom: 0.6rem; }
.cta-band p { font-size: 1.15rem; max-width: 600px; margin: 0 auto 1.5rem; }

/* ---- Form ---- */
.lead-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  max-width: 520px;
  margin: 0 auto;
}
.lead-form h3 { color: var(--navy); margin-bottom: 0.8rem; }
.lead-form .form-row { margin-bottom: 14px; }
.lead-form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 5px; color: var(--gray-700); }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13, 42, 74, 0.1);
}
.lead-form textarea { resize: vertical; min-height: 90px; }
.lead-form .btn { width: 100%; margin-top: 6px; }
.lead-form .form-fine { font-size: 0.8rem; color: var(--gray-500); margin-top: 10px; text-align: center; }
.form-success { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; padding: 14px 16px; border-radius: 6px; display: none; }
.form-success.show { display: block; }

/* Two-column hero with form */
.hero-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.2fr 1fr; } }

/* ---- Page header (interior pages) ---- */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0 50px;
  text-align: center;
}
.page-header h1 { color: var(--white); }
.page-header p { font-size: 1.1rem; max-width: 700px; margin: 0 auto; opacity: 0.9; }
.breadcrumb { font-size: 0.85rem; opacity: 0.8; margin-bottom: 1rem; }
.breadcrumb a { color: var(--white); text-decoration: underline; }

/* ---- Long-form content ---- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose ul li, .prose ol li { margin-bottom: 0.6rem; }
.callout {
  background: var(--gray-50);
  border-left: 4px solid var(--navy);
  padding: 18px 22px;
  margin: 1.5rem 0;
  border-radius: 4px;
}
.callout strong { color: var(--navy); }

/* Two-column content+image */
.split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--gray-500); }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { background: var(--gray-50); }
.faq .faq-body { padding: 0 22px 18px; color: var(--gray-700); }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 30px;
  font-size: 0.95rem;
}
.site-footer h4 { color: var(--white); margin-bottom: 1rem; font-size: 1.05rem; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { font-weight: 800; color: var(--white); font-size: 1.2rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 36px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--navy); color: var(--white); padding: 8px 16px; z-index: 1000; }
.skip-link:focus { top: 0; }

/* Print */
@media print {
  .site-header, .site-footer, .topbar, .cta-band, .hero-cta { display: none; }
  body { font-size: 12pt; }
}
