/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Nature Palette */
  --forest:     #1a2b1c;
  --moss:       #263d28;
  --bark:       #3b2a1a;
  --olive:      #7a8c4e;
  --sage:       #96a882;
  --earth:      #7d5a3c;
  --clay:       #a06b45;
  --cream:      #f2ede4;
  --parchment:  #e8dcc8;
  --warm-white: #faf7f2;

  /* Semantic */
  --bg:         var(--forest);
  --text:       var(--cream);
  --text-muted: rgba(242,237,228,0.55);
  --text-dim:   rgba(242,237,228,0.3);
  --nav-bg:     rgba(22,36,23,0.9);
  --border:     rgba(242,237,228,0.1);
  --accent:     var(--olive);

  /* Type */
  --serif:   'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --sans:    'Jost', 'Montserrat', sans-serif;

  /* Layout */
  --nav-h:  72px;
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background: var(--forest);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--forest); }
::-webkit-scrollbar-thumb { background: var(--olive); border-radius: 2px; }

/* ===== NAV ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.5s var(--ease);
}

.nav-logo a {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  letter-spacing: 0.02em;
  transition: opacity 0.3s;
}
.nav-logo a:hover { opacity: 0.6; }

.nav-links { display: flex; list-style: none; gap: 32px; }

.nav-links a {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.65);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--sage);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--cream); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--cream);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 900;
  background: rgba(20,33,21,0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.77,0,0.175,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu ul li { margin: 24px 0; }
.mobile-link {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--cream);
  transition: color 0.3s;
}
.mobile-link:hover { color: var(--sage); }

/* ===== SECTIONS (homepage) ===== */
.section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.hero-section {
  align-items: flex-start;
}

.section-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.section:hover .section-bg,
.section.in-view .section-bg { transform: scale(1.0); }

/* Video background */
.section-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.4s var(--ease);
}
.section:hover .section-video { transform: scale(1.0); }

.section-overlay {
  position: absolute; inset: 0; z-index: 1;
}

/* ===== HERO ===== */
.hero-content {
  position: relative; z-index: 2;
  padding: 0 80px 80px;
  max-width: 760px;
  margin-top: auto;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 1s 0.2s forwards var(--ease);
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 8.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 0.93;
  color: var(--cream);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 1.2s 0.35s forwards var(--ease);
}
.hero-tagline {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.85);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 1s 0.7s forwards var(--ease);
}

.scroll-indicator {
  position: absolute;
  bottom: 44px; left: 80px;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 1s 1.3s forwards;
}
.scroll-indicator span {
  display: block;
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--sage), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

/* ===== SECTION CONTENT (homepage sections) ===== */
.section-content {
  position: relative; z-index: 2;
  padding: 0 80px;
  max-width: 560px;
}
/* more breathing room above the text in homepage sections (desktop) */
.content-section .section-content { padding-top: 15vh; }
.section-content.align-right {
  margin-left: auto;
  text-align: right;
  padding-right: 80px;
  padding-left: 24px;
}

.section-num {
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--sage);
  opacity: 0.7;
  display: block;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 0.97;
  color: var(--cream);
  margin-bottom: 16px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.4);
}
.section-desc {
  font-family: var(--sans);
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.92);
  margin-bottom: 32px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.5);
}

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid rgba(150,168,130,0.4);
  padding: 11px 30px;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  transition: color 0.4s, border-color 0.4s, background 0.4s;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--warm-white); border-color: var(--olive); }
.btn:hover::before { transform: scaleX(1); }

/* ===== FOOTER ===== */
#footer {
  background: var(--bark);
  border-top: 1px solid rgba(242,237,228,0.08);
  padding: 72px 80px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  text-align: center;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 6px;
}
.footer-location {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: rgba(242,237,228,0.6);
  text-transform: uppercase;
}
.footer-links {
  display: flex; align-items: center; gap: 14px;
  margin-top: 10px;
}
.footer-links a {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.65);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--cream); }
.footer-dot { color: rgba(242,237,228,0.2); }
.footer-social {
  display: flex; align-items: center; gap: 20px;
  margin-top: 10px;
}
.footer-social a {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.8);
  transition: opacity 0.3s;
}
.footer-social a:hover { opacity: 0.6; }
.footer-copy {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.45);
  margin-top: 6px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%,100% { opacity:0.8; transform:scaleY(1); transform-origin:top; }
  50%      { opacity:0.2; transform:scaleY(0.4); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  #navbar { padding: 0 28px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero-content, .section-content { padding: 0 32px; max-width: 100%; }
  .hero-content { margin-top: 20vh; padding-bottom: 0; }
  .hero-content .btn { display: block; width: fit-content; margin-left: auto; margin-right: auto; }
  .section-content.align-right { text-align: left; margin-left: 0; padding-right: 32px; }
  /* Homepage sections: shorter than viewport so neighbors peek above/below */
  .content-section { height: 74vh; min-height: 0; }
  /* text in the upper part (like desktop), centered */
  .content-section { justify-content: flex-start; align-items: center; }
  .content-section .section-content,
  .content-section .section-content.align-right {
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin: 0;
    padding: 14vh 32px 0;
  }
  .scroll-indicator { left: 32px; }
  #footer { padding: 56px 28px; }
  .footer-links { flex-direction: column; gap: 10px; }
  .footer-dot { display: none; }
}
@media (max-width: 480px) {
  .hero-name { font-size: 3rem; }
  .section-title { font-size: 2.6rem; }
}

