/* ========================================================================
   Modern Lounge Hall – Base Styles
   ======================================================================== */

/* ========================================================================
   Variables
   ======================================================================== */
:root {
  /* Color Palette - Modern Lounge / Premium Hospitality */
  --color-bg: #f9f5f0; /* light, warm base */
  --color-bg-alt: #ffffff;
  --color-bg-soft: #f3ebe1;

  --color-text: #25262b; /* graphite */
  --color-text-muted: #6f6f78;
  --color-border-subtle: #e0d6c8;

  --color-primary: #c59a5a; /* champagne / soft gold */
  --color-primary-soft: rgba(197, 154, 90, 0.08);
  --color-primary-strong: #b48a4f;

  --color-success: #3f8f6b;
  --color-warning: #e0a11b;
  --color-danger: #c64343;

  /* Neutral grays for structure */
  --gray-50: #f8fafc;
  --gray-100: #edf1f4;
  --gray-200: #d9dde3;
  --gray-300: #c4c8d0;
  --gray-400: #9aa0ae;
  --gray-500: #707787;
  --gray-600: #555b69;
  --gray-700: #414552;
  --gray-800: #2c2f38;
  --gray-900: #181a20;

  /* 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-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.2;
  --line-height-snug: 1.35;
  --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-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-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows - soft, lounge-style */
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-medium: 0 18px 45px rgba(15, 23, 42, 0.14);
  --shadow-subtle-top: 0 -10px 30px rgba(15, 23, 42, 0.06);

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

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

/* Reduced motion override */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-normal: 0ms;
    --transition-slow: 0ms;
  }
}

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

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

body {
  margin: 0;
}

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

ul,
ol {
  padding-left: 1.25rem;
}

img,
svg,
video,
canvas,
audio,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

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

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

*::-moz-focus-inner {
  border: 0;
}

/* ========================================================================
   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, #fffdf8 0, var(--color-bg) 55%, #f3ebe1 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

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

h1 { font-size: var(--font-size-5xl); letter-spacing: 0.02em; }

h2 { font-size: var(--font-size-4xl); letter-spacing: 0.015em; }

h3 { font-size: var(--font-size-3xl); }

h4 { font-size: var(--font-size-2xl); }

h5 { font-size: var(--font-size-xl); }

h6 { font-size: var(--font-size-lg); }

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

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

strong,
b {
  font-weight: 600;
}

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

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

hr {
  border: 0;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-8) 0;
}

/* Links - elegant underline on interaction */
a {
  position: relative;
  transition: color var(--transition-normal);
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1em;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), var(--color-primary), rgba(0, 0, 0, 0));
  transform-origin: center;
  transform: scaleX(0);
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-fast);
}

a:hover::after,
a:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

/* ========================================================================
   Accessibility & Focus
   ======================================================================== */
:focus {
  outline: none;
}

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

/* Screen reader only utility */
.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;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================================================
   Layout Utilities
   ======================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

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

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

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

/* Flex helpers */
.d-flex { display: flex; }
.inline-flex { display: inline-flex; }

.flex-row { flex-direction: row; }
.flex-column { 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; }
.justify-around { justify-content: space-around; }
.justify-end { justify-content: flex-end; }

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

/* Grid helpers */
.d-grid { display: grid; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

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

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

/* Spacing utilities (margin / padding - y only to keep base lean) */
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-8 { margin-top: var(--space-8) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }

.py-8 {
  padding-top: var(--space-8) !important;
  padding-bottom: var(--space-8) !important;
}

/* Text utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }

/* ========================================================================
   Components – Buttons
   ======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition-normal),
    color var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-fast);
  background-clip: padding-box;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0, var(--color-primary-strong) 100%);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(197, 154, 90, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(197, 154, 90, 0.42);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 20px rgba(197, 154, 90, 0.35);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.6);
  color: var(--gray-900);
  border-color: rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-ghost {
  background-color: transparent;
  color: var(--gray-900);
  border-color: rgba(148, 163, 184, 0.35);
}

.btn-ghost:hover {
  background-color: var(--color-primary-soft);
  border-color: var(--color-primary);
}

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

.btn:focus-visible {
  outline: 2px solid rgba(197, 154, 90, 0.8);
  outline-offset: 3px;
}

/* CTA variations for hero in Hungarian context */
.btn-hero-primary {
  min-width: 180px;
}

.btn-hero-secondary {
  min-width: 160px;
}

/* ========================================================================
   Components – Form Elements
   ======================================================================== */
.input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  transition: border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    background-color var(--transition-fast);
}

.input::placeholder,
textarea::placeholder {
  color: rgba(107, 114, 128, 0.9);
}

.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(197, 154, 90, 0.5), 0 10px 30px rgba(15, 23, 42, 0.12);
  background-color: #ffffff;
}

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

label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gray-700);
}

.field-error {
  margin-top: 0.25rem;
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
}

/* ========================================================================
   Components – Card
   ======================================================================== */
.card {
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.7);
  backdrop-filter: blur(8px);
}

.card + .card {
  margin-top: var(--space-6);
}

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

.card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  margin-bottom: 0.25rem;
}

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

/* Variant for hero / highlights */
.card-elevated {
  box-shadow: var(--shadow-medium);
}

/* ========================================================================
   Hero & Header Base (structure only)
   ======================================================================== */
/* Header – centered logo, balanced nav (layout foundation) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

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

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

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

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

.nav-link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-700);
  padding: 0.25rem 0;
  position: relative;
}

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

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

.nav-link[aria-current="page"] {
  color: var(--gray-900);
}

/* Hero wrapper – full width, slider-ready */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height-mobile));
  color: #ffffff;
  display: flex;
  align-items: stretch;
}

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

.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 900ms ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(9, 10, 15, 0.78) 0%,
    rgba(19, 20, 28, 0.72) 35%,
    rgba(37, 38, 43, 0.55) 65%,
    rgba(37, 38, 43, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.hero-eyebrow {
  font-size: var(--font-size-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.8);
  margin-bottom: var(--space-3);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: var(--space-4);
  color: #ffffff;
}

.hero-subtitle {
  max-width: 36rem;
  font-size: var(--font-size-lg);
  color: rgba(249, 250, 251, 0.9);
  margin-bottom: var(--space-6);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ========================================================================
   Footer Base
   ======================================================================== */
.site-footer {
  background-color: #111827;
  color: rgba(249, 250, 251, 0.82);
  padding-top: var(--space-10);
  padding-bottom: var(--space-8);
  border-top: 1px solid rgba(55, 65, 81, 0.9);
}

.site-footer a {
  color: inherit;
}

.site-footer a::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(209, 213, 219, 0.9), rgba(0, 0, 0, 0));
}

.footer-heading {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-3);
}

.footer-meta {
  border-top: 1px solid rgba(75, 85, 99, 0.9);
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  font-size: var(--font-size-xs);
  color: rgba(156, 163, 175, 0.9);
}

/* ========================================================================
   Utility – Section titles (Hungarian SEO friendly)
   ======================================================================== */
.section-heading {
  font-family: var(--font-display);
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-2);
}

.section-intro {
  max-width: 34rem;
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
}
