/* Yuma Epoxy — shared stylesheet. Mobile-first, no frameworks, system fonts. */

:root {
  --charcoal: #16181d;
  --charcoal-2: #1f232b;
  --charcoal-3: #2a2f3a;
  --amber: #f5a623;
  --amber-hot: #ff8a00;
  --amber-deep: #c97a00;
  --ink: #22252b;
  --paper: #f7f6f3;
  --paper-2: #efede8;
  --line: #dcd9d2;
  --white: #ffffff;
  --muted: #5b6070;
  --muted-dark: #aab0bf;
  --radius: 10px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  padding-bottom: 64px; /* room for sticky call bar on mobile */
}

img, svg { max-width: 100%; height: auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.85rem, 5.5vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3.8vw, 2.1rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.15rem, 2.8vw, 1.4rem); margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.35rem; }
li { margin-bottom: 0.4rem; }
a { color: var(--amber-deep); }
a:hover { color: var(--amber-hot); }
strong { font-weight: 700; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--charcoal);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--amber);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo .logo-mark { flex: 0 0 auto; }
.logo em { font-style: normal; color: var(--amber); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 2px solid var(--charcoal-3);
  border-radius: 8px;
  color: var(--white);
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--amber); }

.site-nav { display: none; }
.site-nav.open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--charcoal-2);
  border-bottom: 3px solid var(--amber);
  box-shadow: 0 16px 32px rgba(0,0,0,0.35);
}
.site-nav ul { list-style: none; margin: 0; padding: 0.5rem 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--amber); }

.header-call {
  display: none;
  background: var(--amber);
  color: var(--charcoal);
  font-weight: 800;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  white-space: nowrap;
}
.header-call:hover { background: var(--amber-hot); color: var(--charcoal); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul { display: flex; gap: 0.15rem; padding: 0; }
  .site-nav a { padding: 0.5rem 0.7rem; font-size: 0.95rem; }
  .header-call { display: inline-block; }
  body { padding-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(245,166,35,0.22), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(255,138,0,0.14), transparent 55%),
    linear-gradient(160deg, var(--charcoal) 0%, var(--charcoal-2) 55%, #23180a 100%);
  overflow: hidden;
}
.hero::after {
  /* flake-speckle texture, pure CSS */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.6px),
    radial-gradient(rgba(245,166,35,0.07) 1px, transparent 1.6px);
  background-size: 22px 22px, 34px 34px;
  background-position: 0 0, 11px 13px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.25rem 2.5rem;
}
.hero .kicker {
  display: inline-block;
  color: var(--amber);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}
.hero h1 { margin-bottom: 1rem; max-width: 22ch; }
.hero .lede {
  max-width: 60ch;
  color: var(--muted-dark);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.hero .lede strong { color: var(--white); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  border: 2px solid transparent;
  font-size: 1.05rem;
}
.btn-primary {
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-hot) 100%);
  color: var(--charcoal);
  box-shadow: 0 6px 18px rgba(255,138,0,0.35);
}
.btn-primary:hover { filter: brightness(1.06); color: var(--charcoal); }
.btn-ghost {
  color: var(--white);
  border-color: var(--amber);
  background: rgba(245,166,35,0.08);
}
.btn-ghost:hover { background: rgba(245,166,35,0.18); color: var(--white); }

/* on-light variants */
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--charcoal-3); color: var(--white); }

.hero-points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  color: var(--muted-dark);
  font-size: 0.95rem;
  font-weight: 600;
}
.hero-points li { margin: 0; display: flex; align-items: center; gap: 0.45rem; }
.hero-points svg { flex: 0 0 auto; }

