/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  /* Colors */
  --color-bg: #05070b;
  --color-bg-elevated: #10131a;
  --color-bg-soft: #181c25;
  --color-surface: #141822;
  --color-text: #f5f6fa;
  --color-text-muted: #a0a4b5;
  --color-primary: #d4af37; /* gold, premium accent */
  --color-primary-soft: rgba(212, 175, 55, 0.16);
  --color-primary-strong: #f4d05a;
  --color-success: #2ecc71;
  --color-warning: #f1c40f;
  --color-danger: #e74c3c;

  /* 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, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", "Cormorant Garamond", "Times New Roman", serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --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 */

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 24px 80px rgba(0, 0, 0, 0.7);
  --shadow-soft-gold: 0 0 0 1px rgba(212, 175, 55, 0.16), 0 18px 40px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 220ms ease-out;
  --transition-slow: 320ms ease;

  /* Layout */
  --container-width: 1120px;
  --container-padding-x: 1.25rem;
}

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

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

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

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

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

/* Remove default list styles on ul, ol elements */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

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

/* ==========================================================================
   Base
   ========================================================================== */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

p {
  margin-top: 0;
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  line-height: var(--line-height-tight);
  letter-spacing: 0.02em;
}

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

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

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

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

h5 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

h6 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
}

strong,
b {
  font-weight: 600;
}

small {
  font-size: var(--font-size-sm);
}

code,
pre {
  font-family: var(--font-mono);
}

a {
  cursor: pointer;
  transition: color var(--transition-base), opacity var(--transition-base);
}

a:hover {
  color: var(--color-primary-strong);
}

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

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: var(--space-8) 0;
}

/* ==========================================================================
   Accessibility helpers
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

[tabindex="-1"]:focus {
  outline: none !important;
}

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

.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container-width) + var(--container-padding-x) * 2);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
}

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

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

.section__eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary-strong);
  margin-bottom: var(--space-2);
}

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

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

.text-muted {
  color: var(--color-text-muted);
}

.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-8 { margin-top: var(--space-8) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }

/* 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-col {
  flex-direction: column;
}

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

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

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

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

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

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

/* Alignment & width */
.w-full { width: 100%; }
/* Utility for subtle card backgrounds over dark hero sections */
.surface-soft {
  background: radial-gradient(circle at top, rgba(212, 175, 55, 0.06), transparent 55%),
              var(--color-bg-elevated);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: var(--color-primary);
  color: #050509;
  border: 1px solid rgba(0, 0, 0, 0.45);
  box-shadow: var(--shadow-soft-gold);
  cursor: pointer;
  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-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
}

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

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

.btn--ghost {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0));
  color: var(--color-text);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.btn--ghost:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.02));
}

.btn--outline {
  background: transparent;
  color: var(--color-primary-strong);
  border-color: rgba(212, 175, 55, 0.75);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--color-primary-soft);
}

.btn--danger {
  background-color: var(--color-danger);
  border-color: rgba(0, 0, 0, 0.55);
  box-shadow: 0 12px 30px rgba(231, 76, 60, 0.5);
}

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

.btn[disabled],
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Form controls */
.form-group {
  margin-bottom: var(--space-4);
}

.label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
}

.label span.required {
  color: var(--color-danger);
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(8, 11, 18, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--color-text-muted);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--color-primary-strong);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.7);
  background-color: rgba(8, 11, 18, 1);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.input[disabled],
.textarea[disabled],
.select[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.input--error,
.textarea--error,
.select--error {
  border-color: var(--color-danger);
}

.form-helper {
  margin-top: 0.25rem;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.form-error {
  margin-top: 0.25rem;
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* Card component: for restaurant sections, poker lounge, events, etc. */
.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.08), transparent 55%),
              var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card--soft {
  background: var(--color-bg-elevated);
}

.card--outline {
  background: transparent;
  border-style: dashed;
  border-color: rgba(212, 175, 55, 0.45);
}

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

.card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

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

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

.card__footer {
  margin-top: var(--space-4);
}

/* Tag / pill for categories like "Turneu", "Promoție", "VIP" */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 175, 55, 0.6);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-strong);
  background: rgba(0, 0, 0, 0.45);
}

.badge--success {
  border-color: var(--color-success);
  color: var(--color-success);
}

.badge--danger {
  border-color: var(--color-danger);
  color: var(--color-danger);
}

/* Simple chip list for filters (e.g. tip de eveniment, ziua săptămânii) */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background-color var(--transition-base),
              border-color var(--transition-base),
              color var(--transition-base);
}

.chip--active {
  border-color: var(--color-primary-strong);
  background-color: var(--color-primary-soft);
  color: var(--color-primary-strong);
}

/* Hero overlay utility: used on Acasă for immersive background images */
.hero-overlay {
  position: relative;
  isolation: isolate;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 7, 11, 0.05), rgba(5, 7, 11, 0.95));
  z-index: -1;
}

/* Image gallery helpers */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

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

/* Testimonial quote styling */
.quote {
  position: relative;
  padding-left: var(--space-4);
  border-left: 2px solid rgba(212, 175, 55, 0.5);
  font-style: italic;
  color: var(--color-text-muted);
}

.quote::before {
  content: "\201C";
  position: absolute;
  left: -0.5rem;
  top: -1.5rem;
  font-size: 3rem;
  color: rgba(212, 175, 55, 0.4);
}

/* Info list for program, adresă, parcare, dress code */
.info-list {
  list-style: none;
}

.info-list__item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--font-size-sm);
}

.info-list__label {
  font-weight: 500;
  color: var(--color-text);
}

.info-list__value {
  color: var(--color-text-muted);
  text-align: right;
}

@media (max-width: 600px) {
  .info-list__item {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-list__value {
    text-align: left;
  }
}

/* Simple responsive table for calendar / turnee */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.table thead {
  background: rgba(15, 18, 27, 0.9);
}

.table th,
.table td {
  padding: 0.75rem 0.75rem;
  text-align: left;
}

.table th {
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table tbody tr:nth-child(even) {
  background: rgba(10, 12, 18, 0.8);
}

.table tbody tr:hover {
  background: rgba(212, 175, 55, 0.06);
}

.table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .table--stacked thead {
    display: none;
  }

  .table--stacked tr {
    display: block;
    margin-bottom: 1rem;
  }

  .table--stacked td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: none;
    padding: 0.4rem 0.2rem;
  }

  .table--stacked td::before {
    content: attr(data-label);
    font-weight: 500;
    color: var(--color-text);
  }
}
