/* ==========================================================================
   Cadillac Floors — Scottsdale, Arizona
   White / light theme · gold accents
   ========================================================================== */

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --surface-alt: #F5F5F0;
  --ink: #1A1A1A;
  --ink-strong: #0C0C0C;
  --ink-soft: #5C5C56;
  --gold: #D4AF37;
  --gold-deep: #B8952B;
  --gold-pale: #F3EAD2;
  --line: #E7E4DB;
  --shadow-sm: 0 1px 3px rgba(12, 12, 12, 0.06), 0 4px 14px rgba(12, 12, 12, 0.05);
  --shadow-md: 0 4px 10px rgba(12, 12, 12, 0.07), 0 14px 34px rgba(12, 12, 12, 0.09);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 10px;
  --max-w: 1200px;
  --header-h: 92px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink-strong);
  line-height: 1.18;
  font-weight: 600;
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 14px 34px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-gold {
  background: var(--gold);
  color: #FFFFFF;
}

.btn-gold:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(184, 149, 43, 0.30);
}

.btn-outline {
  background: transparent;
  color: var(--ink-strong);
}

.btn-outline:hover {
  background: var(--gold);
  color: #FFFFFF;
}

.btn-dark {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  color: #FFFFFF;
}

.btn-dark:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Home page only — transparent header over hero image */
body[data-page="home"] .site-header {
  background: transparent;
  border-bottom-color: transparent;
}
body[data-page="home"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* Home page text colors — white on dark hero */
body[data-page="home"] .site-header:not(.scrolled) .brand-name {
  color: #FFFFFF;
}
body[data-page="home"] .site-header:not(.scrolled) .brand-name span {
  color: var(--gold);
}
body[data-page="home"] .site-header:not(.scrolled) .main-nav a {
  color: rgba(255, 255, 255, 0.85);
}
body[data-page="home"] .site-header:not(.scrolled) .main-nav a.active {
  color: #FFFFFF;
  border-bottom-color: var(--gold);
}
body[data-page="home"] .site-header:not(.scrolled) .main-nav a:hover {
  color: #FFFFFF;
}
body[data-page="home"] .site-header:not(.scrolled) .nav-toggle span {
  background: #FFFFFF;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-strong);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-name span { color: var(--gold); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.main-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover { color: var(--ink-strong); }

.main-nav a.active {
  color: var(--ink-strong);
  border-bottom-color: var(--gold);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink-strong);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 84px 24px 120px;
  background: linear-gradient(rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0.55)), url("../images/hero-bg.jpg") center/cover no-repeat;
  border-bottom: 3px solid var(--gold);
}

.hero h1 {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 20px;
}

.hero .hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 2vw, 19px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.hero-nav { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

.hero-btn {
  display: inline-block;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 16px 38px;
  min-width: 190px;
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.hero-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.4);
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0) 0%, var(--gold) 100%);
}

.hero-scroll::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: -5px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: hero-bob 2s ease-in-out infinite;
}

@keyframes hero-bob {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(7px) rotate(45deg); }
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */

.section { padding: 90px 0; }

.section-alt { background: var(--surface-alt); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.section-head .eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--ink-soft);
  margin-top: 16px;
}

.rule-gold {
  width: 56px;
  height: 3px;
  background: var(--gold);
  border: none;
  margin: 22px auto 0;
}

.section-foot {
  text-align: center;
  margin-top: 48px;
}

/* Collapsible sections (Products In Stock / About) */

.collapse-head { cursor: pointer; user-select: none; }

.collapse-head h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Negative right margin cancels the icon's footprint (40px + 12px gap) so the
   heading text itself is centered, matching non-collapsible section heads. */
.toggle-icon {
  flex: none;
  width: 40px;
  height: 40px;
  margin-right: -52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease, transform 0.3s ease;
}

.collapse-head:hover .toggle-icon {
  background: var(--gold);
  color: #FFFFFF;
}

.collapse-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.55s ease, opacity 0.45s ease;
}

.collapse-body.is-open {
  max-height: 6000px;
  opacity: 1;
}

.collapse-body > :first-child { margin-top: 48px; }

/* --------------------------------------------------------------------------
   Reviews (home)
   -------------------------------------------------------------------------- */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: var(--gold);
  font-size: 22px;
  letter-spacing: 3px;
  line-height: 1;
  margin-bottom: 12px;
}

