/* =========================================================
   Sewer Repair NYC - Styles
   ========================================================= */

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --blue: #1d4ed8;
  --red: #e6392e;
  --red-dark: #c62828;
  --gold: #f6a821;
  --ink: #1f2937;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --line: #e5e7eb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 37, 69, 0.14);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Sora", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-call {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(230, 57, 46, 0.35);
}
.btn-call:hover { background: var(--red-dark); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.btn-lg { padding: 16px 30px; font-size: 1.08rem; }
.btn-xl { padding: 18px 34px; font-size: 1.2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}
.brand {
  display: inline-block;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand strong { color: var(--red); font-weight: 800; }

.site-nav {
  display: flex;
  gap: 26px;
}
.site-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
  position: relative;
  padding: 4px 0;
}
.site-nav a:hover { color: var(--blue); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}
.site-nav a:hover::after { width: 100%; }

.header-call { padding: 11px 20px; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 110px 0 96px;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(29, 78, 216, 0.45), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(230, 57, 46, 0.25), transparent 55%),
    linear-gradient(160deg, #0b2545 0%, #13315c 55%, #0b2545 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cfe0ff;
  margin-bottom: 18px;
}
.stars { color: var(--gold); letter-spacing: 2px; }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: #fff;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #dbe7fb;
  max-width: 720px;
  margin: 0 auto 32px;
}
.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}
.hero-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 26px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: 600;
  color: #dbe7fb;
  font-size: 0.95rem;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--red);
  color: #fff;
  padding: 46px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-band p { margin: 0; color: rgba(255,255,255,0.92); max-width: 520px; }
.cta-band-action { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cta-band .btn-call {
  background: #fff;
  color: var(--red);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}
.cta-band .btn-call:hover { background: #ffe9e7; }
.cta-note { font-size: 0.85rem; color: rgba(255,255,255,0.92); font-weight: 500; }

/* ---------- About / semantic triples ---------- */
.about { padding: 56px 0 8px; }
.about-copy {
  font-size: 1.12rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: #374151;
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head {
  max-width: 780px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-sub { color: var(--muted); font-size: 1.06rem; }

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }
.grid { display: grid; gap: 20px; }
.services-grid { grid-template-columns: repeat(2, 1fr); align-items: start; }
details.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
details.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
details.service-card summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  padding: 22px 26px;
}
details.service-card summary::-webkit-details-marker { display: none; }
details.service-card summary h3 {
  font-size: 1.2rem;
  margin: 0;
}
details.service-card[open] summary { border-bottom: 1px solid var(--line); }
.service-body {
  padding: 20px 26px 24px;
}
.service-body .triple {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.service-body h4 {
  font-size: 0.95rem;
  margin: 14px 0 4px;
  color: var(--navy);
}
.service-body p {
  color: var(--muted);
  margin: 0 0 6px;
  font-size: 0.95rem;
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.review-stars { color: var(--gold); font-size: 1.15rem; letter-spacing: 2px; margin-bottom: 14px; }
.review-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.review-loc { color: var(--blue); font-weight: 600; font-size: 0.88rem; margin-bottom: 12px; }
.review-text { color: #374151; margin: 0; font-size: 0.97rem; }

/* ---------- Service areas ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
details.area-card, details.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
details.area-card summary, details.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  padding: 18px 20px;
}
details.area-card summary::-webkit-details-marker,
details.faq-item summary::-webkit-details-marker { display: none; }
details summary h3 {
  font-size: 1.08rem;
  margin: 0;
  font-family: var(--font-head);
  color: var(--navy);
}
.acc-icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  background: var(--red);
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.acc-icon::before { top: 8px; left: 0; width: 18px; height: 2.5px; }
.acc-icon::after { top: 0; left: 8px; width: 2.5px; height: 18px; }
details[open] .acc-icon::after { transform: rotate(90deg); opacity: 0; }
details[open] .acc-icon::before { transform: rotate(180deg); }

.area-body, .faq-body {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 0.97rem;
}
.area-body p, .faq-body p { margin: 0 0 8px; }
.area-body p:last-child { margin-bottom: 0; }
details[open] { border-color: #c7d6f0; }

.area-zips {
  color: var(--ink);
  margin-bottom: 14px !important;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.neighborhoods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.nhood {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.nhood h4 {
  margin: 0 0 2px;
  font-size: 0.98rem;
  font-family: var(--font-head);
  color: var(--navy);
}
.nhood .zip {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Trusted by ---------- */
.trusted-by { background: var(--bg-soft); }
.logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.logos-grid li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.logos-grid li img {
  max-width: 190px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.logos-grid li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---------- FAQ ---------- */
.faq-columns {
  column-count: 2;
  column-gap: 20px;
}
.faq-item {
  break-inside: avoid;
  margin-bottom: 16px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 56px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand { font-family: var(--font-head); font-size: 1.3rem; color: #fff; margin-bottom: 12px; }
.footer-brand strong { color: var(--red); }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #cbd5e1; }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; }
.footer-col address p { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #94a3b8;
}
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid, .reviews-grid, .areas-grid { grid-template-columns: 1fr; }
  .logos-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-columns { column-count: 1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .header-call { display: none; }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 8px 20px 16px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; }
  .hero { padding: 80px 0 70px; }
  .cta-band-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 540px) {
  .logos-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; }
}
