/* css/styles.css */
:root {
  --color-bg: #eceae4; /* earthy beige */
  --color-surface: #f7f6f2; /* lighter beige */
  --color-text: #1a1a1a;
  --color-text-muted: #6b635a;
  --color-accent: #8c7a6b;
  --color-border: #d9d1c7;
  --color-black: #0f0f0f;
  
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;

  --nav-height: 80px;

  --transition-smooth: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

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

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

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4rem;
  z-index: 1000;
  transition: var(--transition-smooth);
  background: transparent; /* starts transparent on hero */
  color: #fff; /* white on hero */
}

.navbar.scrolled {
  background: rgba(236, 234, 228, 0.95);
  color: var(--color-text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* GLOBAL UTILITIES */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn-link {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-text);
  padding-bottom: 5px;
  transition: color 0.3s, border-color 0.3s;
}

.btn-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
}

/* Spacer for non-hero pages */
.page-spacer {
  height: calc(var(--nav-height) + 40px);
}

/* PAGE TRANSITIONS */
body {
  opacity: 0;
  animation: pageFadeIn 0.5s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

body.fade-out {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s cubic-bezier(0.32, 0, 0.67, 0), transform 0.4s cubic-bezier(0.32, 0, 0.67, 0);
}

@keyframes pageFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
