/* ============================================================
   SMOKE & BARREL SOCIETY — Global Design System
   smokeandbarrelsociety.com
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Cinzel+Decorative:wght@400&family=Raleway:wght@200;300;400&display=swap');

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

/* ── TOKENS ── */
:root {
  --char:       #1a1410;
  --char-deep:  #0d0a08;
  --ember:      #c8622a;
  --ash:        #2e2620;
  --ash-light:  #3a2e26;
  --smoke:      #7a6e64;
  --cream:      #e8dfd0;
  --parchment:  #f0e8d8;
  --gold:       #b8935a;
  --gold-light: #c8a96a;
  --border:     rgba(122,110,100,0.18);
  --border-gold:rgba(184,147,90,0.25);

  --font-serif:    'Playfair Display', Georgia, serif;
  --font-display:  'Cinzel Decorative', serif;
  --font-body:     'Cormorant Garamond', Georgia, serif;
  --font-ui:       'Raleway', sans-serif;

  --nav-height: 64px;

  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--char);
  color: var(--cream);
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-ui);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: var(--font-ui);
}

/* ── TYPOGRAPHY SCALE ── */
.t-eyebrow {
  font-family: var(--font-ui);
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--ember);
}

.t-display {
  font-family: var(--font-display);
  letter-spacing: 0.15em;
  color: var(--gold);
}

.t-headline {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.05;
}

.t-headline em {
  font-style: italic;
  color: var(--gold);
}

.t-subhead {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  color: var(--smoke);
  line-height: 1.65;
}

.t-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.85;
  color: #c8bfb0;
}

.t-label {
  font-family: var(--font-ui);
  font-weight: 200;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--smoke);
}

/* ── NAVIGATION ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  background: rgba(26, 20, 16, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 10px;
  font-weight: 200;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.75;
  transition: opacity 0.3s, color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--gold);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  width: 32px;
}

.nav-hamburger span {
  display: block;
  height: 1px;
  background: var(--cream);
  transition: transform 0.3s var(--ease-out), opacity 0.3s, width 0.3s;
}

.nav-hamburger span:nth-child(2) { width: 70%; }

.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── MOBILE MENU DRAWER ── */
.menu-drawer {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  background: rgba(13, 10, 8, 0.98);
  z-index: 90;
  transform: translateX(-100%);
  transition: transform 0.38s var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.5rem;
  overflow-y: auto;
}

.menu-drawer.open { transform: translateX(0); }

.menu-links {
  list-style: none;
  margin-bottom: 3rem;
}

.menu-links li {
  border-bottom: 1px solid var(--border);
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--cream);
  cursor: pointer;
  transition: color 0.3s;
  text-decoration: none;
}

.menu-link em { font-style: italic; color: var(--gold); }
.menu-link:hover { color: var(--gold); }
.menu-link-arrow { font-size: 14px; color: var(--smoke); }

.menu-footer { margin-top: auto; }

.menu-socials {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.menu-social {
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--smoke);
  transition: color 0.3s;
  text-decoration: none;
}

.menu-social:hover { color: var(--gold); }

.menu-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  color: var(--smoke);
}

/* ── PAGE WRAPPER ── */
.page-wrap {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--char);
  background: var(--gold);
  border: none;
  padding: 15px 38px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--ember);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 200;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(232, 223, 208, 0.28);
  padding: 15px 38px;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, transform 0.2s;
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ── DIVIDERS ── */
.divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 4rem 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.divider-label {
  font-size: 9px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--smoke);
  padding: 0 0.5rem;
}

/* ── SECTION HEADER ── */
.section-header {
  margin-bottom: 3rem;
}

.section-header.centered {
  text-align: center;
}

.section-eyebrow {
  display: block;
  font-size: 9px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.1;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

/* ── VERTICAL RULE ── */
.v-rule {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  margin: 0 auto;
}

/* ── GRAIN OVERLAY ── */
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}

/* ── EMAIL CAPTURE ── */
.email-form {
  display: flex;
  max-width: 480px;
}

.email-input {
  flex: 1;
  background: rgba(46, 38, 32, 0.8);
  border: 1px solid rgba(122, 110, 100, 0.4);
  border-right: none;
  color: var(--cream);
  font-family: var(--font-ui);
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 14px 20px;
  outline: none;
  transition: border-color 0.3s;
}

.email-input::placeholder { color: var(--smoke); }
.email-input:focus { border-color: var(--gold); }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.footer-copy {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--smoke);
  text-align: center;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

.footer-socials a {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--smoke);
  transition: color 0.3s;
}

.footer-socials a:hover { color: var(--gold); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

.anim-fade-up   { animation: fadeUp 1s var(--ease-out) forwards; opacity: 0; }
.anim-fade-in   { animation: fadeIn 1s var(--ease-out) forwards; opacity: 0; }
.anim-delay-1   { animation-delay: 0.2s; }
.anim-delay-2   { animation-delay: 0.4s; }
.anim-delay-3   { animation-delay: 0.6s; }
.anim-delay-4   { animation-delay: 0.8s; }
.anim-delay-5   { animation-delay: 1.0s; }
.anim-delay-6   { animation-delay: 1.2s; }

/* ── UTILITY ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 3rem;
}

.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;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  :root { --nav-height: 56px; }

  .site-nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .container { padding: 0 1.25rem; }
  .container-narrow { padding: 0 1.25rem; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-socials { justify-content: center; }

  .email-form { flex-direction: column; }
  .email-input { border-right: 1px solid rgba(122,110,100,0.4); border-bottom: none; }

  .btn-primary, .btn-ghost { padding: 14px 24px; }

  .divider { margin: 2.5rem 0; }
}

@media (max-width: 480px) {
  .menu-link { font-size: 22px; }
}
