/* ==========================================================================
   REDONE CO. — Design System
   Charcoal / teal-sage. Barlow Condensed display, Inter body.
   ========================================================================== */

:root {
  /* Brand tokens — from handoff doc */
  --charcoal-950: #2a2a2a;
  --charcoal-900: #3d3d3d;
  --teal: #7a9e9f;
  --teal-bg: #cdd8d8;
  --white: #ffffff;
  --off-white: #f4f5f5;
  --light-grey: #eaebeb;
  --text-grey: #888888;

  /* Derived working tokens */
  --teal-deep: #5e8485;
  --teal-tint: #e4ebeb;
  --ink: #201f1f;
  --line: #dcdedd;
  --line-dark: rgba(255, 255, 255, 0.12);

  --nav-height: 96px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Scroll-reveal is opt-in: content is fully visible by default, so no-JS,
   slow-JS, and non-executing crawlers/link-preview bots all see everything.
   Only once the inline head script confirms JS is running does it stamp
   html.js-reveal *before first paint*, and only then do .reveal elements
   start hidden and fade in via script.js adding is-visible. Content is
   never hidden behind a class nothing guarantees will be added. */
html.js-reveal .reveal { opacity: 0; transform: translateY(18px); }
html.js-reveal .reveal.is-visible { opacity: 1; transform: translateY(0); }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Belt-and-suspenders: the page must never scroll sideways, whatever a
     future edit does to a heading, image, or fixed-width child. */
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
  /* Safety net: a ch-based max-width (e.g. .hero h1) can be narrower than a
     single long word at large mobile font sizes. Without this, that word
     can't wrap and silently overflows the viewport instead. */
  overflow-wrap: break-word;
}

.display-1 { font-size: clamp(2.8rem, 6.5vw, 5.6rem); font-weight: 900; }
.display-2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
.display-3 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }

p { margin: 0 0 1em; max-width: 60ch; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--teal-deep);
}
.eyebrow.on-dark { color: var(--teal); }
.eyebrow.on-dark::before { background: var(--teal); }

.lede {
  font-size: 1.05rem;
  color: var(--text-grey);
  max-width: 52ch;
}
.on-dark .lede, .lede.on-dark { color: rgba(255,255,255,0.72); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--white); color: var(--charcoal-950); }
.btn-primary:hover { background: var(--teal); color: var(--white); }

.btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-dark { background: var(--charcoal-950); color: var(--white); }
.btn-dark:hover { background: var(--teal-deep); }

.btn-ghost-dark { border-color: rgba(42,42,42,0.25); color: var(--charcoal-950); }
.btn-ghost-dark:hover { border-color: var(--charcoal-950); background: rgba(42,42,42,0.05); }

.btn-teal { background: var(--charcoal-950); color: var(--white); }
.btn-teal:hover { background: var(--white); color: var(--charcoal-950); }

