/* =========================================================
   LEOMINSTER GARAGE FLOORS — DESIGN SYSTEM
   Subject: concrete + resin coatings, New England garages.
   Palette: garage charcoal, warm concrete grey, resin teal.
   ========================================================= */

:root {
  /* Color */
  --slate-900: #191D20;
  --slate-800: #23282C;
  --slate-700: #383F44;
  --concrete-100: #F1EEE7;
  --concrete-200: #E3DFD5;
  --concrete-300: #C9C3B5;
  --paper: #FBFAF7;
  --ink: #16191C;
  --ink-soft: #4B5257;
  --resin: #145F52;
  --resin-bright: #1B8A73;
  --resin-ink: #0E4038;
  --line: #D7D2C6;
  --line-dark: #384049;

  /* Type */
  --font-display: 'Space Grotesk', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 6px;
  --gap: clamp(3rem, 6vw, 6rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-soft); }
.hero p, .section-dark p, .sticky-cta p { color: #C7CFD3; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--resin-bright); outline-offset: 2px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: var(--gap) 0; }
.section-dark { background: var(--slate-900); color: #fff; }
.section-tint {
  background-color: var(--concrete-100);
  background-image:
    radial-gradient(rgba(0,0,0,0.035) 1px, transparent 1px);
  background-size: 22px 22px;
}
.section-tight { padding: clamp(2rem, 4vw, 3.5rem) 0; }

.eyebrow {
  font-size: 0.85rem;
  color: var(--resin-bright);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.section-dark .eyebrow { color: #6FD6BC; }

.lede { font-size: 1.15rem; max-width: 58ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 1.5em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--resin); color: #fff; border-color: var(--resin); }
.btn-primary:hover { background: var(--resin-bright); border-color: var(--resin-bright); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-dark); }
.btn-outline:hover { border-color: var(--ink); background: rgba(20,95,82,0.06); }
/* Dark-background contexts (hero, dark sections, sticky mobile bar) need
   their own outline-button colors — the default ink-on-transparent style
   is unreadable against the charcoal background. */
.hero .btn-outline,
.section-dark .btn-outline,
.sticky-cta .btn-outline {
  color: #fff;
  border-color: #6B7680;
  background: rgba(255, 255, 255, 0.04);
}
.hero .btn-outline:hover,
.section-dark .btn-outline:hover,
.sticky-cta .btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.hero .btn-outline:focus-visible,
.section-dark .btn-outline:focus-visible,
.sticky-cta .btn-outline:focus-visible {
  outline-color: #fff;
}
.btn-lg { padding: 1em 1.9em; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.6rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo span { color: var(--resin); }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.main-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-actions .btn-outline { display: none; }
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--slate-900);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: 0.55em; }
.hero .lede { color: #C9CFD2; }
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9rem;
  color: #9CA6AB;
}
.trust-strip strong { color: #fff; display: block; font-family: var(--font-display); font-size: 1.15rem; }

/* Floor visual — CSS/SVG illustration, not a photograph.
   Replace this block with a real licensed photo when available:
   recommended 1200x900px (4:3), WebP, showing a finished coated
   garage floor. See README "Swapping in real photography". */
.floor-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  aspect-ratio: 4 / 3;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.5);
}
.floor-panel {
  position: absolute;
  inset: 0;
  background-size: 10px 10px, 10px 10px, 100% 100%;
}
.floor-panel.bare {
  background-image:
    radial-gradient(rgba(0,0,0,0.16) 1px, transparent 1.4px),
    radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1.4px),
    linear-gradient(160deg, #837f78, #9a978f 55%, #7c7871);
  background-position: 0 0, 5px 5px, 0 0;
}
.floor-panel.coated {
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 42% 100%);
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.22), transparent 45%),
    linear-gradient(160deg, var(--resin-bright), var(--resin) 55%, var(--resin-ink));
}
.floor-panel.coated::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,0.22) 40%, transparent 55%);
}
.floor-divider {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; transform: translateX(-8%) skewX(-14deg);
  background: rgba(255,255,255,0.85);
}
.floor-tag {
  position: absolute; bottom: 0.9rem;
  font-size: 0.75rem; font-weight: 600;
  background: rgba(15,17,19,0.65); color: #fff;
  padding: 0.3em 0.7em; border-radius: 4px;
  letter-spacing: 0.01em;
}
.floor-tag.bare-tag { left: 0.9rem; }
.floor-tag.coated-tag { right: 0.9rem; }
.floor-visual-caption {
  font-size: 0.78rem;
  color: #8B949A;
  margin-top: 0.7rem;
  text-align: center;
}

