:root {
  --night: #0a0b24;
  --night-2: #12143a;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 220, 150, 0.22);
  --text: #f6f1ff;
  --muted: #cfc8e6;
  --gold: #f3c15a;
  --gold-deep: #c98a22;
  --mint: #3fe0c0;
  --error: #ffb4c4;
  --success: #a8f0c8;
  --focus: #ffe08a;
  --radius: 18px;
  --gold-line: linear-gradient(90deg, #fff1c4, var(--gold) 45%, var(--gold-deep));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: radial-gradient(ellipse at 20% 0%, #1c1550 0%, transparent 55%), var(--night);
  color: var(--text);
  font: 400 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
}

h1, h2, h3 { font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif; line-height: 1.15; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--gold); }
a:hover { color: #ffe0a0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--gold); color: #1a1200; padding: 0.75rem 1rem; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(10, 11, 36, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 220, 150, 0.14);
}
.brand { display: grid; text-decoration: none; color: var(--text); line-height: 1.2; }
.brand-company { font-size: 0.875rem; letter-spacing: 0.06em; color: var(--muted); }
.bolt { color: var(--gold); }
.brand-name { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 0.25rem 1.25rem; flex-wrap: wrap; }
.site-nav a:not(.button) { color: var(--text); text-decoration: none; padding: 0.6rem 0.25rem; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:not(.button):hover { color: var(--gold); }
@media (max-width: 560px) { .site-nav a:not(.button) { display: none; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.4rem; border-radius: 999px;
  font: 700 1rem/1.2 system-ui, sans-serif; text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } .button:hover { transform: none; } }
.button-gold { background: linear-gradient(180deg, #ffd879, var(--gold) 55%, var(--gold-deep)); color: #1f1400; box-shadow: 0 6px 24px rgba(243, 193, 90, 0.35); }
.button-gold:hover { color: #1f1400; box-shadow: 0 8px 30px rgba(243, 193, 90, 0.5); }
.button-glass { background: rgba(255, 255, 255, 0.1); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(8px); }
.button-glass:hover { color: var(--text); background: rgba(255, 255, 255, 0.18); }
.button-small { min-height: 44px; padding: 0.5rem 1.1rem; }
.button-wide { width: 100%; font-size: 1.125rem; }
.button[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; padding-block: clamp(3rem, 10vh, 6.5rem) clamp(3rem, 9vh, 5.5rem); padding-inline: max(clamp(1rem, 4vw, 2.5rem), calc((100% - 1180px) / 2)); overflow: hidden; isolation: isolate; border-bottom: 1px solid rgba(243, 193, 90, 0.3); }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 3rem; min-height: min(78vh, 760px); } }
.hero-backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(243, 193, 90, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(60, 70, 170, 0.22), transparent 70%),
    linear-gradient(180deg, #0a0b24 0%, #0e1033 100%); }
.hero-backdrop::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(243, 193, 90, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(243, 193, 90, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 70% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 75% at 70% 40%, #000 20%, transparent 75%); }
.hero-roofline { position: absolute; right: max(-4rem, calc(50% - 760px)); bottom: -1px; width: min(62vw, 820px); height: auto; color: rgba(243, 193, 90, 0.22); }
.hero-content { min-width: 0; }
.eyebrow { font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.hero h1 { font-size: clamp(2.75rem, 1.8rem + 5vw, 5.5rem); margin-bottom: 0.25em; background: linear-gradient(180deg, #fff8e0, #f3c15a 70%, #c98a22); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 30px rgba(243, 193, 90, 0.18)); }
.hero-lead { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.45rem); max-width: 34ch; }
.hero-badge { display: inline-block; padding: 0.45rem 1rem; border-radius: 999px; background: rgba(10, 11, 36, 0.7); border: 1px solid rgba(243, 193, 90, 0.65); font-size: 1rem; }
.hero-badge strong { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

/* Sections */
.section { width: min(100%, 1180px); margin: 0 auto; padding: clamp(3rem, 8vw, 5.5rem) clamp(1rem, 4vw, 2.5rem); }
.section-tinted { width: 100%; max-width: none; background: linear-gradient(180deg, rgba(243, 193, 90, 0.05), rgba(40, 46, 110, 0.18)); border-block: 1px solid rgba(255, 255, 255, 0.06); }
.section-tinted { padding-inline: max(clamp(1rem, 4vw, 2.5rem), calc((100% - 1100px) / 2)); }
.section-lead { color: var(--muted); font-size: 1.125rem; max-width: 60ch; }
.section h2::after { content: ""; display: block; width: 4.5rem; height: 4px; border-radius: 4px; margin-top: 0.6rem; background: var(--gold-line); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; margin-top: 2rem; }
.card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 1.5rem; }
.card-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.card p { color: var(--muted); margin: 0; }

.steps { list-style: none; padding: 0; margin: 2rem auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.25rem; }
.steps li { background: rgba(10, 11, 36, 0.5); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 1.5rem; }
.steps p { color: var(--muted); margin: 0; }
.step-number { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; margin-bottom: 0.75rem; font-weight: 800; color: #1f1400; background: linear-gradient(180deg, #ffd879, var(--gold-deep)); }

/* Form */
.estimate-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 2rem; max-width: 760px; }
.estimate-form fieldset { min-width: 0; }
.estimate-form > fieldset { border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 1.25rem clamp(1rem, 3vw, 1.75rem) 0.5rem; margin: 0; background: var(--panel); }
.estimate-form > fieldset > legend { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; padding: 0 0.5rem; color: var(--gold); }
.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 1.25rem; }
label, .choice-group > legend { font-weight: 600; font-size: 1rem; }
input:not([type="radio"], [type="checkbox"], [type="file"]), textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(5, 6, 22, 0.75); color: var(--text);
  font: inherit; font-size: 1rem;
}
textarea { resize: vertical; min-height: 7rem; }
input[type="file"] { font: inherit; font-size: 1rem; color: var(--text); padding: 0.6rem 0; width: 100%; max-width: 100%; min-width: 0; }
input[type="file"]::file-selector-button { font: 700 1rem system-ui, sans-serif; margin-right: 0.75rem; min-height: 44px; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.12); color: var(--text); cursor: pointer; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 2px rgba(255, 180, 196, 0.25); }
.choice-group { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.choice-group > legend { padding: 0; margin-bottom: 0.35rem; }
.choice { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; font-weight: 500; cursor: pointer; }
.choice input { width: 1.25rem; height: 1.25rem; accent-color: var(--gold); flex: none; }
.consent { align-items: flex-start; line-height: 1.5; }
.consent input { margin-top: 0.15rem; }
.field-help { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.field-error { color: var(--error); font-size: 0.9375rem; font-weight: 600; margin: 0; min-height: 0; }
.field-error:empty { display: none; }
.form-status:empty { display: none; }
.form-status { border-radius: 14px; padding: 1rem 1.25rem; font-weight: 600; }
.form-status.is-error { background: rgba(255, 122, 168, 0.12); border: 1px solid var(--error); color: var(--error); }
.form-status.is-success { background: rgba(63, 224, 192, 0.12); border: 1px solid var(--mint); color: var(--success); }
.form-status.is-working { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--panel-border); }
.form-privacy { text-align: center; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.photo-previews { list-style: none; padding: 0; margin: 0.25rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 0.6rem; }
.photo-previews li { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--panel-border); background: rgba(255, 255, 255, 0.05); display: grid; place-items: center; text-align: center; font-size: 0.875rem; color: var(--muted); padding: 0.25rem; }
.photo-previews img { width: 100%; height: 100%; object-fit: cover; }

/* Contact and footer */
.contact { text-align: center; }
.contact h2::after { margin-left: auto; margin-right: auto; }
.contact .section-lead { margin-left: auto; margin-right: auto; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
.contact-links .button-glass { overflow-wrap: anywhere; }
.site-footer { text-align: center; padding: 2rem 1rem 2.5rem; color: var(--muted); font-size: 0.9375rem; }
.site-footer p { margin: 0.25rem 0; }

/* Plain pages: thanks, errors and the owner page */
.plain-page { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.plain-card { max-width: 560px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: clamp(1.5rem, 5vw, 2.5rem); text-align: center; }
.plain-card h1 { color: var(--gold); font-size: clamp(1.75rem, 1.5rem + 1.5vw, 2.4rem); }
.error-list { text-align: left; color: var(--error); }
.reference { font-family: ui-monospace, monospace; font-size: 1.25rem; color: var(--gold); }
.owner-page { display: block; }
.owner-page main { max-width: 980px; margin: 0 auto; }
.owner-card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.owner-ref { font-family: ui-monospace, monospace; font-size: 1rem; color: var(--gold); }
.owner-meta { color: var(--muted); }
.owner-details { white-space: pre-wrap; }
.owner-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; }
.owner-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.owner-empty { color: var(--muted); }

/* Services with rates */
.card h3 { margin-bottom: 0.35rem; }
.card-rate { margin: 0.75rem 0 0.25rem; font-weight: 700; color: var(--gold); }
.card-rate span { font-weight: 500; color: var(--muted); }
.card-includes, .card-license { font-size: 0.9375rem; color: var(--muted); margin: 0; }

/* Two ways to price */
.pricing-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; margin-top: 2rem; }
.path { background: rgba(10, 11, 36, 0.55); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 1.5rem; }
.path-featured { border-color: rgba(243, 193, 90, 0.7); background: linear-gradient(180deg, rgba(243, 193, 90, 0.1), rgba(10, 11, 36, 0.7) 60%); box-shadow: 0 10px 40px rgba(243, 193, 90, 0.08); }
.path-price { font-family: Georgia, serif; font-size: 2.25rem; font-weight: 700; color: var(--gold); margin: 0 0 0.5rem; line-height: 1.1; }
.section-tinted .steps { margin-top: 2rem; }

/* Form: price type and service picker */
.choice-card { border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 14px; padding: 0.75rem 1rem; margin-bottom: 0.6rem; background: rgba(5, 6, 22, 0.5); }
.choice-card:has(input:checked) { border-color: var(--gold); background: rgba(243, 193, 90, 0.1); }
.service-options { display: grid; gap: 0.5rem; margin: 0.75rem 0 1rem; }
.service-option { border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 14px; padding: 0.35rem 0.9rem; background: rgba(5, 6, 22, 0.45); }
.service-option:has(input[name="service"]:checked) { border-color: var(--gold); }
.service-option .choice { flex-wrap: wrap; row-gap: 0; }
.option-rate { margin-left: auto; color: var(--gold); font-weight: 600; font-size: 0.9375rem; }
.service-quantity { display: grid; gap: 0.35rem; padding: 0.25rem 0 0.75rem; max-width: 320px; }
.service-quantity label { font-weight: 600; }
.bid-total { border-radius: 16px; padding: 1rem 1.25rem; margin-bottom: 1rem; background: rgba(243, 193, 90, 0.1); border: 1px solid var(--gold); }
.bid-total-label { margin: 0; color: var(--muted); font-weight: 600; }
.bid-total-amount { margin: 0.1rem 0 0.5rem; font-family: Georgia, serif; font-size: 2.25rem; font-weight: 700; color: var(--gold); line-height: 1.1; }
.bid-lines { margin: 0 0 0.5rem; padding-left: 1.2rem; }
.bid-summary { font-weight: 700; color: var(--gold); }
.owner-bid { color: var(--gold); }
[hidden] { display: none !important; }

.hero-panel { min-width: 0; background: rgba(14, 16, 51, 0.72); border: 1px solid rgba(243, 193, 90, 0.35); border-radius: var(--radius); padding: 1.5rem clamp(1.25rem, 3vw, 1.75rem); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-panel-title { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; color: var(--gold); margin: 0 0 0.75rem; }
.hero-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hero-panel li { display: grid; gap: 0.15rem; padding: 0.8rem 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.hero-panel li:first-child { border-top: 0; padding-top: 0; }
.hero-panel strong { font-size: 1.0625rem; color: var(--text); }
.hero-panel span { font-size: 0.9375rem; color: var(--muted); overflow-wrap: anywhere; }
.hero-panel a { color: var(--gold); }

/* Maintenance plans */
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; margin-top: 2rem; align-items: start; }
.plan-card { display: flex; flex-direction: column; min-width: 0; background: rgba(10, 11, 36, 0.6); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 1.5rem; }
.plan-featured { border-color: rgba(243, 193, 90, 0.75); background: linear-gradient(180deg, rgba(243, 193, 90, 0.1), rgba(10, 11, 36, 0.7) 45%); box-shadow: 0 14px 44px rgba(243, 193, 90, 0.1); }
.plan-card h3 { margin: 0; font-size: 1.5rem; }
.plan-price { font-family: Georgia, serif; font-size: 2.5rem; font-weight: 700; color: var(--gold); margin: 0.25rem 0 0; line-height: 1.1; }
.plan-price span, .path-unit { font-family: inherit; font-size: 1.0625rem; font-weight: 500; color: var(--muted); }
.plan-tagline { margin: 0.5rem 0 0; font-size: 1.0625rem; }
.plan-visit { margin: 0.75rem 0 0; color: var(--gold); font-weight: 600; }
.plan-builds { margin: 1rem 0 0; color: var(--muted); font-weight: 600; }
.plan-tasks { list-style: none; margin: 0.75rem 0 1.25rem; padding: 0; display: grid; gap: 0.6rem; }
.plan-tasks li { position: relative; padding-left: 1.5rem; line-height: 1.45; overflow-wrap: anywhere; }
.plan-tasks li::before { content: ""; position: absolute; left: 0.15rem; top: 0.45em; width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.cadence { display: block; margin-top: 0.1rem; font-size: 0.875rem; color: var(--muted); }
.plan-card .button { margin-top: auto; }
.addons-title { margin: 3.5rem 0 0.25rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.addon-card { display: flex; flex-direction: column; }
.addon-card .card-rate { margin: 0.25rem 0 0.5rem; }
.addon-card .text-link { margin-top: auto; padding-top: 0.75rem; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); font-weight: 600; text-underline-offset: 3px; }
.plans-note { margin-top: 1.5rem; max-width: 70ch; }
.plan-options { display: grid; gap: 0.25rem; margin-top: 0.5rem; }
.legend-note { font-weight: 500; color: var(--muted); }
.addon-choices .choice { min-width: 0; padding-block: 0.3rem; line-height: 1.3; }
.addon-choices .option-rate { white-space: nowrap; }
.addon-choices .option-rate { padding-left: 0.5rem; }
