/* TidyDoor Valet. Night-blue header and hero (service runs 8 to 11 PM) lit by one porch-light amber accent;
   calm daylight sections for the business case, resident rules and contact. */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --ink: #15203a;
  --muted: #586079;
  --line: #dde3ee;
  --accent: #f0a63a;
  --accent-ink: #2a1a00;
  --night: #121b33;
  --night-2: #1b2747;
  --night-ink: #eef1f8;
  --night-muted: #a9b3cc;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1426; --surface: #152039; --ink: #e9edf6; --muted: #a3adc4; --line: #26324f;
    --accent: #f4b456; --night: #0a1020; --night-2: #131d36; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1426; --surface: #152039; --ink: #e9edf6; --muted: #a3adc4; --line: #26324f;
  --accent: #f4b456; --night: #0a1020; --night-2: #131d36; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
section { padding: 80px 0; }
.lead { color: var(--muted); max-width: 62ch; margin-top: 14px; font-size: 1.08rem; }
.eyebrow { font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.stack > * + * { margin-top: 14px; }
.prose { max-width: 68ch; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul { padding-left: 22px; margin: 14px 0 0; display: grid; gap: 6px; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: rgba(238, 241, 248, 0.35); color: var(--night-ink); }
.btn-ghost:hover { border-color: var(--night-ink); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); }

/* Header */
.site-header { background: var(--night); color: var(--night-ink); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; white-space: nowrap; }
.brand .wordmark { font-weight: 800; }
.brand .wordmark span { color: var(--accent); }
.brand small { font-family: var(--font-body); font-weight: 500; font-size: 0.8rem; color: var(--night-muted); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--night-muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a { padding: 4px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--night-ink); }
.nav-links a[aria-current] { color: var(--night-ink); border-bottom-color: var(--accent); }
section[id] { scroll-margin-top: 72px; }
.nav .btn { padding: 9px 18px; font-size: 0.92rem; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(238,241,248,0.3); color: var(--night-ink); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .nav { flex-wrap: wrap; }
  .nav-links { display: none; order: 3; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 0 6px; }
  .nav-links.open { display: flex; }
  .nav .btn-primary { margin-left: auto; }
}

/* Hero and page headers */
.hero { background: var(--night); color: var(--night-ink); padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.sub { color: var(--night-muted); font-size: 1.15rem; max-width: 54ch; margin-top: 20px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.facts li { border: 1px solid rgba(238,241,248,0.18); border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 340px; height: auto; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { display: none; } }
.page-head { background: var(--night); color: var(--night-ink); padding: 56px 0 52px; }
.page-head .lead { color: var(--night-muted); }
.crumbs { font-size: 0.88rem; color: var(--night-muted); margin-bottom: 16px; }
.crumbs a { color: var(--night-muted); text-decoration: none; }
.crumbs a:hover { color: var(--night-ink); }

/* Grids and cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card.feature { border: 2px solid var(--accent); }
a.card { text-decoration: none; }
a.card:hover { border-color: var(--accent); }
.step-time { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.checks li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.checks strong { display: block; }
.checks span { color: var(--muted); font-size: 0.97rem; }

/* Calculator */
.calc { background: var(--night); color: var(--night-ink); border-radius: 20px; padding: 32px; display: grid; gap: 22px; }
.calc h3 { font-size: 1.35rem; }
.calc .note { color: var(--night-muted); font-size: 0.9rem; }
.fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1100px) { .fields { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: end; }
.field label { font-size: 0.85rem; color: var(--night-muted); font-weight: 500; }
.field input { width: 100%; font: inherit; font-size: 1.1rem; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(238,241,248,0.2); background: var(--night-2); color: var(--night-ink); font-variant-numeric: tabular-nums; }
.results { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border-top: 1px solid rgba(238,241,248,0.14); padding-top: 22px; }
.result-label { font-size: 0.85rem; color: var(--night-muted); }
.result-value { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.2rem); font-variant-numeric: tabular-nums; }
.result-value.hi { color: var(--accent); }

/* Pricing */
.price { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font-body); font-weight: 500; font-size: 1rem; color: var(--muted); }
.tag { justify-self: start; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; }
.card ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink); }
table.simple { width: 100%; border-collapse: collapse; margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.simple th, table.simple td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.simple th { font-size: 0.85rem; color: var(--muted); font-weight: 600; background: var(--bg); }
table.simple tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

.promise { border-top: 3px solid var(--accent); padding-top: 16px; display: grid; gap: 8px; }
.promise p { color: var(--muted); font-size: 0.97rem; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.pills li a, .pills li span { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 500; text-decoration: none; }
.pills li a:hover { border-color: var(--accent); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; color: var(--accent); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); margin-top: 10px; max-width: 70ch; }

/* CTA band */
.cta-band { background: var(--night); color: var(--night-ink); padding: 56px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band p { color: var(--night-muted); margin-top: 8px; }

/* Contact form */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.contact-form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .contact-form { grid-template-columns: 1fr; } }
.contact-form label { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { grid-column: 1 / -1; border: 1px solid var(--accent); border-radius: 12px; padding: 16px; display: none; gap: 8px; background: var(--bg); }
.form-msg.show { display: grid; }
.form-msg a { color: var(--ink); }

footer { background: var(--night); color: var(--night-muted); padding: 48px 0 28px; font-size: 0.93rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
footer h3 { color: var(--night-ink); font-size: 0.95rem; margin-bottom: 12px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { color: var(--night-muted); text-decoration: none; }
footer a:hover { color: var(--night-ink); }
.foot-base { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Calculator lead capture */
.calc-lead { border-top: 1px solid rgba(238,241,248,0.14); padding-top: 20px; display: grid; gap: 10px; }
.calc-lead-title { font-weight: 600; }
.calc-lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-lead-row .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 600px) { .calc-lead-row { grid-template-columns: 1fr; } }
.calc-lead input { width: 100%; font: inherit; padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(238,241,248,0.2); background: var(--night-2); color: var(--night-ink); }
.calc-lead input::placeholder { color: var(--night-muted); }
.calc-lead .btn { padding: 11px 18px; }
.calc-lead-msg { font-size: 0.92rem; color: var(--night-muted); min-height: 1em; }
.calc-lead-msg.ok { color: var(--accent); }
.calc-lead-msg a { color: var(--accent); }
