/* wallco.ai — site CSS
 * Dark/Light toggle standard (feedback_dark_light_toggle_standard.md)
 * Only --bg, --ink, --ink-soft, --ink-faint, --line, --card-bg, --header-bg flip.
 * Accents (--accent, --ai-badge-bg) stay constant.
 */

/* ── LIGHT MODE (default) */
:root {
  --bg:         #faf7f2;
  --ink:        #1a1714;
  --ink-soft:   #5a5048;
  --ink-faint:  #9a8e82;
  --line:       #d8cec0;
  --card-bg:    #ffffff;
  --header-bg:  #faf7f2;

  /* Accents stay constant across themes */
  --accent:       #0d0d0d;
  --accent-soft:  #3a3633;
  --gold:         #c9a14b;
  --ai-badge-bg:  #0d0d0d;
  --ai-badge-ink: #f5f0e8;

  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans:  'Inter', -apple-system, system-ui, sans-serif;

  --hero-h: clamp(560px, 72vh, 900px);
  --cols: 4;
}

/* ── DARK MODE */
[data-theme="dark"] {
  --bg:         #0d0c0a;
  --ink:        #f0ebe3;
  --ink-soft:   #c8beb2;
  --ink-faint:  #7a706a;
  --line:       #2a2620;
  --card-bg:    #1a1714;
  --header-bg:  #111008;
}

/* ── RESET */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 15px/1.6 var(--sans);
  color: var(--ink);
  background: var(--bg);
  transition: background 0.25s, color 0.25s;
}
a { color: var(--ink); }
img { max-width: 100%; display: block; }

/* ── HEADER */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.brand {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

/* ── HAMBURGER (always visible, per standing rule) */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  cursor: pointer;
  padding: 0;
  backdrop-filter: blur(8px);
}
[data-theme="dark"] .hamburger {
  background: rgba(255,255,255,0.10);
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.22s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── NAV PANEL */
.nav-panel {
  position: fixed;
  top: 73px; right: 0;
  z-index: 199;
  width: 260px;
  background: var(--card-bg);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  box-shadow: -4px 8px 32px rgba(0,0,0,0.12);
}
.nav-panel[hidden] { display: none; }
.nav-panel a {
  display: block;
  padding: 10px 28px;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}
.nav-panel a:hover, .nav-panel a.active { color: var(--ink); }
.nav-panel a.active { border-left: 2px solid var(--gold); }

/* Theme toggle in nav */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: 100%;
}
.theme-toggle:hover { color: var(--ink); }
[data-theme="light"] .moon-icon { display: none; }
[data-theme="dark"]  .sun-icon  { display: none; }

/* ── MAIN OFFSET for fixed header */
main { padding-top: 73px; }

/* ── HERO */
.hero-section {
  position: relative;
  width: 100%;
  height: var(--hero-h);
  overflow: hidden;
  background: var(--accent);
}
.hero-track {
  position: absolute; inset: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background: no-repeat center / cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }

.hero-controls {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.2s;
}
.hero-dot.active { background: #fff; }

/* ── WORDMARK BELOW HERO (Gucci anatomy) */
.hero-wordmark-below {
  text-align: center;
  padding: 40px 24px 24px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin: 0 0 12px;
}
.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.8vw, 20px);
  color: var(--ink-soft);
  margin: 0;
}

/* ── SECTION HEADERS */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 40px 40px 0;
  flex-wrap: wrap;
  gap: 8px;
}
.section-header h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.03em;
  margin: 0;
}
.see-all {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
}
.see-all:hover { color: var(--ink); text-decoration: underline; }

/* ── DESIGN GRID */
.design-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: 2px;
  padding: 24px 40px 40px;
}
.featured-grid { --cols: 4; }
.catalog-grid  { --cols: var(--cols, 4); }

.design-card {
  display: block;
  text-decoration: none;
  background: var(--card-bg);
  overflow: hidden;
  position: relative;
  transition: transform 0.18s;
}
.design-card:hover { z-index: 2; transform: scale(1.02); }

.card-img {
  aspect-ratio: 1;
  background: var(--line) no-repeat center / cover;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}
