/* ========================================================================
   Casino Ventra Base Styles (base.css)
   Modern, bright, premium entertainment look & feel
   ======================================================================== */

/* ========================================================================
   1. CSS VARIABLES
   ======================================================================== */
:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-bg-soft: #f6f7fb;
  --color-bg-elevated: #ffffff;

  --color-text: #07101c;
  --color-text-soft: #4a5668;
  --color-text-muted: #8a93a3;

  --color-primary: #00bcd4;         /* Turquoise accent */
  --color-primary-soft: rgba(0, 188, 212, 0.08);
  --color-primary-strong: #0097a7;

  --color-gold: #f4c36a;            /* Premium gold */
  --color-gold-soft: rgba(244, 195, 106, 0.14);

  --color-navy: #06152b;            /* Deep navy */
  --color-navy-soft: #0b1e3a;

  --color-success: #1bbf6b;
  --color-warning: #ffb74d;
  --color-danger: #ff5252;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5f5;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

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

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-md: 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.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* 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-7: 1.75rem;  /* 28px */
  --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-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-soft: 0 10px 30px rgba(3, 12, 33, 0.08);
  --shadow-medium: 0 16px 40px rgba(3, 12, 33, 0.12);
  --shadow-strong: 0 22px 55px rgba(1, 8, 26, 0.18);

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

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

/* Motion-safe defaults */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms linear;
    --transition-base: 0ms linear;
    --transition-slow: 0ms linear;
  }
}

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

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

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

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

button,
[role="button"] {
  cursor: pointer;
}

:focus {
  outline: none;
}

/* Respect reduced motion preference */
@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;
  }
}

/* ========================================================================
   3. BASE STYLES
   ======================================================================== */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background: radial-gradient(circle at top left, #f3fbff 0, #ffffff 45%, #f6f7fb 100%);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

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

h1 {
  font-size: clamp(2.25rem, 1.6rem + 1.8vw, 3.25rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.75rem, 1.4rem + 0.9vw, 2.25rem);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

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

h4 {
  font-size: 1.25rem;
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

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

strong {
  font-weight: 600;
}

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

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

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

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

code,
pre {
  font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: var(--space-6) 0;
}

/* ========================================================================
   4. ACCESSIBILITY UTILITIES
   ======================================================================== */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

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

/* ========================================================================
   5. LAYOUT UTILITIES
   ======================================================================== */
.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

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

.section {
  padding-block: var(--space-10);
}

.section--alt {
  background: linear-gradient(135deg, #ffffff 0, #f4f6ff 100%);
}

.section__header {
  max-width: 640px;
  margin-bottom: var(--space-6);
}

.section__eyebrow {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

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

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

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

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

.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(2, minmax(0, 1fr));
  gap: var(--space-6);
}

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

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

/* Spacing utilities (limited, for layout tuning) */
.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-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

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

/* ========================================================================
   6. CORE COMPONENTS
   ======================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 0;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition-base),
              color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-fast),
              border-color var(--transition-base),
              opacity var(--transition-fast);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-gold), #ffd58a);
  color: #1b1431;
  box-shadow: var(--shadow-medium);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
}

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

.btn--outline {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid rgba(6, 21, 43, 0.24);
  backdrop-filter: blur(10px);
}

.btn--outline:hover {
  border-color: var(--color-gold);
  background: rgba(244, 195, 106, 0.06);
}

.btn--ghost {
  background: rgba(6, 21, 43, 0.7);
  color: #ffffff;
}

.btn--ghost:hover {
  background: rgba(6, 21, 43, 0.9);
}

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

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

/* Form elements */
label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: var(--space-1);
}

.input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(6, 21, 43, 0.13);
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  font-size: var(--font-size-md);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-fast);
}

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

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

.input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary-soft), 0 12px 30px rgba(3, 12, 33, 0.12);
  outline: none;
}

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

.input--error:focus-visible {
  box-shadow: 0 0 0 1px rgba(255, 82, 82, 0.3);
}

.form-help {
  margin-top: var(--space-1);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

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

/* Card */
.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(244, 195, 106, 0.08) 0, #ffffff 40%, #f8f9ff 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.card--elevated {
  box-shadow: var(--shadow-medium);
}

.card__eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

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

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

/* Hero / banner helpers (for large photography) */
.hero {
  position: relative;
  min-height: min(80vh, 720px);
  display: flex;
  align-items: center;
  color: #ffffff;
  background-color: #030816;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__media img,
.hero__media picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(0, 188, 212, 0.35), transparent 55%),
    linear-gradient(120deg, rgba(6, 21, 43, 0.98) 0%, rgba(6, 21, 43, 0.88) 40%, rgba(6, 21, 43, 0.4) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-10);
}

.hero__eyebrow {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 1.8vw, 3.4rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
  color: #fff;
}

.hero__subtitle {
  max-width: 32rem;
  font-size: var(--font-size-lg);
  color: #e1e7ff;
  margin-bottom: var(--space-6);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  color: #e0e5ff;
}

/* Tag / Pill */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid rgba(244, 195, 106, 0.5);
  background: rgba(6, 21, 43, 0.7);
  color: #ffe9b9;
}

.tag--light {
  background: rgba(0, 188, 212, 0.08);
  border-color: rgba(0, 188, 212, 0.28);
  color: var(--color-primary-strong);
}

/* Media frame (for gallery / images) */
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  background-color: #050b1c;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(3, 10, 24, 0.75), transparent 40%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.media-frame:hover::after {
  opacity: 1;
}

/* ========================================================================
   7. NAVIGATION & FOOTER BASICS (STRUCTURAL)
   ======================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.site-header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-nav__link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-soft);
  padding-block: 0.35rem;
  text-decoration: none;
  transition: color var(--transition-base);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-primary));
  transition: width var(--transition-base);
}

.site-nav__link:hover {
  color: var(--color-navy);
}

.site-nav__link:hover::after,
.site-nav__link--active::after {
  width: 100%;
}

.site-nav__link--active {
  color: var(--color-navy);
}

@media (max-width: 960px) {
  .site-nav {
    display: none; /* mobile nav handled separately */
  }
}

.site-footer {
  border-top: 1px solid var(--gray-200);
  background: #020718;
  color: #c4c9e5;
  padding-block: var(--space-8);
}

.site-footer a {
  color: #e3e7ff;
}

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

.site-footer__legal {
  margin-top: var(--space-4);
  font-size: var(--font-size-xs);
  color: #9fa5d0;
}

/* ========================================================================
   8. ANIMATION HELPERS
   ======================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 700ms var(--transition-base) forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
