/* ============================================
   BASE.CSS – Hotel Hubertus Design Tokens & Reset
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Colors – Light Mode */
  --color-bg: #f6f3ee;
  --color-surface: #ffffff;
  --color-surface-offset: #f1ede4;
  --color-text: #2d2a26;
  --color-text-muted: #706a62;
  --color-primary: #4a7b57;
  --color-primary-hover: #3f694a;
  --color-on-primary: #ffffff;
  --color-secondary: #8e7750;
  --color-border: #ded8cd;
  --color-divider: #ebe6dc;
  --color-overlay: rgba(44, 42, 34, 0.6);
  --color-hero-overlay: rgba(20, 20, 16, 0.45);
  --color-white: #ffffff;

  /* Typography */
  --font-display: 'Zodiak', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Font sizes – fluid clamp */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --text-lg: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-xl: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-2xl: clamp(1.3rem, 1.1rem + 1vw, 1.5rem);
  --text-3xl: clamp(1.6rem, 1.3rem + 1.5vw, 2rem);
  --text-4xl: clamp(2rem, 1.5rem + 2.5vw, 2.75rem);
  --text-hero: clamp(2.2rem, 1.5rem + 3.5vw, 3.5rem);

  /* Line heights */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-section: clamp(3rem, 2rem + 5vw, 6rem);

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --header-height: 78px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ---------- Dark Mode ---------- */
[data-theme="dark"] {
  --color-bg: #1a1917;
  --color-surface: #222120;
  --color-surface-offset: #2a2926;
  --color-text: #d4d2cc;
  --color-text-muted: #9b978c;
  --color-primary: #69aa7d;
  --color-primary-hover: #6baf80;
  --color-on-primary: #111111;
  --color-secondary: #c9a86c;
  --color-border: #3a3835;
  --color-divider: #33312e;
  --color-overlay: rgba(26, 25, 23, 0.7);
  --color-hero-overlay: rgba(10, 10, 8, 0.55);
  --color-white: #d4d2cc;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.25);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.3);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.35);
}

/* ---------- CSS Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  border: 0;
}

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

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

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

address {
  font-style: normal;
}

figure {
  margin: 0;
}

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

/* Selection */
::selection {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Smooth transition for theme changes */
body,
.site-header,
.site-footer,
.section,
.room-card,
.trip-card,
.news-card,
.package-card,
.event-card,
.contact-card,
.benefit-item,
.included-item,
.cta-bar {
  transition: background-color var(--transition-slow), color var(--transition-slow), border-color var(--transition-slow);
}
