/* ============================================================
   Tommy Kende — Shared Stylesheet
   Covers: reset, design tokens, nav, footer, buttons, utilities
   Page-specific styles live in <style> tags on each page
   ============================================================ */

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
button { cursor: pointer; }

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --dark:  #1C1814;
  --cream: #F2EDE4;
  --amber: #B8732A;
  --dark2: #2D2520;
  --dark3: #241F1B;

  --c75: rgba(242,237,228,.75);
  --c55: rgba(242,237,228,.55);
  --c40: rgba(242,237,228,.40);
  --c20: rgba(242,237,228,.20);
  --d06: rgba(28,24,20,.06);
  --d08: rgba(28,24,20,.08);
  --d12: rgba(28,24,20,.12);
  --d20: rgba(28,24,20,.20);

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --max: 1200px;
  --r: 3px;
}

/* ── BASE ────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── LAYOUT ──────────────────────────────────────────────────── */
.wrap     { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 48px; }
.wrap--md { max-width: 800px; }
.wrap--sm { max-width: 640px; }
.wrap--xs { max-width: 500px; }

/* ── EYEBROW ─────────────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 22px;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--serif); font-size: 17px;
  font-style: italic; font-weight: 400; letter-spacing: .03em;
  padding: 20px 50px; background: var(--amber); color: var(--cream);
  text-decoration: none; border-radius: var(--r); border: none;
  box-shadow: 0 4px 28px rgba(184,115,42,.32);
  transition: background .25s, transform .2s, box-shadow .25s;
}
.btn:hover { background: #9e6222; transform: translateY(-2px); box-shadow: 0 8px 36px rgba(184,115,42,.4); }
.btn--lg { font-size: 18px; padding: 22px 58px; }

.btn-fine {
  display: block; margin-top: 18px;
  font-family: var(--sans); font-size: 11.5px;
  color: var(--c40); letter-spacing: .06em;
}

.alink {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--amber); text-decoration: none; transition: gap .2s;
}
.alink:hover { gap: 12px; }

/* ── NAVIGATION ──────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 48px;
  transition: background .4s, padding .35s, backdrop-filter .4s;
}

/* Home: transparent until scrolled */
.nav.on {
  background: rgba(28,24,20,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 18px 48px;
}

/* Inner pages: always dark */
.nav--dark {
  background: rgba(28,24,20,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 28px 48px;
}
.nav--dark.slim { padding: 18px 48px; }

.nav-logo {
  font-family: var(--serif); font-size: 17px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream); text-decoration: none; flex-shrink: 0;
}

.nav-links {
  display: flex; gap: 36px; list-style: none; align-items: center;
}
.nav-links a {
  font-family: var(--sans); font-size: 13.5px; color: var(--c75);
  text-decoration: none; position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--amber); transition: width .3s;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--cream); }

/* Home scroll-in CTA */
.nav-cta {
  font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  letter-spacing: .06em; color: var(--cream);
  background: var(--amber); text-decoration: none;
  padding: 10px 22px; border-radius: var(--r);
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
  flex-shrink: 0;
}
.nav.on .nav-cta { opacity: 1; pointer-events: auto; }

/* Inner page CTA: always visible */
.nav--dark .nav-cta { opacity: 1; pointer-events: auto; }

