/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: #1f2933;
  background: #ffffff;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

:root {
  --color-primary: #f2701c;      /* vivid orange - garage/desert tone */
  --color-primary-dark: #d1590f;
  --color-ink: #1f2933;
  --color-muted: #52606d;
  --color-bg-alt: #f9f5f0;
  --color-border: #e4dfd8;
  --color-dark: #17181a;
  --color-dark-alt: #232427;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-hand: "Permanent Marker", cursive;
  --font-script: "Dancing Script", cursive;
  --max-width: 1120px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  background: var(--color-dark);
  padding: 18px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-script);
}
.logo span {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  margin-left: 2px;
}
.header-phone {
  font-weight: 600;
  color: var(--color-primary-dark);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 200;
  text-decoration: none;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-pill {
  border-radius: 999px;
  padding: 15px 36px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.9rem;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-dark {
  background: var(--color-dark);
  color: #fff;
  border-radius: 6px;
  padding: 12px 32px;
}
.btn-dark:hover { background: var(--color-dark-alt); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.25) 45%, rgba(10,10,10,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 48px 24px;
}
.hero h1 {
  font-size: clamp(1.8rem, 4.2vw, 3.1rem);
  margin: 0 0 32px;
  line-height: 1.25;
  font-weight: 600;
  max-width: 900px;
}
.hero h1 .hand-accent {
  font-size: 1.15em;
}
.hero-headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(-24px);
  animation: hero-word-in 0.6s ease forwards;
}
.hero-headline .word:nth-child(1) { animation-delay: 0.1s; }
.hero-headline .word:nth-child(2) { animation-delay: 0.2s; }
.hero-headline .word:nth-child(3) { animation-delay: 0.3s; }
.hero-headline .word:nth-child(4) { animation-delay: 0.4s; }
.hero-headline .word:nth-child(5) { animation-delay: 0.5s; }
.hero-headline .word:nth-child(6) { animation-delay: 0.6s; }
@keyframes hero-word-in {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-headline .word {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ===== Section headings ===== */
.section {
  padding: 56px 0;
}
.section-alt {
  background: var(--color-bg-alt);
}
.section-heading {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 8px;
}
.section-subheading {
  text-align: center;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

/* ===== Shared hand-drawn accent ===== */
.hand-accent {
  font-family: var(--font-hand);
  font-weight: 400;
  color: black;
}

/* ===== Services carousel ===== */
.services {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 72px 0;
}
.services .container { width: 100%; }
.eyebrow {
  color: var(--color-primary);
  font-weight: 100;
  letter-spacing: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin: 0 0 32px;
}
.carousel {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 12px;
}
.carousel-arrow {
  background: none;
  border: none;
  color: var(--color-ink);
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.15s ease;
}
.carousel-arrow:hover { background: var(--color-bg-alt); }
.carousel-arrow svg { width: 22px; height: 22px; }
.carousel-viewport {
  position: relative;
}
.carousel-track {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.carousel-slide {
  grid-area: 1 / 1;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}
.carousel-slide.is-active,
.carousel-slide.is-outgoing {
  display: grid;
}
.slide-copy {
  width: 60%;
}
.slide-media img {
  width: 100%;
  border-radius: 4px;
}
.slide-copy h2 {
  font-size: 1.9rem;
  margin: 0 0 20px;
  color: var(--color-ink);
}
.slide-copy p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 0 0 16px;
}
@media (max-width: 800px) {
  .carousel {
    grid-template-columns: 36px 1fr 36px;
  }
  .carousel-slide {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@keyframes carousel-exit {
  0% { opacity: 1; transform: translateY(0); }
  75% { opacity: 1; transform: translateY(52vh); }
  100% { opacity: 0; transform: translateY(70vh); }
}
@keyframes carousel-enter-left {
  from { opacity: 0; transform: translateX(-48px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes carousel-enter-right {
  from { opacity: 0; transform: translateX(48px); }
  to { opacity: 1; transform: translateX(0); }
}
.carousel-slide.is-outgoing .slide-media {
  animation: carousel-exit 0.6s ease-in forwards;
}
.carousel-slide.is-outgoing .slide-copy {
  animation: carousel-exit 0.6s ease-in 0.075s forwards;
}
.carousel-slide.is-entering .slide-media {
  animation: carousel-enter-left 0.6s ease 0.15s both;
}
.carousel-slide.is-entering .slide-copy {
  animation: carousel-enter-right 0.6s ease 0.3s both;
}
@media (prefers-reduced-motion: reduce) {
  .carousel-slide.is-outgoing .slide-media,
  .carousel-slide.is-outgoing .slide-copy,
  .carousel-slide.is-entering .slide-media,
  .carousel-slide.is-entering .slide-copy {
    animation: none;
  }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  padding: 0;
  cursor: pointer;
}
.carousel-dots button.is-active {
  background: var(--color-ink);
}

/* ===== Contact / questions section ===== */
.contact {
  position: relative;
  background: var(--color-primary);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 72px 0;
}
.contact-blueprint {
  mix-blend-mode: screen;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 420px;
  max-width: 60%;
  height: auto;
  pointer-events: none;
}
.contact-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.contact-inner h2 {
  color: #fff;
  font-size: 2.1rem;
  margin: 0 0 6px;
}
.contact-sub {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  margin: 0 0 28px;
}
.contact-success {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}
.contact-success[hidden] { display: none; }
.contact-inner .form-row-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .contact-inner .form-row-group { grid-template-columns: 1fr; }
}
.contact-inner .form-row label {
  color: #fff;
  text-align: left;
}
.contact-inner form { text-align: left; }
.contact-inner .btn-dark {
  display: block;
  margin: 4px auto 0;
}

/* ===== Service area ===== */
.service-area {
  background: var(--color-bg-alt);
  min-height: 100vh;
  display: flex;
  padding: 0;
}
.service-area-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  max-width: none;
  padding: 0;
  align-items: stretch;
  flex: 1;
}
.service-area-copy {
  padding: 56px 40px;
  align-self: center;
}
.service-area-copy h2 {
  font-size: 2rem;
  margin: 0 0 4px;
}
.service-area-sub {
  color: var(--color-muted);
  margin: 0 0 20px;
  font-size: 0.95rem;
}
.city-list li {
  color: var(--color-ink);
  font-family: var(--font-hand);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.service-area-map {
  min-height: 420px;
}
.service-area-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}
@media (max-width: 800px) {
  .service-area-grid { grid-template-columns: 1fr; }
  .service-area-copy { padding: 40px 24px; }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-dark);
  padding: 40px 0 28px;
  color: #b7b8ba;
  font-size: 0.85rem;
}
.site-footer a { color: #fff; }
.site-footer .footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.9rem;
  margin: 0 0 10px;
}
.site-footer .footer-bottom {
  border-top: 1px solid var(--color-dark-alt);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* ===== Page 2: lead form page ===== */
.quote-page-header {
  background: var(--color-dark);
  padding: 18px 0;
  text-align: center;
}
.quote-hero {
  text-align: center;
  padding: 40px 0 16px;
}
.quote-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin: 0 0 10px;
}
.quote-hero .reassurance {
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 auto;
}
.form-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 0 64px;
}
.form-row {
  margin-bottom: 18px;
}
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.form-row .required {
  color: var(--color-primary);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 8px 8px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--color-ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}
.form-row textarea { resize: vertical; min-height: 90px; }
.field-error {
  color: #b91c1c;
  font-size: 0.82rem;
  margin-top: 6px;
  display: none;
}
.form-row.has-error input,
.form-row.has-error select {
  border-color: #b91c1c;
}
.form-row.has-error .field-error { display: block; }

.form-status {
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
}
.form-status.success {
  display: block;
  background: #ecfdf3;
  border: 1px solid #6ce9a6;
  color: #0f5132;
}
.form-status.error {
  display: block;
  background: #fef3f2;
  border: 1px solid #fda29b;
  color: #7a271a;
}
#lead-form[hidden] { display: none; }
