/* ===================================================================
   StL Garage Door Depot — styles.css
   =================================================================== */

/* ── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #1c1c1c;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Custom Properties ────────────────────────────────────────────── */
:root {
  --red:      #cc2820;
  --red-dark: #a81f18;
  --dark:     #1c1c1c;
  --warm:     #f6f2ee;
  --warm-2:   #ede8e3;
  --mid:      #555;
  --light:    #f9f9f9;
  --radius:   6px;
  --wrap:     1200px;
  --gap:      clamp(32px, 5vw, 64px);
}

/* ── Utilities ────────────────────────────────────────────────────── */
.red { color: var(--red); }

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

section { padding-block: var(--gap); }

.bg-warm { background: var(--warm); }

.eyebrow {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: #444;
  max-width: 56ch;
}

.key-points {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.key-points li {
  padding-left: 20px;
  position: relative;
}
.key-points li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 13px;
  top: 2px;
}

/* ── Reveal animation ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .12s;
  background: #fff;
  color: var(--dark);
}
.btn:hover { transform: translateY(-1px); }

.btn-red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn-ghost {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn-ghost:hover { background: var(--dark); color: #fff; }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-ghost-light:hover { background: #fff; color: var(--dark); border-color: #fff; }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.12); }

.arrow { font-style: normal; }

/* ── Section Head ─────────────────────────────────────────────────── */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  align-items: start;
  margin-bottom: 48px;
}
.section-head h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
}
.head-aside {
  font-size: 17px;
  color: var(--mid);
  padding-top: 44px;
}

@media (max-width: 700px) {
  .section-head { grid-template-columns: 1fr; }
  .head-aside { padding-top: 0; }
}

/* ── Headings (global) ────────────────────────────────────────────── */
h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
}
h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 8px;
}
h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}

/* ── HERO (homepage) ──────────────────────────────────────────────── */
.hero {
  background: var(--dark);
  padding-block: 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 48px 72px 0;
  color: #fff;
}
.hero-copy h1 { color: #fff; margin-bottom: 20px; }
.hero-copy .lead { color: rgba(255,255,255,.82); margin-bottom: 36px; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-media {
  position: relative;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-badge {
  position: absolute;
  bottom: 28px;
  left: 28px;
  background: #fff;
  border-radius: 50px;
  padding: 12px 20px 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  max-width: 320px;
}
.badge-mark {
  font-size: 22px;
  color: var(--red);
  line-height: 1;
}
.badge-text {
  font-size: 13px;
  line-height: 1.4;
  color: #333;
}
.badge-text strong { display: block; color: var(--dark); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 56px 0 40px; }
  .hero-media { min-height: 320px; }
  .hero-badge { bottom: 16px; left: 16px; }
}

/* ── Page Hero (inner pages) ──────────────────────────────────────── */
.page-hero {
  position: relative;
  padding-block: 0;
  background: var(--dark);
  min-height: 420px;
  display: flex;
  align-items: center;
}
.page-hero--image { min-height: 460px; }

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.page-hero-tint {
  position: absolute;
  inset: 0;
  background: rgba(20,20,20,.62);
}
.page-hero .wrap { position: relative; z-index: 1; padding-block: 80px; }

.page-hero-single { color: #fff; max-width: 700px; }
.page-hero-single h1 { color: #fff; margin-bottom: 16px; }
.page-hero-single .lead { color: rgba(255,255,255,.85); }
.page-hero-single .hero-cta { margin-top: 32px; }

.crumbs {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-bottom: 16px;
  letter-spacing: .01em;
}
.crumbs a { color: rgba(255,255,255,.6); }
.crumbs a:hover { color: #fff; }

/* ── Card Grid ────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid #e8e3de;
  border-radius: 10px;
  padding: 32px 28px;
}
.bg-warm .card { background: #fff; }
.card .num {
  font-family: 'Oswald', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--red);
  opacity: .25;
  line-height: 1;
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--mid); font-size: 15.5px; }

/* ── Tiles ────────────────────────────────────────────────────────── */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tile {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  display: block;
  aspect-ratio: 4/5;
  min-height: 340px;
}
.tile-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.tile:hover .tile-bg { transform: scale(1.04); }
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
}
.tile-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 24px;
  color: #fff;
  z-index: 1;
}
.tile-body h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: #fff;
}
.tile-body p { font-size: 14.5px; color: rgba(255,255,255,.82); margin-bottom: 12px; }
.more {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--red);
}

@media (max-width: 800px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 16/9; min-height: 220px; }
}

