/* =========================================================
   BADENOR — Premium Badmöbel
   Editorial design system · AbdeX e.U.
   ========================================================= */

:root {
  /* Palette — warm bone, deep ink, brass accent */
  --bg:           #F4EFE7;
  --bg-elev:     #FAF6EF;
  --bg-deep:     #ECE5D8;
  --ink:         #1A1814;
  --ink-soft:    #3C342B;
  --muted:       #7A6F5F;
  --muted-soft:  #B8AC97;
  --line:        #DDD2BD;
  --brass:       #A88B5C;
  --brass-dark:  #8A6F44;
  --emerald:     #4F6F5A;
  --emerald-bg:  #DCE3DA;
  --amber:       #B58642;
  --amber-bg:    #F0E4CC;
  --sky:         #5E7993;
  --sky-bg:      #DCE4ED;

  /* Typography */
  --serif: 'Cormorant Garamond', 'Garamond', 'EB Garamond', serif;
  --sans:  'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --mono:  'JetBrains Mono', 'Menlo', monospace;

  /* Sizing */
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-pad: clamp(64px, 10vw, 160px);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 220ms;
  --t-med: 480ms;
  --t-slow: 900ms;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

/* === Typography === */
.serif { font-family: var(--serif); }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--brass);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 8vw, 7.5rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 5vw, 4.2rem); font-weight: 300; }
h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h4 { font-size: 1.4rem; }

p { color: var(--ink-soft); }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.45;
  font-weight: 300;
  color: var(--ink-soft);
  font-style: italic;
}

/* === Layout === */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left:  var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section-tight { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(244, 239, 231, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: padding var(--t-med) var(--ease);
}

.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand-logo {
  display: inline-block;
  line-height: 0;
}
.brand-logo img {
  display: block;
  height: 64px;
  width: auto;
  transition: opacity var(--t-fast) var(--ease);
}
.brand-logo:hover img { opacity: 0.7; }

.brand-mark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0.32em;
  color: var(--ink);
  line-height: 1;
  display: inline-block;
}
.brand-mark .dot {
  display: inline-block; width: 5px; height: 5px;
  background: var(--brass);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 0 6px 6px;
}
.brand-mark .tagline {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 6px;
  letter-spacing: 0.14em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav a {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width var(--t-med) var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.nav a.cart-link {
  background: var(--ink);
  color: var(--bg-elev);
  padding: 10px 18px;
  border-radius: 100px;
  letter-spacing: 0.12em;
}
.nav a.cart-link::after { display: none; }
.nav a.cart-link:hover { background: var(--brass); color: var(--bg-elev); }

.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform var(--t-fast) var(--ease);
}

@media (max-width: 880px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg-elev); padding: 16px var(--gutter) 40px; border-bottom: 1px solid var(--line); transform: translateY(-110%); transition: transform var(--t-med) var(--ease); }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav a.cart-link { margin-top: 12px; width: max-content; }
  .hamburger { display: block; }
  .brand-logo img { height: 50px; }
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(60px, 9vw, 140px);
  padding-top: clamp(80px, 12vw, 180px);
  overflow: hidden;
  background: var(--bg-deep);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  transform: scale(1.06);
  animation: heroKen 18s ease-out forwards;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0.05) 0%, rgba(20,20,20,0.35) 60%, rgba(20,20,20,0.7) 100%);
}

@keyframes heroKen {
  to { transform: scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--bg-elev);
  max-width: 880px;
}
.hero-content .eyebrow {
  color: var(--bg-elev);
  opacity: 0.85;
  margin-bottom: 24px;
  display: inline-block;
}
.hero-content h1 {
  color: var(--bg-elev);
  font-size: clamp(3.2rem, 9vw, 8.5rem);
  font-weight: 300;
  margin-bottom: 28px;
}
.hero-content h1 em {
  font-style: italic;
  color: var(--bg-elev);
}
.hero-content .lead { color: rgba(250, 246, 239, 0.88); max-width: 620px; font-style: normal; font-weight: 300; }