/* Photo placeholder — clearly marked slot for real licensed photography.
   See README "Swapping in real photography" for exact specs per slot. */
.photo-placeholder {
  position: relative;
  border-radius: var(--radius);
  border: 1.5px dashed var(--concrete-300);
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.035) 0 12px, transparent 12px 24px),
    var(--concrete-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.photo-placeholder-4-3 { aspect-ratio: 4 / 3; }
.photo-placeholder-16-9 { aspect-ratio: 16 / 9; }
.photo-placeholder-label {
  text-align: center;
  padding: 1.2rem;
  max-width: 22rem;
}
.photo-placeholder-label .icon-badge { margin: 0 auto 0.7rem; background: rgba(0,0,0,0.06); color: var(--ink-soft); }
.photo-placeholder-label strong { display: block; font-size: 0.88rem; color: var(--ink); margin-bottom: 0.2rem; }
.photo-placeholder-label span { font-size: 0.8rem; color: var(--ink-soft); }

/* Grid / cards */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  background: #fff;
  transition: border-color 0.15s ease;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { margin-bottom: 0; }
.section-dark .card { background: var(--slate-800); border-color: var(--line-dark); }
.section-dark .card p { color: #B7BFC3; }
.card:hover { border-color: var(--resin); }

.icon-badge {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: rgba(20, 95, 82, 0.1);
  color: var(--resin);
  margin-bottom: 0.9rem;
}
.icon-badge svg { width: 22px; height: 22px; }
.section-dark .icon-badge { background: rgba(111, 214, 188, 0.14); color: #6FD6BC; }

/* Numbered process */
.steps {
  display: grid;
  gap: 2.2rem 1.4rem;
  position: relative;
}
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps::before {
    content: "";
    position: absolute;
    top: 22px; left: 11%; right: 11%;
    height: 1px;
    background: var(--line);
    opacity: 0.9;
  }
}
.step-num {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: var(--slate-900);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #6FD6BC;
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q .icon { font-size: 1.3rem; color: var(--resin); flex: none; transition: transform 0.2s ease; }
.faq-item[data-open="true"] .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a-inner { padding-bottom: 1.2rem; }
.faq-item[data-open="true"] .faq-a { max-height: 400px; }

/* Forms */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  padding: 0.75em 0.85em;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--resin); }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.8rem; }
.form-success {
  display: none;
  border: 1px solid var(--resin);
  background: #EAF5F1;
  color: var(--resin-ink);
  padding: 1.2rem;
  border-radius: var(--radius);
}
.form-success.is-visible { display: block; }
.form-success.is-visible + form { display: none; }
.form-error {
  display: none;
  border: 1px solid #B3401F;
  background: #FBEAE4;
  color: #7A2A12;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
}
.form-error.is-visible { display: block; }
.form-error a { color: inherit; font-weight: 600; }

/* Service area list */
.area-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.area-chip {
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 0.4em 1em;
  font-size: 0.9rem;
}

/* Footer */
.site-footer { background: var(--slate-900); color: #B7BFC3; padding: 3rem 0 6.5rem; }
@media (min-width: 700px) { .site-footer { padding-bottom: 3rem; } }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.3fr 1fr 1fr; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { text-decoration: none; color: #B7BFC3; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  font-size: 0.82rem;
  color: #7C858A;
}
.footer-bottom a { color: #9CA6AB; text-decoration: underline; }
.disclosure {
  font-size: 0.82rem;
  color: #7C858A;
  max-width: 60ch;
  margin-top: 1.2rem;
}

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: none;
  background: var(--slate-900);
  border-top: 1px solid var(--line-dark);
  padding: 0.6rem 0.8rem;
  padding-bottom: max(0.6rem, env(safe-area-inset-bottom, 0px));
}
.sticky-cta-row { display: flex; gap: 0.6rem; }
.sticky-cta .btn { flex: 1; }
@media (max-width: 700px) {
  .sticky-cta { display: block; }
}

/* Utility */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.small { font-size: 0.88rem; }
.mt-0 { margin-top: 0; }
.section-head { max-width: 46rem; margin-bottom: 2.6rem; }
.breadcrumbs { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: underline; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--resin); color: #fff; padding: 0.6em 1em; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }
