/* ═══════════════════════════════════════════════════════════
   Hawwerkasten – Shared Design System
   Fonts · Variables · Reset · Nav · Footer · Buttons · Utils
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display+SC:wght@400;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Karla:wght@300;400;500;600&display=swap');

/* ─── DESIGN TOKENS ────────────────────────────────────── */
:root {
  --gold:        #C8A84B;
  --gold-light:  #E4C97A;
  --gold-dark:   #8B7030;
  --gold-faint:  rgba(200,168,75,0.12);
  --ink:         #0E0A05;
  --ink-soft:    #1C1510;
  --ink-mid:     #2A1F14;
  --cream:       #F5EDD6;
  --cream-soft:  #FAF6EE;
  --text:        #3A2D1E;
  --text-muted:  #7A6A55;
  --white:       #FFFFFF;
  --nav-h:       80px;
  --radius:      4px;
  --z-nav:       100;
  --z-mobile:    200;
  --z-cookie:    9999;
  --z-modal:     10000;
}

/* ─── RESET ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Karla', sans-serif;
  background: var(--cream-soft);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ─── REDUCED MOTION ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── SCROLL REVEAL ────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-44px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(44px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ─── UTILITIES ────────────────────────────────────────── */
.gold-line {
  display: block; width: 60px; height: 2px;
  background: var(--gold); margin: 16px auto;
}
.gold-line--left { margin-left: 0; }

.section {
  max-width: 1200px; margin: 0 auto;
  padding: 80px 40px;
}
.section__label {
  font-size: 0.68rem; letter-spacing: 0.45em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px;
}
.section__title {
  font-family: 'Playfair Display SC', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400; color: var(--ink); line-height: 1.15;
}
.section__title--light { color: var(--cream); }
.section__desc {
  color: var(--text-muted); font-size: 1rem;
  line-height: 1.75; max-width: 540px; margin-top: 16px;
}
.section-full { background: var(--ink-soft); }