.btn[disabled], .btn.is-sold {
  background: var(--charcoal-900);
  color: rgba(255,255,255,0.5);
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav-inner {
  width: 100%;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 48px;
}

.nav-links {
  display: flex;
  gap: 34px;
}

.nav-links a {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-logo {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  transition: color 0.35s var(--ease);
}
.nav-logo .logo-mark { position: relative; display: block; flex: none; height: 46px; width: 31px; }
.nav-logo .logo-mark img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: contain; display: block; transition: opacity 0.35s var(--ease); }
.nav-logo .logo-mark .mark-dark { opacity: 0; }
.logo-word {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: inherit;
}

.nav-right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.nav-right .btn { color: var(--white); border-color: rgba(255,255,255,0.5); }
.nav-right .btn:hover { background: var(--white); color: var(--charcoal-950); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 26px; height: 20px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-toggle span { top: 9px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

/* light nav state — set by JS when scrolled over a light section */
.nav.is-light {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.nav.is-light .nav-links a,
.nav.is-light .nav-right a.nav-text { color: var(--charcoal-950); }
.nav.is-light .nav-logo { color: var(--charcoal-950); }
.nav.is-light .nav-logo .logo-mark .mark-light { opacity: 0; }
.nav.is-light .nav-logo .logo-mark .mark-dark { opacity: 1; }
.nav.is-light .nav-right .btn { color: var(--charcoal-950); border-color: rgba(42,42,42,0.35); }
.nav.is-light .nav-right .btn:hover { background: var(--charcoal-950); color: var(--white); }
.nav.is-light .nav-toggle span,
.nav.is-light .nav-toggle span::before,
.nav.is-light .nav-toggle span::after { background: var(--charcoal-950); }

.nav.is-solid-dark {
  background: var(--charcoal-950);
  border-bottom-color: rgba(255,255,255,0.08);
}

/* mobile nav drawer */
.nav-drawer {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: var(--charcoal-950);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 40px var(--gutter);
  gap: 28px;
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer a {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--white);
}
.nav-drawer { overflow-x: hidden; overflow-y: auto; }
.nav-drawer .btn {
  align-self: flex-start;
  margin-top: 12px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

body.nav-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-right { gap: 0; }
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-logo { justify-self: start; }
}

/* ---------- section helpers ---------- */

section { position: relative; }

.section-dark { background: var(--charcoal-950); color: var(--white); }
.section-light { background: var(--white); }
.section-off { background: var(--off-white); }
.section-grey { background: var(--light-grey); }

.pad-xl { padding: clamp(80px, 12vw, 160px) 0; }
.pad-l { padding: clamp(64px, 9vw, 120px) 0; }
.pad-m { padding: clamp(48px, 6vw, 80px) 0; }

/* ---------- marquee ---------- */

.marquee-bar {
  background: var(--charcoal-950);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  padding: 22px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.4);
  padding: 0 40px;
  border-right: 1px solid rgba(255,255,255,0.14);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  background: var(--charcoal-950) url("../images/Hero_image.jpg") center right / cover no-repeat;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30,30,30,0.94) 0%, rgba(30,30,30,0.72) 38%, rgba(30,30,30,0.28) 68%, rgba(30,30,30,0.05) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-height) + 60px) 0 90px;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 26px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.hero h1 { max-width: 14ch; margin-bottom: 22px; }
.hero .lede { color: rgba(255,255,255,0.78); font-size: 1.1rem; max-width: 46ch; margin-bottom: 38px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 700px) {
  .hero { align-items: center; background-position: 70% center; }
  .hero::before { background: linear-gradient(180deg, rgba(30,30,30,0.6) 0%, rgba(30,30,30,0.88) 55%, rgba(30,30,30,0.96) 100%); }
  /* display-1's clamp() floors at 2.8rem regardless of viewport, which is too
     large for a long single word like "Professionally" on a narrow phone.
     Scale it down further here so overflow-wrap rarely has to break a word. */
  .hero h1 { font-size: clamp(2rem, 9.5vw, 2.8rem); max-width: 100%; }
}

/* ---------- what we do ---------- */

.wwd-grid {
  display: grid;
  grid-template-columns: 0.85fr 2fr;
  gap: 56px;
  align-items: start;
}
.wwd-heading h2 { margin-bottom: 18px; }
.wwd-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.wwd-card {
  background: var(--charcoal-950);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--white);
  transition: background 0.3s var(--ease);
}
.wwd-card.is-tint { background: rgba(255, 255, 255, 0.05); }
.wwd-card .num { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--teal); }
.wwd-card h3 { font-size: 1.35rem; }
.wwd-card p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.65); }
.wwd-card:hover { background: rgba(122, 158, 159, 0.16); }

@media (max-width: 900px) {
  .wwd-grid { grid-template-columns: 1fr; }
  .wwd-cards { grid-template-columns: 1fr; }
}

/* ---------- inventory ---------- */

.inv-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .inv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .inv-grid { grid-template-columns: 1fr; } }

