/* ============================================
   Table d'Or — Premium Event-Verleih
   ============================================ */

:root {
  --ink: #16130f;
  --ink-soft: #221c15;
  --ivory: #f6f1e7;
  --ivory-dim: #ece3d2;
  --stone: #3a342c;
  --stone-soft: #6b6255;
  --brass: #b78a3d;
  --brass-light: #d9b872;
  --line: rgba(183, 138, 61, 0.35);
  --line-dark: rgba(246, 241, 231, 0.16);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;

  --max-w: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--stone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--brass);
  margin-bottom: 8px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ivory);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.logo em {
  color: var(--brass-light);
  font-style: normal;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: var(--ivory-dim);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--brass-light);
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line-dark);
}

.lang-switch button {
  background: none;
  border: none;
  color: var(--ivory-dim);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 8px 11px;
  cursor: pointer;
  border-right: 1px solid var(--line-dark);
}

.lang-switch button:last-child {
  border-right: none;
}

.lang-switch button:hover {
  color: var(--ivory);
}

.lang-switch button.active {
  background: var(--brass);
  color: var(--ink);
}

.phone-link {
  color: var(--ivory-dim);
  text-decoration: none;
  font-size: 0.9rem;
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--ivory);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 12px 22px;
  text-decoration: none;
  border: 1px solid var(--brass);
  color: var(--ivory);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

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

.btn-solid {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

.btn-solid:hover {
  background: var(--brass-light);
  border-color: var(--brass-light);
}

.btn-ghost {
  border-color: var(--line-dark);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: var(--ivory);
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(22, 19, 15, 0.96) 0%,
    rgba(22, 19, 15, 0.82) 32%,
    rgba(22, 19, 15, 0.25) 62%,
    rgba(22, 19, 15, 0.55) 100%
  );
}

.hero-inner {
  position: relative;
  padding: 120px 0 100px;
  display: grid;
  grid-template-columns: minmax(0, 640px) 1fr;
  gap: 40px;
  align-items: end;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  color: var(--ivory);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s forwards;
}

.hero-title span {
  display: block;
  color: var(--brass-light);
}

.hero-sub {
  margin-top: 22px;
  color: var(--ivory-dim);
  font-size: 1.08rem;
  max-width: 46ch;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s forwards;
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s forwards;
}

.hero-list {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--ivory-dim);
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-self: end;
}

.hero-list strong {
  color: var(--ivory);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title, .hero-sub, .hero-cta {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Intro strip ---------- */

.intro {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.intro .wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.intro h2 {
  max-width: 12ch;
}

.intro-copy p {
  color: var(--stone-soft);
}

/* ---------- Section shell ---------- */

.section {
  padding: 88px 0;
}

.section-head {
  margin-bottom: 48px;
  max-width: 60ch;
}

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

.section-alt {
  background: var(--ink);
  color: var(--ivory-dim);
}

.section-alt h2, .section-alt h3 {
  color: var(--ivory);
}

.section-alt .section-head p {
  color: var(--ivory-dim);
}

/* ---------- Catalog rows ---------- */

.catalog-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.catalog-row:last-child {
  border-bottom: 1px solid var(--line);
}

.catalog-row.reverse {
  grid-template-columns: 7fr 5fr;
}

.catalog-row.reverse .catalog-media {
  order: 2;
}

.catalog-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.catalog-body .price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brass);
  margin: 18px 0 4px;
}

.catalog-body .price span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--stone-soft);
}

.catalog-body .features {
  list-style: none;
  padding: 0;
  margin: 18px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.9rem;
  color: var(--stone-soft);
}

.catalog-body .features li {
  position: relative;
  padding-left: 16px;
}

.catalog-body .features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 1px;
  background: var(--brass);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
}

.qty-control button {
  width: 38px;
  height: 40px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
}

.qty-control button:hover {
  background: var(--ivory-dim);
}

.qty-control input {
  width: 44px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  height: 40px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: transparent;
  color: var(--ink);
}

.add-btn {
  border: 1px solid var(--brass);
  background: transparent;
  color: var(--ink);
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.add-btn:hover {
  background: var(--brass);
  color: var(--ink);
}

.add-btn.added {
  background: var(--brass);
  color: var(--ink);
}

/* ---------- Deco section ---------- */

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

.deco-note {
  border-left: 2px solid var(--brass);
  padding-left: 20px;
  margin-top: 26px;
  font-size: 0.95rem;
  color: var(--ivory-dim);
}

/* ---------- Delivery ---------- */

.zones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 40px;
}

.zone-card {
  background: var(--ivory);
  padding: 32px 28px;
}

.zone-card h3 {
  margin-bottom: 12px;
}

.zone-card p {
  color: var(--stone-soft);
  font-size: 0.94rem;
}

.zone-card .tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--brass);
  border: 1px solid var(--line);
  padding: 3px 10px;
  margin-bottom: 14px;
}

/* ---------- Contact / cart ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  margin-bottom: 14px;
}

.contact-info .big-phone {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  margin: 14px 0 22px;
}

.contact-info p {
  color: var(--stone-soft);
}

.cart-panel {
  background: var(--ink);
  color: var(--ivory);
  padding: 36px;
}

.cart-panel h3 {
  color: var(--ivory);
  margin-bottom: 6px;
}

.cart-panel .cart-sub {
  color: var(--ivory-dim);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

#cart-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#cart-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 8px;
  font-size: 0.95rem;
}

#cart-list .empty {
  color: var(--ivory-dim);
  font-size: 0.9rem;
  border-bottom: none;
}

.cart-field {
  margin-bottom: 16px;
}

.cart-field label {
  display: block;
  font-size: 0.85rem;
  color: var(--ivory-dim);
  margin-bottom: 6px;
}

.cart-field input,
.cart-field textarea {
  width: 100%;
  background: var(--ink-soft);
  border: 1px solid var(--line-dark);
  color: var(--ivory);
  padding: 11px 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.cart-field textarea {
  resize: vertical;
  min-height: 70px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--brass-light);
  margin-bottom: 22px;
}

.whatsapp-btn {
  width: 100%;
  background: var(--brass);
  color: var(--ink);
  border: none;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.whatsapp-btn:hover {
  background: var(--brass-light);
}

.cart-note {
  font-size: 0.8rem;
  color: var(--ivory-dim);
  margin-top: 12px;
}

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

.site-footer {
  background: var(--ink);
  color: var(--ivory-dim);
  padding: 48px 0 28px;
  font-size: 0.88rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 28px;
  margin-bottom: 20px;
}

.footer-grid .logo {
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: var(--ivory-dim);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brass-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--stone-soft);
}

/* ---------- Toast ---------- */

#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--ivory);
  border: 1px solid var(--brass);
  padding: 14px 22px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

@media (min-width: 720px) {
  .phone-link {
    display: inline-block;
  }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 20px 28px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-140%);
    transition: transform 0.3s ease;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .header-actions {
    gap: 10px;
  }

  .lang-switch button {
    padding: 7px 8px;
    font-size: 0.75rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-list {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 20px;
    justify-self: start;
  }

  .intro .wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .catalog-row,
  .catalog-row.reverse {
    grid-template-columns: 1fr;
  }

  .catalog-row.reverse .catalog-media {
    order: 0;
  }

  .deco-grid {
    grid-template-columns: 1fr;
  }

  .zones {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}
