/* ========================================================================
   Norvix Play Base Styles
   Modern, youthful, vibrant, premium, playful, dynamic
   ======================================================================== */

/* ========================================================================
   1. CSS VARIABLES
   ------------------------------------------------------------------------ */
:root {
  /* Color Palette - light foundation with vivid accents */
  --color-background: #f7f8fc;
  --color-surface: #ffffff;
  --color-surface-soft: #f2f4ff;
  --color-surface-elevated: #ffffff;

  --color-text: #0f172a;
  --color-text-soft: #4b5563;
  --color-text-muted: #6b7280;
  --color-border-subtle: #e5e7eb;

  --color-primary: #2563eb;          /* vivid blue */
  --color-primary-soft: rgba(37, 99, 235, 0.08);
  --color-primary-strong: #1d4ed8;

  --color-accent-purple: #8b5cf6;    /* energetic purple */
  --color-accent-purple-soft: rgba(139, 92, 246, 0.15);

  --color-accent-gold: #fbbf24;      /* modern gold accent */
  --color-accent-gold-soft: rgba(251, 191, 36, 0.16);

  --color-success: #16a34a;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  --color-neutral-50: #f9fafb;
  --color-neutral-100: #f3f4f6;
  --color-neutral-200: #e5e7eb;
  --color-neutral-300: #d1d5db;
  --color-neutral-400: #9ca3af;
  --color-neutral-500: #6b7280;
  --color-neutral-600: #4b5563;
  --color-neutral-700: #374151;
  --color-neutral-800: #1f2933;
  --color-neutral-900: #111827;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Poppins", "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-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-7: 1.75rem;  /* 28px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-14: 3.5rem;  /* 56px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-xs: 0.25rem;   /* 4px */
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.75rem;   /* 12px */
  --radius-lg: 1rem;      /* 16px */
  --radius-xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* Shadows - soft, premium, cinematic */
  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 4px 10px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.16);
  --shadow-lg: 0 20px 55px rgba(15, 23, 42, 0.22);

  /* Transitions / Motion */
  --transition-fast: 150ms ease-out;
  --transition-normal: 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition-slow: 420ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max-width: 1120px;
  --header-height-mobile: 64px;
  --header-height-desktop: 80px;
}

/* Reduced motion – keep variables but respect user preference */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms linear;
    --transition-normal: 0ms linear;
    --transition-slow: 0ms linear;
  }
}

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

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote,
dl, dd,
ul, ol,
fieldset, legend {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
  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;
}

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

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ========================================================================
   3. BASE STYLES
   ------------------------------------------------------------------------ */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background: radial-gradient(circle at top left, #eff4ff 0, #fdfbff 35%, #f7f8fc 80%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

/* Headings - premium, youthful, slightly condensed spacing */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  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);
}

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

strong {
  font-weight: 600;
}

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

/* Links - subtle underline on hover for readability */
a {
  position: relative;
  transition: color var(--transition-fast);
}

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

/* Base link underline effect utility (opt-in via .link) */
.link {
  text-decoration: none;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15em;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-purple));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.link:hover::after,
.link:focus-visible::after {
  transform: scaleX(1);
}

/* ========================================================================
   4. ACCESSIBILITY & FOCUS
   ------------------------------------------------------------------------ */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.6);
}

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

/* Screen-reader-only text */
.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 - center content with comfortable padding */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  max-width: calc(var(--container-max-width) + var(--space-8));
}

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

/* Section spacing */
.section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

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

/* Flex utilities */
.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 {
  display: flex;
  flex-direction: column;
}

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

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

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

.items-end {
  align-items: flex-end;
}

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

.justify-between {
  justify-content: space-between;
}

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

.gap-sm {
  gap: var(--space-3);
}

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

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

/* Grid helpers */
.grid {
  display: grid;
  gap: var(--space-4);
}

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

.grid-3 {
  display: grid;
  gap: var(--space-5);
}

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

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

/* Text utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

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

/* Background utilities */
.bg-surface { background-color: var(--color-surface); }
.bg-soft { background-color: var(--color-surface-soft); }
.bg-primary-soft { background-color: var(--color-primary-soft); }
.bg-purple-soft { background-color: var(--color-accent-purple-soft); }
.bg-gold-soft { background-color: var(--color-accent-gold-soft); }

/* Spacing utilities (subset) */
.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-2); }
.mt-sm { margin-top: var(--space-3); }
.mt-md { margin-top: var(--space-4); }
.mt-lg { margin-top: var(--space-6); }
.mt-xl { margin-top: var(--space-10); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-2); }
.mb-sm { margin-bottom: var(--space-3); }
.mb-md { margin-bottom: var(--space-4); }
.mb-lg { margin-bottom: var(--space-6); }
.mb-xl { margin-bottom: var(--space-10); }

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

