/* style.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #111;
  background: #fff;
}

/* Typography */
h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem 0;
}

/* Was: clamp(2rem, 4vw, 3rem) — too big with longer H1 */
h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.125rem; }

p {
  margin: 0 0 1rem 0;
  max-width: 72ch;
}

ul, ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
header, main, footer {
  width: 100%;
}

header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 10;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

nav > a:first-child {
  font-weight: 700;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul a {
  padding: 8px 10px;
  border-radius: 10px;
}

nav ul a:hover {
  background: rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

nav > a:last-child {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #111;
  color: #fff;
  text-decoration: none;
}

nav > a:last-child:hover {
  background: #000;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

section {
  padding: 56px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

section:last-of-type {
  border-bottom: none;
}

#hero {
  padding-top: 40px;
}

#hero p:last-child {
  margin-bottom: 0;
}

/* Simple button-ish links in hero and CTA */
#hero div a,
#estimate div a {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  margin-right: 10px;
  text-decoration: none;
}

#hero div a:first-child {
  background: #111;
  color: #fff;
  border-color: #111;
}

#hero div a:first-child:hover {
  background: #000;
}

#hero div a:last-child:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* CTA button look in estimate */
#estimate div a {
  background: #111;
  color: #fff;
  border-color: #111;
}

#estimate div a:hover {
  background: #000;
}

/* Articles spacing */
section article {
  margin: 0 0 18px 0;
  max-width: 76ch;
}

/* Footer */
footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 24px 18px 40px;
}

footer p {
  margin: 0.4rem 0;
}

/* Mobile */
@media (max-width: 760px) {
  nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  nav ul {
    justify-content: flex-start;
  }

  nav > a:last-child {
    width: 100%;
    text-align: center;
  }

  section {
    padding: 44px 0;
  }
}

/* --- Marquee (Bolt-style) --- */
.marquee {
  margin-top: 22px;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}

.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  animation: marquee-scroll 32s linear infinite;
}

.marquee__track span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.75);
  white-space: nowrap;
}

/* pause on hover */
.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (max-width: 760px) {
  .marquee__track span {
    font-size: 0.8rem;
  }
}

/* --- Marquee edge fade (Bolt-style) --- */
.marquee {
  position: relative;
}

/* Left fade */
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 2;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

/* Right fade */
.marquee::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

/* Mobile: slightly smaller fade */
@media (max-width: 760px) {
  .marquee::before,
  .marquee::after {
    width: 40px;
  }
}
/* === FORM (Phase 4) - minimal premium styling === */

#estimate form {
  margin-top: 18px;
  max-width: 860px;
}

.form-step {
  margin: 0 0 18px 0;
}

.form-step-title {
  font-size: 1.1rem;
  margin: 0 0 10px 0;
}

fieldset {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  padding: 14px 14px 10px;
  margin: 0 0 16px 0;
  background: rgba(0, 0, 0, 0.015);
}

legend {
  padding: 0 8px;
  font-weight: 650;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  font-size: 0.95rem;
  font-weight: 550;
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  font: inherit;
  line-height: 1.2;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.form-help {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.7);
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: #b00020;
  min-height: 1.1em;
}

.choice-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  cursor: pointer;
  display: grid;
  gap: 6px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card-title {
  font-weight: 700;
  font-size: 1rem;
}

.choice-card-sub {
  color: rgba(0, 0, 0, 0.72);
  font-size: 0.95rem;
  line-height: 1.35;
}

.choice-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.choice-card.is-selected {
  border-color: rgba(0, 0, 0, 0.45);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.10);
}

.form-actions {
  margin-top: 14px;
}

#estimate button[type="submit"] {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #111;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

#estimate button[type="submit"]:hover {
  background: #000;
}

.form-microcopy {
  margin: 10px 0 0 0;
  color: rgba(0, 0, 0, 0.75);
}

@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .choice-cards {
    grid-template-columns: 1fr;
  }

  #estimate button[type="submit"] {
    width: 100%;
  }
}
/* Hide form steps until service is selected */
#estimate fieldset,
#estimate .form-actions {
  display: none;
}