/* Mobile hamburger */
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 36px; height: 36px;
  background: none; border: none; padding: 4px;
  cursor: pointer;
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--cream); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(28,24,20,.98);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  font-style: italic; color: var(--cream); text-decoration: none;
  padding: 12px 24px; transition: color .2s;
}
.nav-mobile-menu a:hover { color: var(--amber); }
.nav-mobile-menu .mob-cta {
  margin-top: 24px;
  font-family: var(--sans); font-size: 14px; font-style: normal;
  font-weight: 500; letter-spacing: .08em;
  background: var(--amber); color: var(--cream);
  padding: 14px 36px; border-radius: var(--r);
}
.nav-mobile-close {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--sans); font-size: 28px; font-weight: 300;
  color: var(--c55); background: none; border: none; cursor: pointer;
  line-height: 1;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  background: var(--dark); padding: 84px 0 44px;
  border-top: 1px solid rgba(242,237,228,.06);
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 64px; padding-bottom: 56px; margin-bottom: 36px;
  border-bottom: 1px solid var(--c20);
}
.f-wordmark {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream); display: block; margin-bottom: 12px; text-decoration: none;
}
.f-tagline {
  font-family: var(--sans); font-size: 14px; font-weight: 300;
  font-style: italic; color: var(--c55); line-height: 1.65;
}
.f-note {
  font-family: var(--serif); font-size: 14px; font-style: italic;
  color: var(--c40); margin-top: 14px; line-height: 1.6;
}
.f-head {
  font-family: var(--sans); font-size: 10.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 18px; display: block;
}
.f-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.f-links a {
  font-family: var(--sans); font-size: 14px; font-weight: 300;
  color: var(--c55); text-decoration: none; transition: color .2s;
}
.f-links a:hover { color: var(--cream); }
.f-bottom { display: flex; justify-content: space-between; align-items: center; }
.f-copy { font-family: var(--sans); font-size: 11.5px; color: var(--c40); }

/* ── PHOTO BREAKS ─────────────────────────────────────────────── */
.photo-break { width: 100%; overflow: hidden; position: relative; }
.photo-break img { width: 100%; height: 100%; object-fit: cover; }
.photo-break--fade::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(28,24,20,.15) 0%, transparent 20%,
    transparent 80%, rgba(242,237,228,.2) 100%);
}

/* ── PAGE HERO (inner pages) ─────────────────────────────────── */
.page-hero {
  background: var(--dark); padding-top: 130px;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 72vh; overflow: hidden;
}
.page-hero--wide { grid-template-columns: 42fr 58fr; }
.page-hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px clamp(28px,3.6vw,64px) 80px 48px;
}
.page-hero-h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(28px,3.5vw,52px);
  line-height: 1.12; letter-spacing: -.015em; color: var(--cream); margin-bottom: 26px;
}
.page-hero-h1 em { font-style: italic; font-weight: 400; }
.page-hero-sub {
  font-family: var(--sans); font-size: 18px; font-weight: 300;
  line-height: 1.72; color: var(--c75); max-width: 440px;
}
.page-hero-img { position: relative; overflow: hidden; }
.page-hero-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.page-hero-img::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, var(--dark) 0%, transparent 20%);
}

/* ── PAGE CTA BAND ───────────────────────────────────────────── */
.page-cta { background: var(--dark); padding: 100px 0; text-align: center; }
.page-cta h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(26px,3.4vw,46px); line-height: 1.16;
  color: var(--cream); margin-bottom: 22px;
}
.page-cta h2 em { font-style: italic; font-weight: 400; }
.page-cta p {
  font-family: var(--sans); font-size: 18px; font-weight: 300;
  line-height: 1.72; color: var(--c75); max-width: 500px; margin: 0 auto 40px;
}

/* ── PLATFORM LINKS ──────────────────────────────────────────── */
.platform-row { display: flex; gap: 10px; flex-wrap: wrap; }
.plat {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--dark); text-decoration: none;
  padding: 10px 18px; border: 1px solid var(--d20); border-radius: var(--r);
  transition: border-color .2s, color .2s;
}
.plat:hover { border-color: var(--amber); color: var(--amber); }
.plat--light {
  color: var(--c75); border-color: rgba(242,237,228,.25);
}
.plat--light:hover { border-color: var(--amber); color: var(--amber); }

/* ── RESPONSIVE SHARED ───────────────────────────────────────── */
@media (max-width: 960px) {
  .wrap { padding: 0 24px; }

  /* Nav */
  .nav { padding: 18px 24px; }
  .nav.on { padding: 14px 24px; }
  .nav--dark { padding: 18px 24px; }
  .nav--dark.slim { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }

  /* Page hero */
  .page-hero, .page-hero--wide {
    grid-template-columns: 1fr; padding-top: 80px; min-height: auto;
  }
  .page-hero-copy { padding: 44px 24px 52px; }
  .page-hero-img { height: 62vw; min-height: 240px; }

  /* Page CTA */
  .page-cta { padding: 72px 24px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
  .f-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
