/* ============================================================
   IronLap Epoxy Flooring — Design System
   ============================================================ */

:root {
  --bg: #141414;
  --surface: #1E1E1E;
  --elevated: #252525;
  --text: #F0EFE8;
  --text-mut: #9A9992;
  --copper: #C97D2E;
  --copper-light: #E8A048;
  --divider: #2E2E2E;

  --inset: inset 0 0 0 1px rgba(255,255,255,0.06);
  --inset-copper: inset 0 0 0 1px rgba(201,125,46,0.4);

  --font-display: 'Barlow Condensed', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --pad-section: 120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: 800px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 16px;
}

.section { padding: var(--pad-section) 0; }
.section--elevated { background: #191919; }

.section__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--copper {
  background: var(--copper);
  color: #141414;
}
.btn--copper:hover { background: var(--copper-light); transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  color: var(--copper);
  border-color: var(--copper);
}
.btn--outline:hover { background: rgba(201,125,46,0.12); color: var(--copper-light); border-color: var(--copper-light); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(20,20,20,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--divider);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.logo__word--accent { color: var(--copper); }

.nav { display: flex; gap: 36px; }
.nav a {
  position: relative;
  font-size: 14px;
  color: var(--text-mut);
  padding: 4px 0;
  transition: color .2s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1.5px;
  width: 0;
  background: var(--copper);
  transition: width .2s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.header__cta { display: flex; align-items: center; gap: 24px; }
.header__phone { font-size: 14px; font-weight: 500; color: var(--text); }
.header__phone:hover { color: var(--copper); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 32px 28px;
  background: rgba(20,20,20,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-size: 16px;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
}
.mobile-menu .btn { margin-top: 16px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: -10% 0 0 0;
  height: 120%;
  /* Metallic epoxy floor — CSS fallback. Replace with a photo:
     background-image: url('assets/hero-floor.webp'); */
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201,125,46,0.25), transparent 70%),
    radial-gradient(ellipse 60% 80% at 70% 90%, rgba(232,160,72,0.18), transparent 60%),
    conic-gradient(from 200deg at 40% 30%, #2a2118, #14110d, #3a2c1a, #1a150f, #2a2118),
    #14110d;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero__media::after {
  /* reflective sheen streaks */
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 30%, rgba(240,239,232,0.06) 45%, transparent 55%),
    linear-gradient(75deg, transparent 60%, rgba(232,160,72,0.08) 72%, transparent 80%);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #141414 0%, rgba(20,20,20,0.3) 60%, transparent 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: 96px;
  max-width: 820px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 96px;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 4px 0 20px;
}
.hero__subhead {
  font-size: 18px;
  color: var(--text-mut);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-indicator {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px; height: 48px;
  overflow: hidden;
}
.scroll-indicator span {
  display: block;
  width: 1px; height: 48px;
  background: var(--copper);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust {
  background: #1A1A1A;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.trust__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  flex-wrap: wrap;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.trust__icon { width: 20px; height: 20px; fill: var(--copper); color: var(--copper); flex-shrink: 0; }
.trust__divider { width: 1px; height: 24px; background: var(--divider); }

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.service-card {
  position: relative;
  background: var(--surface);
  box-shadow: var(--inset);
  border-radius: 8px;
  padding: 32px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.service-card__num {
  position: absolute;
  top: 12px; right: 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  color: rgba(201,125,46,0.15);
  transition: color .2s ease;
}
.service-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.service-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 24px;
}
.service-card p { font-size: 14px; color: var(--text-mut); max-width: 90%; }
.service-card__thumb {
  width: 80px; height: 80px;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: var(--inset);
}
.service-card__thumb[data-floor="garage"]     { background: conic-gradient(from 45deg, #3a3a3a, #555, #2e2e2e, #444); }
.service-card__thumb[data-floor="metallic"]   { background: conic-gradient(from 120deg, #6b4a22, #C97D2E, #2a1d10, #E8A048, #4a3318); }
.service-card__thumb[data-floor="flake"]      { background: radial-gradient(circle at 30% 30%, #c97d2e 2px, transparent 3px), radial-gradient(circle at 70% 60%, #888 2px, transparent 3px), radial-gradient(circle at 50% 80%, #ddd 2px, transparent 3px), #2e2e2e; background-size: 18px 18px; }
.service-card__thumb[data-floor="commercial"] { background: repeating-linear-gradient(45deg, #2e2e2e 0 8px, #383838 8px 16px); }

.service-card:hover {
  box-shadow: var(--inset-copper);
  transform: translateY(-4px);
}
.service-card:hover .service-card__num { color: rgba(201,125,46,0.4); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery__filters {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter {
  background: none;
  border: none;
  color: var(--text-mut);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
  transition: color .2s ease;
}
.filter::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--copper);
  transition: width .2s ease;
}
.filter:hover { color: var(--text); }
.filter.is-active { color: var(--text); }
.filter.is-active::after { width: 100%; }

.gallery__grid {
  columns: 3;
  column-gap: 16px;
}
.gallery__tile {
  position: relative;
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--inset);
  animation: fadeIn .5s ease both;
}
.gallery__tile-img {
  width: 100%;
  display: block;
}
.gallery__tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(201,125,46,0);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 12px;
  transition: background .25s ease;
}
.gallery__tile-overlay svg {
  width: 22px; height: 22px;
  stroke: var(--text);
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery__tile:hover .gallery__tile-overlay { background: rgba(201,125,46,0.32); }
.gallery__tile:hover .gallery__tile-overlay svg { opacity: 1; }

.gallery__more { text-align: center; margin-top: 40px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,10,10,0.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 86vw;
  max-height: 84vh;
  border-radius: 8px;
}
.lightbox__btn {
  position: absolute;
  background: none;
  border: none;
  color: var(--copper);
  cursor: pointer;
  font-size: 40px;
  line-height: 1;
  padding: 12px;
  transition: color .2s ease;
}
.lightbox__btn:hover { color: var(--copper-light); }
.lightbox__prev { left: 2vw; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 2vw; top: 50%; transform: translateY(-50%); }
.lightbox__close { top: 16px; right: 24px; font-size: 32px; }

/* ============================================================
   PROCESS
   ============================================================ */
.process__flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.process__flow::before {
  content: '';
  position: absolute;
  top: 40px; left: 16%; right: 16%;
  border-top: 2px dashed rgba(201,125,46,0.4);
  z-index: 0;
}
.process__step { position: relative; z-index: 1; }
.process__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 80px;
  line-height: 1;
  color: rgba(201,125,46,0.12);
}
.process__icon {
  width: 32px; height: 32px;
  stroke: var(--copper);
  fill: none;
  margin: -12px 0 16px;
}
.process__step h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 10px;
}
.process__step p { font-size: 14px; color: var(--text-mut); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--surface);
  box-shadow: var(--inset);
  border-radius: 8px;
  padding: 24px;
}
.testimonial__stars { color: var(--copper); letter-spacing: 2px; margin-bottom: 14px; }
.testimonial__quote {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 16px;
}
.testimonial__author { font-size: 13px; color: var(--text-mut); }
.testimonials__google {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-mut);
}
.testimonials__google strong { color: var(--copper); }
.testimonials__google a { color: var(--copper); text-decoration: underline; }

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: #1A1A1A;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 72px 0;
}
.stats__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.stat { text-align: center; flex: 1; min-width: 140px; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 72px;
  line-height: 1;
  color: var(--text);
}
.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}
.stat__divider { width: 1px; height: 64px; background: rgba(201,125,46,0.4); }

/* ============================================================
   SERVICE AREA
   ============================================================ */
.area__map {
  max-width: 560px;
  margin: 0 auto 40px;
}
.pa-map { width: 100%; height: auto; }
.map-pulse { transform-origin: 200px 110px; animation: mapPulse 2.4s ease-out infinite; }
@keyframes mapPulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}
.area__cities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  max-width: 700px;
  margin: 0 auto;
}
.area__cities span {
  font-size: 14px;
  color: var(--text-mut);
  position: relative;
  padding-left: 18px;
}
.area__cities span::before {
  content: '⬡';
  position: absolute;
  left: 0;
  color: var(--copper);
  font-size: 12px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: flex; flex-direction: column; }
.faq__item {
  border-bottom: 1px solid var(--divider);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 22px 40px 22px 0;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--copper);
  font-size: 24px;
  font-weight: 400;
  transition: transform .25s ease;
}
.faq__item[open] summary::after { content: '×'; transform: translateY(-50%) rotate(0deg); }
.faq__answer {
  font-size: 14px;
  color: var(--text-mut);
  padding: 0 40px 22px 16px;
  border-left: 2px solid var(--copper);
  margin-bottom: 4px;
}

/* ============================================================
   CTA / QUOTE
   ============================================================ */
.cta {
  position: relative;
  padding: var(--pad-section) 0;
  overflow: hidden;
}
.cta__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(201,125,46,0.35), rgba(20,20,20,0.95) 65%),
    conic-gradient(from 200deg at 30% 40%, #2a2118, #14110d, #3a2c1a, #1a150f);
}
.cta__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 64px;
  line-height: 1;
  margin-bottom: 16px;
}
.cta__subhead { font-size: 18px; color: var(--text); opacity: 0.85; margin-bottom: 28px; }
.cta__buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.cta__micro { margin-top: 20px; font-size: 13px; color: var(--text-mut); }

/* Quote form */
.quote-form {
  background: var(--surface);
  box-shadow: var(--inset);
  border-radius: 8px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mut);
}
.field input,
.field select,
.field textarea {
  background: var(--elevated);
  border: none;
  box-shadow: var(--inset);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  box-shadow: var(--inset-copper);
}
.quote-form .btn--block { grid-column: 1 / -1; }
.quote-form__note {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--copper);
  font-size: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0E0E0E; border-top: 1px solid var(--divider); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.logo--footer { margin-bottom: 16px; }
