:root {
  --night: #0f1a2b;
  --night-2: #16243a;
  --ink: #1d2533;
  --muted: #5b6475;
  --paper: #fbf8f2;
  --paper-2: #f3ede2;
  --gold: #f5c451;
  --gold-deep: #e0a82e;
  --red: #c8412e;
  --line: #e4ddd0;
  --radius: 14px;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font: 17px/1.6 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85em 1.5em;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--night);
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(245, 196, 81, 0.5);
  transition: background 0.15s, box-shadow 0.2s, transform 0.15s;
}
.btn:hover { background: var(--gold-deep); box-shadow: 0 0 24px 2px rgba(245, 196, 81, 0.45); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 2px #fff; }
.btn-small { padding: 0.6em 1.1em; font-size: 0.9rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 26, 43, 0.92);
  backdrop-filter: blur(8px);
  color: #fff;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.15rem var(--serif); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; color: rgba(255, 255, 255, 0.6); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.nav a:not(.btn) { text-decoration: none; opacity: 0.85; }
.nav a:not(.btn):hover { opacity: 1; }

/* Hero */
.hero {
  position: relative;
  min-height: min(82vh, 720px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--night);
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 26, 43, 0.15) 0%, rgba(15, 26, 43, 0.55) 45%, rgba(15, 26, 43, 0.92) 100%);
}
.hero-content { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 72px; max-width: 1120px; }
.hero h1 { max-width: 14ch; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.lede { max-width: 38rem; font-size: 1.15rem; opacity: 0.92; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; color: var(--gold); margin-bottom: 0.75em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Trust strip */
.trust { background: var(--night-2); color: #fff; }
.trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin: 0 auto;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 0.95rem;
}
.trust-list li { display: flex; align-items: center; gap: 10px; }
.trust-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.trust-list strong { font-weight: 500; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--night); color: #fff; }
.section-lede { max-width: 40rem; color: var(--muted); font-size: 1.1rem; margin-bottom: 2.25rem; }
.section-dark .section-lede { color: rgba(255, 255, 255, 0.75); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 20px 22px 8px; }
.card p { color: var(--muted); }

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin: 2rem 0 0;
  padding: 0;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--night);
  font: 700 1.2rem var(--serif);
  box-shadow: 0 0 22px rgba(245, 196, 81, 0.55);
}
.steps p { color: rgba(255, 255, 255, 0.78); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 1.05rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold-deep); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--muted); }

/* Quote form */
.quote { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.quote-intro p { color: rgba(255, 255, 255, 0.8); }
.contact-alt { margin-top: 1.5rem; line-height: 1.9; }
.contact-alt a { color: var(--gold); }

.quote-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--night-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}
.quote-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 0.7em 0.85em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  color-scheme: dark;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.quote-form textarea { resize: vertical; }
.quote-form textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.quote-form .btn { justify-self: start; }
.form-note { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }
.form-error { margin: 0; padding: 12px 14px; border-radius: 8px; background: rgba(200, 65, 46, 0.18); border: 1px solid var(--red); color: #ffd9d2; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: #0a1220; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Simple centered pages (thanks, 404) */
.simple-page { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--night); color: #fff; padding: 40px 20px; }
.simple-page p { color: rgba(255, 255, 255, 0.8); max-width: 32rem; margin-left: auto; margin-right: auto; }
.simple-page .btn { margin-top: 12px; }

@media (max-width: 860px) {
  .quote { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .nav a:not(.btn) { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 26px; height: 26px; }
  .quote-form { padding: 20px; }
  .quote-form .row { grid-template-columns: 1fr; }
  .trust-list { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, summary::after { transition: none; }
}

/* Long-form text pages (privacy) */
.prose h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-top: 0.5em; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose p { color: var(--muted); }
.prose a { color: var(--ink); }