.chair-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.chair-media {
  aspect-ratio: 4/3;
  background: var(--off-white);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.chair-media svg { width: 46%; opacity: 0.5; }
.chair-media img { width: 100%; height: 100%; object-fit: cover; }
.chair-badge {
  position: absolute;
  top: 14px; left: 14px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
}
.badge-like-new { background: #4c8c6b; }
.badge-excellent { background: #4b7fa8; }
.badge-good { background: #b6862c; }
.badge-sold { background: var(--charcoal-900); }

.chair-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.chair-name { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 1.3rem; text-transform: uppercase; }
.chair-spec { font-size: 0.85rem; color: var(--text-grey); margin-bottom: 6px; }
.chair-prices { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.chair-price { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.chair-retail { font-size: 0.82rem; color: var(--text-grey); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.chair-warranty { font-size: 0.78rem; color: var(--teal-deep); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.chair-body .btn { margin-top: auto; width: 100%; }

/* empty state */
.empty-state {
  border: 1px dashed var(--line);
  padding: clamp(56px, 8vw, 96px) 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background: var(--off-white);
}
.empty-state svg { width: 64px; opacity: 0.35; margin-bottom: 6px; }
.empty-state h3 { font-size: 1.8rem; }
.empty-state p { color: var(--text-grey); }
.waitlist-form {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
  max-width: 420px;
  flex-wrap: wrap;
}
.waitlist-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
}
.waitlist-form input:focus { outline: 2px solid var(--teal); outline-offset: -1px; }

/* ---------- trust bar ---------- */

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-item {
  background: var(--white);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trust-item .n { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 1.9rem; color: var(--teal-deep); }
.trust-item .l { font-size: 0.82rem; color: var(--text-grey); text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 700px) { .trust-bar { grid-template-columns: repeat(2, 1fr); } }

/* ---------- process ---------- */

.process {
  background: var(--charcoal-950) url("../images/background_pictures.jpg") center / cover no-repeat;
  color: var(--white);
  position: relative;
}
.process::before { content: ""; position: absolute; inset: 0; background: rgba(20,20,20,0.86); }
.process-inner { position: relative; z-index: 1; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  margin-top: 54px;
}
.process-step .n {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: 4.4rem;
  color: rgba(255,255,255,0.35);
  line-height: 1;
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.process-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 56px; }
@media (max-width: 900px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-steps { grid-template-columns: 1fr; } }

/* ---------- mission ---------- */

.mission-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: 60px;
  align-items: start;
}
.mission-grid .lede { font-size: 1.08rem; color: var(--ink); max-width: 68ch; }
.mission-tagline {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-top: 26px;
}
@media (max-width: 900px) { .mission-grid { grid-template-columns: 1fr; } }

/* ---------- testimonials ---------- */

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testi-card {
  background: var(--white);
  padding: 32px 28px;
  border: 1px solid var(--line);
}
.stars { color: var(--teal-deep); font-size: 0.95rem; letter-spacing: 0.1em; margin-bottom: 16px; }
.testi-quote { font-size: 0.98rem; margin-bottom: 22px; }
.testi-name { font-weight: 600; font-size: 0.92rem; }
.testi-role { font-size: 0.8rem; color: var(--text-grey); }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---------- cta banner ---------- */

.cta-banner {
  background: var(--charcoal-950) url("../images/Gemini_Generated_Image_jfrqw5jfrqw5jfrq.jpg") center / cover no-repeat;
  position: relative;
  color: var(--charcoal-950);
}
.cta-banner::before { content: ""; position: absolute; inset: 0; background: rgba(205, 216, 216, 0.88); }
.cta-banner-inner {
  position: relative; z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.cta-banner h2 { max-width: 16ch; }
.cta-banner .btn-dark:hover { background: var(--white); color: var(--charcoal-950); }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 64px;
}
.contact-list { display: flex; flex-direction: column; gap: 26px; margin-top: 30px; }
.contact-item .l { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-grey); margin-bottom: 4px; }
.contact-item .v { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.3rem; }
.contact-item a.v:hover { color: var(--teal-deep); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-grey);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--off-white);
  padding: 14px 16px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.78rem; color: var(--text-grey); margin-top: 4px; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */

.site-footer { background: var(--charcoal-950); color: rgba(255,255,255,0.8); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 72px 0 44px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 18px; color: var(--white); }
.footer-brand .brand-mark { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark img { height: 44px; width: 30px; object-fit: contain; flex: none; display: block; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.55); max-width: 32ch; margin: 0; }
.footer-col h4 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.78); transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--teal); }
.footer-social { display: flex; gap: 14px; margin-top: 4px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.footer-social a:hover { border-color: var(--teal); background: rgba(122,158,159,0.12); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a:hover { color: var(--teal); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- inner-page hero (non-home pages) ---------- */

.page-hero {
  background: var(--charcoal-950);
  color: var(--white);
  padding: calc(var(--nav-height) + 76px) 0 64px;
}
.page-hero .display-2 { max-width: 20ch; }

/* ---------- pricing tables (services page) ---------- */

.price-table-wrap { overflow-x: auto; }
table.price-table {
  width: 100%;
  border-collapse: collapse;
  /* Only two columns (model, price) — this only needs to be wide enough that
     the longest model name and its price don't crowd each other. A larger
     min-width here would force horizontal scroll on phones for no reason;
     overflow-x on the wrapper above is the real safety net if it's ever needed. */
  min-width: 280px;
}
table.price-table th, table.price-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
table.price-table th {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-grey);
}
table.price-table td.model { font-weight: 600; }
table.price-table td.amount { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; text-align: right; }
table.price-table th:last-child, table.price-table td:last-child { text-align: right; }

.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .services-grid { grid-template-columns: 1fr; } }
/* Grid items default to min-width:auto, which floors them at their content's
   intrinsic size — here, the pricing table's min-width:420px. That silently
   grows the column (and the whole page) sideways instead of letting
   .price-table-wrap's own overflow-x:auto scroll the table in place. */
.services-grid > div { min-width: 0; }

.addon-list { display: flex; flex-direction: column; }
.addon-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.addon-row .name { font-weight: 500; }
.addon-row .price { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- policies page ---------- */

.policy-block { max-width: 78ch; margin-bottom: 56px; }
.policy-block:last-child { margin-bottom: 0; }
.policy-block h2 { margin-bottom: 20px; }
.policy-block h3 { font-size: 1.15rem; text-transform: none; font-family: "Inter", sans-serif; font-weight: 600; margin: 26px 0 10px; letter-spacing: 0; }
.policy-block ul { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; }
.policy-block li {
  padding-left: 22px;
  position: relative;
  font-size: 0.96rem;
  color: var(--ink);
}
.policy-block li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1px;
  background: var(--teal-deep);
}
.policy-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.policy-nav a {
  padding: 12px 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-grey);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.policy-nav a.is-active, .policy-nav a:hover { color: var(--charcoal-950); border-color: var(--teal); }

/* ---------- parts page ---------- */

.parts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); }
.parts-card { background: var(--white); padding: 30px 26px; display: flex; flex-direction: column; gap: 10px; }
.parts-card .price { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--teal-deep); }
.parts-card .parts-name { font-family: "Inter", sans-serif; font-weight: 600; font-size: 1.15rem; text-transform: none; letter-spacing: 0; }
.parts-card p { font-size: 0.88rem; color: var(--text-grey); }
.parts-media { aspect-ratio: 4/3; background: var(--off-white); overflow: hidden; margin: -30px -26px 4px; }
.parts-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .parts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .parts-grid { grid-template-columns: 1fr; } }