/* ---------- Sections ---------- */
.section { padding: 3rem 0; }
.section-alt { background: var(--paper-2); }
.section-dark {
  background: linear-gradient(160deg, var(--charcoal) 0%, var(--charcoal-2) 100%);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p, .section-dark li { color: var(--muted-dark); }
.section-dark strong { color: var(--white); }
.section-dark a { color: var(--amber); }

.section h2 .sub, .eyebrow {
  display: block;
  color: var(--amber-deep);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.section-dark .eyebrow { color: var(--amber); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin: 1.75rem 0 0.5rem;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: 0 2px 10px rgba(22,24,29,0.05);
  display: flex;
  flex-direction: column;
}
.card h3 { display: flex; align-items: center; gap: 0.55rem; }
.card h3 svg { flex: 0 0 auto; }
.card p { flex: 1; }
.card .card-link { font-weight: 700; text-decoration: none; }
.card .card-link::after { content: " \2192"; }

.section-dark .card {
  background: var(--charcoal-3);
  border-color: transparent;
  border-top-color: var(--amber);
}
.section-dark .card h3 { color: var(--white); }

/* ---------- Split (two-column prose) ---------- */
.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin-left: 0; }
.checklist li { padding-left: 1.9rem; position: relative; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--amber);
  clip-path: none;
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 0.28rem; top: 0.68em;
  width: 0.52rem; height: 0.28rem;
  border-left: 2.5px solid var(--charcoal);
  border-bottom: 2.5px solid var(--charcoal);
  transform: rotate(-45deg);
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 1.5rem 0 0; counter-reset: step; display: grid; gap: 1.1rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1rem 1.2rem;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--amber);
  font-weight: 900;
  margin-bottom: 0.6rem;
}
.steps h3 { font-size: 1.05rem; }
.steps p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { margin-top: 1.5rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 1.25rem;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--amber-deep);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-a { padding: 0 1.25rem 1.1rem; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
table.compare {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.97rem;
}
table.compare th, table.compare td { padding: 0.75rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare thead th { background: var(--charcoal); color: var(--white); }
table.compare thead th:not(:first-child) { color: var(--amber); }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare tbody th { font-weight: 700; background: var(--paper-2); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(900px 300px at 85% 0%, rgba(255,138,0,0.25), transparent 60%),
    linear-gradient(150deg, var(--charcoal) 0%, #241a0b 100%);
  color: var(--white);
  border-top: 3px solid var(--amber);
  border-bottom: 3px solid var(--amber);
}
.cta-band .wrap { padding-top: 2.75rem; padding-bottom: 2.75rem; text-align: center; }
.cta-band h2 { color: var(--white); max-width: 26ch; margin: 0 auto 0.75rem; }
.cta-band p { color: var(--muted-dark); max-width: 60ch; margin: 0 auto 1.4rem; }
.cta-band .cta-row { justify-content: center; }

/* ---------- Quote form ---------- */
.quote-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 10px 30px rgba(22,24,29,0.08);
  max-width: 560px;
}
.quote-form .form-row { margin-bottom: 1rem; }
.quote-form label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.3rem; }
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.25);
}
.quote-form textarea { min-height: 110px; resize: vertical; }
.quote-form button {
  width: 100%;
  font: inherit;
  font-weight: 800;
  font-size: 1.08rem;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-hot) 100%);
  color: var(--charcoal);
  box-shadow: 0 6px 18px rgba(255,138,0,0.3);
}
.quote-form button:hover { filter: brightness(1.06); }
.quote-form .form-note { font-size: 0.85rem; color: var(--muted); margin: 0.75rem 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--muted-dark);
  padding: 2.75rem 0 1.5rem;
  font-size: 0.95rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: var(--white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--muted-dark); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-brand .logo { font-size: 1.15rem; margin-bottom: 0.75rem; }
