/* ===========================================================
   Shoals Restoration — Site Stylesheet
   Design system: navy/slate primary, warm ember accent
   =========================================================== */

:root {
  /* Shoals Restoration brand palette */
  --navy-900: #013367;
  --navy-800: #0d4d94;
  --navy-700: #1560ad;
  --slate-600: #6b6d70;
  --slate-400: #808285;
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --ember-500: #4b90e2;
  --ember-600: #2f74c9;
  --text-dark: #0f1e2e;
  --text-body: #3c4a5a;
  --border-light: #e2e4e6;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(1, 51, 103, 0.08);
  --shadow-md: 0 8px 24px rgba(1, 51, 103, 0.14);
  --max-width: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Futura PT', 'Futura', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Boucherie Block', 'Oswald', 'Impact', 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--navy-700); text-decoration: none; }
img { max-width: 100%; display: block; }

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

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--light { background: var(--bg-light); }
.section--navy { background: var(--navy-900); color: #cdd8e4; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ember-600);
  margin-bottom: 10px;
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ember-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--ember-600); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--outline-navy { background: transparent; border-color: var(--navy-700); color: var(--navy-700); }
.btn--outline-navy:hover { background: var(--navy-700); color: #fff; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-900);
  color: #cdd8e4;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #fff; font-weight: 600; }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo { display: flex; align-items: center; }
.logo img { height: 56px; width: auto; display: block; }

.footer-logo img { height: 60px; width: auto; display: block; margin-bottom: 18px; }

nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav > ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.dropdown { list-style: none; }
nav.main-nav > ul > li { position: relative; z-index: 1; }
nav.main-nav > ul > li.open { z-index: 60; }
nav.main-nav a.nav-link { color: var(--text-dark); font-weight: 600; font-size: 0.95rem; padding: 8px 0; }
nav.main-nav a.nav-link:hover { color: var(--ember-600); }

.dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; box-shadow: var(--shadow-md); border-radius: var(--radius-md); padding: 10px; width: max-content; min-width: 200px; max-width: 280px; border: 1px solid var(--border-light); z-index: 50; }
nav.main-nav > ul > li.open > .dropdown { display: block; }
.dropdown li { display: block; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 0.92rem; color: var(--text-body); font-weight: 500; white-space: nowrap; }
.dropdown a:hover { background: var(--bg-light); color: var(--navy-900); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { font-weight: 700; color: var(--navy-900); font-size: 1.05rem; }
.header-phone small { display: block; font-weight: 500; font-size: 0.72rem; color: var(--slate-400); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--navy-900); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff;
  padding: 88px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(75,144,226,0.35) 0%, rgba(75,144,226,0) 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 16px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  margin-bottom: 22px; color: #fff;
}
.hero h1 { color: #fff; max-width: 780px; }
.hero p.lead { color: #cdd8e4; font-size: 1.15rem; max-width: 600px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-page {
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: 64px 0 56px;
}
.hero-page h1 { color: #fff; margin-bottom: 12px; }
.hero-page p { color: #cdd8e4; max-width: 680px; font-size: 1.05rem; margin-bottom: 0; }
.breadcrumb { font-size: 0.85rem; color: #a9bad0; margin-bottom: 14px; }
.breadcrumb a { color: #cdd8e4; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--bg-white); border-bottom: 1px solid var(--border-light); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 40px 0; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: rgba(75,144,226,0.12); color: var(--ember-600); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.trust-item h4 { margin-bottom: 4px; font-size: 0.98rem; }
.trust-item p { font-size: 0.87rem; color: var(--slate-600); margin: 0; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }

.card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 a { color: var(--text-dark); }
.card h3 a:hover { color: var(--ember-600); }
.card p.desc { color: var(--slate-600); font-size: 0.95rem; margin-bottom: 14px; }
.card .learn-more { font-weight: 700; font-size: 0.9rem; color: var(--ember-600); }

.service-icon-badge { width: 46px; height: 46px; border-radius: 10px; background: var(--navy-900); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px; }

/* ---------- Section heading ---------- */
.section-head { max-width: 680px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.step { display: flex; gap: 18px; }
.step-num { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--navy-900); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.step h4 { margin-bottom: 6px; }
.step p { font-size: 0.93rem; color: var(--slate-600); margin: 0; }

.insurance-steps { display: flex; flex-direction: column; gap: 0; }
.insurance-step { display: flex; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--border-light); }
.insurance-step:last-child { border-bottom: none; }
.insurance-step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.insurance-step p { margin: 0; color: var(--slate-600); }
.insurance-marker { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: rgba(75,144,226,0.12); color: var(--ember-600); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border-light); padding: 22px 0; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.faq-item p { color: var(--slate-600); margin: 0; }

/* ---------- Service area list ---------- */
.area-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.area-pill { background: var(--bg-light); border: 1px solid var(--border-light); padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: var(--navy-800); }
.area-pill a { color: var(--navy-800); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--ember-600), var(--ember-500));
  color: #fff;
  padding: 52px 0;
  border-radius: var(--radius-lg);
}
.cta-banner .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-banner h2 { color: #fff; margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.9); margin: 0; }
.cta-banner .btn--primary { background: #fff; color: var(--ember-600); }
.cta-banner .btn--primary:hover { background: #f5f5f5; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--text-dark); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-light); border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; background: #fff;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.info-card { background: var(--bg-light); border-radius: var(--radius-lg); padding: 30px; }
.info-row { display: flex; gap: 14px; margin-bottom: 20px; }
.info-row h4 { margin-bottom: 3px; font-size: 0.95rem; }
.info-row p { margin: 0; color: var(--slate-600); font-size: 0.92rem; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-900); color: #a9bad0; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #a9bad0; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.83rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .trust-grid, .grid-3, .grid-4, .steps, .contact-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .topbar .container { justify-content: center; text-align: center; font-size: 0.78rem; }

  .nav-wrap { flex-wrap: nowrap; gap: 10px; }
  .logo img { height: 42px; }

  /* Full nav collapses behind the hamburger; becomes a stacked panel when open */
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  nav.main-nav.nav-open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 0; padding: 12px 24px; width: 100%; }
  nav.main-nav > ul > li { width: 100%; }
  nav.main-nav a.nav-link { display: block; padding: 13px 0; border-bottom: 1px solid var(--border-light); }

  /* Dropdowns become inline accordions instead of floating boxes */
  .dropdown {
    position: static;
    display: none;
    width: 100%;
    max-width: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 8px 14px;
  }
  nav.main-nav > ul > li.open > .dropdown { display: block; }
  .dropdown a { padding: 10px 12px; white-space: normal; }

  .nav-toggle { display: block; flex-shrink: 0; }

  .header-cta { gap: 10px; }
  .header-phone { font-size: 0.9rem; }
  .header-phone small { display: none; }
  .btn.btn--primary { padding: 10px 16px; font-size: 0.88rem; }

  .hero { padding: 56px 0 60px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-badge { font-size: 0.76rem; }

  .trust-grid, .grid-3, .grid-4, .steps, .footer-grid { grid-template-columns: 1fr; }
  .cta-banner .container { flex-direction: column; text-align: center; }
  .cta-banner .btn { width: 100%; justify-content: center; }

  .insurance-step { flex-direction: column; gap: 10px; }
}

@media (max-width: 420px) {
  .header-phone { display: none; }
  .header-cta { gap: 8px; }
  .btn.btn--primary { padding: 9px 13px; font-size: 0.82rem; }
}
