/* Water Damage Restoration — Site Stylesheet
   Design: Professional restoration industry, trustworthy, mobile-first
   Colors: Deep navy + cerulean blue + clean whites
   Font: Libre Franklin (distinctive but readable, free) */

@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0F2B46;
  --navy-light: #1A3D5C;
  --blue: #1B7FC3;
  --blue-light: #2A9AE6;
  --blue-pale: #E8F4FC;
  --orange: #E8712B;
  --orange-light: #F59E4C;
  --green: #1B8A5A;
  --white: #FFFFFF;
  --off-white: #F7F9FB;
  --gray-100: #F0F3F6;
  --gray-200: #D8DFE6;
  --gray-400: #8B9BAD;
  --gray-600: #5A6B7D;
  --gray-800: #2D3A47;
  --text: #1E2A36;
  --text-light: #4A5B6D;
  --shadow-sm: 0 1px 3px rgba(15,43,70,0.08);
  --shadow-md: 0 4px 12px rgba(15,43,70,0.10);
  --shadow-lg: 0 8px 30px rgba(15,43,70,0.12);
  --radius: 6px;
  --radius-lg: 12px;
  --max-width: 1140px;
  --transition: 0.2s ease;
}

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

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

body {
  font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

/* === EMERGENCY BANNER === */
.emergency-banner {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.emergency-banner a { color: var(--white); text-decoration: underline; font-weight: 700; }
.emergency-banner a:hover { color: var(--off-white); }

/* === HEADER === */
.site-header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 70px;
}
.site-logo {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.site-logo span { color: var(--white); font-weight: 700; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
}
.header-phone svg { width: 20px; height: 20px; fill: var(--orange); }

/* === NAV === */
.site-nav {
  background: var(--navy-light);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-inner a {
  color: rgba(255,255,255,0.8);
  padding: 12px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.nav-inner a:hover, .nav-inner a.active {
  color: var(--white);
  border-bottom-color: var(--blue-light);
  background: rgba(255,255,255,0.04);
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 60px 24px 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(27,127,195,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 720px;
}
.hero h1 .highlight { color: var(--blue-light); }
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.badge svg { width: 16px; height: 16px; fill: var(--orange); flex-shrink: 0; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  padding: 16px 32px;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 700;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--orange-light); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 16px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all var(--transition);
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--white); color: var(--white); }

/* === CONTENT === */
.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

.content-section h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.25;
}
.content-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy-light);
  margin: 28px 0 12px;
  line-height: 1.3;
}
.content-section p {
  margin-bottom: 18px;
  color: var(--text-light);
  line-height: 1.75;
}
.content-section p:last-child { margin-bottom: 0; }
.content-section ul, .content-section ol {
  margin: 0 0 20px 24px;
  color: var(--text-light);
}
.content-section li { margin-bottom: 8px; line-height: 1.6; }

/* === STAT BOXES (Quick Answer Layer) === */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.stat-box {
  background: var(--off-white);
  border-left: 4px solid var(--blue);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.stat-box .stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 4px;
}
.stat-box .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}
.stat-box .stat-detail {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* === INFO CARDS === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; fill: var(--blue); }
.card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--text-light); margin-bottom: 0; }

/* === PROCESS STEPS === */
.process-steps {
  counter-reset: step;
  margin: 32px 0;
}
.process-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  position: relative;
}
.process-step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.process-step-content h3 { margin-top: 0; font-size: 1.05rem; }
.process-step-content p { font-size: 0.92rem; }

/* === COMPARISON TABLE === */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.comparison-table th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.02em;
}
.comparison-table td {
  padding: 14px 18px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--text-light);
}
.comparison-table tr:nth-child(even) td { background: var(--off-white); }
.comparison-table tr:last-child td { border-bottom: none; }

/* === CALLOUT BOXES === */
.callout {
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  margin: 28px 0;
  position: relative;
}
.callout-warning {
  background: #FFF8E1;
  border-left: 4px solid #F9A825;
}
.callout-info {
  background: var(--blue-pale);
  border-left: 4px solid var(--blue);
}
.callout-tip {
  background: #E8F5E9;
  border-left: 4px solid var(--green);
}
.callout-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.callout p { font-size: 0.92rem; margin-bottom: 8px; }

/* === FAQ === */
.faq-section { margin: 40px 0; }
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
}
.faq-item:first-child { border-top: 1px solid var(--gray-200); }
.faq-question {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p { padding-top: 12px; font-size: 0.92rem; }

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 60px 24px;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 28px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === BREADCRUMB === */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 0.82rem;
  color: var(--gray-400);
}
.breadcrumb a { color: var(--blue); }
.breadcrumb span { margin: 0 6px; }

/* === FOOTER === */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: 0.88rem; line-height: 1.6; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .site-logo { font-size: 1rem; }
  .hero { padding: 40px 20px 50px; }
  .content-section { padding: 40px 20px; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .process-step { gap: 14px; }
  .process-step::before { width: 36px; height: 36px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .stat-row { grid-template-columns: 1fr; }
  .hero-badges { gap: 8px; }
  .badge { font-size: 0.78rem; padding: 6px 12px; }
}