/* ---------- color swatches (owner-editable per part) ---------- */

.swatches-block { margin-top: 4px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--swatch-color, #ccc);
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.swatch-btn:hover { transform: scale(1.1); }
.swatch-btn[aria-pressed="true"] { border-color: var(--charcoal-950); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--charcoal-950); }
.swatch-selected { font-size: 0.78rem; color: var(--text-grey); margin-top: 8px; min-height: 1.2em; }

/* ---------- inline video (YouTube, owner-pasted URL) ---------- */

.video-toggle { margin-top: 2px; }
.video-toggle summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.video-toggle summary::-webkit-details-marker { display: none; }
.video-toggle summary::before {
  content: "";
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
  transition: transform 0.2s var(--ease);
}
.video-toggle[open] summary::before { transform: rotate(90deg); }
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  margin-top: 10px;
  background: var(--charcoal-950);
  border-radius: 3px;
  overflow: hidden;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.parts-note {
  border: 1px solid var(--line);
  background: var(--off-white);
  padding: 24px 28px;
  margin-top: 40px;
  font-size: 0.92rem;
  color: var(--text-grey);
}

/* ---------- customer reviews ---------- */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 700px) { .reviews-grid { grid-template-columns: 1fr; } }

.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-date { font-size: 0.78rem; color: var(--text-grey); }
.review-text { font-size: 0.98rem; }
.review-name { font-weight: 600; font-size: 0.9rem; }

.review-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.review-photo {
  position: relative;
  width: 76px; height: 76px;
  border: 0;
  padding: 0;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  background: var(--off-white);
}
.review-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s var(--ease); }
.review-photo:hover img { transform: scale(1.06); }
.review-photo-more {
  position: absolute; inset: 0;
  background: rgba(20, 24, 24, 0.55);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

/* lightbox — opens a review's photos for scrolling through, one at a time */
.lightbox {
  position: fixed; inset: 0;
  z-index: 300;
  background: rgba(10, 12, 12, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
body.lightbox-open { overflow: hidden; }
.lightbox-img { max-width: min(90vw, 900px); max-height: 82vh; object-fit: contain; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.22); }
.lightbox-close { top: 20px; right: 20px; width: 42px; height: 42px; border-radius: 50%; font-size: 1.4rem; line-height: 1; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.75); font-size: 0.85rem; }
@media (max-width: 700px) {
  .lightbox-prev, .lightbox-next { width: 42px; height: 42px; font-size: 1.3rem; }
  .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; }
}

/* write-a-review form */
.rating-picker {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}
.rating-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-picker label {
  font-size: 1.7rem;
  line-height: 1;
  color: var(--line);
  cursor: pointer;
  transition: color 0.15s var(--ease);
}
.rating-picker input:checked ~ label,
.rating-picker label:hover,
.rating-picker label:hover ~ label,
.rating-picker input:checked ~ label:hover,
.rating-picker input:hover ~ label { color: var(--teal-deep); }
.rating-picker input:focus-visible ~ label { outline: 2px solid var(--teal); outline-offset: 2px; }

.photo-previews { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.photo-preview { position: relative; width: 64px; height: 64px; border-radius: 3px; overflow: hidden; background: var(--off-white); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-preview-remove {
  position: absolute; top: 2px; right: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 24, 24, 0.75);
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

.form-status { font-size: 0.85rem; min-height: 1.2em; margin-top: 4px; }
.form-status.is-error { color: #b0453a; }
.form-status.is-success { color: var(--teal-deep); font-weight: 600; }

.review-form-wrap {
  background: var(--off-white);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px);
  margin-bottom: 64px;
}

/* ---------- utility ---------- */

.center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0 !important; }
.section-head { margin-bottom: 48px; }
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
