/* Giardina HQ: a job site at night. Slate dark, bone text, sodium-lamp amber. */
:root {
  --night: #0F141B;
  --night-2: #131A23;
  --surface: #18212C;
  --surface-2: #1E2935;
  --line: #273342;
  --line-soft: #1D2632;
  --text: #ECE6DC;
  --muted: #9CA5B0;
  --faint: #6E7884;
  --amber: #F4A62A;
  --amber-soft: rgba(244, 166, 42, .14);
  --amber-ink: #1B1306;
  --won: #7BCB9C;
  --quoted: #8DBBEB;
  --gutter: clamp(20px, 4vw, 40px);
  --max: 1200px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0; background: var(--night); color: var(--text);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.65; font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--amber); color: var(--amber-ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
h1 {
  font-size: clamp(42px, 6.2vw, 80px); line-height: 1.0;
  font-weight: 760; font-stretch: 116%; letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(30px, 4vw, 50px); line-height: 1.06;
  font-weight: 720; font-stretch: 112%; letter-spacing: -0.03em;
}
h3 { font-size: 18px; line-height: 1.3; font-weight: 650; font-stretch: 104%; letter-spacing: -0.01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 10px;
  font: inherit; font-weight: 650; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-amber { background: var(--amber); color: var(--amber-ink); }
.btn-amber:hover { background: #FFB845; }
.btn-line { border-color: var(--line); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--muted); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(15, 20, 27, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 720; font-stretch: 112%; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; fill: var(--amber); }
.nav { display: none; gap: 30px; font-size: 15px; color: var(--muted); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); }
/* One light source, like a work lamp over the site. */
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 720px; height: 720px; right: -160px; top: -200px;
  background: radial-gradient(closest-side, rgba(244, 166, 42, .16), rgba(244, 166, 42, 0));
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 56px; align-items: center; }
.lede { margin-top: 24px; max-width: 50ch; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-device { justify-self: center; width: 100%; max-width: 330px; }
.hero-device figcaption { margin-top: 16px; text-align: center; font-size: 13px; color: var(--faint); }

.phone {
  position: relative; padding: 10px; border-radius: 46px;
  background: linear-gradient(160deg, #2A3441, #10161E 60%);
  box-shadow: 0 0 0 1px #2E3947, 0 40px 80px -20px rgba(0, 0, 0, .7), 0 0 120px -30px rgba(244, 166, 42, .25);
}
.phone-screen {
  position: relative; overflow: hidden; min-height: 600px; border-radius: 37px;
  background: #0B1016; padding: 58px 16px 20px;
}
.phone-screen::before { /* camera pill */
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; border-radius: 20px; background: #000;
}

.push {
  position: absolute; z-index: 2; left: 10px; right: 10px; top: 46px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start;
  padding: 12px 14px; border-radius: 18px;
  background: rgba(38, 48, 60, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  animation: push-in 4.8s cubic-bezier(.2, .8, .2, 1) 1s both;
}
.push-dot { width: 22px; height: 22px; margin-top: 2px; border-radius: 6px; background: var(--amber); }
.push-title { font-size: 13px; font-weight: 650; }
.push-body { font-size: 12.5px; line-height: 1.4; color: #C9CFD6; }
.push-time { font-size: 11px; color: var(--faint); }
@keyframes push-in {
  0%   { transform: translateY(-140%); opacity: 0; }
  12%  { transform: translateY(0); opacity: 1; }
  78%  { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-140%); opacity: 0; }
}

.app-bar { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 4px 14px; }
.app-title { font-size: 26px; font-weight: 720; font-stretch: 110%; letter-spacing: -0.02em; }
.app-sub { font-size: 12.5px; color: var(--muted); }

.leads { display: grid; gap: 8px; }
.lead {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft);
}
.lead.is-new { border-color: rgba(244, 166, 42, .45); background: linear-gradient(0deg, var(--amber-soft), var(--amber-soft)), var(--surface); }
.lead-name { font-size: 14.5px; font-weight: 620; }
.lead-job { font-size: 12.5px; color: var(--muted); }
.chip { flex: none; font-size: 11.5px; font-weight: 620; padding: 4px 9px; border-radius: 999px; }
.chip-new { background: var(--amber); color: var(--amber-ink); }
.chip-quoted { background: rgba(141, 187, 235, .14); color: var(--quoted); }
.chip-won { background: rgba(123, 203, 156, .14); color: var(--won); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line-soft); }
.band { background: var(--night-2); }
.head { display: grid; gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); }
.head p { max-width: 54ch; color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); }
.head-stack { margin-bottom: 0; align-content: start; }
.note { font-size: 15px !important; color: var(--faint) !important; }

