/* ==========================================================
   PALM FRESH — dark & luxe editorial
   Typography: Cormorant Garamond (display) + Inter Tight (body)
   Monospace detail: JetBrains Mono
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Inter+Tight:wght@300;400;500;600&family=JetBrains+Mono:wght@300;400;500&display=swap');

:root {
  /* Palette — deep charcoal, ink black, botanical greens, bone */
  --ink: #0a0c0a;
  --charcoal: #14171a;
  --carbon: #1c2121;
  --smoke: #2a2f2c;
  --bone: #efeae0;
  --parchment: #d9d2c3;
  --stone: #8a8578;
  --olive: #6b7a4f;
  --moss: #7d9152;
  --leaf: #8fae4a;
  --leaf-bright: #a8c760;
  --gold: #b8914c;
  --gold-dim: #8a6b38;
  --oxblood: #4a1e1e;

  /* Type */
  --display: 'Cormorant Garamond', serif;
  --body: 'Inter Tight', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain overlay — the luxe texture trick */
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.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.9 0 0 0 0 0.85 0 0 0 0.25 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

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

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

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(10,12,10,0.85), rgba(10,12,10,0.0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-brand img { width: 38px; height: 38px; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  padding: 0.25rem 0;
  color: var(--parchment);
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--leaf);
  transition: width 0.4s ease;
}
.nav-links a:hover { color: var(--leaf-bright); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--leaf); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--smoke);
  color: var(--bone);
  transition: all 0.4s;
}
.nav-cta:hover {
  border-color: var(--leaf);
  color: var(--leaf-bright);
  background: rgba(141, 174, 74, 0.05);
}

.nav-toggle { display: none; }

/* ---------- SHARED TYPE ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--leaf);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--leaf);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.display {
  font-family: var(--display);
  font-size: clamp(3.5rem, 10vw, 10rem);
  line-height: 0.92;
  font-weight: 300;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--leaf);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1.1rem 1.75rem;
  border: 1px solid var(--bone);
  color: var(--bone);
  background: transparent;
  cursor: pointer;
  transition: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--leaf);
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
}
.btn:hover {
  color: var(--ink);
  border-color: var(--leaf);
}
.btn:hover::before { transform: translateY(0); }

.btn-gold {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-gold::before { background: var(--gold); }
.btn-gold:hover { color: var(--ink); border-color: var(--gold); }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--smoke);
  padding: 4rem var(--gutter) 2rem;
  background: var(--ink);
  position: relative;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 1.25rem; max-width: 320px; }
.footer-brand img { width: 56px; }
.footer-brand p { color: var(--stone); font-size: 0.9rem; }
.footer h5 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.6rem; font-size: 0.9rem; color: var(--parchment); }
.footer li a:hover { color: var(--leaf-bright); }
.footer-bottom {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--smoke);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- UTILITIES ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  color: var(--olive);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  font-family: var(--mono);
  text-transform: uppercase;
  margin: 5rem 0;
}
.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  max-width: 180px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--smoke), transparent);
}

/* ---------- ANIMATIONS ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(8px, -12px) rotate(0.5deg); }
}

.rise { opacity: 0; animation: rise 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.rise-1 { animation-delay: 0.1s; }
.rise-2 { animation-delay: 0.25s; }
.rise-3 { animation-delay: 0.4s; }
.rise-4 { animation-delay: 0.55s; }
.rise-5 { animation-delay: 0.7s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  /* Mobile menu — class-toggle based, full-width dropdown panel.
     Visibility is controlled by .nav-links.open, not inline styles.
     This works uniformly across every page regardless of the page's own
     stacking context or other position: sticky bars.                       */
  .nav-links {
    display: flex !important;
    flex-direction: column;
    gap: 1.5rem;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(10, 12, 10, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 5.5rem 2rem 2.5rem;
    border-bottom: 1px solid var(--smoke);
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 90;
    font-size: 0.85rem;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  /* inline-block so the underline matches the text width, not the full row */
  .nav-links a {
    display: inline-block;
    padding: 0.35rem 0;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
  }

  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--smoke);
    color: var(--bone);
    padding: 0.6rem 0.9rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    z-index: 101;
  }
  .nav-toggle.open { border-color: var(--leaf); color: var(--leaf-bright); }

  .nav { z-index: 100; }
  .nav-cta { display: none; }

  /* Lock background scroll when menu is open. */
  body.nav-open { overflow: hidden; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}