.hero-cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  background: var(--ink);
  color: var(--bg-elev);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-med) var(--ease);
  text-decoration: none;
}
.btn::after {
  content: '→';
  font-size: 1.1rem;
  transition: transform var(--t-fast) var(--ease);
}
.btn:hover { background: var(--brass); transform: translateY(-1px); }
.btn:hover::after { transform: translateX(4px); }

.btn-outline {
  background: transparent;
  color: var(--bg-elev);
  border: 1px solid rgba(250, 246, 239, 0.6);
}
.btn-outline:hover { background: var(--bg-elev); color: var(--ink); border-color: var(--bg-elev); }

.btn-ink { background: var(--ink); color: var(--bg-elev); }
.btn-brass { background: var(--brass); }
.btn-brass:hover { background: var(--brass-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg-elev); }

/* === Section: Manifesto === */
.manifesto {
  padding-top: clamp(80px, 12vw, 180px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.manifesto .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.manifesto .grid > div:first-child { padding-top: 12px; }
.manifesto h2 { margin-bottom: 28px; }
.manifesto p { font-size: 1.05rem; margin-bottom: 18px; }
@media (max-width: 880px) {
  .manifesto .grid { grid-template-columns: 1fr; }
}

/* === Collection (product grid) === */
.collection-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
  gap: 40px;
  flex-wrap: wrap;
}
.collection-header h2 { line-height: 1; }
.collection-header .meta { color: var(--muted); font-size: 0.85rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: clamp(40px, 5vw, 64px);
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.product-card .img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 5;
  background: var(--bg-deep);
}

.product-card .img-wrap .status-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.status-overlay.emerald { background: #2F8F5B; color: #fff; }
.status-overlay.amber   { background: rgba(40, 32, 22, 0.85); color: #F0E4CC; }
.status-overlay.sky     { background: #5E7993; color: #fff; }
.status-overlay.neutral { background: rgba(255,255,255,0.85); color: var(--ink); }
.status-overlay svg     { width: 14px; height: 14px; stroke-width: 2; }

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease);
}

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

.product-card .img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20,20,20,0.18));
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.product-card:hover .img-wrap::after { opacity: 1; }

.product-card .body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px;
}

.product-card .name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  padding: 0 8px;
}

.product-card .subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.product-card .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.product-card .price {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid currentColor;
}
.status-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.emerald { color: var(--emerald); background: var(--emerald-bg); border-color: transparent; }
.status-pill.amber   { color: var(--amber);   background: var(--amber-bg);   border-color: transparent; }
.status-pill.sky     { color: var(--sky);     background: var(--sky-bg);     border-color: transparent; }
.status-pill.neutral { color: var(--ink-soft); background: var(--bg-elev);   border-color: var(--line); }

/* === Values strip === */
.values {
  background: var(--ink);
  color: var(--bg-elev);
  padding: clamp(60px, 8vw, 100px) 0;
}
.values .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.value-item .num {
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 300;
  color: var(--brass);
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}
.value-item .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
  color: rgba(250,246,239, 0.6);
}
.value-item p {
  color: rgba(250,246,239, 0.85);
  font-size: 0.95rem;
}
@media (max-width: 880px) {
  .values .wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .values .wrap { grid-template-columns: 1fr; }
}

/* === Detail page === */
.product-detail {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(60px, 9vw, 120px);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: flex-start;
}
@media (max-width: 980px) {
  .detail-grid { grid-template-columns: 1fr; }
}

