/* ========================================================================
   Casino Tomic - Base Styles
   Modern, elegant, warm & luxurious foundation
   ======================================================================== */

/* ========================================================================
   1. CSS Variables (Design Tokens)
   ======================================================================== */
:root {
  /* Color Palette - Warm, atmospheric, premium */
  --color-bg: #0f0a07; /* deep brown / charcoal */
  --color-bg-elevated: #1a120d;
  --color-bg-soft: #221610; /* dark beige / cocoa */

  --color-text: #f7f0e7; /* warm light */
  --color-text-muted: #c3b6a5;
  --color-text-soft: #a99987;

  --color-primary: #c58b3b; /* warm amber / soft gold */
  --color-primary-soft: rgba(197, 139, 59, 0.1);
  --color-primary-strong: #e2a955;

  --color-success: #6bbf7a; /* soft, natural green */
  --color-warning: #e3a55a; /* warm amber */
  --color-danger: #c2544b; /* muted copper red */

  /* Neutral grays (warm tinted) */
  --gray-50: #f9f3ea;
  --gray-100: #e9ddcf;
  --gray-200: #d3c3b0;
  --gray-300: #b7a087;
  --gray-400: #9b846b;
  --gray-500: #7f6a54;
  --gray-600: #645340;
  --gray-700: #4c3f30;
  --gray-800: #372c22;
  --gray-900: #231a14;

  /* Typography - Premium, structured */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;

  --font-size-xs: 0.75rem;  /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem;   /* 16px */
  --font-size-md: 1.0625rem;/* 17px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem;  /* 20px */
  --font-size-2xl: 1.5rem;  /* 24px */
  --font-size-3xl: 2rem;    /* 32px */
  --font-size-4xl: 2.5rem;  /* 40px */
  --font-size-5xl: 3rem;    /* 48px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;

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

  /* Radius - refined, subtle */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  /* Shadows - soft, atmospheric */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-soft-high: 0 20px 45px rgba(0, 0, 0, 0.5);
  --shadow-subtle: 0 4px 18px rgba(0, 0, 0, 0.35);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 320ms ease-out;

  /* Layout */
  --container-max-width: 1120px;
  --header-height: 72px;
}

/* Prefer reduced motion: limit animations & parallax */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
}

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

* {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
}

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

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

button {
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

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

/* ========================================================================
   3. Base Typography & Elements
   ======================================================================== */
body {
  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;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: block;
}

p {
  margin-bottom: var(--space-16);
  color: var(--color-text);
}

p:last-child {
  margin-bottom: 0;
}

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

strong {
  font-weight: 600;
}

/* Headings: structured, premium scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-16);
}

h2 {
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-12);
}

h3 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-8);
}

h4 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-8);
}

h5 {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-4);
}

h6 {
  font-size: var(--font-size-base);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  h1 { font-size: var(--font-size-5xl); }
  h2 { font-size: calc(var(--font-size-3xl) * 1.1); }
  h3 { font-size: calc(var(--font-size-2xl) * 1.05); }
}

/* Links - subtle, premium underline */
a {
  position: relative;
  transition: color var(--transition-base);
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2em;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-strong));
  transition: width var(--transition-base);
}

a:hover::after,
 a:focus-visible::after {
  width: 100%;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: var(--space-24) 0;
}

/* ========================================================================
   4. 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;
}

/* ========================================================================
   5. Layout Utilities
   ======================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

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

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

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

.flex-row {
  flex-direction: row;
}

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

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

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

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

.justify-center {
  justify-content: center;
}

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

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

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

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

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

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

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

/* Spacing utilities (vertical rhythm) */
.section {
  padding-top: var(--space-48);
  padding-bottom: var(--space-48);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-64);
    padding-bottom: var(--space-64);
  }
}

.section-heading {
  margin-bottom: var(--space-24);
}

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

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

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

/* Hero full viewport helper */
.hero-full {
  min-height: calc(100vh - var(--header-height));
  position: relative;
}

/* ========================================================================
   6. Components
   ======================================================================== */

/* 6.1 Buttons - minimal, premium CTA */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.75rem;
  font-size: var(--font-size-sm);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: #120c07;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft-high);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-subtle);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: rgba(197, 139, 59, 0.6);
}

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

.btn-ghost {
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover:not(:disabled) {
  background-color: rgba(0, 0, 0, 0.45);
}

.btn-sm {
  padding: 0.5rem 1.4rem;
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding: 0.85rem 2.1rem;
  font-size: var(--font-size-md);
}

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

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

/* 6.2 Form Elements */
label {
  display: block;
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.input,
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background-color: rgba(10, 6, 4, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition:
    border-color var(--transition-base),
    background-color var(--transition-base),
    box-shadow var(--transition-base);
}

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

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

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

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

/* 6.3 Card - for experiences, events, highlights */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, rgba(197, 139, 59, 0.12), transparent 55%),
              var(--color-bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: var(--space-24);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

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

.card-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-4);
}

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

.card-footer {
  margin-top: var(--space-20);
}

/* 6.4 Header Layout Helpers (centered logo, balanced nav) */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  backdrop-filter: blur(18px);
  background: radial-gradient(circle at top, rgba(197, 139, 59, 0.18), transparent 65%),
              rgba(8, 5, 3, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-16);
  font-size: var(--font-size-sm);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-nav-left {
  justify-content: flex-start;
}

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

.site-nav a {
  padding: 0.25rem 0.3rem;
  opacity: 0.9;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
  color: var(--color-primary-strong);
}

.site-nav a::after {
  bottom: -0.35em;
}

@media (max-width: 900px) {
  .site-header-inner {
    grid-template-columns: 1fr auto 1fr;
  }

  .site-nav {
    display: none; /* concrete nav toggling handled in layout CSS */
  }
}

/* 6.5 Hero Slider Helpers */

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 900ms ease-out;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(8, 5, 3, 0.88) 0%,
    rgba(12, 7, 4, 0.78) 35%,
    rgba(30, 18, 11, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero-kicker {
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-12);
}

.hero-title {
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-12);
}

.hero-subtitle {
  font-size: var(--font-size-md);
  color: var(--color-text-soft);
  max-width: 34rem;
  margin-bottom: var(--space-24);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: clamp(2.5rem, 3.2vw, 3.3rem);
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
}

/* 6.6 Badges / Tags (for events, experiences) */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  background: rgba(8, 5, 3, 0.85);
}

.badge-soft {
  background: rgba(197, 139, 59, 0.1);
  border-color: rgba(197, 139, 59, 0.4);
  color: var(--color-primary-strong);
}

/* 6.7 Footer Helpers */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top, rgba(197, 139, 59, 0.18), transparent 70%),
              #050302;
  padding-top: var(--space-32);
  padding-bottom: var(--space-24);
  font-size: var(--font-size-sm);
}

.footer-meta {
  margin-top: var(--space-24);
  padding-top: var(--space-16);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-text-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}

.footer-links a {
  font-size: var(--font-size-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .footer-meta {
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