.footer-disclosure {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--charcoal-3);
  font-size: 0.85rem;
  color: #868da0;
}
.footer-disclosure p { margin-bottom: 0.5rem; }
.footer-phone { font-weight: 800; color: var(--amber) !important; }

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  background: var(--charcoal);
  border-top: 2px solid var(--amber);
}
.call-bar a {
  flex: 1;
  text-align: center;
  padding: 0.9rem 0.5rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
}
.call-bar .call-bar-phone { background: linear-gradient(180deg, var(--amber) 0%, var(--amber-hot) 100%); color: var(--charcoal); }
.call-bar .call-bar-quote { color: var(--white); }
@media (min-width: 900px) { .call-bar { display: none; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero .hero-inner { padding: 2.5rem 1.25rem 2.25rem; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 0.85rem; color: var(--muted-dark); margin-bottom: 1rem; }
.crumbs a { color: var(--muted-dark); text-decoration: none; }
.crumbs a:hover { color: var(--amber); }

/* ---------- Local strip ---------- */
.local-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.local-strip span {
  background: var(--charcoal-3);
  color: var(--muted-dark);
  border: 1px solid #3a4150;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Prose helpers ---------- */
.prose { max-width: 72ch; }
.lead { font-size: 1.15rem; }
.note {
  background: var(--paper-2);
  border-left: 4px solid var(--amber);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
}
.note p:last-child { margin-bottom: 0; }

/* ---------- 404 ---------- */
.error-hero { text-align: center; padding: 5rem 1.25rem; }
.error-hero .big { font-size: clamp(4rem, 18vw, 8rem); font-weight: 900; color: var(--amber); line-height: 1; }

/* ---------- Photo heroes ---------- */
/* Layers a dark charcoal gradient over a real photo so hero text stays high-contrast.
   The base .hero gradients are overridden per-image below (background-image only). */
.hero-photo {
  background-size: cover;
  background-position: center 55%;
}
.hero-img-facility {
  background-image:
    linear-gradient(160deg, rgba(17, 19, 24, 0.94) 0%, rgba(22, 24, 29, 0.86) 45%, rgba(35, 24, 10, 0.78) 100%),
    url("/img/hero-glossy-epoxy-facility.jpg");
}
.hero-img-warehouse {
  background-image:
    linear-gradient(160deg, rgba(17, 19, 24, 0.94) 0%, rgba(22, 24, 29, 0.86) 45%, rgba(35, 24, 10, 0.78) 100%),
    url("/img/commercial-warehouse-floor.jpg");
}
.hero-img-garagecar {
  background-image:
    linear-gradient(160deg, rgba(17, 19, 24, 0.9) 0%, rgba(22, 24, 29, 0.78) 45%, rgba(35, 24, 10, 0.72) 100%),
    url("/img/garage-car-glossy-floor.jpg");
}
.hero-img-parking {
  background-image:
    linear-gradient(160deg, rgba(17, 19, 24, 0.9) 0%, rgba(22, 24, 29, 0.8) 45%, rgba(35, 24, 10, 0.74) 100%),
    url("/img/shiny-floor-parking.jpg");
}
.hero-img-crew {
  background-image:
    linear-gradient(160deg, rgba(17, 19, 24, 0.94) 0%, rgba(22, 24, 29, 0.87) 45%, rgba(35, 24, 10, 0.8) 100%),
    url("/img/concrete-floor-prep-crew.jpg");
}
.hero-img-wash {
  background-image:
    linear-gradient(160deg, rgba(17, 19, 24, 0.94) 0%, rgba(22, 24, 29, 0.87) 45%, rgba(35, 24, 10, 0.8) 100%),
    url("/img/surface-prep-pressure-wash.jpg");
  background-position: center 35%;
}
.hero-img-homegarage {
  background-image:
    linear-gradient(160deg, rgba(17, 19, 24, 0.94) 0%, rgba(22, 24, 29, 0.88) 45%, rgba(35, 24, 10, 0.8) 100%),
    url("/img/home-garage-storage.jpg");
}

/* ---------- Media split (text beside photo, stacks on mobile) ---------- */
.media-split { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 900px) {
  .media-split { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2.5rem; }
  .media-split.flip { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .media-split.flip .photo-card { order: -1; }
}
.media-split + .media-split,
.prose + .media-split,
.media-split + .prose { margin-top: 2rem; }

.photo-card { margin: 0; min-width: 0; }
.photo-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(22, 24, 29, 0.16);
}
.photo-card.crop img { aspect-ratio: 3 / 2; object-fit: cover; }
.photo-card.crop-tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.photo-card figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.55rem; line-height: 1.45; }
.section-dark .photo-card img, .section-dark .photo-card { border-color: var(--charcoal-3); }
.section-dark .photo-card figcaption { color: var(--muted-dark); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-2 { margin-bottom: 2rem; }

/* auto: unset CTAs hidden until configured */
.phone-cta { display: none !important; }
