/* ============================================
   Conneaut Water Damage Restoration Pros
   Mobile-First Professional Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  --navy: #0a2540;
  --navy-dark: #061828;
  --blue: #1a73e8;
  --blue-bright: #0d8af0;
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --white: #ffffff;
  --off-white: #f8fafc;
  --light-gray: #f1f5f9;
  --gray: #64748b;
  --dark-gray: #334155;
  --text: #1e293b;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s ease;
  --max-width: 1140px;
  --header-height: 70px;
  --sticky-bar-height: 64px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
  overflow-x: hidden;
  padding-bottom: var(--sticky-bar-height);
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--blue-bright);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }

p {
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

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

/* ========== HEADER ========== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

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

.logo {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  max-width: 200px;
}

.logo span {
  color: var(--blue);
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.35);
}

.btn-primary:hover {
  background: var(--blue-bright);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--navy-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
}

.btn-teal:hover {
  background: var(--teal-light);
  color: var(--white);
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Navigation */
.main-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.main-nav.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.main-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1.25rem;
}

.main-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--navy);
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--light-gray);
  color: var(--blue);
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0c3a5e 50%, #0a4a6e 100%);
  color: var(--white);
  padding: 2.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(26, 115, 232, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  font-size: 1.85rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero .lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.75rem;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-trust .icon {
  width: 18px;
  height: 18px;
  fill: var(--teal-light);
}

/* ========== SECTIONS ========== */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== SERVICE CARDS ========== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(26, 115, 232, 0.3);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.service-card a.learn-more {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.service-card a.learn-more:hover {
  gap: 0.5rem;
}

/* ========== CONTENT BLOCKS ========== */
.content-block {
  margin-bottom: 2.5rem;
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block h2 {
  margin-bottom: 0.75rem;
}

.content-block h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Warning Signs / Checklist */
.checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--white);
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.checklist-item .check-icon {
  width: 22px;
  height: 22px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist-item .check-icon svg {
  width: 12px;
  height: 12px;
  fill: var(--white);
}

.checklist-item p {
  margin: 0;
  font-size: 0.95rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.step-content p {
  margin: 0;
  font-size: 0.95rem;
}

/* CTA Boxes */
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, #0c3a5e 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-box h2,
.cta-box h3 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
}

.cta-box .btn {
  margin: 0.35rem;
}

.cta-inline {
  background: var(--light-gray);
  border-left: 4px solid var(--blue);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.cta-inline p {
  margin: 0;
  font-weight: 500;
  color: var(--navy);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--light-gray);
}

.faq-question .arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--dark-gray);
  font-size: 0.95rem;
}

/* Disclosure */
.disclosure {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.disclosure h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.disclosure p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.disclosure p:last-child {
  margin-bottom: 0;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
}

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

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
  color: var(--white);
}

.footer-phone {
  margin-top: 0.75rem;
}

.footer-phone a {
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
}

/* ========== STICKY MOBILE CALL BAR ========== */
.sticky-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 0.75rem 1.25rem;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  height: var(--sticky-bar-height);
}

.sticky-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 400px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.4);
}

.sticky-call-bar a:hover {
  background: var(--blue-bright);
  color: var(--white);
}

.sticky-call-bar svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ========== PAGE HEADER (inner pages) ========== */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, #0c3a5e 100%);
  color: var(--white);
  padding: 2rem 0;
}

.page-header h1 {
  color: var(--white);
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 1rem;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb span {
  margin: 0 0.4rem;
}

/* ========== CONTACT FORM ========== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 560px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 0.5rem;
}

/* ========== UTILITY ========== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ========== 404 ========== */
.error-page {
  text-align: center;
  padding: 4rem 1.25rem;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.error-page h2 {
  margin-bottom: 1rem;
}

/* ========== TABLET ========== */
@media (min-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }

  .hero h1 { font-size: 2.25rem; }
  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .checklist {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .logo {
    font-size: 1.15rem;
    max-width: none;
  }

  .logo span {
    display: inline;
    font-size: inherit;
  }
}

/* ========== DESKTOP ========== */
@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }

  .sticky-call-bar {
    display: none;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    padding: 0;
    max-height: none;
    overflow: visible;
  }

  .main-nav ul {
    flex-direction: row;
    gap: 0.15rem;
    padding: 0;
  }

  .main-nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .header-inner {
    gap: 1.5rem;
  }

  .logo {
    flex-shrink: 0;
  }

  .hero {
    padding: 4rem 0 4.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
    max-width: 700px;
  }

  .hero .lead {
    font-size: 1.15rem;
  }

  .section {
    padding: 4rem 0;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-header {
    padding: 2.5rem 0;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .header-cta .btn-primary {
    display: inline-flex;
  }
}

@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Print */
@media print {
  .sticky-call-bar,
  .nav-toggle,
  .site-header {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}
