:root {
  --canvas: #F7F5F0;
  --surface: #FFFFFF;
  --surface-warm: #EFECE4;
  --obsidian: #121211;
  --obsidian-2: #1D1C1A;
  --ink: #1B1A18;
  --ink-muted: #5C5850;
  --bronze: #B09261;
  --bronze-dark: #8B6F42;
  --bronze-light: #E8DCC6;
  --border: #E2DDD2;
  --ok: #1E6B45;
  --ok-bg: #E7F5EE;
  --warn: #9A5B13;
  --warn-bg: #FEF3E2;
  --danger: #9B2226;
  --danger-bg: #FDECEC;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow: 0 12px 36px rgba(18, 18, 17, 0.07);
  --shadow-lg: 0 24px 60px rgba(18, 18, 17, 0.16);
}

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: 16px; touch-action: manipulation; }

/* Ergonomic Buttons (Intuitive Touch v2.0: >=48px targets, >=56px Primary CTA) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  min-width: 48px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition: transform 80ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  min-height: 56px;
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: #FFFFFF;
  padding: 0 28px;
}
.btn-primary:hover { background: #292724; }
.btn-bronze {
  min-height: 56px;
  background: var(--bronze);
  border-color: var(--bronze);
  color: #FFFFFF;
  padding: 0 28px;
}
.btn-bronze:hover { background: var(--bronze-dark); border-color: var(--bronze-dark); }
.btn-ghost {
  min-height: 56px;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.34);
  color: #FFFFFF;
  padding: 0 26px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-sm { min-height: 48px; padding: 0 15px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.badge-dark { background: var(--obsidian); color: var(--bronze-light); }
.badge-bronze { background: rgba(176,146,97,0.16); color: var(--bronze-dark); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(18, 18, 17, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(176, 146, 97, 0.28);
  color: #FFFFFF;
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-lockup { display: flex; flex-direction: column; }
.brand-lockup strong {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: #FFFFFF;
}
.brand-lockup span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-top: 2px;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #E2DDD2;
}
.nav-link:hover { color: #FFFFFF; background: rgba(255,255,255,0.08); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 10px;
  overflow: hidden;
}
.lang-toggle button {
  min-height: 48px;
  min-width: 48px;
  border: none;
  background: transparent;
  color: #D5D0C5;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.lang-toggle button.active {
  background: var(--bronze);
  color: #FFFFFF;
}

/* Preview Banner */
.preview-ribbon {
  background: var(--bronze);
  color: #FFFFFF;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Luxury Architectural Hero */
.hero {
  position: relative;
  background:
    linear-gradient(105deg, rgba(16,15,14,0.92) 0%, rgba(18,17,15,0.78) 55%, rgba(18,17,15,0.55) 100%),
    url('https://framerusercontent.com/images/FMx1q6xk8KM5fr3IaQZCMSLZP4.png') center/cover no-repeat;
  color: #FFFFFF;
  padding: 76px 20px 64px 20px;
  border-bottom: 3px solid var(--bronze);
}
.hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 600;
  line-height: 1.04;
  margin: 0 0 20px 0;
}
.hero-lead {
  font-size: 18px;
  color: #E2DCD0;
  max-width: 600px;
  margin: 0 0 30px 0;
}
.hero-panel {
  background: rgba(18, 18, 17, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(176, 146, 97, 0.42);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.trust-strip {
  max-width: 1320px;
  margin: 44px auto 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.16);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--bronze-light);
  line-height: 1.1;
}
.trust-item span { font-size: 13px; color: #D4CEC2; }

/* Sections & Containers */
.section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 20px;
}
.section-dark {
  background: var(--obsidian);
  color: #FFFFFF;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 600;
  margin: 0 0 10px 0;
  line-height: 1.1;
}
.muted { color: var(--ink-muted); }

/* Category Pill Bar */
.pill-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px 0;
}
.cat-pill {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cat-pill.active {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: #FFFFFF;
}

/* Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(18, 18, 17, 0.11);
}
.product-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-warm);
}
.product-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spec-chip {
  background: var(--surface-warm);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink);
}

/* Portal Mode Banner */
.dealer-bar {
  background: var(--obsidian-2);
  color: #FFFFFF;
  border: 1px solid rgba(176, 146, 97, 0.45);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 16px;
}
.field textarea { min-height: 96px; resize: vertical; }

/* Modal / Drawer */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18, 18, 17, 0.68);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.overlay.open { display: flex; }
.modal-card {
  background: var(--surface);
  border-radius: 18px;
  max-width: 720px;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.toast {
  position: fixed;
  bottom: 84px;
  right: 20px;
  z-index: 150;
  background: var(--obsidian);
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: 12px;
  border-left: 4px solid var(--bronze);
  box-shadow: var(--shadow-lg);
  display: none;
  font-weight: 600;
}
.toast.show { display: block; }

/* Footer */
.site-footer {
  background: var(--obsidian);
  color: #D5D0C5;
  padding: 48px 20px;
  border-top: 2px solid var(--bronze);
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

/* Mobile Bottom Thumb Bar (<768px) */
.mobile-bar { display: none; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .desktop-nav .nav-link { display: none; }
  .hero { padding: 48px 16px 40px 16px; }
  .section { padding: 44px 16px; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--obsidian);
    border-top: 1px solid rgba(176, 146, 97, 0.35);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)) 8px;
    min-height: 64px;
    justify-content: space-around;
    align-items: center;
  }
  .mobile-bar a, .mobile-bar button {
    min-height: 48px;
    min-width: 48px;
    flex: 1;
    border: none;
    background: transparent;
    color: #D5D0C5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
  }
  .mobile-bar a.active, .mobile-bar button.active { color: var(--bronze); }
}
