:root {
  --bg: #f2ecdc;
  --bg-elevated: #fbf8f0;
  --bg-card-alt: #ece3cd;
  --text: #1c2a36;
  --text-muted: #5b6672;
  --accent: #9c5f22;
  --accent-strong: #7c4a19;
  --border: #ddd0ac;
  --shadow: 0 1px 2px rgba(28,42,54,0.06), 0 8px 24px rgba(28,42,54,0.07);
  --focus: #2f6f8f;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101923;
    --bg-elevated: #17222e;
    --bg-card-alt: #1d2c3a;
    --text: #f1ead9;
    --text-muted: #93a4b3;
    --accent: #dda446;
    --accent-strong: #f0bb5c;
    --border: #2b3d4d;
    --shadow: 0 1px 2px rgba(0,0,0,0.35), 0 12px 32px rgba(0,0,0,0.4);
    --focus: #7cc4e8;
  }
}

:root[data-theme="dark"] {
  --bg: #101923;
  --bg-elevated: #17222e;
  --bg-card-alt: #1d2c3a;
  --text: #f1ead9;
  --text-muted: #93a4b3;
  --accent: #dda446;
  --accent-strong: #f0bb5c;
  --border: #2b3d4d;
  --shadow: 0 1px 2px rgba(0,0,0,0.35), 0 12px 32px rgba(0,0,0,0.4);
  --focus: #7cc4e8;
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
  color: var(--text);
}

a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.prose { max-width: 62ch; }

.eyebrow {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow svg { flex-shrink: 0; }

/* ---------- header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand svg { flex-shrink: 0; }

nav.header-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 500;
}

nav.header-links a {
  text-decoration: none;
  color: var(--text-muted);
}

nav.header-links a:hover { color: var(--text); }

.header-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 3px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.btn-primary {
  background: var(--accent);
  color: #fbf8f0;
}
.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- hero (fixed night-watch band, same in both themes) ---------- */

.hero {
  position: relative;
  background: #0e1620;
  color: #f2ecdc;
  overflow: hidden;
  border-bottom: 1px solid #2b3d4d;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(closest-side, rgba(221,164,70,0.28), rgba(221,164,70,0) 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: 108px 24px 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero .eyebrow { color: #dda446; }

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  max-width: 16ch;
  color: #f7f2e4;
}

.hero p.lede {
  max-width: 56ch;
  font-size: 1.1rem;
  color: #c7cdd4;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero .btn-ghost {
  border-color: #3a4c5c;
  color: #f2ecdc;
}
.hero .btn-ghost:hover { border-color: #dda446; color: #dda446; }

.hero-subnote {
  margin: 0;
  font-size: 0.88rem;
  color: #93a4b3;
  max-width: 46ch;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 6px;
  font-size: 0.92rem;
  color: #93a4b3;
}
.hero-contact a { text-decoration: underline; text-decoration-color: #3a4c5c; text-underline-offset: 3px; color: #d7dde2; }
.hero-contact a:hover { text-decoration-color: #dda446; color: #dda446; }

/* ---------- generic section rhythm ---------- */

section { padding: 88px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }

.section-head { margin-bottom: 48px; }

.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }

.section-sub {
  margin: 14px 0 0;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ---------- services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.service-item {
  background: var(--bg-elevated);
  padding: 26px 24px;
}

.service-item h3 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
}

.service-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.service-item.span-all { grid-column: 1 / -1; }

.services-note {
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.services-note a { color: var(--accent); font-weight: 600; text-decoration: none; }
.services-note a:hover { text-decoration: underline; }

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  border-top: 2px solid var(--accent);
  padding-top: 18px;
}

.step .num {
  font-family: "Fraunces", serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.step h3 {
  font-size: 1.15rem;
  margin: 10px 0 10px;
}

.step p { color: var(--text-muted); margin: 0; font-size: 0.96rem; }

/* ---------- pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.price-card.featured {
  border: 1px solid var(--accent);
  position: relative;
}

.price-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbf8f0;
  background: var(--accent);
  padding: 5px 12px;
  border-radius: 999px;
  position: absolute;
  top: -13px;
  left: 32px;
}

.price-card h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.price-card .price {
  font-family: "Fraunces", serif;
  font-size: 2.4rem;
  font-weight: 600;
  margin: 14px 0 4px;
  font-variant-numeric: tabular-nums;
}

.price-card .price span {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-card .price-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.price-card ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.price-card li {
  display: flex;
  gap: 10px;
  font-size: 0.94rem;
  align-items: flex-start;
}

.price-card li svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

.price-card .value-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}

.price-card .value-note strong { color: var(--text); }

.price-cta {
  margin-top: 20px;
  width: 100%;
}

.price-cta-note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.about-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-card-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1px solid var(--border);
}

.about-grid h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 18px; }
.about-grid p { color: var(--text-muted); margin: 0 0 14px; }
.about-grid p:last-child { margin-bottom: 0; }
.about-grid strong { color: var(--text); }

/* ---------- testimonials ---------- */

.testimonials-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.testimonial {
  flex: 1 1 380px;
  max-width: 460px;
  margin: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 36px 28px;
  box-shadow: var(--shadow);
}

.testimonial .quote-mark {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.9;
}

.testimonial blockquote {
  margin: 0;
}

.testimonial blockquote p {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.62;
}

.testimonial blockquote p:last-child { margin-bottom: 0; }

.testimonial figcaption {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.testimonial figcaption span {
  display: block;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- contact / footer ---------- */

.contact-band {
  background: #0e1620;
  color: #f2ecdc;
  border-bottom: none;
}

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 72px 0;
}

.contact-band h2 { color: #f7f2e4; font-size: clamp(1.6rem, 3vw, 2.1rem); max-width: 14ch; }
.contact-band .eyebrow { color: #dda446; }

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 260px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #f2ecdc;
  font-size: 1.02rem;
  font-weight: 500;
}

.contact-method .icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(221,164,70,0.14);
  color: #dda446;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method span.label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93a4b3;
  font-weight: 600;
}

.contact-method:hover .icon { background: rgba(221,164,70,0.28); }

footer.site-footer {
  background: #0e1620;
  color: #93a4b3;
  padding: 22px 0 32px;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

footer.site-footer a { color: #93a4b3; text-decoration: none; }
footer.site-footer a:hover { color: #dda446; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 0.7s ease both;
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 860px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  nav.header-links { display: none; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 84px 24px 72px; }
  section { padding: 64px 0; }
}

/* ---------- multi-page nav ---------- */

nav.header-links a[aria-current="page"] { color: var(--text); font-weight: 600; }

.page-nav-mobile { display: none; }

@media (max-width: 1000px) {
  nav.header-links { display: none; }
  .page-nav-mobile {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    scrollbar-width: none;
  }
  .page-nav-mobile a { text-decoration: none; color: var(--text-muted); white-space: nowrap; }
  .page-nav-mobile a[aria-current="page"] { color: var(--text); font-weight: 600; }
}

/* ---------- specialty install cards (handyman page) ---------- */

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}

.specialty-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease;
}

.specialty-card:hover { border-color: var(--accent); }
.specialty-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.specialty-card h3 { font-size: 1.15rem; }
.specialty-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; flex-grow: 1; }
.specialty-card .more { color: var(--accent); font-weight: 600; font-size: 0.88rem; }

.service-item p a { color: var(--accent); font-weight: 600; text-decoration: none; }
.service-item p a:hover { text-decoration: underline; }
