/* =========================================================
   Variables
   ========================================================= */
:root {
  /* Colors */
  --color-bg-dark: #121212; /* primary background */
  --color-bg-light: #F6F1E8; /* secondary background sections */
  --color-text-on-dark: #F5F1E8; /* soft ivory */
  --color-text-on-light: #1E1E1E; /* deep charcoal */
  --color-heading-wine: #6E1F2B; /* deep wine red */
  --color-heading-navy: #1B2A41; /* royal navy */
  --color-primary: #C8A45A; /* antique gold for CTAs */
  --color-primary-hover: #7A5A3A; /* dark bronze */
  --color-accent-emerald: #1E5E4F; /* muted emerald green */
  --color-success: #1E5E4F;
  --color-warning: #C8A45A;
  --color-danger: #C0392B;

  /* Neutral grays */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2933;
  --gray-900: #111827;

  /* Typography */
  --font-sans: "system-ui", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-display: "Cormorant Garamond", "Playfair Display", serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (0–96px) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows (subtle, cinematic) */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.55);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 250ms ease-out;
  --transition-slow: 400ms ease-out;
}

/* Reduced motion adjustments */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
}

/* =========================================================
   Reset / Normalize
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* =========================================================
   Base Styles
   ========================================================= */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--line-height-tight);
  letter-spacing: 0.03em;
  color: var(--color-heading-wine);
}

h1 {
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: var(--space-3);
}

h4 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
}

p {
  margin-bottom: var(--space-4);
  }

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover,
a:focus-visible {
  color: var(--color-primary-hover);
}

/* Light-section helper for typography on light backgrounds */
.section--light,
.bg-light {
  background-color: var(--color-bg-light);
  color: var(--color-text-on-light);
}

.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4,
.section--light h5,
.section--light h6,
.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6 {
  color: var(--color-heading-navy);
}

/* =========================================================
   Accessibility & Focus
   ========================================================= */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Screen reader only */
.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;
}

/* =========================================================
   Utilities
   ========================================================= */

/* Layout containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section + .section {
  border-top: 1px solid rgba(248, 248, 248, 0.04);
}

.section--accent-border {
  border-top: 1px solid var(--color-accent-emerald);
}

/* Flex helpers */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

/* Grid helpers */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (min-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Alignment & text */
.text-center {
  text-align: center;
}

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

.text-uppercase {
  text-transform: uppercase;
}

.text-sm {
  font-size: var(--font-size-sm);
}

.text-xs {
  font-size: var(--font-size-xs);
}

.tracking-wide {
  letter-spacing: 0.12em;
}

.muted {
  color: var(--gray-400);
}

/* Spacing utilities (selected, not exhaustive) */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

/* Cinematic full-height sections */
.fullscreen-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Overlay helper for photography + gradient */
.bg-overlay-dark {
  position: relative;
  color: var(--color-text-on-dark);
}

.bg-overlay-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
  z-index: 0;
}

.bg-overlay-dark > * {
  position: relative;
  z-index: 1;
}

/* Separator accent */
.accent-divider {
  width: 72px;
  height: 2px;
  background-color: var(--color-accent-emerald);
  margin: var(--space-4) 0;
}

/* =========================================================
   Components
   ========================================================= */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: var(--color-primary);
  color: #1A1A1A;
  box-shadow: var(--shadow-soft);
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    border-color var(--transition-base);
}

.btn:hover {
  background-color: var(--color-primary-hover);
  color: #FDFBF6;
  box-shadow: var(--shadow-elevated);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: none;
}

.btn--outline:hover {
  background: rgba(200, 164, 90, 0.08);
}

.btn--ghost-dark {
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-text-on-dark);
  border-color: rgba(248, 248, 248, 0.15);
}

/* Inputs & forms */
.input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(10, 10, 10, 0.85);
  color: var(--color-text-on-dark);
  font-size: var(--font-size-sm);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.section--light .input,
.section--light textarea,
.section--light select,
.bg-light .input,
.bg-light textarea,
.bg-light select {
  background-color: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--color-text-on-light);
}

.input::placeholder,
textarea::placeholder {
  color: var(--gray-500);
}

.input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
  outline: none;
}

label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-300);
}

.section--light label,
.bg-light label {
  color: var(--gray-700);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .form-row.form-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Card (for dishes, wine, VIP rooms, etc.) */
.card {
  background-color: rgba(15, 15, 15, 0.96);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.section--light .card,
.bg-light .card {
  background-color: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.04);
}

.card--bordered {
  border-color: var(--color-accent-emerald);
}

.card-header {
  margin-bottom: var(--space-4);
}

.card-meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gray-400);
}

/* Tag / pill (for degustacijski meni labels, etc.) */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background-color: rgba(200, 164, 90, 0.12);
  color: var(--color-primary);
}

/* Hero headline refinement */
.hero-kicker {
  font-family: var(--font-sans);
  font-size: var(--font-size-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-400);
}

/* Gallery utility */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* =========================================================
   18+ Age Verification Modal
   ========================================================= */

.age-gate-overlay {
  position: fixed;
  inset: 0;
  background-color: #000000CC; /* strong dark overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.age-gate-overlay[hidden] {
  display: none;
}

.age-gate-modal {
  background: linear-gradient(145deg, #FFFFFF, #F7F2E8);
  color: var(--color-text-on-light);
  border-radius: 18px;
  padding: var(--space-8);
  max-width: 460px;
  width: 90%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(200, 164, 90, 0.65);
  text-align: center;
}

.age-gate-title {
  font-family: var(--font-display);
  font-size: var(--font-size-3xl);
  color: var(--color-heading-navy);
  margin-bottom: var(--space-3);
}

.age-gate-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-on-light);
  margin-bottom: var(--space-6);
}

.age-gate-note {
  font-size: var(--font-size-xs);
  color: var(--gray-600);
  margin-top: var(--space-4);
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 480px) {
  .age-gate-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.age-gate-btn-primary {
  composes: btn; /* conceptual only; ensure HTML uses both classes: btn age-gate-btn-primary */
}

.age-gate-btn-secondary {
  composes: btn btn--outline; /* conceptual only */
}

/* Ensure scroll lock when age gate is active (applied via JS) */
.body--locked {
  overflow: hidden;
}

/* =========================================================
   Editorial / Storytelling Helpers
   ========================================================= */

.lead {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  max-width: 60ch;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.section-heading__eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.section--light .section-heading__eyebrow,
.bg-light .section-heading__eyebrow {
  color: var(--gray-600);
}

.section-heading__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.section-heading__description {
  max-width: 52ch;
}

/* Vertical rhythm between distinct story blocks */
.block {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.block + .block {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section--light .block + .block,
.bg-light .block + .block {
  border-top-color: rgba(0, 0, 0, 0.06);
}