.gallery-main {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-deep);
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity var(--t-med) var(--ease);
}
.gallery-thumbs {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.gallery-thumbs img {
  width: 100%; aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.gallery-thumbs img:hover { opacity: 1; }
.gallery-thumbs img.active { opacity: 1; outline: 1.5px solid var(--ink); outline-offset: 2px; }

.detail-info .eyebrow { margin-bottom: 18px; display: inline-block; }
.detail-info h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 14px; letter-spacing: 0.02em; }
.detail-info .subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--muted);
  margin-bottom: 32px;
}
.detail-info .price-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.detail-info .price-row .price {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--ink);
}
.detail-info .price-row .price-meta { color: var(--muted); font-size: 0.85rem; }

.feature-list {
  list-style: none;
  margin: 24px 0 36px;
}
.feature-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.feature-list li::before {
  content: '+';
  color: var(--brass);
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.92rem;
}
.spec-table th, .spec-table td {
  padding: 14px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th {
  font-weight: 500;
  color: var(--muted);
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  width: 40%;
}
.spec-table td { color: var(--ink-soft); }

.detail-cta {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* === Order form === */
.order-form {
  background: var(--bg-elev);
  padding: clamp(32px, 5vw, 56px);
  border-radius: 6px;
  border: 1px solid var(--line);
}
.order-form h3 { margin-bottom: 28px; font-size: 1.8rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 500;
}
.field input, .field textarea, .field select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 0.96rem;
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--ink);
  background: white;
}
.field textarea { resize: vertical; min-height: 120px; }
.field .help { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
}
.checkbox-row input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.checkbox-row label { font-size: 0.86rem; color: var(--ink-soft); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* === Flash messages === */
.flash {
  padding: 14px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  border-left: 3px solid;
}
.flash.success { background: var(--emerald-bg); color: var(--emerald); border-color: var(--emerald); }
.flash.error   { background: #F0DBD8; color: #8B2F25; border-color: #8B2F25; }
.flash.info    { background: var(--sky-bg); color: var(--sky); border-color: var(--sky); }

/* === Footer === */
.site-footer {
  background: var(--ink);
  color: var(--bg-elev);
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: 40px;
  margin-top: clamp(60px, 8vw, 120px);
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  margin-bottom: 60px;
}
@media (max-width: 880px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .grid { grid-template-columns: 1fr; } }

.site-footer .brand-mark { color: var(--bg-elev); font-size: 2rem; margin-bottom: 18px; }
.site-footer h5 {
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brass);
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(250, 246, 239, 0.7); font-size: 0.92rem; }
.site-footer a:hover { color: var(--bg-elev); }
.site-footer .legal {
  border-top: 1px solid rgba(250, 246, 239, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(250, 246, 239, 0.55);
}

/* === Sections / generic content === */
.content-page {
  padding-top: clamp(60px, 9vw, 120px);
  padding-bottom: clamp(60px, 9vw, 120px);
  max-width: 820px;
  margin: 0 auto;
}
.content-page h1 { font-size: clamp(2.6rem, 5vw, 4rem); margin-bottom: 14px; }
.content-page .eyebrow { margin-bottom: 28px; display: inline-block; }
.content-page h2 { font-size: 1.8rem; margin: 48px 0 16px; }
.content-page h3 { font-size: 1.25rem; margin: 32px 0 12px; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.content-page p { margin-bottom: 18px; font-size: 1.02rem; }
.content-page ul, .content-page ol { margin: 16px 0 24px 24px; }
.content-page li { margin-bottom: 8px; color: var(--ink-soft); }
.content-page strong { color: var(--ink); font-weight: 600; }

/* === Animations === */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.fade-up.in { opacity: 1; transform: translateY(0); }

/* === Utility === */
.center { text-align: center; }
.muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: clamp(40px, 6vw, 80px) 0; border: none; }
.spacer-sm { height: 24px; }
.spacer-md { height: 48px; }
.spacer-lg { height: 96px; }

/* selection */
::selection { background: var(--ink); color: var(--bg-elev); }

/* scrollbar (subtle) */
* { scrollbar-width: thin; scrollbar-color: var(--muted-soft) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--muted-soft); border-radius: 4px; }
