/* Water Cleanup USA - Shared Stylesheet v1 (Phase 1) */
:root {
  --primary: #0057B8;
  --primary-dark: #004494;
  --primary-light: #E8F1FC;
  --accent: #FF6B35;
  --accent-dark: #E55A28;
  --white: #ffffff;
  --light: #F4F8FD;
  --dark: #1A2B48;
  --gray: #5A6C7D;
  --border: #DCE6F2;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--dark); line-height: 1.65; font-size: 17px; background: var(--white); }
img { max-width: 100%; height: auto; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; max-width: 1140px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--primary); text-decoration: none; }
.logo img { width: 42px; height: 42px; border-radius: 8px; }
.logo .accent-t { color: var(--accent); }
.main-nav a { margin-left: 20px; text-decoration: none; color: var(--dark); font-weight: 600; font-size: 15px; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }

/* Buttons */
.btn { display: inline-block; padding: 13px 30px; border-radius: 8px; font-weight: 700; text-decoration: none; font-size: 16px; transition: background 0.2s; border: none; cursor: pointer; text-align: center; }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-outline-w { border: 2px solid var(--white); color: var(--white); }
.btn-outline-w:hover { background: var(--white); color: var(--primary); }
.btn-lg { font-size: 18px; padding: 16px 42px; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); padding: 64px 20px; text-align: center; }
.hero h1 { font-size: 40px; margin-bottom: 14px; line-height: 1.2; color: var(--white); }
.hero p.lead { font-size: 19px; opacity: 0.93; max-width: 660px; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust-badges { margin-top: 30px; display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; font-size: 14px; opacity: 0.92; }
.trust-badges span::before { content: "\2713\00A0"; color: var(--accent); font-weight: bold; }

/* Sections */
.section { padding: 56px 20px; }
.section.alt { background: var(--light); }
.section h2 { font-size: 30px; color: var(--primary); margin-bottom: 10px; }
.section h2.center, .section .sub.center { text-align: center; }
.section .sub { color: var(--gray); margin-bottom: 32px; font-size: 17px; }
.section h3 { color: var(--primary); margin: 26px 0 10px; font-size: 21px; }
.section p { margin-bottom: 14px; }
.section ul, .section ol { margin: 0 0 16px 24px; }
.section li { margin-bottom: 8px; }

/* Cards / grids */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }
.card { background: var(--white); border-radius: 12px; padding: 26px; box-shadow: 0 2px 12px rgba(0,87,184,0.08); border-top: 4px solid var(--primary); }
.card h3 { color: var(--primary); margin: 0 0 8px; font-size: 18px; }
.card p { color: var(--gray); font-size: 15px; margin: 0; }
.card a.card-link { color: var(--primary); font-weight: 700; text-decoration: none; font-size: 15px; }
.card a.card-link:hover { text-decoration: underline; }