.review-source {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.review-source svg { flex: none; }

.review-source strong { color: var(--ink-strong); }

.review-text {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Collection cards (home)
   -------------------------------------------------------------------------- */

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.collection-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collection-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.collection-card figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.collection-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.collection-card:hover figure img { transform: scale(1.05); }

.collection-card .card-body { padding: 26px 28px 30px; }

.collection-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.collection-card p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.card-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.card-link::after { content: " \2192"; }

/* --------------------------------------------------------------------------
   Product cards
   -------------------------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
  outline: none;
}

.product-card figure {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-alt);
}

.product-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover figure img { transform: scale(1.06); }

.product-card .card-body { padding: 18px 20px 20px; }

.product-card h4 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-strong);
  line-height: 1.4;
  margin-bottom: 8px;
}

.product-card .specs {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.product-card .specs strong {
  color: var(--gold-deep);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Catalog pages (hardwood / lvp)
   -------------------------------------------------------------------------- */

.page-hero {
  background:
    radial-gradient(ellipse 70% 70% at 50% 0%, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0) 70%),
    var(--bg);
  text-align: center;
  padding: 80px 24px 64px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 12px;
}

.page-hero p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Filter toolbar — catalog pages
   -------------------------------------------------------------------------- */

.catalog-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 95;
  background: rgba(250, 250, 247, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.catalog-toolbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.toolbar-label {
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  font-style: italic;
  color: var(--gold-deep);
  padding: 0 14px 0 0;
  border-right: 1px solid var(--gold);
  line-height: 1;
  height: 36px;
  display: flex;
  align-items: center;
}

.filter-search {
  flex: 0 0 auto;
  width: 170px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: 100px;
  padding: 0 14px;
  outline: none;
  height: 36px;
}

.filter-search::placeholder { color: var(--ink-soft); }
.filter-search:focus { box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18); }

.filter-select {
  flex: 0 0 auto;
  width: 150px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: 100px;
  padding: 0 30px 0 14px;
  outline: none;
  cursor: pointer;
  height: 36px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23B8952B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filter-pills {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow-x: auto;
}

.filter-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  height: 32px;
  white-space: nowrap;
}

.filter-pill:hover { border-color: var(--gold); color: var(--ink-strong); }
.filter-pill.is-active { background: var(--gold); border-color: var(--gold); color: #FFF; }

.filter-clear {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: none;
  border: 1px solid var(--gold);
  border-radius: 100px;
  padding: 0 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  height: 36px;
  white-space: nowrap;
}

.filter-clear:hover { background: var(--gold); color: #FFF; }

.filter-count {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
  height: 36px;
  display: flex;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Product catalog (hardwood/lvp)
   -------------------------------------------------------------------------- */

.catalog { padding: 64px 0 96px; }

.collection-block {
  margin-bottom: 80px;
  scroll-margin-top: 200px;
}

.collection-block:last-child { margin-bottom: 0; }

.collection-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
}

.collection-title {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0;
}

.collection-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  display: none; /* hidden when using title-wrap */
}

.collection-supplier {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-pale);
  border-radius: 3px;
  padding: 3px 10px;
  line-height: 1.4;
  white-space: nowrap;
}

.collection-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.thickness-group { margin-top: 32px; }

.thickness-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.thickness-title::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
}

.catalog-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
}

/* --------------------------------------------------------------------------
   Product modal
   -------------------------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 12, 12, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 940px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  box-shadow: 0 30px 80px rgba(12, 12, 12, 0.35);
  transform: translateY(14px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-image {
  background: var(--surface-alt);
  min-height: 320px;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body { padding: 40px 38px; position: relative; }

.modal-close {
  position: absolute;
  top: -6px;
  right: 10px;
  font-size: 36px;
  font-weight: 300;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}

.modal-close:hover { opacity: 1; }

.modal-img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.4);
}

.modal-body .modal-collection {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}

.modal-body h3 {
  font-size: 27px;
  margin-bottom: 22px;
  padding-right: 30px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th {
  font-weight: 600;
  color: var(--ink-soft);
  width: 42%;
  letter-spacing: 0.03em;
}

.spec-table td { color: var(--ink-strong); }

.modal-note {
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--ink-soft);
  font-style: italic;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-strong);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   About (home)
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-text .btn { margin-top: 6px; }

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   Product catalog (hardwood/lvp)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Gallery masonry + recent-work strip
   -------------------------------------------------------------------------- */

.masonry {
  columns: 3;
  column-gap: 22px;
  margin-top: 48px;
}

