/* ==========================================================================
   AceLine Painting Services — Hays, KS
   Design language: the brand's own flyer — black brush banners, bold orange,
   BEFORE/AFTER chips — cleaned up into a confident trade-sign aesthetic.
   Type: Barlow Condensed (display) + Barlow (body)
   ========================================================================== */

:root {
  --ink: #171310;
  --ink-2: #221c17;
  --paper: #f6f1e7;
  --paper-2: #efe8da;
  --tape: #e1d7c4;
  --orange: #f07818;
  --orange-deep: #c75d0a;
  --orange-bright: #ff8e2b;
  --white: #fffdf9;
  --muted: #6b6156;
  --muted-light: #b9ac9c;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", sans-serif;
  --shadow-pop: 8px 8px 0 rgba(23, 19, 16, 0.9);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-deep); }
::selection { background: var(--orange); color: var(--white); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---- Type ---- */
h1, h2, h3 {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(3rem, 6.5vw, 5.2rem); font-weight: 800; }
h2 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); font-weight: 800; }
h3 { font-size: 1.7rem; font-weight: 700; }

.kicker {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1rem;
  color: var(--orange-deep);
  margin: 0 0 0.9rem;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 34px; height: 5px;
  background: var(--orange);
  margin-right: 12px;
  vertical-align: middle;
  transform: skewX(-18deg);
}
.kicker-light { color: var(--orange-bright); }

.lede { font-size: 1.15rem; max-width: 34em; color: var(--muted); }
.section-lede { font-size: 1.1rem; max-width: 36em; }

/* Painted underline that sweeps in */
.paint-underline { position: relative; white-space: nowrap; }
.paint-underline::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%; bottom: 0.02em;
  height: 0.22em;
  background: linear-gradient(100deg, var(--orange-deep), var(--orange) 55%, var(--orange-bright));
  z-index: -1;
  transform: skewX(-12deg) scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s var(--ease-out) 0.35s;
}
.in-view .paint-underline::after, .paint-underline.in-view::after { transform: skewX(-12deg) scaleX(1); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.1rem;
  line-height: 1;
  padding: 16px 26px;
  text-decoration: none;
  border: 3px solid var(--ink);
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background 0.18s, color 0.18s;
}
.btn-solid {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}
.btn-solid:hover { background: var(--orange-bright); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn-solid:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---- Top bar ---- */
.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.topbar-area { text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--display); font-weight: 600; }
.topbar-phone { color: var(--paper); text-decoration: none; }
.topbar-phone strong { color: var(--orange-bright); }
.topbar-phone:hover strong { text-decoration: underline; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  transition: box-shadow 0.25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(23, 19, 16, 0.14); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand img { width: 112px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -4px;
  height: 3px;
  background: var(--orange);
  transition: right 0.25s var(--ease-out);
}
.site-nav a:not(.btn):hover::after { right: 0; }
.btn-nav { padding: 11px 18px; font-size: 1rem; box-shadow: 4px 4px 0 var(--ink); }
.nav-toggle { display: none; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero-band {
  position: absolute;
  top: -20%; right: -12%;
  width: 54%; height: 150%;
  background:
    linear-gradient(115deg, rgba(240, 120, 24, 0.16), rgba(240, 120, 24, 0.05) 60%, transparent),
    repeating-linear-gradient(115deg, transparent 0 34px, rgba(23, 19, 16, 0.028) 34px 68px);
  transform: skewX(-8deg);
  border-left: 4px solid rgba(240, 120, 24, 0.35);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 0.35em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 1.6rem; }
.hero-chips {
  list-style: none;
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 2rem 0 0;
  flex-wrap: wrap;
}
.hero-chips li {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1rem;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
}
.hero-chips strong { color: var(--orange-deep); font-weight: 800; margin-right: 4px; }
.hero-media-caption {
  margin: 18px 4px 0;
  font-size: 0.92rem;
  color: var(--muted);
  text-transform: uppercase;
  font-family: var(--display);
  letter-spacing: 0.08em;
}

/* ---- Before/After slider ---- */
.ba {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 4px solid var(--ink);
  background: var(--ink);
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}
.hero-media .ba { box-shadow: 14px 14px 0 var(--orange); }
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-before { clip-path: inset(0 45% 0 0); }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 55%;
  width: 4px;
  margin-left: -2px;
  background: var(--orange);
  box-shadow: 0 0 0 1px rgba(23, 19, 16, 0.35);
}
.ba-grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--ink);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 3px 3px 0 rgba(23, 19, 16, 0.55);
}
.ba:not(.ba-touched) .ba-grip { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(calc(-50% - 9px), -50%); }
}
.ba-chip {
  position: absolute;
  bottom: 14px;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  padding: 6px 16px;
  color: var(--white);
  pointer-events: none;
  /* brush-stroke chip */
  border-radius: 3px 14px 4px 12px / 12px 4px 14px 3px;
  transform: rotate(-1.4deg);
}
.ba-chip-before { left: 14px; background: rgba(23, 19, 16, 0.92); }
.ba-chip-after { right: 14px; background: var(--orange); color: var(--ink); transform: rotate(1.2deg); }
.ba-hint {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  background: rgba(23, 19, 16, 0.75);
  color: var(--paper);
  padding: 4px 12px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s;
}
.ba-touched .ba-hint { opacity: 0; }