/* Steps */
.steps { display: flex; gap: 18px; max-width: 1100px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.step { flex: 1; min-width: 210px; text-align: center; padding: 18px 10px; }
.step-num { width: 52px; height: 52px; background: var(--accent); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; margin: 0 auto 14px; }
.step h3 { color: var(--primary); margin-bottom: 6px; font-size: 18px; }
.step p { color: var(--gray); font-size: 15px; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 15px; }
.data-table th { background: var(--primary); color: var(--white); text-align: left; padding: 12px 14px; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.data-table tr:nth-child(even) td { background: var(--light); }
.table-wrap { overflow-x: auto; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 18px 20px; font-size: 17px; font-weight: 700; color: var(--primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: "+"; font-size: 24px; color: var(--accent); flex-shrink: 0; margin-left: 12px; }
.faq-item.open .faq-q::after { content: "\2212"; }
.faq-a { display: none; padding: 0 20px 18px; color: var(--dark); }
.faq-item.open .faq-a { display: block; }

/* CTA band */
.cta-band { background: var(--accent); color: var(--white); text-align: center; padding: 52px 20px; }
.cta-band h2 { font-size: 30px; margin-bottom: 10px; color: var(--white); }
.cta-band p { margin-bottom: 24px; font-size: 17px; }
.cta-band .btn { background: var(--white); color: var(--accent-dark); }
.cta-band .btn:hover { background: var(--light); }

/* Emergency strip */
.emergency-strip { background: var(--dark); color: var(--white); text-align: center; padding: 14px 16px; font-size: 16px; font-weight: 600; }
.emergency-strip a { color: var(--accent); font-weight: 800; text-decoration: none; font-size: 18px; }

/* Breadcrumb */
.breadcrumb { font-size: 14px; color: var(--gray); padding: 16px 0 0; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Tags */
.tags { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; }
.tags strong { color: var(--primary); }
.tags a { display: inline-block; background: var(--light); color: var(--primary); padding: 5px 12px; border-radius: 20px; margin: 4px; text-decoration: none; font-size: 13px; }
.tags a:hover { background: var(--primary-light); }

/* Author box */
.author-box { display: flex; gap: 16px; background: var(--light); border-radius: 12px; padding: 20px; margin: 32px 0; align-items: flex-start; }
.author-box .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; flex-shrink: 0; }
.author-box p { font-size: 14px; color: var(--gray); margin: 4px 0 0; }
.author-box strong { color: var(--dark); }

/* Dates */
.page-dates { font-size: 13px; color: var(--gray); margin-bottom: 18px; }

/* Contact form */
.contact-form { max-width: 600px; margin: 0 auto; }
.contact-form label { display: block; font-weight: 600; margin: 14px 0 6px; color: var(--dark); }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 16px; font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.contact-form button { margin-top: 18px; }

/* Sticky mobile CTA */
.sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--accent); color: var(--white); text-align: center; padding: 14px; font-size: 18px; font-weight: 800; text-decoration: none; z-index: 200; }

/* Footer */
.site-footer { background: var(--dark); color: #B0BECF; padding: 44px 20px 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; max-width: 1100px; margin: 0 auto 26px; }
.footer-grid h4 { color: var(--white); margin-bottom: 12px; font-size: 16px; }
.footer-grid a { color: #B0BECF; text-decoration: none; display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { text-align: center; border-top: 1px solid #2A3D5C; padding-top: 20px; max-width: 1100px; margin: 0 auto; }

/* Checklist */
.checklist { list-style: none; margin-left: 0 !important; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* Alert box */
.alert { background: #FFF4EE; border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 20px 0; }
.alert strong { color: var(--accent-dark); }
.info-box { background: var(--primary-light); border-left: 4px solid var(--primary); padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 20px 0; }

@media (max-width: 760px) {
  .hero h1 { font-size: 30px; }
  .main-nav { display: none; }
  .sticky-cta { display: block; }
  body { padding-bottom: 60px; }
  .section h2 { font-size: 25px; }
}

/* Cost calculator */
.calc-box { background: var(--white); border: 2px solid var(--border); border-radius: 14px; padding: 30px; margin: 24px 0; box-shadow: 0 4px 18px rgba(0,87,184,0.10); }
.calc-row { margin-bottom: 22px; }
.calc-row > label:first-child { display: block; font-weight: 700; color: var(--primary); margin-bottom: 10px; font-size: 17px; }
.calc-box input[type="range"] { width: 100%; accent-color: var(--accent); height: 8px; }
.calc-sqft-val { display: inline-block; font-weight: 800; color: var(--primary); font-size: 20px; margin-top: 8px; }
.calc-radio, .calc-check { display: block; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; cursor: pointer; font-size: 16px; }
.calc-radio:hover, .calc-check:hover { border-color: var(--primary); background: var(--light); }
.calc-radio input, .calc-check input { margin-right: 10px; accent-color: var(--accent); width: 18px; height: 18px; vertical-align: middle; }
.calc-result { text-align: center; background: var(--primary-light); border-radius: 10px; padding: 26px 20px; margin-top: 10px; }
.calc-result p:first-child { color: var(--gray); margin-bottom: 6px; font-size: 15px; }
.calc-number { font-size: 38px; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.calc-note { font-size: 13px; color: var(--gray); margin-bottom: 18px; }

/* Don't list (red X marks) */
.dont-list { list-style: none; margin-left: 0 !important; }
.dont-list li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.dont-list li::before { content: "\2717"; position: absolute; left: 0; color: #D32F2F; font-weight: 800; }

/* Before/After cards */
.ba-card { border-top-color: var(--accent); }
.ba-before, .ba-after { margin-bottom: 10px; font-size: 15px; color: var(--gray); }
.ba-before strong { color: #D32F2F; }
.ba-after strong { color: var(--primary); }
