/* ═══════════════════════════════════════════════════
   Beylerbeyi Rakı — Main Stylesheet
   Aesthetic: Dark luxury / Ottoman refined
═══════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────────── */
:root {
  /* Amber gold — matched to beylerbeyi.store logo & accent colour */
  --gold:        #b8933e;
  --gold-light:  #d4aa58;
  --gold-dark:   #8f6e28;

  /* Backgrounds — rich dark, not pure black for readability */
  --bg:          #0e0c0a;
  --bg-2:        #141210;
  --bg-3:        #1a1714;

  /* Card / surface colours */
  --surface:     #1e1b18;
  --surface-2:   #262320;

  /* Text — warm ivory/cream */
  --text:        #f5efe2;
  --text-muted:  #b0a898;
  --text-faint:  #6a6258;

  /* Borders */
  --border:      rgba(184,147,62,0.22);
  --border-hover:rgba(184,147,62,0.45);

  --radius:      4px;
  --radius-lg:   8px;
  --nav-h:       72px;
  --max-w:       1200px;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Outfit', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── Typography ───────────────────────────────────── */
.section-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header .section-sub { margin: 0 auto; }

/* ── Layout ───────────────────────────────────────── */
.section-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 2rem;
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  font-weight: 500;
}
.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(184,147,62,0.30);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-hover);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.btn--full { width: 100%; }

/* ── Age Gate ─────────────────────────────────────── */
#age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.age-gate__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #221e18 0%, #0e0c0a 70%);
  backdrop-filter: blur(8px);
}

.age-gate__box {
  position: relative;
  max-width: 440px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.age-gate__nix {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  opacity: 0.8;
}
.age-gate__nix svg { width: 100%; height: 100%; }

.age-gate__logo-img {
  height: 48px;
  width: auto;
  margin: 0 auto 1.5rem;
  display: block;
}

.age-gate__title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.age-gate__sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.age-gate__denied {
  color: #e05555;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.age-gate__langs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.age-gate__langs a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  transition: color 0.2s;
}
.age-gate__langs a:hover,
.age-gate__langs a.active { color: var(--gold); }

/* ── Navigation ───────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

#header.scrolled {
  background: rgba(14,12,10,0.96);
  backdrop-filter: blur(12px);
  border-color: var(--border);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo__img {
  height: 42px;
  width: auto;
  display: block;
}

#nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-switcher {
  display: flex;
  gap: 0.6rem;
}
.lang-switcher a {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  transition: color 0.2s;
  padding: 2px 0;
}
.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Hero ─────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%,
      rgba(184,147,62,0.06) 0%,
      transparent 60%),
    linear-gradient(180deg, #121008 0%, #0e0c0a 100%);
}

/* Decorative anise star pattern */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(184,147,62,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8,8,7,0.8) 0%, transparent 50%);
}

.hero__content {
  position: relative;
  max-width: 680px;
  padding: 2rem;
  animation: heroFade 1.2s ease 0.2s both;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  margin-bottom: 1.5rem;
}
.hero__logo-img {
  height: 52px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta { font-size: 0.82rem; }

.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ── About ────────────────────────────────────────── */
#about {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-visual__frame {
  width: 260px;
  height: 360px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface);
}

.about-visual__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 30%, rgba(184,147,62,0.12), transparent 60%);
}

/* Decorative SVG anise star */
.about-visual__anise {
  width: 160px;
  height: 160px;
  background:
    conic-gradient(from 0deg,
      transparent 0deg 30deg,
      rgba(184,147,62,0.15) 30deg 60deg,
      transparent 60deg 90deg,
      rgba(184,147,62,0.15) 90deg 120deg,
      transparent 120deg 150deg,
      rgba(184,147,62,0.15) 150deg 180deg,
      transparent 180deg 210deg,
      rgba(184,147,62,0.15) 210deg 240deg,
      transparent 240deg 270deg,
      rgba(184,147,62,0.15) 270deg 300deg,
      transparent 300deg 330deg,
      rgba(184,147,62,0.15) 330deg 360deg
    );
  border-radius: 50%;
  border: 1px solid rgba(184,147,62,0.20);
  animation: spinSlow 40s linear infinite;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.stat__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.25rem;
  display: block;
}

/* ── Products ─────────────────────────────────────── */
#products {
  background: var(--bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent, var(--gold));
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 0 var(--accent);
}

.product-card__img-wrap {
  position: relative;
  height: 220px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%,
    rgba(var(--accent, 201 169 110) / 0.08),
    transparent 70%);
}

.product-card__bottle {
  width: 60px;
  height: 150px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}
.product-card:hover .product-card__bottle {
  transform: scale(1.05) translateY(-4px);
}
.product-card__bottle svg { width: 100%; height: 100%; }

.product-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent, var(--gold));
  color: var(--bg);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  font-weight: 600;
}

.product-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
}

.product-card__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.product-card__vol {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent, var(--gold));
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

.product-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Where to Find ────────────────────────────────── */
#where {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.where-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.where-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: border-color 0.2s;
}
.where-card:hover { border-color: var(--border-hover); }

.where-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.where-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.where-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.where-list li a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.where-list li a::before {
  content: '→';
  color: var(--gold);
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(-4px);
}
.where-list li a:hover { color: var(--text); }
.where-list li a:hover::before { opacity: 1; transform: translateX(0); }

.where-card__note {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-faint);
  line-height: 1.6;
  font-style: italic;
}

/* ── Contact ──────────────────────────────────────── */
#contact {
  background: var(--bg-2);
}

.contact-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-captcha {
  align-items: flex-start;
}

.form-message {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.form-message--success { background: rgba(89,170,89,0.1); color: #6abf6a; border: 1px solid rgba(89,170,89,0.2); }
.form-message--error   { background: rgba(224,85,85,0.1); color: #e05555; border: 1px solid rgba(224,85,85,0.2); }

/* ── Footer ───────────────────────────────────────── */
#footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-logo__img {
  height: 38px;
  width: auto;
  display: block;
  margin-bottom: 0.4rem;
}
.footer-tagline { font-size: 0.75rem; color: var(--text-faint); margin-top: 0.25rem; letter-spacing: 0.12em; text-transform: uppercase; }

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.footer-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }

.footer-legal {
  text-align: right;
}

.footer-nix {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
  color: var(--text-faint);
}
.footer-nix svg { flex-shrink: 0; }
.footer-nix span { font-size: 0.78rem; line-height: 1.4; }

.footer-legal p {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 0.25rem;
}

.footer-geo {
  opacity: 0.6;
}

/* ── Scroll reveal ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 1280px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .section-container { padding: 4rem 1.25rem; }

  #nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    inset: var(--nav-h) 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 899;
  }
  #nav-menu.open { display: flex; }
  .nav-link { font-size: 1.1rem; }

  .hamburger { display: flex; }

  .about-grid      { grid-template-columns: 1fr; }
  .about-visual    { display: none; }
  .about-stats     { gap: 1.5rem; }

  .products-grid   { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .where-grid      { grid-template-columns: 1fr; }
  .form-row        { grid-template-columns: 1fr; }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .footer-legal    { text-align: center; }
  .footer-nix      { justify-content: center; }
  .footer-nav      { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero__title   { font-size: 2.5rem; }
}
