/* ============================================================
   BAUMGART & WINTERLICH – Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;1,9..144,300&family=Inter:wght@400;500;600&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --ink:          #0f0e0c;
  --paper:        #f7f4ef;
  --surface:      #ffffff;
  --surface2:     #f0ece4;

  --rule:         #ddd9d1;

  --muted:        #6b6560;

  --moss:         #2d3b2a;
  --sage:         #8aad7a;
  --amber:        #c9893a;
  --amber-light:  #f5e8d4;
  --red:          #c0392b;

  --mono:    'DM Mono', monospace;
  --display: 'Fraunces', serif;
  --body:    'Inter', sans-serif;

  /* legacy aliases kept for backward compat */
  --bg:        var(--paper);
  --border:    var(--rule);
  --text:      var(--ink);
  --green:     var(--moss);
  --anthracite:#1e2820;
  --beige:     var(--amber);
  --accent:    var(--moss);
  --font-serif: var(--display);
  --font-sans:  var(--body);

  --max-width: 1320px;
  --gutter:    48px;
  --radius:    4px;

  --transition: 220ms ease;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Container ──────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-primary {
  background: var(--moss);
  color: #fff;
  border: none;
}
.btn-primary:hover {
  background: #1e2820;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
}
.btn-secondary:hover {
  border-color: var(--moss);
  color: var(--moss);
  transform: translateY(-1px);
}

/* ── Section spacing ────────────────────────────────────── */
.section { padding: 90px 0; }
.section--alt { background: var(--surface2); }
.section--dark { background: var(--anthracite); color: #fff; }

.section__header {
  margin-bottom: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 24px;
}
.section--dark .section__header { border-bottom-color: rgba(255,255,255,.1); }

/* ── HEADER ─────────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 78px;
  background: rgba(247, 244, 239, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

#site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header__logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.header__logo-text {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--moss);
  line-height: 1.2;
}
.header__logo-text span {
  display: block;
  font-size: 0.58rem;
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.header__nav { display: flex; align-items: center; gap: 36px; }

.header__nav a {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
}
.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.header__nav a:hover { color: var(--ink); }
.header__nav a:hover::after { transform: scaleX(1); }
.header__nav a.active { color: var(--moss); }
.header__nav a.active::after { transform: scaleX(1); }

.header__cta { flex-shrink: 0; }

.header__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.header__menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--moss);
  transition: transform var(--transition), opacity var(--transition);
}

/* ── FOOTER ─────────────────────────────────────────────── */
#site-footer {
  background: var(--moss);
  color: rgba(255,255,255,.75);
  padding: 72px 0 36px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__brand img { width: 40px; height: 40px; object-fit: contain; opacity: .85; }
.footer__brand-name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.footer__brand-name span {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 2px;
}
.footer__tagline {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255,255,255,.45);
  max-width: 240px;
}

.footer__col-title {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
}

.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a {
  font-size: 0.84rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer__links a:hover { color: #fff; }

.footer__bottom {
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(255,255,255,.28);
}
.footer__bottom a {
  color: rgba(255,255,255,.35);
  transition: color var(--transition);
}
.footer__bottom a:hover { color: rgba(255,255,255,.7); }

/* ── PRODUCT CARD ───────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.07); }

.card__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 400ms ease;
}
.card:hover .card__image img { transform: scale(1.03); }

.card__body { padding: 22px 24px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card__category {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__name {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.2;
}

.card__desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.card__footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card__price {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}
.card__price-note {
  font-size: 0.68rem;
  color: var(--muted);
  display: block;
  font-weight: 400;
}

.card__badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius);
  background: var(--surface2);
  color: var(--muted);
}
.card__badge--new  { background: rgba(45,59,42,0.1); color: var(--moss); }
.card__badge--used { background: var(--amber-light); color: var(--amber); }

/* ── TAGS ───────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius);
  font-weight: 500;
}
.tag-green { background: rgba(45,59,42,0.1); color: var(--moss); }
.tag-amber { background: var(--amber-light); color: var(--amber); }
.tag-red   { background: #fde8e6; color: var(--red); }

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ── TRUST STRIP ────────────────────────────────────────── */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
}
.trust-strip__items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-strip__item svg { color: var(--sage); flex-shrink: 0; }

/* ── INFO / WARNING BOXES ───────────────────────────────── */
.warn-box {
  background: var(--amber-light);
  border-left: 3px solid var(--amber);
  padding: 14px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 20px;
  font-size: 13px;
  color: #5a3d1a;
}
.warn-box strong { color: var(--amber); }

.tip-box {
  background: rgba(45,59,42,0.05);
  border-left: 3px solid var(--sage);
  padding: 14px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--moss);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --gutter: 24px; }
  .section { padding: 56px 0; }

  .header__nav, .header__cta { display: none; }
  .header__nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 24px var(--gutter);
    gap: 20px;
  }
  .header__menu-toggle { display: flex; }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .section__header { flex-direction: column; align-items: flex-start; }
}