/* ---- Stats band ---- */
.stats {
  background: var(--ink);
  color: var(--paper);
  border-top: 4px solid var(--orange);
  border-bottom: 4px solid var(--orange);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 44px;
  padding-bottom: 44px;
}
.stat { text-align: left; border-left: 3px solid var(--orange); padding-left: 18px; }
.stat-num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1;
  color: var(--orange-bright);
}
.stat-label {
  display: block;
  margin-top: 6px;
  text-transform: uppercase;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: var(--muted-light);
}

/* ---- Services ---- */
.services { padding: 96px 0 104px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.service-card {
  position: relative;
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-pop);
  padding: 30px 26px 26px;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
.service-card:hover { transform: translate(-3px, -3px); box-shadow: 12px 12px 0 rgba(23, 19, 16, 0.9); }
.service-num {
  position: absolute;
  top: 12px; right: 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--orange);
  opacity: 0.75;
}
.service-card h3 { margin-top: 4px; padding-right: 70px; }
.service-card p { color: var(--muted); font-size: 0.98rem; }
.service-card ul { padding-left: 0; list-style: none; margin: 18px 0 22px; }
.service-card li {
  padding: 7px 0 7px 26px;
  position: relative;
  border-bottom: 1px solid var(--tape);
  font-weight: 500;
  font-size: 0.98rem;
}
.service-card li:last-child { border-bottom: 0; }
.service-card li::before {
  content: "";
  position: absolute;
  left: 2px; top: 15px;
  width: 12px; height: 6px;
  background: var(--orange);
  transform: skewX(-18deg);
}
.service-link {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 3px solid var(--orange);
  padding-bottom: 2px;
}
.service-link:hover { color: var(--orange-deep); }

/* ---- Work (dark) ---- */
.work {
  background: var(--ink-2);
  color: var(--paper);
  padding: 96px 0 110px;
  border-top: 4px solid var(--orange);
}
.work h2 { color: var(--white); }
.work .section-lede { color: var(--muted-light); }
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px 36px;
  margin-top: 52px;
}
.work-card { margin: 0; }
.work-card .ba { border-color: rgba(246, 241, 231, 0.18); box-shadow: 8px 8px 0 rgba(240, 120, 24, 0.85); }
.work-card figcaption { margin-top: 16px; display: flex; flex-direction: column; gap: 2px; }
.work-card figcaption strong {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.25rem;
  color: var(--white);
}
.work-card figcaption span {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--display);
  color: var(--orange-bright);
}

