/* ── Google Fonts ──────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables ─────────────────────────────────────────────────────── */
:root {
  --clr-bg: #0a0a0a;
  --clr-text: #f0ece4;
  --clr-muted: rgba(240, 236, 228, 0.5);
  --clr-border: rgba(240, 236, 228, 0.18);
  --clr-btn-border: rgba(240, 236, 228, 0.55);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

/* ── Base / Reset extras ───────────────────────────────────────────────── */
html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: var(--font-sans);
  background-color: var(--clr-bg);
  color: var(--clr-text);
}

/* ── Hero background image ─────────────────────────────────────────────── */
.hero-bg {
  background-image: url('img/tree_hd.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Vignette overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.0) 40%, rgba(0, 0, 0, 0.4) 100%);
}

/* ── Navbar gradient ───────────────────────────────────────────────────── */
.navbar {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
}

/* ── Footer — progressive backdrop blur ────────────────────────────────── */
/*
 * Instead of a flat colour gradient we stack blur layers at doubling radii,
 * each masked to a narrow band so the total effect is a smooth blur ramp.
 * The .gradient-blur divs are injected by assets/footer.js.
 */
.footer-strip {
  /* remove solid bg — blur layers underneath handle the fade */
  background: transparent;
}

.gradient-blur {
  position: fixed;
  z-index: 9;
  /* just below footer text (z-10) */
  inset: auto 0 0 0;
  height: 100px;
  /* Reduced from 160px to feel more like a strip */
  pointer-events: none;
}

.gradient-blur>div,
.gradient-blur::before,
.gradient-blur::after {
  position: absolute;
  inset: 0;
}

/* Subtle start */
.gradient-blur::before {
  content: "";
  z-index: 1;
  backdrop-filter: blur(1px);
  mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 50%);
}

.gradient-blur>div:nth-of-type(1) {
  z-index: 2;
  backdrop-filter: blur(2px);
  mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 60%);
}

.gradient-blur>div:nth-of-type(2) {
  z-index: 3;
  backdrop-filter: blur(4px);
  mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 80%);
}

.gradient-blur>div:nth-of-type(3) {
  z-index: 4;
  backdrop-filter: blur(8px);
  mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
}

/* Stronger base at the very bottom */
.gradient-blur::after {
  content: "";
  z-index: 5;
  backdrop-filter: blur(16px);
  /* Added a subtle dark tint so the footer text reflects the background properly */
  background: linear-gradient(to bottom, transparent, rgba(10, 10, 10, 0.4));
  mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 1) 100%);
}

/* ── Nav links — underline slide on hover ──────────────────────────────── */
.nav-link {
  font-family: var(--font-sans);
  color: var(--clr-muted);
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-text);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--clr-text);
}

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

/* ── Nav brand ─────────────────────────────────────────────────────────── */
.nav-brand {
  font-family: var(--font-serif);
  color: var(--clr-text);
  opacity: 0.92;
  transition: opacity 0.25s;
}

.nav-brand:hover {
  opacity: 1;
}

/* ── Pill buttons (nav CTA + hero CTA) ────────────────────────────────── */
.pill-btn {
  border: 1px solid var(--clr-btn-border);
  color: var(--clr-text);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pill-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: inherit;
}

.pill-btn:hover {
  border-color: rgba(240, 236, 228, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.pill-btn:hover::before {
  opacity: 1;
}


/* ── Hero headline font ────────────────────────────────────────────────── */
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--clr-text);
}


/* ── hero-sub text color ──────────────────────────────────────────────── */
.hero-sub {
  color: var(--clr-muted);
}

.footer-label {
  color: var(--clr-muted);
}

/* ── Fade-up animation ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 1s ease both;
}

/* Slide arrow on hero CTA hover ──── */
.hero-btn-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.pill-btn:hover .hero-btn-arrow {
  transform: translateX(4px);
}

/* ── Particles ─────────────────────────────────────────────────────────── */
.particle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: translateY(-120px) scale(1);
  }
}

/* ── Responsive overrides ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-headline {
    font-size: 2.2rem;
  }
}

@media (max-width: 900px) {
  .hero-headline {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
  }
}

/* ── Hamburger button ──────────────────────────────────────────────────── */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 28px;
  height: 28px;
  padding: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.hamburger-btn:hover {
  background: rgba(240, 236, 228, 0.07);
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--clr-text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

/* X state */
.hamburger-btn.is-open .hamburger-bar:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.hamburger-btn.is-open .hamburger-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hamburger-btn.is-open .hamburger-bar:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ── Mobile slide-down menu ────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding-top: 80px;
  /* clears the navbar */
  padding-bottom: 36px;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--clr-border);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

/* On md+ screens never show it */
@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Open state (toggled by JS) */
.mobile-menu.is-open {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: menuSlideDown 0.3s ease both;
}

@keyframes menuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}