/* ===============================
   North Shore Cleaning Co. — Premium Demo CSS
   =============================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #faf9f6;
  --bg-warm: #f3efe8;
  --surface: #ffffff;
  --text: #1a1a2e;
  --muted: #6b6b7b;
  --border: rgba(12,15,26,0.08);
  --brand: #2c6e49;
  --brand-dark: #245a3b;
  --brand-light: rgba(44,110,73,0.08);
  --brand-glow: rgba(44,110,73,0.18);
  --accent: #b8964e;
  --shadow-sm: 0 2px 16px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.08);
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1140px;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 8px;
}

.container { width: min(var(--container), calc(100% - 2.5rem)); margin: 0 auto; }

/* ===============================
   TOPBAR / NAV
   =============================== */
@media (min-width: 901px) {
  .topbar .container { width: calc(100% - 2.5rem); }
}

.topbar {
  position: sticky;
  top: 0; z-index: 30;
  background: rgba(250,249,246,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: opacity 200ms ease;
}

.brand:hover { opacity: 0.8; }

.brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--brand);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 60%);
}

.nav-links { display: flex; gap: 0.5rem; align-items: center; }

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 200ms ease;
}

.nav-links a:hover {
  color: var(--brand);
  background: var(--brand-light);
  border-color: rgba(44,110,73,0.15);
}

.nav-drawer { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
.nav-actions { display: flex; align-items: center; }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0; cursor: pointer;
}

.nav-toggle:hover { box-shadow: var(--shadow-sm); }

.nav-toggle-bars {
  position: relative; width: 18px; height: 2px;
  background: var(--text); border-radius: 999px;
  transition: background 180ms ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px;
  background: var(--text); border-radius: 999px;
  transition: transform 180ms ease, top 180ms ease;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav.is-open .nav-toggle-bars { background: transparent; }
.nav.is-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* ===============================
   BUTTONS
   =============================== */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 250ms ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--brand);
  color: var(--brand);
}

.btn-primary {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--brand-glow);
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(44,110,73,0.25);
}

/* ===============================
   HERO
   =============================== */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(44,110,73,0.03) 0%, transparent 50%, rgba(184,150,78,0.02) 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(44,110,73,0.15);
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  width: fit-content;
}

.kicker .dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--brand);
}

.hero h1 {
  font-family: var(--font-serif);
  margin: 1rem 0 0;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--text);
}

.hero p {
  margin: 1.1rem 0 1.5rem;
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-actions .btn,
.cta-inner .actions .btn {
  flex: 1 1 200px;
  min-height: 48px;
  padding: 0.95rem 2rem;
  line-height: 1.1;
  text-align: center;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(44,110,73,0.04), transparent 60%);
  pointer-events: none;
  z-index: 2;
}

.hero-rotator {
  position: absolute;
  inset: 12px;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid var(--border);
  z-index: 1;
  background: var(--bg-warm);
}

.hero-rotator::after { content: none; }

.hero-rotator-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-rotator-img.is-active { opacity: 1; }

/* Legacy tile support (hidden) */
.hero-bg { display: none; }
.tile { display: none; }

/* ===============================
   SECTIONS
   =============================== */
section { padding: 5rem 0; position: relative; }

section + section::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 1px;
  background: rgba(44,110,73,0.2);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-family: var(--font-serif);
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--text);
}

.section-head p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ===============================
   CARDS / GRID
   =============================== */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand);
}

.card::after { content: none; }

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(44,110,73,0.18);
}

/* Services */
.service { grid-column: span 4; min-height: 200px; text-align: center; }

.service h3 {
  font-family: var(--font-serif);
  margin: 0;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
}

.service p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.service .tag {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(44,110,73,0.15);
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* About */
.about { grid-column: span 7; }

.about p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Stats */
.stats {
  grid-column: span 5;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(44,110,73,0.18);
}

.stat strong {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--brand);
}

.stat span {
  color: var(--muted);
  font-weight: 500;
}

/* ===============================
   FAQ
   =============================== */
.faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 800px;
  margin: 0 auto;
}

details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

details:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(44,110,73,0.18);
}

details[open] {
  border-color: rgba(44,110,73,0.2);
  box-shadow: var(--shadow-md);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.35rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "";
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 220ms ease, border-color 220ms ease;
  flex: 0 0 auto;
}

details[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--brand);
}

details p {
  margin: 0;
  padding: 0 1.35rem 1.15rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ===============================
   CTA BAND
   =============================== */
.cta-band { padding: 4rem 0; }
.cta-band + section::before { display: none; }

.cta-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.cta-inner h2 {
  font-family: var(--font-serif);
  margin: 0;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--text);
}

.cta-inner p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.cta-inner .actions {
  justify-content: flex-end;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ===============================
   FOOTER
   =============================== */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  color: var(--muted);
}

footer .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer .mini {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}

/* ===============================
   DEMO BANNER (subtle)
   =============================== */
.demo-banner {
  background: var(--brand-light);
  border-bottom: 1px solid rgba(44,110,73,0.12);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--brand-dark);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.demo-banner a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
  .service { grid-column: span 12; }
  .about { grid-column: span 12; }
  .stats { grid-column: span 12; grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-inner .actions { justify-content: flex-start; }
  .section-head { margin-bottom: 2rem; }
}

@media (max-width: 600px) {
  section { padding: 3.5rem 0; }

  .nav {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem;
  }

  .nav-toggle { display: inline-flex; }

  .nav-drawer {
    grid-column: 1 / -1;
    display: none;
    padding: 0.85rem 0 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
  }

  .nav.is-open .nav-drawer { display: flex; }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  .nav-actions { justify-content: center; }
  .nav-actions .btn { padding: 0.65rem 1rem; font-size: 0.92rem; min-height: 42px; }

  .hero-grid > div:first-child { text-align: center; }
  .kicker { margin-left: auto; margin-right: auto; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { margin-left: auto; margin-right: auto; font-size: 1rem; }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: min(340px, 100%);
    min-height: 48px;
    flex: 0 0 auto;
    padding: 0.9rem 1.8rem;
  }

  .hero-trust {
    justify-content: center;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
    text-align: center;
  }

  .section-head h2 { font-size: 1.85rem; }

  .card { padding: 1.5rem 1.25rem; text-align: center; }
  .service .tag { margin-left: auto; margin-right: auto; }

  .stat {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
  }

  .cta-inner {
    text-align: center;
    padding: 1.75rem 1.25rem;
  }

  .cta-inner .actions { justify-content: center; }

  .cta-inner .actions .btn {
    width: min(340px, 100%);
    min-height: 48px;
    flex: 0 0 auto;
    padding: 0.9rem 1.8rem;
  }

  footer .foot {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .card { transition: none; }
  .card:hover { transform: none; }
  details { transition: none; }
  details:hover { transform: none; }
  .stat { transition: none; }
  .stat:hover { transform: none; }
  .hero-rotator-img { transition: none; }
}
