/* Same Day Patch. Mobile-first, no framework. */
:root {
  --ground: #18191B;
  --panel: #232427;
  --border: #34363A;
  --text: #ECEAE5;
  --white: #FFFFFF;
  --muted: #B9B6AF;
  --muted-2: #8E8B85;
  --accent: #F2C230;
  --accent-hover: #FFD95C;
  --on-accent: #18191B;
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: Inter, Arial, sans-serif;
  --gutter: 16px;
  --edge: clamp(32px, 5vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  padding-bottom: 64px; /* room for the mobile bar */
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--head); text-transform: uppercase; color: var(--white); margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--on-accent); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Placeholder marker: anything still waiting on real info */
.nowrap { white-space: nowrap; }
.ph { outline: 2px dashed var(--accent); outline-offset: 2px; background: rgba(242, 194, 48, .12); padding: 0 4px; }

.tag {
  display: inline-block;
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; font-size: 15px; line-height: 1;
  background: var(--accent); color: var(--on-accent);
  padding: 7px 10px;
  white-space: nowrap;
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ground); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand img { width: 28px; height: 28px; }
.brand span { font-family: var(--head); font-weight: 800; font-size: 22px; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }
.brand:hover { color: var(--white); }
.tag-header { display: none; }
.header-call { display: none; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.header-call svg, .mobile-call svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 22px;
  font-family: var(--head); font-weight: 800; font-size: 21px; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--accent); cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-outline { background: transparent; color: var(--white); }
.btn-outline:hover { background: var(--panel); color: var(--accent); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Hero */
.hero { padding: 0 0 44px; border-bottom: 1px solid var(--border); }
.hero-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel); border-bottom: 4px solid var(--accent); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-copy { padding-top: 28px; }
.eyebrow { font-family: var(--head); font-weight: 700; font-size: 17px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-weight: 800; font-size: clamp(46px, 13vw, 104px); line-height: .92; margin-top: 14px; max-width: 14ch; }
.lede { margin-top: 20px; font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 60ch; }
.cta-row { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.facts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.facts li { background: var(--panel); padding: 14px 16px; font-family: var(--head); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: 1px; color: var(--white); display: flex; gap: 12px; align-items: baseline; }
.facts span { color: var(--accent); font-weight: 800; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.label { font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: 4px; text-transform: uppercase; color: var(--muted-2); }
.section h2 { font-weight: 800; font-size: clamp(36px, 9vw, 60px); line-height: .95; margin-top: 8px; }
.section-intro { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 62ch; }

/* Process animation. Base styles are the static fallback (finished diagram + step list). */
.scrolly { margin-top: 28px; }
.sx-figure { margin: 0; background: var(--panel); border: 1px solid var(--border); padding: 16px 12px; }
.sx-svg { width: 100%; height: auto; }
.sx-progress, .sx-hint { display: none; }
.sx-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.sx-step { background: var(--panel); padding: 18px 20px; }
.sx-step h3 { display: flex; gap: 12px; align-items: baseline; font-weight: 800; font-size: 26px; line-height: 1.1; }
.sx-step h3 span { color: var(--accent); }
.sx-step p { margin-top: 6px; color: var(--muted); }

/* Scroll-driven mode (turned on by script.js unless reduced motion is set) */
.scrolly-on .scrolly { height: 440vh; }
.scrolly-on .sx-stage {
  position: sticky; top: 60px;
  height: calc(100vh - 120px); height: calc(100svh - 120px); /* header + mobile bar */
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.scrolly-on .sx-figure { flex: 0 1 auto; min-height: 0; }
.scrolly-on .sx-svg { max-height: 46svh; margin: 0 auto; }
.scrolly-on .sx-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sx-progress span { height: 4px; background: var(--border); position: relative; overflow: hidden; }
.sx-progress span::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--fill, 0)); transform-origin: left; }
.scrolly-on .sx-steps { display: block; position: relative; margin-top: 12px; min-height: 120px; }
.scrolly-on .sx-step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.scrolly-on .sx-step.is-active { opacity: 1; transform: none; }
.scrolly-on .sx-hint { display: block; margin-top: 10px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted-2); transition: opacity .3s; }
.scrolly-on .sx-hint.is-hidden { opacity: 0; }

/* Why */
.why-grid { display: grid; gap: 12px; margin-top: 28px; }
.why { background: var(--ground); border: 1px solid var(--border); padding: 22px 20px; }
.why svg { width: 36px; height: 36px; fill: none; stroke: var(--accent); stroke-width: 1.75; stroke-linecap: square; }
.why h3 { margin-top: 14px; font-weight: 800; font-size: 26px; line-height: 1.05; }
.why p { margin-top: 8px; color: var(--muted); }

/* Pricing */
.price-grid { display: grid; gap: 12px; margin-top: 28px; }
.price { border: 2px solid var(--border); padding: 20px 22px; }
.price-accent { border-color: var(--accent); }
.size { font-family: var(--head); font-weight: 800; font-size: 44px; line-height: 1; color: var(--white); }
.amount { margin-top: 8px; font-size: 19px; font-weight: 600; color: var(--accent); }
.amount-muted { color: var(--muted); }
.fine { margin-top: 18px; color: var(--muted-2); }

/* Elevated only */
.only { background: var(--accent); color: var(--on-accent); padding: 40px 0; }
.only-row { display: grid; gap: 16px; }
.only .tag { background: var(--on-accent); color: var(--accent); justify-self: start; }
.only h2 { color: var(--on-accent); font-weight: 800; font-size: clamp(34px, 8vw, 54px); line-height: .95; }
.only p { margin-top: 10px; font-size: 17px; font-weight: 500; max-width: 64ch; }

