/* Water Damage Restoration PA - High-Converting SEO Stylesheet */
:root {
  --primary: #0b2545;
  --primary-light: #134074;
  --primary-accent: #0077b6;
  --emergency: #d90429;
  --emergency-hover: #ef233c;
  --gold: #f59e0b;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--emergency);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Top Notification Bar */
.top-bar {
  background: #081a30;
  color: #e2e8f0;
  padding: 8px 0;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--emergency);
  color: #fff;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Header */
.site-header {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.brand-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.brand-logo span {
  color: var(--primary-accent);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-phone-text {
  text-align: right;
  display: none;
}

@media (min-width: 640px) {
  .header-phone-text {
    display: block;
  }
}

.header-phone-text .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.header-phone-text .phone {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.btn-header-call {
  background: var(--emergency);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(217, 4, 41, 0.25);
  transition: all 0.2s ease;
}

.btn-header-call:hover {
  background: var(--emergency-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 4, 41, 0.35);
}

/* Breadcrumb */
.breadcrumb {
  background: #f1f5f9;
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li+li::before {
  content: "/";
  margin-right: 8px;
  color: #94a3b8;
}

.breadcrumb a {
  color: var(--primary-accent);
}

/* Hero Section - Centered & Inlined Call CTA */
.hero {
  background: linear-gradient(135deg, #0b2545 0%, #134074 100%);
  color: #ffffff;
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 50% 25%, rgba(0, 119, 182, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.badge-emergency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 4, 41, 0.2);
  border: 1px solid rgba(217, 4, 41, 0.5);
  color: #fca5a5;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 auto 20px auto;
}

.hero h1 {
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: #ffffff;
  text-align: center;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.85rem;
  }
}

.hero-lead {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
  max-width: 780px;
  text-align: center;
}

/* Hero CTA Group - Perfectly Centered and Stacked */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  margin: 28px auto 36px auto;
  width: 100%;
}

/* Call Button - Always Inlined, Centered & Never Wrapping */
.btn-hero-emergency {
  background: var(--emergency);
  color: #ffffff;
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(217, 4, 41, 0.4);
  transition: all 0.2s ease;
  margin: 0 auto;
}

.btn-hero-emergency:hover {
  background: var(--emergency-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(217, 4, 41, 0.55);
}

@media (max-width: 480px) {
  .btn-hero-emergency {
    font-size: 1.05rem;
    padding: 14px 20px;
    gap: 8px;
  }
}

.hero-phone-subtext {
  font-size: 0.95rem;
  color: #cbd5e1;
  text-align: center;
  margin: 0 auto;
}

.trust-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .trust-pills {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-pill {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f1f5f9;
}

.trust-pill-icon {
  font-size: 1.25rem;
}

/* Main Layout */
.main-wrapper {
  padding: 48px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 2.2fr 1fr;
  }
}

/* Article Styles */
.article-content {
  background: var(--bg-card);
  padding: 36px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.article-content h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 36px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
  line-height: 1.3;
}

.article-content h2:first-of-type {
  margin-top: 0;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-top: 24px;
  margin-bottom: 12px;
}

.article-content p {
  margin-bottom: 18px;
  color: #334155;
  font-size: 1.025rem;
  line-height: 1.7;
}

.article-content ul, .article-content ol {
  margin-bottom: 22px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
  color: #334155;
}

/* Callout Box */
.alert-callout {
  background: #fef2f2;
  border-left: 5px solid var(--emergency);
  padding: 20px 24px;
  border-radius: 6px;
  margin: 28px 0;
}

.alert-callout h3 {
  margin-top: 0;
  color: var(--emergency);
  font-size: 1.15rem;
}

.alert-callout p {
  margin-bottom: 12px;
  color: #7f1d1d;
  font-size: 0.95rem;
}

/* Process Timeline */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 28px 0;
}

@media (min-width: 640px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.step-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-accent);
}

.step-number {
  background: var(--primary);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.step-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.faq-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-question::before {
  content: "Q:";
  color: var(--emergency);
  font-weight: 800;
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.sidebar-card-highlight {
  background: linear-gradient(145deg, #0b2545, #134074);
  color: #ffffff;
  border: none;
  text-align: center;
}

.sidebar-card-highlight h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.sidebar-card-highlight p {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.btn-sidebar-call {
  background: var(--emergency);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(217, 4, 41, 0.35);
  transition: all 0.2s ease;
}

.btn-sidebar-call:hover {
  background: var(--emergency-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.925rem;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  font-weight: 500;
}

.sidebar-list a:hover {
  color: var(--primary-accent);
  padding-left: 4px;
}

/* Related Links Grids */
.links-section {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px 30px;
  margin-top: 36px;
}

.links-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
}

.links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.link-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
  transition: all 0.15s ease;
}

.link-pill:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--primary-accent);
  transform: translateX(2px);
}

/* Footer */
.site-footer {
  background: #081a30;
  color: #94a3b8;
  padding: 48px 0 32px;
  font-size: 0.9rem;
  border-top: 4px solid var(--emergency);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col p {
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* Floating Sticky Mobile Call Button */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  padding: 10px 16px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (min-width: 769px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.mobile-sticky-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.mobile-sticky-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--emergency);
  font-weight: 600;
}

.btn-mobile-call {
  background: var(--emergency);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Sitemap Page Styles */
.sitemap-container {
  padding: 40px 0;
}

.sitemap-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.sitemap-card h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
