/* =========================================================
   Moranovas Base Stylesheet
   Theme: Eco-Bistro, Rustic, Light, Airy, Warm, Authentic
   ========================================================= */

/* =========================================================
   1. CSS VARIABLES (DESIGN TOKENS)
   ========================================================= */
:root {
  /* Color Palette - Eco Bistro / Rustic Czech Cafe */
  --color-bg: #f7f3ea;              /* soft light pearl / sand */
  --color-surface: #ffffff;         /* card + container background */
  --color-surface-muted: #f0e7d9;   /* subtle panels, table headers */

  --color-text: #2e251f;            /* deep coffee espresso */
  --color-text-muted: #6c5b4d;      /* secondary copy */
  --color-border-subtle: #e0d3c1;   /* hairline separators */

  --color-primary: #7f8c3a;         /* warm olive green */
  --color-primary-soft: #a5b265;    /* soft rosemary tint */

  --color-success: #3b7d4f;         /* herb green */
  --color-warning: #c28b1a;         /* amber / honey */
  --color-danger: #b44b3a;          /* brick red */

  --gray-50:  #faf7f2;
  --gray-100: #f2e7da;
  --gray-200: #e4d4c0;
  --gray-300: #d2bda1;
  --gray-400: #bda58a;
  --gray-500: #9b8268;
  --gray-600: #7a6450;
  --gray-700: #5a4737;
  --gray-800: #3b2d25;
  --gray-900: #221814;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --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.375rem; /* 22px */
  --font-size-2xl: 1.75rem; /* 28px */
  --font-size-3xl: 2.25rem; /* 36px */
  --font-size-4xl: 3rem;    /* 48px */

  --line-height-tight: 1.2;
  --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 */

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;   /* per spec: slightly rounded containers */
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Shadows (soft, airy, bistro-light) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(27, 20, 10, 0.08);
  --shadow-lg: 0 18px 45px rgba(27, 20, 10, 0.12);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-med: 200ms ease-out;
  --transition-slow: 320ms ease-out;

  /* Layout */
  --layout-max-width: 1120px;
  --layout-gutter: var(--space-5);

  /* Z-index scale */
  --z-nav: 40;
  --z-overlay: 60;
  --z-modal: 80;
  --z-toast: 100;
}

/* Respect users preferring reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-med: 0ms;
    --transition-slow: 0ms;
  }
}

/* =========================================================
   2. RESET / NORMALIZE
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body,
h1, h2, h3, h4, h5, h6,
p,
figure,
blockquote,
dl, dd,
ul, ol,
button,
fieldset,
legend {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  max-width: 100%;
}

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

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

input,
button,
textarea,
select {
  border-radius: 0;
}

textarea {
  resize: vertical;
}

/* Remove default list styles globally (adjusted again at bottom per spec) */
ul,
ol {
  list-style: none;
  padding-left: 0;
}

/* Base link reset */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* =========================================================
   3. BASE TYPOGRAPHY & LAYOUT
   ========================================================= */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  background: radial-gradient(circle at top left, #faf6ee 0, var(--color-bg) 45%, #f6efe4 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

/* Headings - serif for strong gastro character */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: var(--font-size-2xl);
  line-height: 1.3;
  margin-bottom: var(--space-3);
}

h4 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
}

h5 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
}

h6 {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

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

p.lead {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-muted);
}

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

strong {
  font-weight: 600;
}

code,
pre {
  font-family: var(--font-mono);
}

/* Links - understated with olive accent */
a {
  position: relative;
  transition: color var(--transition-med), opacity var(--transition-fast);
}

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

a.inline-link {
  padding-bottom: 1px;
  box-shadow: 0 1px 0 0 rgba(127, 140, 58, 0.5);
}

a.inline-link:hover {
  box-shadow: 0 2px 0 0 rgba(127, 140, 58, 0.9);
}

/* Horizontal rule / separators */
hr {
  border: none;
  border-bottom: 1px solid var(--color-border-subtle);
  margin: var(--space-6) 0;
}

/* =========================================================
   4. ACCESSIBILITY & FOCUS STATES
   ========================================================= */
:focus {
  outline: none;
}

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

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

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

/* =========================================================
   5. LAYOUT UTILITIES & GRID
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-gutter);
}

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

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

.section-header {
  margin-bottom: var(--space-6);
}

.section-header__eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.section-header__title {
  margin-bottom: var(--space-2);
}

.section-header__subtitle {
  max-width: 40rem;
}

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

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

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

/* Grid Utilities */
.grid {
  display: grid;
}

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

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

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

/* Alignment helpers */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left  { text-align: left; }

.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); }
.mb-8 { margin-bottom: var(--space-8); }

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

/* =========================================================
   6. GLOBAL NAV / HERO LAYOUT BASICS
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(247, 243, 234, 0.92), rgba(247, 243, 234, 0.86));
  border-bottom: 1px solid rgba(224, 211, 193, 0.9);
}

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

.brand-mark {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.brand-mark__symbol {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 20%, #fdfaf4 0, #f1e6d7 40%, #c5b08e 100%);
  border: 1px solid rgba(205, 182, 146, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-text);
}

.brand-mark__text {
  display: flex;
  flex-direction: column;
}

.brand-mark__name {
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-mark__tagline {
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-500);
}

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

.site-nav__link {
  font-size: var(--font-size-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-block: var(--space-1);
  position: relative;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--color-primary), var(--color-primary-soft));
  transition: width var(--transition-med);
}

.site-nav__link:hover::after,
.site-nav__link--active::after {
  width: 100%;
}

.site-nav__link--active {
  color: var(--color-text);
}

/* Mobile nav toggle (no JS; class reserved for layout hooks) */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: var(--space-1);
  gap: 4px;
}