/* Quote */
.quote-layout { display: grid; gap: 28px; }
.quote-intro > p:not(.label) { margin-top: 14px; color: var(--muted); font-size: 17px; }
.quote-intro .quote-call { color: var(--text); font-weight: 600; }
.quote-call a { font-family: var(--head); font-weight: 800; font-size: 28px; text-transform: uppercase; text-decoration: none; }
.quote-form { background: var(--panel); border: 1px solid var(--border); padding: 22px 18px; }
.request-type { border: 0; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.request-type legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.request-type label { display: flex; align-items: center; gap: 10px; background: var(--ground); border: 1px solid var(--border); padding: 12px 14px; cursor: pointer; }
.request-type label:has(input:checked) { border-color: var(--accent); }
.request-type input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.field-grid { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--text); }
.field em { color: var(--accent); font-style: normal; }
.field small { color: var(--muted-2); font-size: 13px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--ground); border: 1px solid var(--border); border-radius: 0;
  padding: 12px; min-height: 48px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field input[type="date"] { color-scheme: dark; }
.field input[type="file"] { padding: 10px; }
.field input[type="file"]::file-selector-button { font: inherit; font-weight: 600; background: var(--panel); color: var(--text); border: 1px solid var(--border); padding: 6px 10px; margin-right: 10px; cursor: pointer; }
.field.invalid input { border-color: #E5604D; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-form .btn { margin-top: 20px; }
.form-status { margin-top: 14px; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #F08A7A; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 24px; color: var(--muted); }
.footer-row { display: grid; gap: 20px; }
.footer-brand { font-family: var(--head); font-weight: 800; font-size: 26px; letter-spacing: 2px; text-transform: uppercase; color: var(--white); margin-bottom: 6px; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-weight: 600; }
.footer-contact a { text-decoration: none; }
.footer-base { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--accent); }
.fine-small { margin-top: 8px; font-size: 14px; max-width: 80ch; }
.form-consent { margin-top: 18px; font-size: 14px; color: var(--muted-2); }

/* Legal pages */
.legal { padding: 40px 0 64px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-weight: 800; font-size: clamp(40px, 10vw, 64px); line-height: .95; }
.legal .updated { margin-top: 10px; color: var(--muted-2); font-size: 14px; }
.legal h2 { font-weight: 800; font-size: 26px; margin-top: 36px; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 20px; }
.legal li { margin-top: 6px; }
.legal strong { color: var(--text); }
.back-link { display: inline-block; margin-bottom: 20px; font-weight: 600; text-decoration: none; }

/* Sticky mobile bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1.4fr; border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); background: var(--ground); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 60px; font-family: var(--head); font-weight: 800; font-size: 21px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; }
.mobile-call { background: var(--panel); color: var(--white); }
.mobile-quote { background: var(--accent); color: var(--on-accent); }
.mobile-quote:hover { color: var(--on-accent); }

/* Larger phones */
@media (min-width: 480px) {
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .header-call { display: inline-flex; }
}

/* Tablet and up */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .sx-figure { padding: 24px 28px; }
  .sx-steps, .why-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .request-type { grid-template-columns: 1fr 1fr; }
  .request-type legend { grid-column: 1 / -1; }
  .quote-form { padding: 28px; }
  .footer-row { grid-template-columns: 1fr auto; align-items: end; }
  .footer-contact { text-align: right; }
}

/* Desktop: no mobile bar */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .tag-header { display: inline-block; }
  .header-row { height: 72px; }
  .brand img { width: 32px; height: 32px; }
  .brand span { font-size: 26px; letter-spacing: 3px; }
  .hero { padding: 0 0 72px; }
  .hero-top { position: relative; min-height: min(80vh, 760px); display: flex; align-items: center; }
  /* Split hero: copy fills the left 54%, starting on the header's left edge; photo fills the rest. */
  .hero-media { position: absolute; top: 0; bottom: 0; left: 54%; right: 0; aspect-ratio: auto; border-bottom: 0; border-left: 6px solid var(--accent); }
  .hero-media img { object-position: 72% 50%; }
  /* Header and hero run full width with a shared edge gutter */
  .site-header .wrap, .hero .wrap { max-width: none; padding-left: var(--edge); padding-right: var(--edge); }
  .hero-copy {
    width: 54%; max-width: none; margin: 0;
    padding: 64px 64px 64px var(--edge);
  }
  .eyebrow span { display: block; }
  .eyebrow .sep { display: none; }
  .hero h1 { font-size: clamp(52px, 5.2vw, 108px); max-width: none; }
  .lede { max-width: 34em; }
  .facts { margin-top: 0; }
  .lede { font-size: 21px; }
  .section { padding: 88px 0; }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .only { padding: 56px 0; }
  .only-row { grid-template-columns: auto 1fr; gap: 32px; align-items: start; }
  .only .tag { margin-top: 8px; }
  .quote-layout { grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
  .quote-intro { position: sticky; top: 104px; }
  .scrolly-on .sx-stage { top: 72px; height: calc(100vh - 72px); flex-direction: row; align-items: center; gap: 40px; }
  .scrolly-on .sx-figure { flex: 1.6 1 0; }
  .scrolly-on .sx-svg { max-height: 70vh; }
  .scrolly-on .sx-panel { flex: 1 1 0; }
  .scrolly-on .sx-steps { min-height: 150px; }
  .scrolly-on .sx-step { background: none; padding: 0; }
  .scrolly-on .sx-step h3 { font-size: 40px; }
  .scrolly-on .sx-step p { font-size: 19px; }
}