.card-title {
  flex: 1;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-cat {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.color-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

/* ── CTA BAND */
.cta-band {
  text-align: center;
  padding: 80px 40px;
  background: var(--card-bg);
  border-top: 1px solid var(--line);
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 300;
  margin: 0 0 12px;
}
.cta-band p {
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto 28px;
  font-size: 16px;
}

/* ── BUTTONS */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 0;
  margin-left: 12px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

/* ── CATALOG TOOLBAR */
.catalog-section { min-height: 60vh; }
.catalog-toolbar {
  padding: 32px 40px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.filter-form {}
.toolbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
}
.search-input {
  flex: 1;
  min-width: 160px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: 14px var(--sans);
  border-radius: 2px;
}
.filter-select {
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: 14px var(--sans);
  border-radius: 2px;
}
.sort-label, .density-label {
  font-size: 12px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.density-range { width: 90px; accent-color: var(--gold); }
.result-count {
  font-size: 12px;
  color: var(--ink-faint);
  margin: 0 0 12px;
}

/* ── PAGER */
.pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 32px;
}
.pager-link {
  padding: 6px 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 13px;
}
.pager-link.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── DETAIL PAGE */
.detail-main { min-height: 80vh; }
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px;
  gap: 48px;
}
@media (max-width: 768px) {
  .detail-layout { grid-template-columns: 1fr; padding: 24px 20px; }
}
.detail-img-wrap {
  position: sticky;
  top: 88px;
}
.detail-img {
  width: 100%;
  border-radius: 2px;
  background: var(--line);
}
.tiled-preview {
  margin-top: 12px;
  position: relative;
}
.tile-grid {
  width: 100%;
  aspect-ratio: 3/2;
  background-image: var(--tile);
  background-repeat: repeat;
  background-size: 33.33% auto;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.tile-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-top: 4px;
  text-align: center;
}
.detail-breadcrumb {
  font-size: 12px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 12px;
}
.detail-breadcrumb a { color: inherit; text-decoration: underline; }
.detail-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  letter-spacing: 0.03em;
  margin: 0 0 16px;
  color: var(--ink);
}
.provenance-badge {
  font-size: 12px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 20px;
}
.ai-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  letter-spacing: 0.12em;
  margin-right: 8px;
  border-radius: 2px;
}
.detail-palette {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.swatch-main {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: inline-block;
  flex-shrink: 0;
}
.hex-label { font-size: 13px; color: var(--ink-soft); font-family: monospace; }
.detail-spec-panel {
  border: 1px solid var(--line);
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}
.spec-row {
  display: flex;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.spec-row:last-child { border-bottom: none; }
.spec-key { flex: 0 0 110px; font-size: 12px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.07em; }
.spec-val { font-size: 13px; color: var(--ink); }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.cta-sample {}
.provenance-note {
  font-size: 13px;
  color: var(--ink-faint);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 14px 16px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.detail-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.detail-nav-link {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
}
.detail-nav-link:hover { color: var(--ink); }

/* ── PROSE / ABOUT */
.prose-main { padding: 60px 40px 80px; max-width: 800px; margin: 0 auto; }
.prose h1 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 300;
  margin: 0 0 32px;
}
.prose h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin: 32px 0 12px;
}
.prose p { color: var(--ink-soft); margin: 0 0 16px; }

/* ── SAMPLE FORM */
.sample-form-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.sample-form-wrap h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  margin: 0 0 8px;
}
.sample-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 20px 0;
}
.sample-form label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.sample-form input[type="text"],
.sample-form input[type="email"],
.sample-form input[type="tel"],
.sample-form select,
.sample-form textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: 14px var(--sans);
  border-radius: 2px;
}
.sample-form textarea { resize: vertical; min-height: 80px; }

/* ── FEATURED SECTION */
.featured-section { margin-bottom: 0; }

/* ── FOOTER */
.site-footer {
  padding: 48px 40px;
  border-top: 1px solid var(--line);
  background: var(--card-bg);
  text-align: center;
}
.site-footer p {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0 0 6px;
}
.site-footer a { color: var(--ink-soft); }

/* ── EMPTY STATE */
.empty-state { padding: 60px; text-align: center; color: var(--ink-faint); }

/* ── RESPONSIVE */
@media (max-width: 900px) {
  .design-grid { --cols: 3; }
  .featured-grid { --cols: 3; }
  .section-header, .catalog-toolbar { padding-left: 20px; padding-right: 20px; }
  .design-grid { padding: 16px 20px 32px; }
}
@media (max-width: 600px) {
  .site-header { padding: 16px 20px; }
  .design-grid { --cols: 2; }
  .featured-grid { --cols: 2; }
  .cta-band { padding: 48px 20px; }
  .hero-wordmark-below { padding: 28px 20px 18px; }
  .btn-outline { margin-left: 0; margin-top: 8px; }
}
