/* =========================================================
   Ceska Klub Zona - Base Styles
   Modern, minimalist, elegant, warm, inviting, cinematic
   ========================================================= */

/* =========================
   1) CSS Custom Properties
   ========================= */
:root {
  /* Colors – light palette with warm cream & soft yellow accents */
  --color-bg: #faf6f0; /* page background */
  --color-surface: #ffffff; /* cards, panels */
  --color-surface-soft: #f7f1e7;

  --color-text: #1a1a1a;
  --color-text-soft: #5c554b;
  --color-muted: #999189;

  --color-primary: #e3b75f; /* warm soft yellow */
  --color-primary-soft: rgba(227, 183, 95, 0.15);
  --color-primary-dark: #c79a3c;

  --color-success: #3c8c6a;
  --color-warning: #d29b34;
  --color-danger: #c54a4a;

  --gray-50: #f9f7f5;
  --gray-100: #f2ece4;
  --gray-200: #e5ddd2;
  --gray-300: #d4c7b8;
  --gray-400: #b6a38f;
  --gray-500: #8e7c67;
  --gray-600: #6c5f50;
  --gray-700: #4c4338;
  --gray-800: #342e27;
  --gray-900: #1f1a15;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  --font-heading: "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 – hero headings */

  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.6;

  /* 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-sm: 0.25rem; /* 4px */
  --radius-md: 0.5rem;  /* 8px */
  --radius-lg: 0.75rem; /* 12px */
  --radius-xl: 1rem;    /* 16px */
  --radius-pill: 999px;

  /* Shadows – soft, cinematic */
  --shadow-soft: 0 8px 24px rgba(12, 7, 3, 0.08);
  --shadow-medium: 0 18px 45px rgba(12, 7, 3, 0.16);
  --shadow-subtle-top: 0 -10px 30px rgba(0, 0, 0, 0.12);

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

  /* Layout */
  --container-max-width: 1200px;
  --nav-height: 72px;
}

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

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

body {
  margin: 0;
}

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

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

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

img {
  height: auto;
}

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

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

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

/* Respect prefers-reduced-motion */
@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;
  }
}

/* =========================
   3) Base Typography & Layout
   ========================= */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 100vh;
}

/* Headings – modern, cinematic scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
}

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

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

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

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

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

h6 {
  font-size: var(--font-size-lg);
  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;
}

/* Links */
a {
  position: relative;
  color: var(--color-primary-dark);
  transition: color var(--transition-base);
}

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

a:not(.btn, .button, .nav-link) {
  text-decoration: none;
}

a:not(.btn, .button, .nav-link)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.12em;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  opacity: 0.7;
  transform: scaleX(0.6);
  transform-origin: left;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

a:not(.btn, .button, .nav-link):hover::after {
  opacity: 1;
  transform: scaleX(1);
}

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

strong {
  font-weight: 600;
}

/* =========================
   4) Accessibility Helpers
   ========================= */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

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

/* =========================
   5) Utilities
   ========================= */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

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

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

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

.section--xl {
  padding-block: 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-column {
  flex-direction: column;
}

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

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

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

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

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 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));
  }
}

/* Alignment & text */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-muted { color: var(--color-muted); }

/* Width helpers */
.w-100 { width: 100%; }

/* Spacing helpers (margin / padding) */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.my-8 { margin-block: var(--space-8); }

.py-4 { padding-block: var(--space-4); }
.py-6 { padding-block: var(--space-6); }
.py-8 { padding-block: var(--space-8); }

/* Hero-specific helpers for cinematic layout */
.hero {
  position: relative;
  min-height: min(85vh, 900px);
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.03);
  filter: saturate(1.1) contrast(1.03);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(6, 3, 1, 0.68) 0%,
    rgba(12, 7, 3, 0.45) 45%,
    rgba(35, 22, 8, 0.78) 100%
  );
  mix-blend-mode: multiply;
  z-index: -1;
}

.hero__content {
  max-width: 640px;
}

.hero__eyebrow {
  font-size: var(--font-size-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-3);
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-normal);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-6);
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 600px) {
  .hero {
    align-items: flex-end;
    padding-bottom: var(--space-12);
  }

  .hero__content {
    max-width: 100%;
  }
}

/* Overlay utility for cards over images */
.overlay-soft {
  background: linear-gradient(
    135deg,
    rgba(10, 6, 2, 0.78),
    rgba(35, 23, 9, 0.9)
  );
  backdrop-filter: blur(18px);
}

/* =========================
   6) Components
   ========================= */

/* Buttons – primary / secondary, rounded, subtle glow */
.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #1b1309;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

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

.btn-ghost {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--gray-200);
}

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

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

/* Inputs & form elements */
.input,
textarea,
select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background-color: #ffffff;
  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);
}

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

.input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary-soft), var(--shadow-soft);
}

.input--error {
  border-color: var(--color-danger);
}

label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--gray-800);
}

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

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

/* Card – for experiences, events, dishes, etc. */
.card {
  position: relative;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
}

.card--soft {
  background: linear-gradient(145deg, #ffffff, var(--color-surface-soft));
  border-color: rgba(255, 255, 255, 0.9);
}

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

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

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

/* Tag / badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-primary-soft);
  color: var(--gray-800);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Layout component: elevated section card on hero / reservations */
.surface-elevated {
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

/* Map wrapper – keeps iframe responsive */
.map-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================
   7) Navigation & Footer (base styles only)
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 240, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 218, 202, 0.9);
}

.site-header__inner {
  height: var(--nav-height);
}

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

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

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link--active::after {
  width: 100%;
}

.nav-link--active {
  color: var(--gray-900);
}

.site-footer {
  border-top: 1px solid rgba(230, 218, 202, 0.9);
  background-color: #f4ede2;
  padding-block: var(--space-8);
  color: var(--gray-700);
}

.site-footer small {
  color: var(--gray-600);
}

/* =========================
   8) Media Queries – fine tuning
   ========================= */

@media (min-width: 1024px) {
  .hero__title {
    font-size: clamp(3rem, 4.2vw, 3.6rem);
  }

  .hero__subtitle {
    max-width: 34rem;
  }

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

@media (max-width: 767px) {
  .site-header__inner {
    justify-content: space-between;
  }

  .nav-list {
    display: none; /* can be replaced by JS-driven mobile nav */
  }
}