/* ---------- Flow: search to booked job ---------- */
.flow { display: grid; gap: 40px; counter-reset: none; }
.stage { display: grid; gap: 14px; align-content: start; position: relative; }
.stage h3 { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.stage > p { color: var(--muted); font-size: 15.5px; max-width: 38ch; }
.n {
  display: inline-grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--amber); color: var(--amber);
  font-size: 13px; font-weight: 700; font-stretch: 100%;
}

.mini {
  height: 228px; border-radius: var(--radius); padding: 18px;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; align-content: start; gap: 12px; overflow: hidden;
}
.mini-search {
  font-size: 13px; color: var(--text); padding: 10px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.mini-result { display: grid; gap: 3px; padding: 4px 4px 0; }
.r-url { font-size: 11.5px; color: var(--faint); }
.r-title { font-size: 15px; font-weight: 600; color: var(--quoted); line-height: 1.3; }
.r-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.mini-label { font-size: 12px; color: var(--muted); }
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-chips span { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.mini-chips .on { border-color: var(--amber); color: var(--amber); background: var(--amber-soft); }
.mini-photos { display: flex; gap: 6px; }
.mini-photos span { width: 44px; height: 36px; border-radius: 6px; background: linear-gradient(135deg, #3A4655, #222C38); }
.mini-btn { justify-self: start; font-size: 12.5px; font-weight: 650; padding: 7px 14px; border-radius: 8px; background: var(--amber); color: var(--amber-ink); }

.mini-alert { border-radius: 12px; padding: 14px; background: var(--surface-2); border: 1px solid rgba(244, 166, 42, .35); display: grid; gap: 6px; }
.a-title { font-size: 14px; font-weight: 650; margin-bottom: 4px; }
.a-row { display: grid; grid-template-columns: 58px 1fr; font-size: 12.5px; }
.a-row span { color: var(--faint); }

.mini-status { display: flex; gap: 6px; }
.mini-status span { flex: 1; text-align: center; font-size: 12px; padding: 7px 0; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); }
.mini-status .on { border-color: var(--won); color: var(--won); background: rgba(123, 203, 156, .12); }
.mini-report { display: grid; gap: 2px; margin-top: 4px; }
.mini-report .big { font-size: 40px; line-height: 1; font-weight: 720; font-stretch: 112%; letter-spacing: -0.03em; }
.mini-report p:not(.big) { font-size: 12.5px; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 34px; margin-top: 10px; }
.bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--line); }
.bars i { background: #34404F; }
.bars .b1 { height: 40%; } .bars .b2 { height: 62%; } .bars .b3 { height: 52%; }
.bars .b4 { height: 100%; background: var(--amber); }

/* ---------- Estimator ---------- */
.est-grid { display: grid; gap: 40px; align-items: center; }
.estimator {
  display: grid; gap: 26px; padding: clamp(22px, 3vw, 34px);
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
}
.est-services { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.est-services legend { width: 100%; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.est-services label { position: relative; }
.est-services input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.est-services span {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); font-size: 15px; font-weight: 550; cursor: pointer;
}
.est-services input:checked + span { border-color: var(--amber); color: var(--amber); background: var(--amber-soft); }
.est-services input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 3px; }

.est-size { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; }
.est-size label { font-size: 14px; color: var(--muted); }
.est-size output { font-weight: 650; font-variant-numeric: tabular-nums; }
.est-size input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--amber); height: 28px; margin: 0; cursor: pointer; }

