/* =========================================================
   Gasthof zur Peif — Site Styles
   Built on FK Designstudio foundation.
   Mediterranean warmth + Fachwerk tradition.
   ========================================================= */

/* ---------- Project-specific tokens (override) ---------- */
:root {
  /* Mediterranean + Fachwerk palette — anchored in FK tokens */
  --terracotta:      #c85a3e;
  --terracotta-deep: #9f4028;
  --terracotta-pale: #e8856a;
  --olive-hero:      #4d5b43;
  --sun:             #e8b96a;
  --sun-dark:        #c8963e;
  --wine:            #5a2327;    /* deep wine, rare */
  --wood:            #1c0e06;
  --cream:           #f9f4ed;
  --cream-2:         #fdfaf6;

  /* Override accent -> sun gold (reservation CTA) */
  --accent:          var(--sun);
  --accent-hover:    var(--sun-dark);
  --accent-pressed:  #b57f2f;
  --accent-fg:       #1b1408;
  --accent-2:        var(--terracotta);
  --accent-2-hover:  var(--terracotta-deep);

  --bg:              var(--cream-2);
  --bg-raised:       #ffffff;
  --bg-sunk:         var(--cream);
  --fg:              #2c1a0e;
  --fg-2:            #5c3a1e;
  --fg-3:            #888070;
  --border:          rgba(42, 31, 20, 0.14);
  --border-strong:   rgba(42, 31, 20, 0.28);

  /* Type — mediterranean warmth */
  --font-display:    'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-heading:    'Playfair Display', Georgia, serif;
  --font-body:       'Inter', -apple-system, sans-serif;
  --font-script:     'Cormorant Garamond', Georgia, serif;
  --font-label:      'Archivo Narrow', 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* warm paper noise */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.12 0 0 0 0 0.08 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
  opacity: 0.55;
}
main, header, footer, section { position: relative; z-index: 2; }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 720px) { .container, .container-wide { padding: 0 20px; } }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } .section-sm { padding: 48px 0; } }

.surface-dark {
  background: var(--wood);
  color: var(--cream);
  --fg: var(--cream); --fg-2: #d9cfb8; --fg-3: #a59a80;
  --border: rgba(245, 238, 221, 0.14);
  --bg-raised: #3a2b1c;
}
.surface-olive {
  background: var(--olive-hero);
  color: var(--cream);
  --fg: var(--cream); --fg-2: #e2dcc8; --fg-3: #b9b197;
  --border: rgba(245,238,221,0.18);
}
.surface-cream-2 { background: var(--cream-2); }

/* ---------- Eyebrow / Section headers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: currentColor;
}
.surface-dark .eyebrow, .surface-olive .eyebrow { color: var(--sun); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::after {
  content: ''; width: 24px; height: 1px; background: currentColor;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h4 { font-size: 1.125rem; font-weight: 600; font-family: var(--font-body); letter-spacing: 0; }
p { color: var(--fg-2); line-height: 1.65; text-wrap: pretty; }

.italic-accent { font-family: var(--font-script); font-style: italic; font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: transform 150ms cubic-bezier(0.2,0.8,0.2,1),
              background-color 150ms ease,
              box-shadow 150ms ease,
              border-color 150ms ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 6px 20px -8px rgba(193, 96, 62, 0.5);
}
.btn-primary:hover {
  background: var(--terracotta-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -10px rgba(156, 74, 44, 0.6);
}
.btn-gold {
  background: var(--sun);
  color: #1b1408;
  box-shadow: 0 6px 20px -8px rgba(224, 167, 68, 0.6);
}
.btn-gold:hover { background: var(--sun-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--fg); color: var(--bg); }
.surface-dark .btn-outline, .surface-olive .btn-outline {
  color: var(--cream); border-color: rgba(250,246,238,0.35);
}
.surface-dark .btn-outline:hover { background: var(--cream); color: var(--wood); }

.btn-ghost {
  padding: 10px 0;
  background: none;
  border: none;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  color: var(--fg);
}
.btn-ghost:hover { color: var(--terracotta); }

.btn-lg { padding: 18px 34px; font-size: 15px; }
.btn-sm { padding: 10px 18px; font-size: 12px; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.card-hover { transition: transform 240ms cubic-bezier(0.2,0.8,0.2,1), box-shadow 240ms ease, border-color 240ms ease; }
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(42, 31, 20, 0.25);
  border-color: rgba(193, 96, 62, 0.4);
}

/* ---------- Divider ornaments ---------- */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--terracotta);
  font-family: var(--font-script); font-style: italic;
}
.ornament::before, .ornament::after {
  content: ''; flex: 1; max-width: 120px; height: 1px;
  background: currentColor; opacity: 0.4;
}
.ornament-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Fade-in ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2,0.8,0.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-label);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-2);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  font: 400 15px/1.4 var(--font-body);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--fg);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(193,96,62,0.18);
}
.field .error { color: #b84a3a; font-size: 12px; font-family: var(--font-body); letter-spacing: 0; text-transform: none; font-weight: 500; }
.field.invalid input, .field.invalid select { border-color: #b84a3a; }

.surface-dark .field input, .surface-dark .field select, .surface-dark .field textarea {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.22);
  color: var(--cream);
}
.surface-dark .field label { color: var(--fg-2); }

/* ---------- Chips / tabs ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-label); font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--fg-2);
  transition: all 150ms ease;
}
.chip:hover { color: var(--fg); border-color: var(--fg-2); }
.chip.active { background: var(--wood); color: var(--cream); border-color: var(--wood); }

/* ---------- Utilities ---------- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.gap-6 { gap: 24px; } .gap-8 { gap: 32px; } .gap-12 { gap: 48px; }
.grid { display: grid; gap: 24px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.text-center { text-align: center; }
.muted { color: var(--fg-3); }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--fg-2); }