/* ─── BUTTONS ──────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Karla', sans-serif; font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); background: var(--gold);
  padding: 14px 28px; border: none; cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Karla', sans-serif; font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream); background: transparent;
  padding: 14px 28px; border: 1px solid rgba(245,237,214,0.35);
  cursor: pointer; transition: border-color 0.25s, color 0.25s, transform 0.2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-nav); height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14,10,5,0.95);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(200,168,75,0.25);
}
.nav--solid {
  background: rgba(14,10,5,0.97);
  border-bottom-color: rgba(200,168,75,0.2);
}
.nav__logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav__logo img {
  width: 48px; height: 48px; object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(200,168,75,0.3));
}
.nav__brand {
  font-family: 'Playfair Display SC', serif;
  font-size: 1.1rem; letter-spacing: 0.15em;
  color: var(--gold); text-transform: uppercase; line-height: 1.2;
}
.nav__brand span {
  display: block; font-family: 'Karla', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.3em;
  color: var(--gold-dark); text-transform: uppercase;
}
.nav__links {
  display: flex; gap: 32px; list-style: none;
}
.nav__links a {
  font-family: 'Karla', sans-serif; font-size: 0.78rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.75); position: relative;
  padding-bottom: 4px; transition: color 0.25s;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s ease;
}
.nav__links a:hover,
.nav__links a.active { color: var(--gold-light); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__cta {
  font-family: 'Karla', sans-serif; font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); background: var(--gold);
  padding: 10px 24px; border: none; cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  text-decoration: none; display: inline-flex; align-items: center;
}
.nav__cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Hamburger */
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav__burger span {
  display: block; width: 24px; height: 2px;
  background: var(--cream); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw); z-index: var(--z-mobile);
  background: var(--ink-soft); border-left: 1px solid rgba(200,168,75,0.2);
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu__inner {
  display: flex; flex-direction: column; gap: 0;
  padding: 32px 28px 40px; min-height: 100%;
}
.mobile-menu__logo {
  width: 56px; height: 56px; object-fit: contain; margin-bottom: 24px;
  filter: drop-shadow(0 0 10px rgba(200,168,75,0.3));
}
.mobile-menu__links { list-style: none; display: flex; flex-direction: column; flex: 1; }
.mobile-menu__links li { border-bottom: 1px solid rgba(200,168,75,0.1); }
.mobile-menu__links a {
  display: block; padding: 16px 0;
  font-family: 'Karla', sans-serif; font-size: 0.85rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(245,237,214,0.8); transition: color 0.2s, padding-left 0.2s;
}
.mobile-menu__links a:hover { color: var(--gold); padding-left: 8px; }
.mobile-menu__cta {
  margin-top: 32px; text-align: center; justify-content: center;
  min-height: 52px;
}
.mobile-menu__contact {
  margin-top: 24px; display: flex; flex-direction: column; gap: 6px;
  font-size: 0.8rem; color: rgba(245,237,214,0.45);
}
.mobile-menu__contact a { color: var(--gold-dark); }
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  z-index: calc(var(--z-mobile) - 1);
  background: rgba(0,0,0,0.5); backdrop-filter: blur(2px);
}
.mobile-overlay.open { display: block; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer { background: var(--ink); padding: 64px 0 0; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px 48px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer__brand img {
  width: 56px; height: 56px; object-fit: contain; margin-bottom: 16px;
  filter: drop-shadow(0 0 12px rgba(200,168,75,0.25));
}
.footer__brand-name {
  font-family: 'Playfair Display SC', serif;
  font-size: 1rem; letter-spacing: 0.15em; color: var(--gold); margin-bottom: 10px;
}
.footer__brand-desc {
  font-size: 0.82rem; line-height: 1.75;
  color: rgba(245,237,214,0.45); max-width: 240px;
}
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a {
  width: 36px; height: 36px; border: 1px solid rgba(200,168,75,0.25);
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,237,214,0.5); transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.footer__social a:hover { color: var(--gold); border-color: var(--gold); }
.footer__social svg { width: 16px; height: 16px; }
.footer__col h4 {
  font-family: 'Karla', sans-serif; font-size: 0.7rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col ul a {
  font-size: 0.83rem; color: rgba(245,237,214,0.5);
  transition: color 0.2s;
}
.footer__col ul a:hover { color: var(--cream); }
.footer__col p {
  font-size: 0.83rem; line-height: 2;
  color: rgba(245,237,214,0.5);
}
.footer__col p strong {
  display: block; color: rgba(245,237,214,0.75);
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; margin-top: 12px; margin-bottom: 2px;
}
.footer__bottom {
  border-top: 1px solid rgba(200,168,75,0.15);
  padding: 20px 40px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  max-width: 100%;
}
.footer__bottom p { font-size: 0.75rem; color: rgba(245,237,214,0.3); }
.footer__bottom a {
  color: rgba(245,237,214,0.45); font-size: 0.75rem;
  transition: color 0.2s; margin: 0 8px;
}
.footer__bottom a:hover { color: var(--gold); }
.footer__bottom-links { display: flex; flex-wrap: wrap; gap: 4px; }

/* ═══════════════════════════════════════════════════════════
   GOLD TICKER
   ═══════════════════════════════════════════════════════════ */
.gold-ticker {
  background: var(--gold); overflow: hidden;
  padding: 12px 0; white-space: nowrap;
}
.gold-ticker__track {
  display: inline-flex; gap: 0;
  animation: ticker 30s linear infinite;
}
.gold-ticker__track span {
  font-family: 'Karla', sans-serif; font-size: 0.72rem;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--ink); padding: 0 40px;
}
.gold-ticker__track span::after {
  content: '✦'; margin-left: 40px; opacity: 0.5;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav { padding: 0 24px; }
  .nav__links { gap: 20px; }
  .nav__cta { display: none; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav { padding: 0 20px; }
  .section { padding: 60px 20px; }
  .footer-inner {
    grid-template-columns: 1fr 1fr; gap: 32px;
    padding: 0 20px 40px;
  }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { padding: 16px 20px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   PAGE HERO (inner pages)
   ═══════════════════════════════════════════════════════════ */
.page-hero {
  padding-top: var(--nav-h);
  background: var(--ink);
  position: relative; overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.25;
}
.page-hero__content {
  position: relative; z-index: 2;
  text-align: center; padding: 72px 24px 64px;
}
.page-hero__eyebrow {
  font-size: 0.68rem; letter-spacing: 0.5em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px; display: block;
}
.page-hero__title {
  font-family: 'Playfair Display SC', serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  color: var(--cream); line-height: 1.1; font-weight: 400;
}
.page-hero__subtitle {
  margin-top: 16px; font-size: 1rem; font-weight: 300;
  color: rgba(245,237,214,0.65); letter-spacing: 0.06em;
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.page-hero__divider {
  display: block; width: 60px; height: 2px;
  background: var(--gold); margin: 20px auto 0;
}
