/* ============================================================
   Midwest Paint and Stain — Site Styles
   Editorial / sleek — charcoal + warm rust accent
   ============================================================ */

:root {
  --bg:        #F7F4EF;      /* warm off-white */
  --bg-2:     #EDE7DC;      /* card / divider */
  --ink:      #161513;      /* near-black */
  --ink-2:    #4A463F;      /* secondary text */
  --muted:    #8B857A;      /* tertiary */
  --rust:     #B5532C;      /* accent */
  --rust-2:   #8E3F1E;      /* accent dark */
  --star:     #E0A52E;      /* review stars */
  --line:     #D8D1C4;
  --max:      1280px;
  --gap:      clamp(1.25rem, 2vw, 2rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Inter Tight', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  font-optical-sizing: auto;
}

/* Uniform paper grain laid over the whole page as one fixed layer, so
   every section and wave divider shares the exact same texture — no seams. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

img { display: block; max-width: 100%; height: auto; }

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

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 5.25rem); line-height: 0.96; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.02; }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 600; }

h1 em, h2 em, .brand-word em {
  font-style: italic;
  color: var(--rust);
  font-weight: 500;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-variant-numeric: tabular-nums;
}
.section-tag.light { color: rgba(255,255,255,.6); }

.muted { color: var(--ink-2); }

/* =========================== NAV =========================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,244,239,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 14px; height: 14px;
  background: var(--rust);
  border-radius: 2px;
  display: inline-block;
  transform: rotate(45deg);
}
.brand-word em { font-style: italic; color: var(--rust); }
.brand.small { font-size: 1rem; }

.nav-links {
  margin-left: auto;
  display: flex; gap: 1.75rem;
  font-size: 0.95rem;
}
.nav-links a {
  position: relative;
  color: var(--ink-2);
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1.5px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }
.nav-cta-icon { flex-shrink: 0; }

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-right: -0.5rem;
  padding: 9px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .2s;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-inner { gap: 0.75rem; }
  .nav-toggle { display: flex; }
  .nav-cta { margin-left: auto; padding: 0.6rem; }
  .nav-cta-num { display: none; }

  /* Nav links become a full-width dropdown panel */
  .nav-links {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 34px -22px rgba(0,0,0,.3);
    padding: 0.25rem clamp(1.25rem, 5vw, 2rem) 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a {
    padding: 0.9rem 0.25rem;
    font-size: 1.05rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }
}

/* =========================== BUTTONS =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink); color: var(--bg);
}
.btn-primary:hover { background: var(--rust); }
.btn-ghost {
  border-color: var(--ink); color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-ghost-light {
  border-color: rgba(255,255,255,.55); color: #fff;
}
.btn-ghost-light:hover { background: #fff; color: var(--ink); }

/* =========================== HERO =========================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(560px, 78vh, 800px);
  padding-block: clamp(3rem, 7vw, 6rem);
}
/* Full-bleed project photo */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 40%;
}
/* Warm dark scrim — heaviest on the left where the copy sits, easing right
   so the staircase still reads behind it. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(95deg,
      rgba(18,17,15,0.94) 0%,
      rgba(18,17,15,0.82) 36%,
      rgba(18,17,15,0.52) 66%,
      rgba(18,17,15,0.34) 100%),
    linear-gradient(0deg, rgba(18,17,15,0.55), rgba(18,17,15,0) 42%);
}
.hero-copy {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 3vw, 2rem);
}
.hero-copy > * { max-width: 38rem; }
.hero-copy .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #E1925F;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero-copy h1 { margin-bottom: 1.5rem; color: #fff; }
.hero h1 em { color: #E8956A; }
.hero-copy .lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.5;
  color: rgba(255,255,255,0.84);
  max-width: 40ch;
  margin: 0 0 2rem;
  text-wrap: pretty;
}
/* Buttons over the photo: solid cream primary, light-outline ghost */
.hero .btn-primary { background: #fff; color: var(--ink); }
.hero .btn-primary:hover { background: var(--rust); color: #fff; }
.hero .btn-ghost { border-color: rgba(255,255,255,0.6); color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); }
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  margin-bottom: 1.5rem;
}

/* Shared star glyph styling */
.stars {
  color: var(--star);
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 2rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
}
.hero-rating .rating-text strong { color: #fff; font-weight: 600; }
.hero-meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.22);
  padding-top: 1.5rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
}
.hero-meta strong { color: #fff; font-weight: 600; }

@media (max-width: 880px) {
  .hero {
    min-height: clamp(520px, 82vh, 680px);
  }
  /* Even, slightly heavier scrim so copy stays readable across the photo */
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(18,17,15,0.74) 0%, rgba(18,17,15,0.82) 100%);
  }
  .hero-copy > * { max-width: none; }
}

