/* =========================================================================
   Apex Garage Floor Coatings — shared stylesheet
   Flat file structure. All assets at repo root.
   Design: credible local-contractor. Concrete-gray canvas, graphite text,
   steel-blue primary, warm amber accent (a nod to a metallic epoxy pour).
   ========================================================================= */

:root {
  --graphite: #1c2126;
  --ink: #2b3238;
  --steel: #2f5d7c;      /* primary — steel blue */
  --steel-dark: #234a63;
  --amber: #c9762b;      /* accent — metallic pour */
  --amber-dark: #a85f1e;
  --concrete: #f3f2ee;   /* page canvas */
  --concrete-2: #e7e5df;
  --line: #d8d5cc;
  --white: #ffffff;
  --muted: #5b636b;
  --max: 1120px;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(28,33,38,.10), 0 8px 24px rgba(28,33,38,.06);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--concrete);
  line-height: 1.6;
  font-size: 17px;
}

/* Display face: Archivo (industrial, technical). Body stays system for speed. */
h1, h2, h3, .brand-name, .btn, .eyebrow {
  font-family: "Archivo", system-ui, sans-serif;
}

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

a { color: var(--steel); }
a:hover { color: var(--steel-dark); }

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

/* ---------- Skip link + focus ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--graphite); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------- Header ---------- */
.topbar {
  background: var(--graphite);
  color: #cdd3d8;
  font-size: 14px;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }

header.site {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--steel) 0%, var(--steel-dark) 55%, var(--amber) 130%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.brand-name { color: var(--graphite); font-weight: 800; font-size: 19px; line-height: 1.1; letter-spacing: -.01em; }
.brand-name span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); font-family: system-ui, sans-serif; }

nav.main { display: flex; align-items: center; gap: 22px; }
nav.main a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
nav.main a:hover { color: var(--steel); }
.nav-cta {
  background: var(--amber); color: #fff !important; padding: 10px 16px;
  border-radius: var(--radius); font-weight: 700 !important;
}
.nav-cta:hover { background: var(--amber-dark); }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 14px 26px; border-radius: var(--radius); cursor: pointer;
  border: 0; font-size: 16px; text-align: center; transition: background .15s ease, transform .05s ease;
}
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-steel { background: var(--steel); color: #fff; }
.btn-steel:hover { background: var(--steel-dark); color: #fff; }
.btn:active { transform: translateY(1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(20,25,29,.86) 0%, rgba(20,25,29,.78) 100%),
    linear-gradient(120deg, #26313a 0%, #1b2228 60%);
  overflow: hidden;
}
/* Signature: a single metallic-pour band that echoes the actual finish */
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 6px;
  background: linear-gradient(90deg, var(--steel) 0%, #6f8aa0 25%, var(--amber) 55%, #d79a5a 75%, var(--steel) 100%);
  filter: saturate(1.05);
}
.hero .wrap { padding-top: 66px; padding-bottom: 66px; }
.hero .eyebrow {
  color: #ffcf9a; letter-spacing: .14em; text-transform: uppercase;
  font-size: 13px; font-weight: 700; margin: 0 0 14px;
}
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -.015em; font-weight: 800; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); max-width: 640px; margin: 0 0 26px; color: #dfe4e8; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; font-size: 14px; color: #cdd3d8; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row strong { color: #fff; }

/* ---------- Sections ---------- */
section { padding: 58px 0; }
.eyebrow { color: var(--steel); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; font-weight: 700; margin: 0 0 10px; }
h2 { font-size: clamp(24px, 3.4vw, 33px); line-height: 1.15; margin: 0 0 18px; color: var(--graphite); letter-spacing: -.01em; font-weight: 800; }
h3 { font-size: 20px; margin: 0 0 8px; color: var(--graphite); font-weight: 700; }
.lede { font-size: 19px; color: var(--muted); max-width: 720px; }
.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.alt .card { background: var(--concrete); }
.card .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); margin-bottom: 10px; }
.card a.more { display: inline-block; margin-top: 12px; font-weight: 700; text-decoration: none; }
.card a.more::after { content: " →"; }
.chip-swatch { height: 8px; border-radius: 4px; margin: -26px -26px 20px; }
.sw-flake { background: linear-gradient(90deg,#7d8a94,#c9762b,#3a4650,#e6e3dd,#2f5d7c); }
.sw-metal { background: linear-gradient(90deg,#2f5d7c,#6f8aa0,#c9762b,#8f5a2a); }
.sw-solid { background: linear-gradient(90deg,#2f5d7c,#234a63); }
.sw-concrete { background: linear-gradient(90deg,#8a8f93,#b7bbbd,#6f7479); }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.step .num {
  counter-increment: step; width: 52px; height: 52px; border-radius: 50%;
  background: var(--steel); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-family: "Archivo", sans-serif; font-size: 20px;
}
.step .num::before { content: counter(step); }

/* ---------- Feature list ---------- */
ul.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.check li { position: relative; padding-left: 30px; }
ul.check li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--white); background: var(--steel); width: 20px; height: 20px;
  border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700;
}

/* ---------- Areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.areas a {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px;
}
.areas a:hover { border-color: var(--steel); color: var(--steel); }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none;
  color: var(--graphite); font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--steel); font-size: 24px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- Quote band ---------- */
.band {
  background: linear-gradient(120deg, var(--steel) 0%, var(--steel-dark) 100%);
  color: #fff; text-align: center;
}
.band h2 { color: #fff; }
.band p { color: #dbe5ec; max-width: 620px; margin: 0 auto 24px; font-size: 18px; }

/* ---------- Quote form ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 14px; color: var(--graphite); }
input, select, textarea {
  font: inherit; padding: 12px 14px; border: 1px solid #c7c4bb; border-radius: var(--radius);
  background: #fff; color: var(--ink); width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--graphite); color: #b7bec4; padding: 48px 0 30px; font-size: 15px;
}
footer.site a { color: #dfe4e8; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
footer.site h4 { color: #fff; font-size: 15px; margin: 0 0 14px; letter-spacing: .04em; text-transform: uppercase; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-brand .brand-name { color: #fff; }
.foot-brand p { max-width: 340px; color: #97a0a7; }
.legal { border-top: 1px solid #333b42; margin-top: 34px; padding-top: 20px; font-size: 13px; color: #8a939a; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: 14px; color: var(--muted); padding: 16px 0 0; }
.crumb a { text-decoration: none; }

/* ---------- Prose ---------- */
.prose p { margin: 0 0 18px; }
.prose h2 { margin-top: 8px; }
.prose h3 { margin-top: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  nav.main { gap: 16px; }
}
@media (max-width: 680px) {
  .grid-3, .grid-2, .form-grid, .foot-grid { grid-template-columns: 1fr; }
  nav.main a:not(.nav-cta) { display: none; }
  .topbar .wrap { justify-content: center; }
  .hero .wrap { padding-top: 48px; padding-bottom: 48px; }
  section { padding: 44px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