.est-result { padding-top: 22px; border-top: 1px solid var(--line); }
.est-label { font-size: 14px; color: var(--muted); }
.est-price {
  font-size: clamp(36px, 5vw, 54px); line-height: 1.1; margin-top: 4px;
  font-weight: 740; font-stretch: 112%; letter-spacing: -0.03em; color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.est-fine { margin-top: 6px; font-size: 13.5px; color: var(--faint); }

/* ---------- Included ---------- */
.included { display: grid; gap: 0; border-top: 1px solid var(--line); }
.included li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.included svg { width: 26px; height: 26px; margin-top: 1px; fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.included p { margin-top: 4px; color: var(--muted); font-size: 15.5px; max-width: 44ch; }

/* ---------- About + process ---------- */
.about-grid { display: grid; gap: 48px; }
.about { display: grid; gap: 18px; align-content: start; }
.about p { max-width: 54ch; color: var(--muted); }
.about .about-lead { color: var(--text); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; }
.about .trades { font-size: 15px; color: var(--faint); }
.process { display: grid; gap: 0; border-left: 1px solid var(--line); margin-left: 12px; }
.process li { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 0 0 30px; }
.process li:last-child { padding-bottom: 0; }
.process .n { margin-left: -13px; background: var(--night-2); }
.process p { margin-top: 2px; color: var(--muted); font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 32px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 18px; font-weight: 600; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background:
    linear-gradient(var(--amber), var(--amber)) center / 100% 2px no-repeat,
    linear-gradient(var(--amber), var(--amber)) center / 2px 100% no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; max-width: 60ch; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: radial-gradient(900px 500px at 0% 100%, rgba(244, 166, 42, .08), transparent 60%), var(--night); }
.contact-grid { display: grid; gap: 40px; }
.contact-copy { display: grid; gap: 16px; align-content: start; }
.contact-copy p { max-width: 42ch; color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); }
.contact-copy .contact-alt { font-size: 15px; color: var(--faint); }
.contact-copy .contact-alt a { color: var(--text); }

.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 34px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.field { display: grid; gap: 7px; }
.field-row { display: grid; gap: 18px; }
.field label { font-size: 14px; font-weight: 600; }
.opt { font-weight: 400; color: var(--faint); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--night); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 21px) 52%, calc(100% - 15px) 52%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px var(--amber-soft); }
.field [aria-invalid="true"] { border-color: #E8806A; }
.field-error { font-size: 14px; color: #F2A390; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-size: 15px; }
.form-status.is-error { color: #F2A390; }
.sent { display: grid; gap: 8px; padding: clamp(22px, 3vw, 34px); border-radius: 20px; background: var(--surface); border: 1px solid var(--amber); }
.sent p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line-soft); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-top: 30px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: var(--text); }

/* ---------- Simple pages ---------- */
.simple { min-height: 72vh; display: grid; align-content: center; gap: 22px; padding: 64px 0; }
.simple p { max-width: 46ch; font-size: 18px; color: var(--muted); }

/* ---------- Larger screens ---------- */
@media (min-width: 680px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
  .included { grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 0; }
  .included li:nth-child(-n+2) { border-top: 1px solid var(--line); }
}

@media (min-width: 960px) {
  .nav { display: flex; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; }
  .hero-device { justify-self: end; }
  .head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 64px; }
  .head-stack { grid-template-columns: 1fr; gap: 16px; }
  .est-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; }
  .about-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 80px; }
  .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 72px; }
  .faq-grid .head-stack { position: sticky; top: 100px; align-self: start; }
  .contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 72px; }
}

@media (min-width: 1120px) {
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  /* A thin line ties the four stages together. */
  .flow::before {
    content: ""; position: absolute; left: 0; right: 0; top: 110px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--line) 8%, var(--line) 92%, transparent);
    z-index: 0;
  }
  .flow { position: relative; }
  .mini { position: relative; z-index: 1; }
}

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