/* Cedar Rapids Radon Solutions — shared styles
   Mobile-first, Core Web Vitals friendly, system font stack */

:root {
  --teal-900: #0f3d3e;
  --teal-800: #145455;
  --teal-700: #1a6b6d;
  --teal-600: #218083;
  --teal-500: #2a9a9d;
  --teal-100: #e6f5f5;
  --teal-50: #f2fafa;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --amber-600: #d97706;
  --amber-50: #fffbeb;
  --red-600: #dc2626;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 4px 6px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(15, 23, 42, 0.1);
  --radius: 10px;
  --radius-sm: 6px;
  --max: 1100px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-900); }
a:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal-800);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--teal-900);
  text-decoration: none;
  line-height: 1.25;
}
.logo span {
  display: block;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--slate-500);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phone-link {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--teal-800);
  text-decoration: none;
  white-space: nowrap;
}
.phone-link:hover { color: var(--teal-600); }

.nav-toggle {
  display: none;
  background: var(--slate-100);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-800);
  cursor: pointer;
  min-height: 44px;
}

.site-nav {
  width: 100%;
  order: 3;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.4rem 0;
  color: var(--slate-700);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 44px;
  line-height: 1.8;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--teal-700);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; padding-top: 0.5rem; border-top: 1px solid var(--slate-200); margin-top: 0.25rem; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 0.65rem 0; border-bottom: 1px solid var(--slate-100); width: 100%; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
  font-weight: 650;
  font-family: inherit;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--teal-700);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-900); color: var(--white); }
.btn-secondary {
  background: var(--white);
  color: var(--teal-800);
  border-color: var(--teal-600);
}
.btn-secondary:hover { background: var(--teal-50); color: var(--teal-900); }
.btn-amber {
  background: var(--amber-600);
  color: var(--white);
}
.btn-amber:hover { background: #b45309; color: var(--white); }
.btn-block { width: 100%; }

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 3rem 0; }
.section-alt { background: var(--slate-50); }
.section-teal { background: var(--teal-900); color: var(--white); }
.section-teal a { color: #a5e4e6; }
.section-narrow { max-width: 760px; }

h1, h2, h3, h4 {
  color: var(--slate-900);
  line-height: 1.25;
  margin-top: 0;
}
.section-teal h1, .section-teal h2, .section-teal h3 { color: var(--white); }

h1 { font-size: clamp(1.75rem, 4vw, 2.35rem); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.35rem; }
li { margin-bottom: 0.4rem; }

.lead { font-size: 1.15rem; color: var(--slate-600); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 0.5rem;
}
.section-teal .eyebrow { color: #7dd3d6; }

/* Hero */
.hero {
  padding: 2.25rem 0 2.5rem;
  background: linear-gradient(160deg, var(--teal-50) 0%, var(--white) 55%, var(--slate-50) 100%);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
  }
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--slate-600);
}
.hero-trust li::before {
  content: "✓ ";
  color: var(--teal-600);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Form card */
.form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.35rem 1.35rem 1.5rem;
}

.form-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.form-card .form-note {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.3rem;
}

.form-group .req { color: var(--red-600); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--slate-900);
  min-height: 48px;
}
.form-group textarea { min-height: 100px; resize: vertical; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 3px solid rgba(42, 154, 157, 0.35);
  border-color: var(--teal-500);
}

.form-row {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 480px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}

/* Cards / grids */
.card-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-800);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

/* Prose content pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }
.prose .callout {
  background: var(--teal-50);
  border-left: 4px solid var(--teal-600);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose .warning-callout {
  background: var(--amber-50);
  border-left: 4px solid var(--amber-600);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  padding: 0.85rem 1.1rem;
}
.faq summary {
  font-weight: 650;
  cursor: pointer;
  color: var(--slate-900);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq details[open] summary { margin-bottom: 0.5rem; }
.faq details p:last-child { margin-bottom: 0; }

/* Service area / NAP */
.nap-block {
  font-style: normal;
  line-height: 1.6;
}
.nap-block strong { display: block; color: var(--slate-900); }

/* CTA band */
.cta-band {
  text-align: center;
  padding: 2.5rem 1.25rem;
}
.cta-band .btn { margin: 0.35rem; }

/* Footer */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-300);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.925rem;
}
.site-footer a { color: #94a3b8; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 0.75rem; }

.footer-grid {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }

.disclaimer {
  border-top: 1px solid var(--slate-700);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--slate-500);
  line-height: 1.5;
}
.disclaimer p { margin-bottom: 0.5rem; }

.copyright {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--slate-500);
}

/* Sticky mobile call bar */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--teal-800);
  padding: 0.65rem 1rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
  text-align: center;
}
.sticky-call a {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  display: block;
  min-height: 44px;
  line-height: 44px;
}

@media (max-width: 700px) {
  .sticky-call { display: block; }
  body { padding-bottom: 64px; }
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--slate-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal-700); }
.breadcrumb span { margin: 0 0.35rem; color: var(--slate-300); }

/* Page hero (inner) */
.page-hero {
  background: var(--teal-900);
  color: var(--white);
  padding: 2rem 0 2.25rem;
}
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: #b8e4e5; }
.page-hero .breadcrumb,
.page-hero .breadcrumb a { color: #94c5c7; }

/* Misc */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--slate-200);
}
th { background: var(--slate-100); font-weight: 650; }

.internal-links {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin: 2rem 0;
}
.internal-links h3 { margin-bottom: 0.5rem; }
.internal-links ul { margin-bottom: 0; }

/* --- Niche photos (hero + content) --- */
.hero.hero-photo {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--teal-900);
  padding: 2.5rem 0 2.75rem;
}
.hero.hero-photo .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(15, 61, 62, 0.92) 0%, rgba(15, 61, 62, 0.78) 45%, rgba(15, 23, 42, 0.55) 100%);
}
.hero.hero-photo > .container {
  position: relative;
  z-index: 2;
}
.hero.hero-photo h1 { color: var(--white); }
.hero.hero-photo .lead { color: #d5eeee; }
.hero.hero-photo .eyebrow { color: #7dd3d6; }
.hero.hero-photo .hero-trust { color: #c5e4e5; }
.hero.hero-photo .hero-trust li::before { color: #7dd3d6; }
.hero.hero-photo .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.hero.hero-photo .btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.page-hero.page-hero-photo {
  position: relative;
  overflow: hidden;
}
.page-hero.page-hero-photo .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.page-hero.page-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(15, 61, 62, 0.94) 0%, rgba(15, 61, 62, 0.82) 60%, rgba(15, 23, 42, 0.65) 100%);
}
.page-hero.page-hero-photo > .container {
  position: relative;
  z-index: 2;
}

.content-img {
  margin: 1.75rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--slate-100);
}
.content-img img {
  width: 100%;
  height: auto;
  display: block;
}
.content-img--side {
  margin: 0 0 1.5rem;
}
@media (min-width: 800px) {
  .content-img-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 1.75rem 0;
  }
  .content-img-row .content-img { margin: 0; }
}
.prose .content-img { max-width: 100%; }
