/* ═══════════════════════════════════════════
   MALARIBEN — Global Stylesheet
   ═══════════════════════════════════════════ */

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

/* ── TOKENS ── */
:root {
  --ink:        #0e1a14;
  --forest:     #1b4332;
  --pine:       #2d6a4f;
  --sage:       #52b788;
  --mist:       #d8f3dc;
  --cream:      #f8f4ec;
  --sand:       #ede8dc;
  --gold:       #c9a84c;
  --gold-light: #e8c96e;
  --white:      #ffffff;
  --muted:      #6b7a6e;
  --radius:     20px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth; font-size: 16px;
  overflow-x: hidden; /* prevent horizontal scroll globally */
}
body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  max-width: 100vw;
  cursor: none;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* Disable custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── CUSTOM CURSOR ── */
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--pine);
  border-radius: 50%;
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none;
  transition: transform 0.1s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 2px solid var(--pine);
  border-radius: 50%;
  position: fixed; top: 0; left: 0; z-index: 9998;
  pointer-events: none;
  transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  opacity: 0.5;
}
.cursor-ring.hovering { transform: scale(1.8); opacity: 0.3; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 6%;
  transition: background var(--transition), box-shadow var(--transition);
}
nav.scrolled {
  background: rgba(248, 244, 236, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 2px 40px rgba(27,67,50,0.12);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem; font-weight: 700; color: var(--forest);
  letter-spacing: 0.02em;
}
.nav-logo .accent { color: var(--gold); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink);
  position: relative; padding-bottom: 2px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1.5px; background: var(--pine);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--pine); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--pine); }
.nav-cta-btn {
  background: var(--pine) !important; color: var(--white) !important;
  padding: 0.6rem 1.5rem !important; border-radius: 50px !important;
  font-size: 0.85rem !important;
  box-shadow: 0 4px 20px rgba(45,106,79,0.3);
  transition: transform var(--transition), box-shadow var(--transition) !important;
}
.nav-cta-btn::after { display: none !important; }
.nav-cta-btn:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 28px rgba(45,106,79,0.4) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none;
  padding: 4px; z-index: 600;
}
.hamburger span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--transition); display: block; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── PAGE HERO (shared across pages) ── */
.page-hero {
  min-height: 42vh; display: flex; align-items: flex-end;
  padding: 7rem 6% 3.5rem;
  background: linear-gradient(160deg, var(--forest) 0%, var(--pine) 60%, var(--sage) 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-tag {
  display: inline-block; background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px); color: rgba(255,255,255,0.9);
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 50px; margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.2);
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem); font-weight: 700;
  color: var(--white); line-height: 1.08; letter-spacing: -0.01em;
}
.page-hero h1 em { font-style: italic; color: var(--gold-light); }
.page-hero p { color: rgba(255,255,255,0.7); margin-top: 0.8rem; font-size: 1.05rem; max-width: 520px; }

/* ── SECTION WRAPPER ── */
.section { padding: 7rem 6%; }
.section-sm { padding: 4rem 6%; }
.section-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sage); margin-bottom: 0.7rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-label::before {
  content: ''; width: 28px; height: 1.5px; background: var(--sage);
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700; color: var(--ink); line-height: 1.1;
}
.section-title em { font-style: italic; color: var(--pine); }
.section-body {
  color: var(--muted); font-size: 1rem; line-height: 1.75;
  max-width: 560px; margin-top: 1rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 2rem; border-radius: 50px; font-weight: 600;
  font-size: 0.92rem; font-family: 'Outfit', sans-serif;
  cursor: none; border: none; transition: transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-3px); }
.btn-green {
  background: var(--pine); color: var(--white);
  box-shadow: 0 6px 24px rgba(45,106,79,0.35);
}
.btn-green:hover { box-shadow: 0 12px 36px rgba(45,106,79,0.45); }
.btn-outline-green {
  background: transparent; color: var(--pine);
  border: 2px solid var(--pine) !important;
  box-shadow: none;
}
.btn-outline-green:hover { background: var(--pine); color: var(--white); box-shadow: 0 8px 24px rgba(45,106,79,0.3); }
.btn-gold {
  background: var(--gold); color: var(--white);
  box-shadow: 0 6px 24px rgba(201,168,76,0.35);
}
.btn-gold:hover { box-shadow: 0 12px 36px rgba(201,168,76,0.45); }
.btn-white {
  background: var(--white); color: var(--forest);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover { box-shadow: 0 10px 32px rgba(0,0,0,0.2); }

/* ── CARDS ── */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.1); }

/* ── DIVIDER ── */
.divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--pine), var(--gold));
  border-radius: 2px; margin: 1.2rem 0;
}

/* ── FOOTER ── */
footer {
  background: var(--forest);
  padding: 4rem 6% 2rem;
  color: rgba(255,255,255,0.65);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand .nav-logo { color: var(--white); margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer-col h4 {
  color: var(--white); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul a { color: rgba(255,255,255,0.55); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--sage); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem; display: flex; justify-content: space-between;
  align-items: center; font-size: 0.82rem;
}
.footer-bottom a { color: var(--sage); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── MOBILE NAV ── */
@media (max-width: 820px) {
  nav { padding: 1rem 4%; }
  .hamburger { display: flex; }

  /* Hide nav links completely by default on mobile */
  .nav-links {
    display: flex;
    position: fixed; top: 0; right: -110%; bottom: 0;
    width: 72%; max-width: 280px;
    background: var(--white); flex-direction: column;
    justify-content: center; align-items: flex-start;
    padding: 4rem 2rem 2rem; gap: 1.8rem;
    box-shadow: -20px 0 60px rgba(0,0,0,0.2);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 500;
  }
  .nav-links.open { right: 0; }
  .nav-links a {
    font-size: 1rem; color: var(--ink); width: 100%;
    padding: 0.3rem 0; border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .nav-links a:last-child { border: none; margin-top: 0.5rem; }
  .nav-cta-btn {
    display: block; text-align: center; width: 100%;
    border-radius: 12px !important; padding: 0.8rem 1rem !important;
  }

  .nav-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 499;
    backdrop-filter: blur(2px);
  }
  .nav-overlay.open { display: block; }

  /* global section padding */
  .section { padding: 3.5rem 4%; }
  .section-sm { padding: 2.5rem 4%; }

  /* page hero */
  .page-hero { padding: 6rem 4% 3rem; min-height: 34vh; }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .page-hero p { font-size: 0.95rem; }

  /* footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
  footer { padding: 3rem 4% 1.5rem; }

  /* buttons */
  .btn { max-width: 100%; box-sizing: border-box; }
}

@media (max-width: 480px) {
  nav { padding: 0.85rem 4%; }
  .nav-logo { font-size: 1.3rem; }

  .page-hero { padding: 5.5rem 4% 2.5rem; }
  .page-hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }

  .section { padding: 2.8rem 4%; }
  .section-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .section-body { font-size: 0.93rem; }
  .divider { margin: 1rem 0; }

  footer { padding: 2.5rem 4% 1.5rem; }
  .footer-grid { gap: 1.5rem; }
}