/* Radius utilities */
.rounded-xs { border-radius: var(--radius-xs); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow utilities */
.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Hero height helper for cinematic slider */
.hero-full {
  min-height: calc(100vh - var(--header-height-mobile));
}

@media (min-width: 1024px) {
  .hero-full {
    min-height: calc(100vh - var(--header-height-desktop));
  }
}

/* ========================================================================
   6. COMPONENTS
   ------------------------------------------------------------------------ */

/* HEADER LAYOUT HELPERS
   - Logo centered
   - Navigation evenly distributed left/right */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(247, 248, 252, 0.9));
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height-mobile);
}

@media (min-width: 768px) {
  .header-inner {
    height: var(--header-height-desktop);
  }
}

.header-nav-left,
.header-nav-right {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .header-nav-left,
  .header-nav-right {
    display: flex;
  }
}

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

.nav-link {
  position: relative;
  font-size: 12px;
  font-weight: 500;

  text-transform: uppercase;
  color: var(--color-text-soft);
  padding: 0.35rem 0;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-purple));
  transform-origin: center;
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* HERO OVERLAY UTILITY FOR SLIDER
   Soft gradient overlay for readability */
.hero-overlay {
  position: relative;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.45), transparent 55%),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.6));
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* BUTTONS - premium, playful, animated */

.btn {
  --btn-bg: var(--color-primary);
  --btn-bg-hover: var(--color-primary-strong);
  --btn-color: #ffffff;
  --btn-border: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-weight: 600;
  font-size: var(--font-size-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast);
}

.btn:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.45);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--color-primary), var(--color-accent-purple));
  --btn-bg-hover: linear-gradient(135deg, var(--color-accent-purple), var(--color-accent-gold));
  --btn-color: #ffffff;
}

.btn-secondary {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-bg-hover: rgba(255, 255, 255, 0.18);
  --btn-color: #ffffff;
  --btn-border: rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(37, 99, 235, 0.08);
  --btn-color: var(--color-text);
  --btn-border: rgba(148, 163, 184, 0.5);
  box-shadow: none;
}

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

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: var(--font-size-base);
}

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

/* FORM ELEMENTS */

.input,
.textarea,
.select {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(255, 255, 255, 0.95);
  padding: 0.7rem 0.9rem;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast),
    transform 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 {
  outline: none;
  border-color: var(--color-primary);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.18),
    0 14px 30px rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
}

.input[disabled],
.textarea[disabled],
.select[disabled] {
  cursor: not-allowed;
  background-color: var(--color-neutral-100);
  color: var(--color-text-muted);
}

/* FORM FIELD WRAPPER */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: var(--space-4);
}

.form-label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-soft);
}

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

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

/* CARDS - interactive, hover elevation */

.card {
  position: relative;
  background-color: var(--color-surface-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(148, 163, 184, 0.18);
  overflow: hidden;
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-fast),
    background var(--transition-slow);
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.3);
}

.card:hover::before {
  opacity: 1;
}

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

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

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

/* BADGES - for events, highlights */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
}

.badge-primary {
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
  border-color: rgba(37, 99, 235, 0.3);
}

.badge-gold {
  background: rgba(251, 191, 36, 0.12);
  color: #92400e;
  border-color: rgba(251, 191, 36, 0.5);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.12);
  color: #4c1d95;
  border-color: rgba(139, 92, 246, 0.5);
}

/* HERO CTA GROUP */

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* TAGLINE / EYEBROW TEXT */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.8rem 0.2rem 0.3rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #e5e7eb;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.eyebrow-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fef3c7 0, #fbbf24 40%, #d97706 100%);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.8);
}

/* EVENT LIST SIMPLE LAYOUT */

.event-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.event-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

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

/* FOOTER BASE STYLES */

.footer {
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  padding-bottom: var(--space-8);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), #020617 65%);
  color: #e5e7eb;
}

.footer a {
  color: #e5e7eb;
}

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

.footer-meta {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  font-size: var(--font-size-xs);
  color: #94a3b8;
}

/* MAP WRAPPER BASIC STYLE */

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* RESPONSIVE HELPERS */

.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile { display: block; }
}

.show-mobile {
  display: block;
}

@media (min-width: 768px) {
  .show-mobile { display: none; }
}

/* ========================================================================
   END BASE CSS
   ------------------------------------------------------------------------ */