/* =========================== WAVE DIVIDERS =========================== */
.wave-divider {
  width: 100%;
  line-height: 0;
  pointer-events: none;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Thin decorative wave (cream-on-cream) */
.wave-thin {
  height: 40px;
  color: var(--rust);
  opacity: 0.35;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
  box-sizing: border-box;
}
.wave-thin svg { height: 40px; }

/* Filled transition waves */
.wave-to-dark { height: 70px; background: var(--bg); }
.wave-to-light { height: 70px; background: var(--ink); }

/* =========================== VALUE PROP =========================== */
.prop {
  background: var(--bg);
}
.prop-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.prop-head .serving {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
}
.prop-body .big-p {
  font-size: clamp(1.25rem, 1.6vw, 1.6rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 1.5rem;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
}
.prop-body p { color: var(--ink-2); margin: 0; }

.area-block { margin-top: 2rem; }
.area-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.area-chips {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.area-chips li {
  font-size: 0.82rem;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  transition: border-color .2s, color .2s;
}
.area-chips li:hover { border-color: var(--rust); color: var(--ink); }

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

/* =========================== PROCESS / HOW WE WORK =========================== */
.process { background: var(--bg); }
.process-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2rem) clamp(3rem, 6vw, 6rem);
}
.process-head {
  margin-bottom: 2.75rem;
  max-width: 40ch;
}
.process-head h2 { margin-top: 0.25rem; }
.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.process-steps li {
  padding-top: 1.4rem;
  border-top: 2px solid var(--ink);
}
.step-num {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 400;
  color: var(--rust);
  margin-bottom: 0.9rem;
  font-variant-numeric: lining-nums;
}
.process-steps h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.process-steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.98rem;
}

@media (max-width: 760px) {
  .process-steps { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* =========================== WORK SLIDER =========================== */
.work {
  padding: clamp(3rem, 6vw, 6rem) 0;
}
.work-head {
  max-width: var(--max);
  margin: 0 auto 2.5rem;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
}
.work-head h2 { margin-bottom: 0.5rem; }

.work-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 520px);
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: clamp(1.25rem, 3vw, 2rem);
  padding: 0.25rem clamp(1.25rem, 3vw, 2rem) 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--ink) transparent;
}
.work-scroller::-webkit-scrollbar { height: 6px; }
.work-scroller::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 99px; }
.work-scroller::-webkit-scrollbar-track { background: transparent; }

.work-scroller figure {
  margin: 0;
  scroll-snap-align: start;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
}
.work-scroller img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.work-scroller figure:hover img { transform: scale(1.03); }

/* =========================== SERVICES =========================== */
.services {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(4rem, 7vw, 7rem) clamp(1.25rem, 3vw, 2rem);
}
.services-head {
  max-width: var(--max);
  margin: 0 auto 3rem;
}
.services-head h2 { color: var(--bg); }
.services .section-tag { color: rgba(255,255,255,.55); }

