/* =========================================================
   Variables
   ========================================================= */
:root {
  /* Colors */
  --color-bg: #F3F3E3;
  --color-text: #000000;
  --color-primary: #FFDE4D; /* main cards, CTAs, highlights */
  --color-accent: #FF4E88; /* hover, active, triggers */
  --color-success: #8BC34A;
  --color-warning: #FFC107;
  --color-danger: #F44336;

  --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, "Segoe UI", sans-serif;
  --font-display: "Impact", "Anton", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (px) */
  --space-0: 0;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-72: 72px;
  --space-80: 80px;
  --space-96: 96px;

  /* Radius */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* Neo‑brutalist offsets & shadows */
  --shadow-none: none;
  --shadow-hard: 4px 4px 0 #000000;
  --shadow-hard-lg: 8px 8px 0 #000000;

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 180ms ease-out;
  --transition-slow: 260ms ease-out;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

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

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

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

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

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

/* Explicit note from spec */
ul {
  list-style: none !important;
}

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

/* Reduce motion for users who prefer it */
@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;
  }
}

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

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

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

h2 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-20);
}

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

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

p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-16);
}

strong {
  font-weight: 700;
}

a {
  position: relative;
}

a:hover,
a:focus-visible {
  color: var(--color-accent);
}

/* =========================================================
   Accessibility & Focus
   ========================================================= */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

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

/* Flex helpers */
.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-8 {
  gap: var(--space-8);
}

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

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

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

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

/* Spacing utilities (margin/padding-bottom for stacked blocks) */
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }
.mb-16 { margin-bottom: var(--space-16) !important; }
.mb-24 { margin-bottom: var(--space-24) !important; }
.mb-32 { margin-bottom: var(--space-32) !important; }
.mb-40 { margin-bottom: var(--space-40) !important; }

.pt-40 { padding-top: var(--space-40) !important; }
.pb-40 { padding-bottom: var(--space-40) !important; }

/* Sticker‑style badge utility */
.badge-sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background-color: var(--color-primary);
  border: 3px solid #000000;
  box-shadow: var(--shadow-hard);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =========================================================
   Header & Navigation Base
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: var(--color-bg);
  border-bottom: 3px solid #000000;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-12);
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  background-color: var(--color-primary);
  border: 3px solid #000000;
  box-shadow: var(--shadow-hard);
}

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

.site-nav a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background-color: var(--color-accent);
  color: var(--color-text);
}

/* Burger / nav toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 3px solid #000000;
  background-color: var(--color-primary);
  box-shadow: var(--shadow-hard);
  /* required in spec */
  flex-direction: column;
}

.nav-toggle__bar {
  width: 22px;
  height: 3px;
  background-color: #000000;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    gap: 5px;
  }

  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background-color: var(--color-bg);
    border-bottom: 3px solid #000000;
    flex-direction: column;
    padding: var(--space-16);
    gap: var(--space-8);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-base), opacity var(--transition-base);
  }

  .site-nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
}

/* =========================================================
   Buttons (CTAs)
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: var(--color-primary);
  color: var(--color-text);
  border-radius: var(--radius-md);
  border: 3px solid #000000;
  box-shadow: var(--shadow-hard);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.btn:hover,
.btn:focus-visible {
  background-color: var(--color-accent);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard-lg);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-hard);
}

.btn--ghost {
  background-color: transparent;
  border-style: dashed;
}

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

/* =========================================================
   Forms & Inputs
   ========================================================= */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-16);
}

label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 3px solid #000000;
  background-color: #ffffff;
  box-shadow: var(--shadow-hard);
  font-size: var(--font-size-base);
}

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

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-hard-lg);
}

input::placeholder,
textarea::placeholder {
  color: var(--gray-500);
}

.form-help {
  font-size: var(--font-size-xs);
  color: var(--gray-700);
}

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

/* =========================================================
   Cards & Blocks
   ========================================================= */
.card {
  position: relative;
  padding: var(--space-20);
  background-color: var(--color-primary);
  border-radius: var(--radius-lg);
  border: 3px solid #000000;
  box-shadow: var(--shadow-hard-lg);
}

.card--alt {
  background-color: #ffffff;
}

.card--offset {
  transform: translate(-4px, -4px);
}

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

.card-title {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-8);
}

.card-meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Asymmetrical brutal layout helper for event sections */
.brut-block {
  border: 3px solid #000000;
  background-color: var(--color-primary);
  padding: var(--space-24);
  box-shadow: 6px 6px 0 #000000;
}

.brut-block--accent {
  background-color: var(--color-accent);
}

/* =========================================================
   Neo‑Brutalist Decorations
   ========================================================= */
.outline-thick {
  border: 3px solid #000000;
}

.shadow-hard {
  box-shadow: var(--shadow-hard);
}

.shadow-hard-lg {
  box-shadow: var(--shadow-hard-lg);
}

.sticker-corner {
  position: relative;
}

.sticker-corner::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 32px;
  height: 32px;
  background-color: var(--color-accent);
  border: 3px solid #000000;
  border-left: none;
  border-bottom: none;
}

/* =========================================================
   FAQ Base
   ========================================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.faq-item {
  background-color: var(--color-primary);
  border-radius: var(--radius-md);
  border: 3px solid #000000;
  padding: var(--space-16);
  box-shadow: var(--shadow-hard);
}

.faq-question {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-8);
}

.faq-answer {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

/* =========================================================
   Footer Base
   ========================================================= */
.site-footer {
  margin-top: var(--space-40);
  padding-block: var(--space-24);
  border-top: 3px solid #000000;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

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

.site-footer-nav a {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  color: #000000 !important;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus-visible {
  background-color: var(--color-accent);
}

.site-footer-meta {
  font-size: var(--font-size-xs);
  color: var(--gray-700);
}

@media (min-width: 720px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

/* =========================================================
   Page‑Level Helpers (Hero, Sections)
   ========================================================= */
.hero {
  padding-block: var(--space-48);
}

.hero-layout {
  display: grid;
  gap: var(--space-24);
}

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    align-items: stretch;
  }
}

.hero-title {
  font-size: clamp(2.8rem, 8vw, 4rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-16);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  max-width: 34rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin-top: var(--space-20);
}

/* =========================================================
   Misc Utilities
   ========================================================= */
.text-center { text-align: center; }
.text-right { text-align: right; }

.hide-overflow-x {
  overflow-x: hidden;
}

.badge-loud {
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--color-accent);
  color: var(--color-text);
  border-radius: var(--radius-pill);
  border: 3px solid #000000;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* End of base.css */

/* Age restriction modal for Brnoriva */

.age-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.age-modal.is-visible {
  display: block;
}

.age-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.age-modal__content {
  position: relative;
  max-width: 520px;
  margin: 10vh auto;
  padding: var(--space-24);
  background-color: var(--color-primary);
  border-radius: var(--radius-lg);
  border: 4px solid #000000;
  box-shadow: var(--shadow-hard-lg);
}

.age-modal__badge {
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--color-accent);
  border-radius: var(--radius-pill);
  border: 3px solid #000000;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-16);
}

.age-modal__title {
  font-family: var(--font-display);
  margin-bottom: var(--space-16);
}

.age-modal__description {
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-20);
}

.age-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}

.age-modal__btn {
  flex: 1 1 160px;
}

.age-modal__btn--no {
  background-color: transparent;
  border-style: dashed;
}

.age-modal__btn--no:hover,
.age-modal__btn--no:focus-visible {
  background-color: var(--color-accent);
}

@media (max-width: 600px) {
  .age-modal__content {
    margin-inline: var(--space-16);
  }
}