.nav-toggle__line {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--color-text);
}

@media (max-width: 768px) {
  .site-header__inner {
    padding-block: var(--space-2);
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* Hero block - used across pages (no sliders) */
.hero {
  padding-block: var(--space-12);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-8);
  align-items: center;
}

.hero__media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--gray-200);
  min-height: 260px;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay-card {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  max-width: 260px;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 246, 0.96);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(224, 211, 193, 0.9);
}

.hero__eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

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

.hero__copy {
  max-width: 32rem;
  margin-bottom: var(--space-4);
}

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

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

  .hero__media {
    order: -1;
  }

  .hero__overlay-card {
    position: static;
    margin: var(--space-4);
  }
}

/* =========================================================
   7. FORM ELEMENTS & INPUTS
   ========================================================= */
label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  transition: border-color var(--transition-med), box-shadow var(--transition-med), background-color var(--transition-med);
}

.input::placeholder,
textarea::placeholder {
  color: rgba(108, 91, 77, 0.6);
}

.input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(127, 140, 58, 0.4);
}

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

.field-group {
  margin-bottom: var(--space-4);
}

.field-hint {
  margin-top: var(--space-1);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

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

/* =========================================================
   8. BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--color-text);
  transition: background-color var(--transition-med), color var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med), transform var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(130deg, var(--color-primary) 0%, var(--color-primary-soft) 80%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: rgba(108, 91, 77, 0.4);
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-ghost {
  padding-inline: 0.2rem;
  border-radius: 0;
  border-bottom: 1px solid rgba(127, 140, 58, 0.3);
}

.btn-ghost:hover {
  border-bottom-color: rgba(127, 140, 58, 0.8);
}

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

/* =========================================================
   9. CARDS & BISTRO SURFACES
   ========================================================= */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(224, 211, 193, 0.9);
}

.card--soft {
  background: linear-gradient(135deg, rgba(255, 252, 246, 0.9), rgba(243, 232, 214, 0.9));
}

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

.card__title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-1);
}

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

.card__body {
  font-size: var(--font-size-sm);
}

/* Menu-style card for /menu */
.menu-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(255, 255, 255, 0.96);
}

.menu-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
}

.menu-card__title {
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
}

.menu-card__price {
  font-family: var(--font-serif);
  font-size: var(--font-size-md);
  color: var(--color-text);
}

.menu-card__meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-primary);
}

.menu-card__description {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Lounge / event highlight chip */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(123, 144, 76, 0.4);
  background-color: rgba(127, 140, 58, 0.06);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.badge--neutral {
  border-color: rgba(108, 91, 77, 0.3);
  background-color: rgba(246, 239, 228, 0.9);
  color: var(--color-text-muted);
}

/* =========================================================
   10. PAGE-SPECIFIC HOOKS (STRUCTURE ONLY)
   ========================================================= */
/* Home (/) */
.page-home .hero__eyebrow {
  content: "";
}

/* Food & Drinks Menu (/menu) */
.page-menu .section-header__eyebrow {
  color: var(--color-primary);
}

.page-menu .section-header__title {
  font-family: var(--font-serif);
}

/* Private Lounge (/lounge) */
.page-lounge {
  /* subtle darker backdrop for evening lounge imagery */
}

/* Special Event Catering (/events) */
.page-events .badge {
  border-color: rgba(194, 139, 26, 0.5);
}

/* Contact Page (/contact-us) */
.page-contact-us .card {
  background: linear-gradient(135deg, rgba(255, 252, 246, 0.96), rgba(243, 232, 214, 0.96));
}

/* =========================================================
   11. TABLES (USEFUL FOR MENU LAYOUTS / EVENTS)
   ========================================================= */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

thead {
  background-color: var(--color-surface-muted);
}

thead th {
  text-align: left;
  padding: 0.75rem 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

tbody tr:nth-child(even) {
  background-color: rgba(250, 247, 242, 0.8);
}

th,
td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

/* =========================================================
   12. FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--color-border-subtle);
  padding-block: var(--space-6);
  background: rgba(247, 243, 234, 0.96);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer__group-title {
  font-size: var(--font-size-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
}

.site-footer__meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .site-footer__inner {
    flex-direction: column;
  }
}

/* =========================================================
   13. MISC UTILITIES
   ========================================================= */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tagline {
  font-size: var(--font-size-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.callout {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(127, 140, 58, 0.4);
  background-color: rgba(255, 252, 246, 0.9);
}

/* =========================================================
   14. GLOBAL SYNTAX INJECTIONS (PER SPEC)
   ========================================================= */
ul {
  list-style: none !important;
}

.nav-toggle {
  flex-direction: column;
}

/* Mobile overflow guards */
html,
body {
  overflow-x: clip;
  max-width: 100%;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}
