/* ============================================
   LA STEJARI — Base Styles
   Reset, Variables, Typography, Foundation
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Colors */
  --forest: #2D5016;
  --forest-light: #4A7C28;
  --forest-dark: #1E3A0E;
  --oak: #8B6914;
  --oak-light: #C49B2A;
  --cream: #FFF8F0;
  --sand: #F5E6D3;
  --stone: #E8E0D8;
  --text: #2C2C2C;
  --text-light: #5A5A5A;
  --text-muted: #888;
  --white: #FFFFFF;
  --black: #000000;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);

  /* Radius */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s var(--ease);

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

  /* Layout */
  --container: 1200px;
  --container-narrow: 800px;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font: inherit;
  border: none;
  outline: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1em;
  color: var(--text-light);
}

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

strong {
  font-weight: 600;
}

small {
  font-size: 0.875rem;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--sm {
  padding: var(--space-3xl) 0;
}

.section--alt {
  background-color: var(--white);
}

.section--sand {
  background-color: var(--sand);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
  color: var(--forest);
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
}

/* --- Links & Buttons --- */
.link {
  color: var(--forest);
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.link:hover {
  color: var(--forest-light);
}

.link--arrow::after {
  content: '\2192';
  transition: transform 0.2s var(--ease);
}

.link--arrow:hover::after {
  transform: translateX(4px);
}

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

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

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--stone);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