.masonry a {
  display: block;
  margin-bottom: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  break-inside: avoid;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.masonry a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.masonry img {
  width: 100%;
  transition: transform 0.5s ease;
}

.masonry a:hover img { transform: scale(1.04); }

.work-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.work-strip a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.work-strip a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.work-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 12, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  border-radius: 6px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.lightbox button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-size: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox button:hover { background: var(--gold); border-color: var(--gold); }

.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   Fade transition — light content to dark bottom
   -------------------------------------------------------------------------- */

/* Eased (smoothstep) color stops avoid the harsh banding of a two-stop
   gradient. Top stop matches the section-alt cream above it. */
.fade-to-dark {
  height: 110px;
  background: linear-gradient(
    180deg,
    #F5F5F0 0%,
    #DEDEDA 20%,
    #A8A8A5 40%,
    #676765 60%,
    #313130 80%,
    #1A1A1A 100%
  );
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: #1A1A1A;
  text-align: center;
  padding: 90px 24px;
}

.cta-band h2 {
  color: #FFFFFF;
  font-size: clamp(30px, 4.4vw, 46px);
  max-width: 720px;
  margin: 0 auto 14px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: #1A1A1A;
  color: rgba(255, 255, 255, 0.7);
  border-top: 3px solid var(--gold);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-brand .brand-name {
  display: block;
  color: #FFFFFF;
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 10px;
}

.footer-doc-link {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 3px;
  padding: 5px 12px;
  transition: all 0.2s ease;
}
.footer-doc-link:hover {
  background: var(--gold);
  color: #1A1A1A;
}

.site-footer h4 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col a,
.footer-col span {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.footer-col a { transition: color 0.2s ease; }

.footer-col a:hover { color: var(--gold); }

.footer-col span { color: rgba(255, 255, 255, 0.5); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-roc {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 3px;
  padding: 5px 12px;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Epoxy page
   -------------------------------------------------------------------------- */

/* Page hero override for epoxy — Ferrari metallic epoxy hero image */
.page-hero--epoxy {
  background: url('../images/epoxy/epoxy-hero-garage.jpg') center center / cover no-repeat;
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
}

.page-hero--epoxy .hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}

.page-hero--epoxy .hero-content {
  position: relative;
  z-index: 2;
}

.page-hero--epoxy h1,
.page-hero--epoxy p {
  color: #FFFFFF;
}

/* Flake cards — big, rounded, no CTA */
.card-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  padding: 80px 40px;
  max-width: 1600px;
  margin: 0 auto;
}

.card-box {
  flex: 1;
  max-width: 500px;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  box-shadow: 0 3px 14px rgba(0,0,0,0.1);
  transition: box-shadow .3s, transform .3s;
}

.card-box:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
  transform: translateY(-6px);
}

.card-img {
  height: 440px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.card-box:hover .card-img img {
  transform: scale(1.08);
}

.card-box figcaption {
  padding: 30px 28px 32px;
}

.card-box figcaption h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink-strong);
  margin: 0 0 8px;
}

.card-box figcaption p {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

/* Lightbox overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 42px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
  opacity: 0.7;
  line-height: 1;
  font-weight: 300;
  transition: opacity 0.2s;
}

.modal-close:hover { opacity: 1; }

.lb-img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .card-row { flex-direction: column; align-items: center; gap: 28px; padding: 48px 20px; }
  .card-box { width: 100%; max-width: 100%; }
  .card-img { height: 320px; }
}

/* Flake gallery at bottom */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-card {
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  box-shadow: 0 3px 14px rgba(0,0,0,0.1);
  transition: box-shadow .3s, transform .3s;
}

.gallery-card:hover {
  box-shadow: 0 10px 34px rgba(0,0,0,0.16);
  transform: translateY(-4px);
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .35s ease;
}

.gallery-card:hover img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 20px; }
  .gallery-card img { height: auto; }
}

.section-intro {
  max-width: 640px;
  margin: -20px auto 48px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .masonry { columns: 2; }
}

@media (max-width: 820px) {
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
    padding: 8px 0;
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 15px 28px;
    border-bottom: none;
  }

  .main-nav a.active { color: var(--gold-deep); }

  .nav-toggle { display: block; }

  .hero { min-height: 90vh; padding: 72px 20px 100px; }
  .hero-nav { gap: 12px; }
  .hero-btn { min-width: 0; width: 100%; max-width: 300px; padding: 14px 28px; font-size: 12px; }
  .hero h1 { letter-spacing: 0.04em; }
  .hero .hero-sub { margin-bottom: 32px; }

  .catalog-toolbar { position: static; }
  .catalog-toolbar .container { gap: 6px; flex-wrap: wrap; }
  .toolbar-label { display: none; }
  .filter-count { flex-basis: 100%; margin-left: 0; }
  .collection-block { scroll-margin-top: 100px; }

  .reviews-grid { grid-template-columns: 1fr; }
  .collection-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .work-strip { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .modal { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (max-width: 520px) {
  /* Not enough room for the icon to hang outside the centered text */
  .collapse-head h2 { flex-wrap: wrap; }
  .toggle-icon { margin-right: 0; }

  .hero { padding: 60px 20px 72px; }
}