.services-grid {
  max-width: var(--max);
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.services-grid li {
  padding: 2.25rem 1.75rem 2.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  border-right: 1px solid rgba(255,255,255,.12);
  padding-left: 1.75rem;
  transition: background .25s;
}
.services-grid li:hover { background: rgba(255,255,255,.03); }
.services-grid li:nth-child(3n) { border-right: 0; }
.svc-num {
  display: inline-block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.9rem;
  color: var(--rust);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}
.services-grid h3 {
  color: var(--bg);
  font-size: 1.55rem;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.services-grid p {
  margin: 0;
  color: rgba(255,255,255,.7);
  font-size: 0.95rem;
}

@media (max-width: 880px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid li:nth-child(3n) { border-right: 1px solid rgba(255,255,255,.12); }
  .services-grid li:nth-child(2n) { border-right: 0; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid li { border-right: 0 !important; }
}

/* =========================== REVIEWS =========================== */
.reviews {
  padding: clamp(4rem, 7vw, 7rem) clamp(1.25rem, 3vw, 2rem);
  max-width: var(--max);
  margin: 0 auto;
}
.reviews-head {
  margin-bottom: 3rem;
  max-width: 40ch;
}
.reviews-rating {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.reviews-rating strong { color: var(--ink); font-weight: 600; }
.reviews-rating .stars { font-size: 1.05rem; }

.reviews-grid blockquote .stars {
  display: block;
  margin-bottom: 1rem;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2vw, 2rem);
}
/* Lone trailing card (odd count) — center it across the row */
.reviews-grid blockquote:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - clamp(0.625rem, 1vw, 1rem));
}
.reviews-grid blockquote {
  margin: 0;
  padding: 2rem 2rem 1.75rem;
  background: var(--bg-2);
  border-radius: 6px;
  position: relative;
  border-left: 3px solid var(--rust);
}
.reviews-grid blockquote p {
  margin: 0 0 1.25rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 400;
}
.reviews-grid blockquote footer {
  font-size: 0.85rem;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  font-weight: 600;
}

@media (max-width: 720px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-grid blockquote:last-child:nth-child(odd) { width: 100%; }
}

/* =========================== CTA / CONTACT =========================== */
.cta {
  /* Same photographic treatment as the hero: warm directional scrim that lets
     the stained-timber photo read on the left, deepens behind the form. */
  background:
    linear-gradient(95deg,
      rgba(18,17,15,0.78) 0%,
      rgba(18,17,15,0.82) 44%,
      rgba(18,17,15,0.93) 100%),
    linear-gradient(0deg, rgba(18,17,15,0.55), rgba(18,17,15,0) 55%),
    url('1.jpg') center / cover no-repeat;
  color: #fff;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 3vw, 2rem);
}
.cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: left;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.cta h2 {
  color: #fff;
  margin-bottom: 1rem;
  max-width: 18ch;
}
.cta p {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  max-width: 50ch;
  margin: 0 0 2rem;
}
.cta-call { margin-bottom: 3rem; }

/* Cream primary buttons over the photo, matching the hero */
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: var(--rust); color: #fff; }

address.contact-info {
  font-style: normal;
  display: block;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.contact-info dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 0;
}
.contact-info dt {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.contact-info dd {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.45;
}
.contact-info a:hover { color: var(--rust); }

@media (max-width: 880px) {
  .cta-grid { grid-template-columns: 1fr; }
  /* Stacked layout: even, deeper scrim so the form reads at full width */
  .cta {
    background:
      linear-gradient(180deg, rgba(18,17,15,0.84) 0%, rgba(18,17,15,0.9) 100%),
      url('1.jpg') center / cover no-repeat;
  }
}

/* =========================== FORM =========================== */
.cta-form-wrap {
  position: relative;
  scroll-margin-top: 6rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.form-intro {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem !important;
  color: rgba(255,255,255,.78) !important;
  margin: 0 0 2rem !important;
  max-width: none !important;
  font-style: italic;
}
.estimate-form .field { margin-bottom: 1.5rem; }
.estimate-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.estimate-form .field-row .field { margin-bottom: 1.5rem; }

.estimate-form label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.estimate-form label .optional {
  letter-spacing: 0.05em;
  text-transform: none;
  font-weight: 400;
  color: rgba(255,255,255,.4);
}
.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.22);
  padding: 0.55rem 0 0.65rem;
  font: inherit;
  font-size: 1.02rem;
  color: #fff;
  border-radius: 0;
  outline: none;
  transition: border-color .2s;
}
.estimate-form textarea {
  resize: vertical;
  min-height: 6.5rem;
  line-height: 1.5;
}
.estimate-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='1.5' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 1.75rem;
  cursor: pointer;
}
.estimate-form select option {
  background: #161513;
  color: #fff;
}
.estimate-form input:focus,
.estimate-form select:focus,
.estimate-form textarea:focus {
  border-bottom-color: var(--rust);
}
.estimate-form input::placeholder,
.estimate-form textarea::placeholder {
  color: rgba(255,255,255,.35);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.form-submit {
  position: relative;
  min-width: 12rem;
  justify-content: center;
}
.form-submit .submit-loading { display: none; }
.form-submit[data-state="loading"] .submit-label { visibility: hidden; }
.form-submit[data-state="loading"] .submit-loading {
  display: inline;
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.form-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
}
.form-error {
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  background: rgba(181,83,44,.15);
  border: 1px solid rgba(181,83,44,.5);
  border-radius: 4px;
  color: #ffd9c9;
  font-size: 0.92rem;
}

.form-success {
  text-align: left;
  padding: 1rem 0;
}
.form-success h3 {
  font-family: 'Fraunces', Georgia, serif;
  color: #fff;
  font-size: 1.85rem;
  margin: 0 0 0.75rem;
  font-weight: 500;
}
.form-success p {
  color: rgba(255,255,255,.7);
  margin: 0;
  max-width: 38ch;
}

@media (max-width: 520px) {
  .estimate-form .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* =========================== FOOTER =========================== */
.foot {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.foot-meta {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
}
.foot-credit {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.foot-credit a {
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.foot-credit a:hover {
  color: var(--rust);
  border-bottom-color: var(--rust);
}
.foot-fb {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  border-bottom: 0 !important;
}
.foot-fb svg { color: var(--rust); }
.foot-fb:hover { color: var(--rust) !important; }

@media (max-width: 720px) {
  .foot-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.75rem;
  }
  .foot-meta { text-align: center; }
}

/* =========================== REVEAL ANIMATIONS =========================== */
/* Only hide content for the reveal animation when JS is present to un-hide it.
   Without JS (script fails, blocked), everything renders normally. */
.js [data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--anim-delay, 0s);
  will-change: opacity, transform;
}
.js [data-animate-root].in-view [data-animate] {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal hero image with a soft zoom out */
.js .hero-image[data-animate] {
  transform: translateY(22px) scale(1.025);
}
.js [data-animate-root].in-view .hero-image[data-animate] {
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
