/* ==========================================================================
   DAVAT — Design System
   Editorial / luxury / minimal. Warm ivory base, deep charcoal contrast
   sections, restrained muted-gold accent. Serif display (Fraunces) paired
   with a geometric sans (Manrope) for everything functional.
   ========================================================================== */

:root {
  /* Color */
  --color-bg: #f7f2e9;
  --color-bg-alt: #efe6d6;
  --color-surface: #fffcf6;
  --color-dark: #1b1712;
  --color-dark-surface: #24201a;
  --color-text: #22201c;
  --color-text-on-dark: #f4ecdf;
  --color-muted: #8a7d6b;
  --color-muted-on-dark: #b8ac97;
  --color-accent: #a3814f;
  --color-accent-dark: #8a6c40;
  --color-accent-soft: rgba(163, 129, 79, 0.12);
  --color-border: rgba(34, 32, 28, 0.1);
  --color-border-on-dark: rgba(244, 236, 223, 0.14);
  --color-success: #4c7a4f;
  --color-danger: #a4453a;

  /* Type */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;

  /* Spacing (8px system) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
  --sp-8: 128px;

  /* Shape */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-soft: 0 20px 50px -20px rgba(27, 23, 18, 0.18);
  --shadow-strong: 0 30px 80px -24px rgba(27, 23, 18, 0.32);
  --max-width: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 16px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--sp-3); }
@media (min-width: 900px) { .container { padding: 0 var(--sp-5); } }

section { padding: var(--sp-7) 0; }
@media (max-width: 720px) { section { padding: var(--sp-6) 0; } }

.section-dark { background: var(--color-dark); color: var(--color-text-on-dark); }
.section-alt { background: var(--color-bg-alt); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 11px; font-weight: 700;
  color: var(--color-accent-dark); margin-bottom: var(--sp-2);
}
.section-dark .eyebrow, .section-dark .eyebrow-line { color: var(--color-muted-on-dark); }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: 0.6; }

.section-head { max-width: 640px; margin: 0 0 var(--sp-5); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(30px, 4.4vw, 46px); }
.section-lead { color: var(--color-muted); font-size: 17px; margin-top: var(--sp-2); max-width: 46ch; }
.section-dark .section-lead { color: var(--color-muted-on-dark); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: var(--radius-pill); border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-primary { background: var(--color-dark); color: var(--color-text-on-dark); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); }
.section-dark .btn-primary { background: var(--color-text-on-dark); color: var(--color-dark); }
.btn-outline { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-outline:hover { border-color: var(--color-text); }
.section-dark .btn-outline { color: var(--color-text-on-dark); border-color: var(--color-border-on-dark); }
.section-dark .btn-outline:hover { border-color: var(--color-text-on-dark); }
.btn-ghost { background: transparent; color: var(--color-muted); padding: 15px 6px; }
.btn-ghost:hover { color: var(--color-text); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-block { width: 100%; }

.link-underline { position: relative; text-decoration: none; }
.link-underline::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: var(--sp-2) 0; transition: background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.navbar.is-scrolled { background: rgba(247, 242, 233, 0.86); backdrop-filter: blur(14px); border-color: var(--color-border); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; color: var(--color-text); }
.nav-links { display: flex; align-items: center; gap: var(--sp-4); list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--color-text); opacity: 0.75; }
.nav-links a:hover { opacity: 1; }
.nav-right { display: flex; align-items: center; gap: var(--sp-2); }
.lang-switch { display: flex; gap: 2px; background: rgba(34,32,28,0.05); border-radius: var(--radius-pill); padding: 3px; }
.lang-switch button { border: none; background: transparent; border-radius: var(--radius-pill); padding: 6px 12px; font-size: 12px; font-weight: 700; color: var(--color-muted); }
.lang-switch button.active { background: var(--color-dark); color: var(--color-text-on-dark); }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; padding: 4px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-right .btn-primary { display: none; }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }
.reveal-delay-1.is-visible { transition-delay: 0.1s; }
.reveal-delay-2.is-visible { transition-delay: 0.2s; }
.reveal-delay-3.is-visible { transition-delay: 0.3s; }

/* Footer */
.site-footer { background: var(--color-dark); color: var(--color-muted-on-dark); padding: var(--sp-6) 0 var(--sp-3); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-5); padding-bottom: var(--sp-5); border-bottom: 1px solid var(--color-border-on-dark); }
.footer-brand { font-family: var(--font-display); font-size: 26px; color: var(--color-text-on-dark); margin-bottom: var(--sp-2); }
.footer-tagline { max-width: 32ch; font-size: 14px; }
.footer-links { display: flex; gap: var(--sp-6); flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-on-dark); margin-bottom: var(--sp-2); font-weight: 700; }
.footer-col a { display: block; text-decoration: none; font-size: 14px; margin-bottom: 10px; color: var(--color-muted-on-dark); }
.footer-col a:hover { color: var(--color-text-on-dark); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2); padding-top: var(--sp-3); font-size: 12.5px; }

/* Toasts */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--color-dark); color: var(--color-text-on-dark); padding: 14px 22px; border-radius: var(--radius-sm); box-shadow: var(--shadow-strong); font-size: 13.5px; animation: toast-in 0.3s var(--ease); }
.toast.error { background: var(--color-danger); }
.toast.success { background: var(--color-success); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.empty-state { text-align: center; padding: var(--sp-6) var(--sp-2); color: var(--color-muted); }