/* ── Steps ────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: steps;
}
.step {
  position: relative;
  padding-top: 20px;
  border-top: 3px solid var(--warm-2);
}
.step-num {
  font-family: 'Oswald', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--red);
  opacity: .2;
  line-height: 1;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 10px; color: var(--dark); }
.step p { font-size: 15px; color: var(--mid); }

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .steps { grid-template-columns: 1fr; }
}

/* ── Testimonial ──────────────────────────────────────────────────── */
.testimonial {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding-block: 72px;
}
.testimonial .eyebrow { color: rgba(255,255,255,.5); }
.testimonial blockquote {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(20px, 2.5vw, 27px);
  font-weight: 500;
  line-height: 1.45;
  max-width: 780px;
  margin: 16px auto 24px;
  color: rgba(255,255,255,.92);
}
.quote-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 14px;
  color: rgba(255,255,255,.55);
}
.stars { color: #f5c842; letter-spacing: 2px; }

.reviews-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  border-bottom: 1px solid rgba(255,255,255,.2);
  padding-bottom: 3px;
  transition: color .2s;
}
.reviews-cta:hover { color: #fff; }

/* ── CTA Band ─────────────────────────────────────────────────────── */
.cta-band {
  background: var(--red);
  padding-block: 72px;
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, 48px);
  color: #fff;
  margin-bottom: 16px;
}
.cta-band p { margin-bottom: 40px; }
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}
.cta-band .btn {
  background: #fff;
  color: var(--red);
  border-color: #fff;
}
.cta-band .btn:hover { background: var(--dark); color: #fff; border-color: var(--dark); }

/* ── Content Grid (2-col text + cards) ───────────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 56px;
  align-items: start;
}
.content-grid h2 { margin-bottom: 16px; }
.content-grid p { color: var(--mid); margin-bottom: 16px; }

.feature-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px 22px;
  border: 1px solid #e5e0db;
}
.feature-card h3 { margin-bottom: 8px; font-size: 17px; }
.feature-card p { font-size: 15px; color: var(--mid); margin: 0; }

@media (max-width: 800px) {
  .content-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Story Grid (About) ───────────────────────────────────────────── */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.story-grid--solo { grid-template-columns: minmax(0, 680px); }
.story-text h2 { margin-bottom: 20px; }
.story-text p { color: var(--mid); margin-bottom: 16px; }

.signature {
  font-family: 'Caveat', cursive;
  font-size: 32px;
  font-weight: 500;
  color: var(--dark);
  margin-top: 24px;
  line-height: 1;
}

/* ── Credentials ──────────────────────────────────────────────────── */
.creds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.cred {
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e0db;
}
.cred .big {
  font-family: 'Oswald', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
}
.cred .lbl {
  font-size: 13.5px;
  color: var(--mid);
  line-height: 1.35;
}

@media (max-width: 700px) {
  .creds { grid-template-columns: 1fr 1fr; }
}

/* ── Carousel ─────────────────────────────────────────────────────── */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--dark);
}
.carousel-track {
  display: flex;
  transition: transform .42s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.carousel-slide figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 24px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  color: rgba(255,255,255,.85);
  font-size: 13.5px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  transition: background .18s, transform .18s;
  z-index: 10;
}
.carousel-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 16px;
  background: var(--dark);
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
  padding: 0;
}
.carousel-dot.active, .carousel-dot[aria-selected="true"] {
  background: #fff;
  transform: scale(1.25);
}

/* ── Nav (injected by site.js) ────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  border-bottom: 2px solid rgba(255,255,255,.07);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0;
  height: 66px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.site-logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .02em;
  line-height: 1.2;
}
.site-logo-text span { display: block; font-size: 11px; opacity: .6; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 22px 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  transition: color .15s;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover, .site-nav a.active {
  color: #fff;
  border-bottom-color: var(--red);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 10px 18px;
  border-radius: var(--radius);
  transition: background .15s;
}
.header-cta:hover { background: var(--red-dark); }
.header-cta svg { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 860px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .site-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 66px;
    left: 0; right: 0;
    background: var(--dark);
    padding: 12px 0 20px;
    border-bottom: 2px solid rgba(255,255,255,.08);
    align-items: flex-start;
  }
  .site-header.open .site-nav a { padding: 12px 24px; border-bottom: none; }
  .site-header.open .header-cta {
    display: flex;
    margin: 8px 24px 0;
  }
}

/* ── Footer (injected by site.js) ─────────────────────────────────── */
.site-footer {
  background: #141414;
  color: rgba(255,255,255,.55);
  padding-block: 56px 32px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px 56px;
  margin-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo { height: 44px; width: auto; align-self: flex-start; display: block; }
.footer-tagline { font-size: 14px; line-height: 1.55; max-width: 28ch; }
.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,.55); transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact a { color: rgba(255,255,255,.55); transition: color .15s; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-zing a { color: rgba(255,255,255,.3); }
.footer-zing a:hover { color: rgba(255,255,255,.6); }

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Mobile CTA bar (injected by site.js) ─────────────────────────── */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 12px 16px;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.mobile-cta .btn { flex: 1; justify-content: center; font-size: 14px; padding: 13px 16px; }
@media (max-width: 640px) { .mobile-cta { display: flex; } body { padding-bottom: 72px; } }
