/* Kennedy Door Works — RouteShowroom
   Fonts: Barlow Condensed + Nunito Sans
   Tokens: fog #e8eaed, iron #2a2f38, amber #c4781a */

:root {
  --fog: #e8eaed;
  --paper: #f4f5f7;
  --iron: #2a2f38;
  --iron-soft: #3a414d;
  --amber: #c4781a;
  --amber-deep: #a36314;
  --muted: #5c6570;
  --line: rgba(42, 47, 56, 0.12);
  --card: #ffffff;
  --font-display: "Barlow Condensed", Impact, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --header-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 6px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--iron);
  background:
    linear-gradient(180deg, #dde1e6 0%, var(--paper) 28%, var(--paper) 100%);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-deep); text-underline-offset: 0.15em; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  background: var(--iron);
  color: #fff;
  padding: 0.6rem 1rem;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(244, 245, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--iron);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.logo img { width: 36px; height: 36px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.site-nav a {
  color: var(--iron);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.site-nav a:hover { color: var(--amber-deep); }

.nav-cta {
  background: var(--amber);
  color: #fff !important;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
}
.nav-cta:hover {
  background: var(--amber-deep) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--iron);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  animation: heroClip 1s var(--ease) both;
}

@keyframes heroClip {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
}
.hero-media { z-index: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(42, 47, 56, 0.88) 0%, rgba(42, 47, 56, 0.62) 48%, rgba(42, 47, 56, 0.28) 100%),
    linear-gradient(180deg, transparent 30%, rgba(42, 47, 56, 0.55) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 38rem;
  color: var(--fog);
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0c27a;
}
.eyebrow.dark { color: var(--amber-deep); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  margin-bottom: 0.9rem;
  color: #fff;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 0.7rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  text-transform: none;
  letter-spacing: 0;
}

.lede,
.section-sub {
  margin: 0 0 1.25rem;
  color: rgba(232, 234, 237, 0.88);
  font-size: 1.05rem;
}
.section-sub { color: var(--muted); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-primary {
  background: var(--amber);
  color: #fff;
}
.btn-primary:hover {
  background: var(--amber-deep);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

.magnetic { will-change: transform; }

.stat-band {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.stat-band li {
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

/* Showroom */
.showroom,
.about,
.delivery,
.menu,
.faq,
.booking {
  padding: 4rem 0;
}

.section-head { max-width: 36rem; margin-bottom: 1.35rem; }

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}
.chip {
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--iron);
  cursor: pointer;
}
.chip.is-active,
.chip[aria-pressed="true"] {
  background: var(--iron);
  border-color: var(--iron);
  color: #fff;
}

.filter-live {
  margin: 0 0 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.cat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  animation: cardIn 0.55s var(--ease) forwards;
}
.cat-card:nth-child(1) { animation-delay: 0.05s; }
.cat-card:nth-child(2) { animation-delay: 0.1s; }
.cat-card:nth-child(3) { animation-delay: 0.15s; }
.cat-card:nth-child(4) { animation-delay: 0.2s; }
.cat-card:nth-child(5) { animation-delay: 0.25s; }
.cat-card:nth-child(6) { animation-delay: 0.3s; }
.cat-card.is-hidden { display: none; }

@keyframes cardIn {
  to { opacity: 1; transform: none; }
}

.cat-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.cat-body { padding: 1rem 1.05rem 1.15rem; }
.cat-body p {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.cat-body .from {
  color: var(--iron);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.cat-body a {
  font-weight: 700;
  text-decoration: none;
  color: var(--amber-deep);
}
.cat-body a:hover { text-decoration: underline; }

/* About */
.about {
  background: var(--fog);
  border-block: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.6rem;
  align-items: center;
}
.about p { color: var(--muted); }
.about figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.about figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

/* Delivery steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  counter-reset: step;
}
.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.15rem 1.05rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--amber);
  letter-spacing: 0.04em;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Price tabs */
.menu { background: var(--fog); border-block: 1px solid var(--line); }

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.tablist button {
  font: inherit;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.65rem 0.9rem;
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.tablist button[aria-selected="true"] {
  background: var(--iron);
  border-color: var(--iron);
  color: #fff;
}

.price-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.price-panel[hidden] { display: none !important; }
.price-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.price-panel li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
  opacity: 0;
  transform: translateY(6px);
}
.price-panel.is-active li,
.price-panel:not([hidden]) li {
  animation: rowIn 0.35s var(--ease) forwards;
}
.price-panel li:nth-child(1) { animation-delay: 0.02s; }
.price-panel li:nth-child(2) { animation-delay: 0.05s; }
.price-panel li:nth-child(3) { animation-delay: 0.08s; }
.price-panel li:nth-child(4) { animation-delay: 0.11s; }
.price-panel li:nth-child(5) { animation-delay: 0.14s; }
.price-panel li:nth-child(6) { animation-delay: 0.17s; }
.price-panel li:nth-child(7) { animation-delay: 0.2s; }

@keyframes rowIn {
  to { opacity: 1; transform: none; }
}

.price-panel li:last-child { border-bottom: 0; }
.price-panel li span { color: var(--muted); }
.price-panel li strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.55rem;
  max-width: 42rem;
}
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.1rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: var(--muted);
}

/* Booking */
.booking-wrap { max-width: 30rem; }
.booking-form { display: grid; gap: 0.9rem; }
.field { display: grid; gap: 0.3rem; }
.field label { font-size: 0.85rem; font-weight: 700; }
.field input,
.field select {
  font: inherit;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.field input.is-invalid,
.field select.is-invalid { border-color: #b45309; }
.form-error { margin: 0; color: #9a3412; font-size: 0.9rem; }
.form-success {
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--amber);
  background: rgba(196, 120, 26, 0.12);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--iron);
  color: var(--fog);
  padding: 3rem 0 1.75rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0 0 0.4rem;
  text-transform: uppercase;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.site-footer a {
  color: #f0c27a;
  text-decoration: none;
}
.footer-hours { color: #a8b0ba; font-size: 0.92rem; }
.copyright {
  margin: 0;
  font-size: 0.8rem;
  color: #7e8792;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { animation: none; }
  .cat-card,
  .price-panel li {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .magnetic { transform: none !important; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
    border: 0 !important;
  }

  .category-grid,
  .steps,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}