.footer__tag { font-size: 14px; color: var(--text-mut); margin-top: 8px; }
.footer__col h4 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mut);
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  font-size: 14px;
  color: var(--text);
  padding: 6px 0;
  transition: color .2s ease;
}
.footer__col a:hover { color: var(--copper); }
.footer__social { display: flex; gap: 14px; margin-top: 16px; }
.footer__social a svg { width: 22px; height: 22px; color: var(--text-mut); transition: color .2s ease; }
.footer__social a:hover svg { color: var(--copper); }
.footer__bottom {
  border-top: 1px solid var(--divider);
  padding: 20px 0;
  font-size: 12px;
  color: var(--text-mut);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .hamburger { display: flex; }
  .services__grid,
  .process__flow,
  .testimonials,
  .cta__inner,
  .footer__inner { grid-template-columns: 1fr; }
  .process__flow::before { display: none; }
  .gallery__grid { columns: 2; }
  .cta__inner { gap: 40px; }

  .testimonials {
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .testimonial { scroll-snap-align: start; }
}

@media (max-width: 640px) {
  :root { --pad-section: 64px; }
  .container { padding: 0 20px; }
  .hero__title { font-size: 52px; }
  .hero__subhead { font-size: 16px; }
  .hero__content { padding-bottom: 64px; }
  .section__title { font-size: 32px; margin-bottom: 40px; }
  .cta__title { font-size: 40px; }
  .stat__num { font-size: 56px; }
  .stat__divider { display: none; }
  .stats__inner { gap: 32px; }
  .stat { min-width: 45%; }
  .gallery__grid { columns: 1; }
  .quote-form { grid-template-columns: 1fr; padding: 24px; }
  .trust__divider { display: none; }
  .trust__inner { justify-content: center; gap: 20px 28px; }
  .hero__ctas .btn { flex: 1; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
