/* ========================================================================
   Variables
   ======================================================================== */

:root {
  /* Color palette */
  --color-bg: #050608; /* near-black for immersive backdrop */
  --color-surface: #111318;
  --color-surface-alt: #181b22;
  --color-text: #f7f3ea;
  --color-text-muted: #c1b9ac;

  --color-primary: #0f5f3c; /* deep poker green */
  --color-primary-soft: #174f38;
  --color-primary-alt: #1a7c4e;

  --color-accent-gold: #d8b36a; /* soft gold accents */
  --color-accent-gold-soft: rgba(216, 179, 106, 0.2);

  --color-success: #2fbf71;
  --color-warning: #ffb347;
  --color-danger: #ff5c5c;

  --color-gray-50: #f5f5f5;
  --color-gray-100: #e4e4e4;
  --color-gray-200: #cfcfcf;
  --color-gray-300: #b8b8b8;
  --color-gray-400: #9a9a9a;
  --color-gray-500: #7a7a7a;
  --color-gray-600: #5c5c5c;
  --color-gray-700: #444444;
  --color-gray-800: #2e2e2e;
  --color-gray-900: #191919;

  /* Typography */
  --font-sans: "Inter", 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-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.1;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

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

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

  /* Shadows */
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-elevated: 0 18px 45px rgba(0, 0, 0, 0.5);
  --shadow-subtle: 0 2px 10px 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;
}

/* Respect prefers-reduced-motion early */
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
}

/* ========================================================================
   Reset / Normalize
   ======================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
  margin: 0;
}

body {
  min-height: 100vh;
}

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

img {
  height: auto;
}

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

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

textarea {
  resize: vertical;
}

/* Remove default link underlines and focus outlines (we add custom below) */
 a {
  text-decoration: none;
  color: inherit;
}

:focus {
  outline: none;
}

/* ========================================================================
   Base Styles
   ======================================================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background: radial-gradient(circle at top, #182022 0, #050608 55%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

/* Headings */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  line-height: var(--line-height-tight);
}

h1 {
  font-size: clamp(2.25rem, 3vw + 1.5rem, 3.25rem);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.75rem, 2.2vw + 1.1rem, 2.5rem);
}

h3 {
  font-size: clamp(1.4rem, 1.3vw + 1rem, 1.8rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--space-8);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

strong {
  font-weight: 600;
}

small {
  font-size: 0.875em;
}

/* Links */

a {
  color: var(--color-accent-gold);
  transition: color var(--transition-base), opacity var(--transition-base);
}

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

a:active {
  opacity: 0.7;
}

/* Lists */

ul,
ol {
  padding-left: 1.25rem;
  margin-top: 0;
  margin-bottom: var(--space-8);
}

li {
  margin-bottom: 0.25rem;
}

/* Horizontal rule */

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: var(--space-16) 0;
}

/* ========================================================================
   Utilities
   ======================================================================== */

/* Layout / Container */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--space-12);
}

@media (max-width: 640px) {
  .container {
    padding-inline: var(--space-8);
  }
}

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

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

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

/* 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-col {
  flex-direction: column;
}

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

.gap-xs { gap: var(--space-4); }
.gap-sm { gap: var(--space-6); }
.gap-md { gap: var(--space-10); }
.gap-lg { gap: var(--space-16); }
.gap-xl { gap: var(--space-24); }

/* Grid helpers */

.grid {
  display: grid;
}

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

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

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

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

.hidden { display: none !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;
}

/* ========================================================================
   Components
   ======================================================================== */

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  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);
  position: relative;
  isolation: isolate;
}

.btn-primary {
  background: radial-gradient(circle at top left, #248757, var(--color-primary));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-alt), #248757);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(216, 179, 106, 0.7);
  color: var(--color-accent-gold);
}

.btn-outline:hover {
  background: var(--color-accent-gold-soft);
  box-shadow: var(--shadow-subtle);
}

.btn-ghost {
  background: rgba(15, 95, 60, 0.12);
  color: var(--color-text);
}

.btn-ghost:hover {
  background: rgba(15, 95, 60, 0.22);
}

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

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

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

/* Inputs & Forms */

.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(8, 10, 14, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.form-control::placeholder {
  color: rgba(193, 185, 172, 0.7);
}

.form-control:focus-visible {
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 1px var(--color-accent-gold-soft), 0 0 0 4px rgba(15, 95, 60, 0.45);
  background-color: rgba(8, 10, 14, 1);
}

.form-label {
  display: block;
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

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

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

select.form-control {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-accent-gold) 55%),
    linear-gradient(135deg, var(--color-accent-gold) 45%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Cards (for event packages, spaces, etc.) */

.card {
  background: radial-gradient(circle at top, rgba(216, 179, 106, 0.12), rgba(17, 19, 24, 0.98));
  border-radius: var(--radius-lg);
  padding: var(--space-16);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(15, 95, 60, 0.16), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

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

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

.card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  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);
}

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

/* Image frame for event & poker setups */

.image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(216, 179, 106, 0.35);
  box-shadow: var(--shadow-elevated);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tag / Pill (e.g. "Szülinap", "Csapatépítő", "Tematikus est") */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(216, 179, 106, 0.6);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  background: rgba(5, 6, 8, 0.9);
}

/* Timeline (client journey helper) */

.timeline {
  position: relative;
  padding-left: 1.75rem;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent-gold), rgba(216, 179, 106, 0));
}

.timeline-step {
  position: relative;
  margin-bottom: var(--space-12);
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent-gold);
  box-shadow: 0 0 0 4px rgba(216, 179, 106, 0.25);
}

/* ========================================================================
   Accessibility & Focus Styles
   ======================================================================== */

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

button:focus-visible,
.btn:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 3px;
}

/* Motion reduction */

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