/* Master Flood Restoration & General Contracting
   Stylesheet — clean, mobile-friendly, fast */

:root {
  --navy: #0f234b;
  --navy-dark: #0a1a39;
  --muted-blue: #5b86b5;
  --muted-blue-soft: #e8eef7;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --max-width: 1140px;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 35, 75, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 35, 75, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--muted-blue); }

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--gray-700); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: var(--white);
  font-size: 0.875rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--white); }
.topbar a:hover { color: var(--muted-blue-soft); }
.topbar .topbar-info span { margin-right: 18px; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.2;
}
.brand-mark {
  width: 36px; height: 36px;
  background: var(--navy);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
}
.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--gray-500);
  letter-spacing: 0.02em;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--gray-700);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 500;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--muted-blue-soft);
  color: var(--navy);
}
.nav-cta {
  margin-left: 8px;
  background: var(--navy);
  color: var(--white) !important;
  padding: 9px 16px !important;
}
.nav-cta:hover { background: var(--muted-blue) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  width: 40px; height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--navy);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--navy);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--muted-blue); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--muted-blue); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(rgba(15, 35, 75, 0.78), rgba(15, 35, 75, 0.78)),
    url("../images/water-damage-cleanup.jpg") center / cover no-repeat;
  color: var(--white);
  padding: 90px 0 80px;
}
.hero h1 { color: var(--white); max-width: 760px; }
.hero p.lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  max-width: 680px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page hero (smaller) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0 50px;
}
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p { color: rgba(255, 255, 255, 0.85); margin: 0; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-alt { background: var(--gray-50); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { color: var(--gray-500); }

/* ---------- Grids ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-top: 0; }
.card .icon {
  width: 44px; height: 44px;
  background: var(--muted-blue-soft);
  color: var(--navy);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 14px;
}
.card.image-card { padding: 0; overflow: hidden; }
.card.image-card img { width: 100%; height: 200px; object-fit: cover; }
.card.image-card .body { padding: 20px 22px 24px; }

/* ---------- Why-choose features ---------- */
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature .icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--muted-blue-soft);
  color: var(--navy);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.feature h3 { margin-bottom: 4px; font-size: 1.05rem; }
.feature p { margin: 0; font-size: 0.95rem; }

/* ---------- Service area ---------- */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.area-list li {
  background: var(--white);
  border: 1px solid var(--gray-300);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--gray-700);
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--navy);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}
.cta-strip h2 { color: var(--white); margin-bottom: 8px; }
.cta-strip p { color: rgba(255, 255, 255, 0.85); margin-bottom: 24px; }
.cta-strip .actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info p { margin: 6px 0; }
.contact-info strong { color: var(--navy); }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 0.95rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--muted-blue);
  box-shadow: 0 0 0 3px rgba(91, 134, 181, 0.18);
}
.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--muted-blue-soft);
  color: var(--navy);
  font-size: 0.95rem;
}
.form-status.show { display: block; }

.map-wrap {
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-100);
}
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 50px 0 24px;
  font-size: 0.95rem;
}
.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 36px;
  padding-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 8px; }

/* ---------- Mobile nav ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    align-items: stretch;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: var(--radius); }
  .nav-cta { margin: 6px 0 0 !important; text-align: center; }
  .site-header { position: relative; }
  .nav-wrap { position: relative; }
}