/* ---- About ---- */
.about { padding: 100px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: start;
}
.about-copy p { max-width: 36em; }
.about-points { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.about-points li {
  position: relative;
  padding: 10px 0 10px 34px;
  font-weight: 500;
  border-bottom: 1px solid var(--tape);
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 17px;
  width: 18px; height: 8px;
  background: var(--orange);
  transform: skewX(-18deg);
}
.about-card {
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-pop);
  padding: 30px;
  text-align: center;
}
.about-card img { margin: 0 auto 18px; width: 190px; }
.about-card dl { margin: 0; text-align: left; }
.about-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--tape);
}
.about-card dl div:last-child { border-bottom: 0; }
.about-card dt {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.9rem;
}
.about-card dd { margin: 0; font-weight: 700; text-align: right; }
.about-card dd a { color: var(--orange-deep); text-decoration: none; }
.about-card dd a:hover { text-decoration: underline; }

/* ---- Reviews ---- */
.reviews {
  background: var(--paper-2);
  border-top: 3px solid var(--tape);
  border-bottom: 3px solid var(--tape);
  padding: 88px 0;
}
.big-quote { margin: 0; max-width: 900px; }
.big-quote p {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1.2rem;
  text-transform: none;
}
.big-quote em { font-style: italic; color: var(--orange-deep); }
.big-quote cite {
  font-style: normal;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}
.big-quote cite a { color: var(--orange-deep); }

/* ---- Estimate ---- */
.estimate {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0 110px;
  border-top: 4px solid var(--orange);
}
.estimate h2 { color: var(--white); }
.estimate .section-lede { color: var(--muted-light); }
.estimate-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 2rem; }
.contact-card {
  display: block;
  border: 2px solid rgba(246, 241, 231, 0.25);
  padding: 16px 20px;
  text-decoration: none;
  color: var(--paper);
  transition: border-color 0.2s, background 0.2s;
}
a.contact-card:hover { border-color: var(--orange); background: rgba(240, 120, 24, 0.08); }
.contact-label {
  display: block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--orange-bright);
  font-weight: 700;
}
.contact-value { display: block; font-size: 1.25rem; font-weight: 700; margin-top: 2px; }
.contact-email { font-size: 1rem; word-break: break-word; }

.estimate-form {
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--orange);
  padding: 34px 30px 30px;
}
.estimate-form label {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 0;
}
.estimate-form input:focus,
.estimate-form select:focus,
.estimate-form textarea:focus {
  outline: 3px solid var(--orange);
  outline-offset: 0;
}
.estimate-form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit { width: 100%; margin-top: 4px; font-size: 1.25rem; padding: 18px; }
.form-note { font-size: 0.92rem; color: var(--muted); margin: 16px 0 0; text-align: center; }
.hp { position: absolute; left: -9999px; }

/* ---- Footer ---- */
.site-footer {
  background: #100d0a;
  color: var(--muted-light);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-logo { width: 130px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-nav a:hover { color: var(--orange-bright); }
.footer-meta { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; text-align: right; }
.footer-meta a { color: var(--orange-bright); }

/* ---- Reveal animations ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: none; }
.d1 { transition-delay: 0.12s; }
.d2 { transition-delay: 0.24s; }
.d3 { transition-delay: 0.36s; }
.d4 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ba-grip { animation: none !important; }
  .paint-underline::after { transition: none; transform: skewX(-12deg) scaleX(1); }
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 52px 0 72px; }
  .hero-media .ba { box-shadow: 10px 10px 0 var(--orange); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; max-width: 560px; }
  .work-grid { grid-template-columns: 1fr; max-width: 640px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-card { max-width: 420px; }
  .estimate-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 760px) {
  .topbar-inner { justify-content: center; }
  .topbar-area { display: none; }

  .nav-toggle {
    display: block;
    background: none;
    border: 2px solid var(--ink);
    padding: 9px 8px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 22px; height: 3px;
    background: var(--ink);
    margin: 4px 0;
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 3px solid var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 24px;
    gap: 18px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 1.3rem; }
  .btn-nav { text-align: center; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
  .hero-ctas .btn { width: 100%; text-align: center; }
}
