/* ============================================================
   Tap That Kitchen + Bar — Design System
   Dark elevated palette · copper/gold accents · cream surfaces
   ============================================================ */

:root {
  /* Brand palette */
  --color-ink: #0c0a08;          /* Near-black, slightly warm */
  --color-night: #14110d;        /* Background surfaces */
  --color-shadow: #1c1814;       /* Card surfaces */
  --color-walnut: #2a2118;       /* Lifted surfaces / borders */
  --color-line: rgba(232, 219, 196, 0.10);

  --color-cream: #efe6d2;        /* Primary cream */
  --color-bone: #f7f0dc;         /* Light cream highlight */
  --color-mute: #b6a98c;         /* Body text on dark */
  --color-fade: #8a7e63;         /* Tertiary text */

  --color-copper: #c8794a;       /* Primary copper accent */
  --color-copper-bright: #e09661;
  --color-gold: #d4a857;         /* Gold accent */
  --color-ember: #a8542d;        /* Deep amber */

  /* Semantic */
  --bg: var(--color-night);
  --bg-elevated: var(--color-shadow);
  --fg: var(--color-cream);
  --fg-muted: var(--color-mute);
  --fg-fade: var(--color-fade);
  --accent: var(--color-copper);
  --accent-hover: var(--color-copper-bright);
  --border: var(--color-line);

  /* Typography */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* Type scale (fluid) */
  --text-xs: clamp(0.72rem, 0.7rem + 0.1vw, 0.8rem);
  --text-sm: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --text-base: 1rem;
  --text-lg: clamp(1.1rem, 1.05rem + 0.25vw, 1.25rem);
  --text-xl: clamp(1.45rem, 1.3rem + 0.7vw, 1.85rem);
  --text-2xl: clamp(2.1rem, 1.7rem + 1.8vw, 3.2rem);
  --text-3xl: clamp(2.8rem, 2.1rem + 3vw, 4.6rem);
  --text-hero: clamp(3.4rem, 2.4rem + 4.5vw, 6.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-full: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container: 1200px;
  --container-narrow: 920px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.7;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--fg);
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); line-height: 1.2; }
h4 { font-size: var(--text-lg); line-height: 1.3; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

p { color: var(--fg-muted); max-width: 60ch; }
p.lead { font-size: var(--text-lg); color: var(--color-bone); max-width: 56ch; }

em.serif { font-family: var(--font-display); font-style: italic; color: var(--color-copper-bright); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 60ch; }
.section-head h2 { margin-top: 0.6rem; }
.section-head p { margin-top: 1.2rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--color-copper);
  --btn-fg: #1a120a;
  --btn-border: var(--color-copper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover {
  background: var(--color-copper-bright);
  border-color: var(--color-copper-bright);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(224, 150, 97, 0.55);
}
.btn:active { transform: translateY(0); }
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--color-cream);
  --btn-border: rgba(232, 219, 196, 0.35);
}
.btn-ghost:hover {
  --btn-bg: rgba(232, 219, 196, 0.06);
  --btn-fg: var(--color-bone);
  --btn-border: rgba(232, 219, 196, 0.6);
  box-shadow: none;
}
.btn-gold {
  --btn-bg: var(--color-gold);
  --btn-fg: #1a120a;
  --btn-border: var(--color-gold);
}
.btn-gold:hover {
  --btn-bg: #e6bf6e;
  --btn-border: #e6bf6e;
  box-shadow: 0 10px 30px -10px rgba(212, 168, 87, 0.5);
}
.btn .arrow {
  transition: transform 0.25s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }
.btn-sm { padding: 0.7rem 1.15rem; font-size: 0.78rem; }

/* External link icon */
.ext::after {
  content: "↗";
  margin-left: 0.35em;
  font-weight: 400;
  font-size: 0.9em;
  opacity: 0.85;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--color-cream);
  color: var(--color-ink);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: linear-gradient(to bottom, rgba(12, 10, 8, 0.92), rgba(12, 10, 8, 0.65));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), padding 0.3s var(--ease);
}
.site-header.scrolled {
  padding: 0.7rem 0;
  background: rgba(12, 10, 8, 0.96);
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--color-cream);
}
.brand svg { width: 38px; height: 38px; color: var(--color-copper); flex-shrink: 0; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text .wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-cream);
  white-space: nowrap;
}
.brand-text .tag { white-space: nowrap; }
.brand-text .tag {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: 0.35rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-mute);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--color-bone); background: rgba(232, 219, 196, 0.06); }

.nav-cta { display: inline-flex; align-items: center; gap: 0.6rem; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--color-cream);
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }

  .nav-open .nav-drawer {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-ink);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem 1.25rem;
    box-shadow: var(--shadow-md);
  }
  .nav-open .nav-drawer .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.75rem;
  }
  .nav-open .nav-drawer .nav-links a {
    padding: 0.85rem 0.5rem;
    width: 100%;
    font-size: 1rem;
  }
  .nav-open .nav-drawer .nav-cta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .nav-open .nav-drawer .nav-cta .btn { width: 100%; }
}

/* nav-drawer is just a passthrough wrapper for nav-links + nav-cta on mobile */
.nav-drawer { display: contents; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a {
  color: var(--color-mute);
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--color-cream); }
.footer-col p { font-size: 0.92rem; }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--color-fade);
}
.footer-bottom a { color: var(--color-fade); }
.footer-bottom a:hover { color: var(--color-cream); }
.socials { display: flex; gap: 0.5rem; }
.socials a {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--color-mute);
  transition: all 0.25s var(--ease);
}
.socials a:hover {
  color: var(--color-copper);
  border-color: var(--color-copper);
  background: rgba(200, 121, 74, 0.08);
}
.socials svg { width: 18px; height: 18px; }

/* ---------- Utility ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-gold);
  margin: 1rem 0;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
  opacity: 0.3;
}
.divider svg { width: 16px; height: 16px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reveal on scroll — only hide when JS is active and intersection observer supported */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
