/* =============================================================
   EVENTAZZA — Design System
   Component library: buttons, cards, typography, grids, badges
   ============================================================= */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Colors */
  --c-bg:         #0a0a0f;
  --c-surface:    #12121a;
  --c-surface-2:  #1a1a24;
  --c-card:       #1e1e2a;
  --c-card-hover: #232330;
  --c-border:     rgba(201,168,76,0.15);
  --c-border-hover: rgba(201,168,76,0.4);
  --c-gold:       #c9a84c;
  --c-gold-light: #e8d5a3;
  --c-gold-dark:  #a0803a;
  --c-text:       #f0ece4;
  --c-muted:      #8a8070;
  --c-muted-2:    #5a5248;
  --c-footer-bg:  #080810;
  --c-white:      #ffffff;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', system-ui, sans-serif;
  --font-accent:  'Montserrat', system-ui, sans-serif;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;
  --s-32: 8rem;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 20px rgba(201,168,76,0.25);
  --shadow-gold-strong: 0 0 40px rgba(201,168,76,0.4);

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms ease;
  --t-spring: 400ms cubic-bezier(0.34,1.56,0.64,1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ───────────────────────────────────────────────────── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--c-gold);
  text-decoration: none;
  transition: color var(--t-base);
}

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

ul { list-style: none; }

/* ── Typography Scale ───────────────────────────────────────── */
.display-1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--c-text);
}

.display-3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--c-text);
}

.display-4 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-text);
}

.body-lg {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--c-muted);
}

.body-md {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-muted);
}

.body-sm {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--c-muted);
}

.label {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.label-lg {
  font-family: var(--font-accent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gold);
}

/* ── Gold Accent Text ───────────────────────────────────────── */
.text-gold   { color: var(--c-gold); }
.text-muted  { color: var(--c-muted); }
.text-white  { color: var(--c-text); }

/* ── Dividers ───────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
  border: none;
  margin: var(--s-8) 0;
  opacity: 0.5;
}

.divider-left {
  height: 1px;
  background: linear-gradient(90deg, var(--c-gold), transparent);
  border: none;
  margin: var(--s-4) 0;
  width: 60px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.875rem 2rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--t-base);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary — gold filled */
.btn-primary {
  background: var(--c-gold);
  color: #0a0a0f;
  border-color: var(--c-gold);
  box-shadow: var(--shadow-gold);
}

.btn-primary::before {
  background: rgba(255,255,255,0.1);
}

.btn-primary:hover {
  background: var(--c-gold-light);
  border-color: var(--c-gold-light);
  box-shadow: var(--shadow-gold-strong);
  color: #0a0a0f;
}

/* Secondary — outlined gold */
.btn-secondary {
  background: transparent;
  color: var(--c-gold);
  border-color: var(--c-gold);
}

.btn-secondary:hover {
  background: var(--c-gold);
  color: #0a0a0f;
  box-shadow: var(--shadow-gold);
}

/* Ghost — text only */
.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}

.btn-ghost:hover {
  color: var(--c-gold);
  transform: none;
}

.btn-ghost:hover::after {
  transform: scaleX(1);
}

/* Small button variant */
.btn-sm {
  font-size: 0.75rem;
  padding: 0.625rem 1.25rem;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
  opacity: 0;
  transition: opacity var(--t-base);
}

.card-hover {
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
  border-color: var(--c-border-hover);
}

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

.card-featured {
  background: linear-gradient(135deg, var(--c-card) 0%, #2a2040 100%);
  border-color: rgba(201,168,76,0.3);
  box-shadow: var(--shadow-gold);
}

/* Card accent strip */
.card-accent {
  position: relative;
  padding-top: calc(var(--s-8) + 3px);
}

.card-accent::after {
  content: '';
  position: absolute;
  top: 0;
  left: var(--s-8);
  width: 40px;
  height: 3px;
  background: var(--c-gold);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}

/* ── Icon containers ────────────────────────────────────────── */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--c-gold);
  flex-shrink: 0;
  transition: all var(--t-base);
}

.card-hover:hover .icon-circle {
  background: var(--c-gold);
  color: #0a0a0f;
  box-shadow: var(--shadow-gold);
}

.icon-circle svg {
  width: 24px;
  height: 24px;
}

/* ── Badges / Tags ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-accent);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-full);
  background: rgba(201,168,76,0.12);
  color: var(--c-gold);
  border: 1px solid rgba(201,168,76,0.3);
}

.badge-dark {
  background: rgba(255,255,255,0.06);
  color: var(--c-muted);
  border-color: rgba(255,255,255,0.08);
}

/* ── Grid Utilities ─────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-8);
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
}

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

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

/* ── Section Wrappers ───────────────────────────────────────── */
.section {
  padding: var(--s-24) 0;
}

.section-sm {
  padding: var(--s-16) 0;
}

.section-lg {
  padding: var(--s-32) 0;
}

.section-dark {
  background: var(--c-bg);
}

.section-surface {
  background: var(--c-surface);
}

.section-card {
  background: var(--c-card);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-8);
}

@media (max-width: 768px) {
  .section { padding: var(--s-16) 0; }
  .section-lg { padding: var(--s-24) 0; }
  .container { padding: 0 var(--s-6); }
}

/* ── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
  padding: 7rem 0 4rem;
  background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%);
  border-bottom: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

.page-hero .breadcrumb a {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  text-transform: uppercase;
}

.page-hero .breadcrumb a:hover { color: var(--c-gold); }

.page-hero .breadcrumb span {
  color: var(--c-muted-2);
  font-size: 0.75rem;
}

/* ── Stat Numbers ───────────────────────────────────────────── */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--c-gold);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: var(--s-2);
}

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #1a1530 0%, var(--c-surface) 50%, #1a1530 100%);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: var(--s-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 50%, rgba(201,168,76,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Form Styles ────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}

.form-label {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.form-input,
.form-textarea,
.form-select {
  background: var(--c-surface-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.875rem 1rem;
  width: 100%;
  transition: border-color var(--t-base), box-shadow var(--t-base);
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--c-muted-2);
}

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

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8070' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-error {
  font-size: 0.8125rem;
  color: #e07070;
  margin-top: var(--s-1);
}

/* ── Utility Classes ────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.relative     { position: relative; }
.overflow-hidden { overflow: hidden; }
.flex         { display: 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; }
.gap-4        { gap: var(--s-4); }
.gap-6        { gap: var(--s-6); }
.gap-8        { gap: var(--s-8); }
.mt-2  { margin-top: var(--s-2); }
.mt-4  { margin-top: var(--s-4); }
.mt-6  { margin-top: var(--s-6); }
.mt-8  { margin-top: var(--s-8); }
.mt-12 { margin-top: var(--s-12); }
.mb-4  { margin-bottom: var(--s-4); }
.mb-6  { margin-bottom: var(--s-6); }
.mb-8  { margin-bottom: var(--s-8); }

/* ── Skip Navigation (Accessibility) ───────────────────────── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--c-gold);
  color: #0a0a0f;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 9999;
  transition: top var(--t-fast);
}

.skip-nav:focus {
  top: 0;
}
