/* ============================================================
   Jeevan Mukti V2 — Shared Stylesheet
   Improvements over V1:
   - Design tokens for spacing/radius/transition
   - Navbar scroll-shrink + backdrop-blur
   - Full mobile hamburger menu
   - WhatsApp FAB + scroll-to-top
   - Accessibility: skip link, focus-visible, reduced-motion
   - Responsive images, print styles
   ============================================================ */

/* ── Design Tokens ──────────────────────────────────────── */
:root {
  /* Colour palette */
  --cream:      #FCFFF7;
  --cream-warm: #FCF8F3;
  --soft:       #F0F4EA;
  --everglade:  #1B451E;
  --vm-bg:      #19472A;
  --finlandia:  #556A55;
  --emerald:    #5DA260;
  --forest:     #016630;
  --topbar:     #193F1C;
  --muted:      #EAEEE1;
  --white:      #FFFFFF;
  --sand:       #FAF6F1;
  --grad:       linear-gradient(174.81deg, #016630 -52.13%, #5DA260 169.71%);

  /* Spacing scale */
  --sp-xs:  8px;
  --sp-sm:  16px;
  --sp-md:  32px;
  --sp-lg:  64px;
  --sp-xl:  96px;

  /* Radius */
  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-pill: 100px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(27,69,30,.06);
  --shadow-md:  0 8px 24px rgba(27,69,30,.10);
  --shadow-lg:  0 16px 48px rgba(27,69,30,.14);
  --shadow-nav: 0 4px 20px rgba(27,69,30,.10);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Lato', sans-serif; background: var(--cream); margin: 0; color: #1a1a1a; overflow-x: hidden; }
img   { max-width: 100%; height: auto; display: block; }

/* ── Accessibility: Skip link ───────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--everglade);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }

/* ── Accessibility: Focus visible ───────────────────────── */
:focus-visible {
  outline: 3px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── Typography ─────────────────────────────────────────── */
.fd, .font-display { font-family: 'Cormorant Garamond', Georgia, serif; }

/* ── Topbar ─────────────────────────────────────────────── */
.topbar         { background: var(--topbar); padding: 14px 0; font-size: 14px; color: #EAF6EA; }
.topbar a       { color: #EAF6EA; text-decoration: none; transition: color var(--t-fast); }
.topbar a:hover { color: #fff; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  background: var(--cream);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), background var(--t-base), height var(--t-base);
}
/* Scrolled state — JS adds .scrolled */
.navbar.scrolled {
  box-shadow: var(--shadow-nav);
  background: rgba(252,255,247,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 80px;
  transition: height var(--t-base);
}
.navbar.scrolled .navbar-inner { height: 68px; }

/* Nav pill — perfectly centered column */
.nav-pill {
  background: rgba(208,219,208,.38);
  border: 1px solid rgba(93,162,96,.2);
  border-radius: 100px;
  padding: 5px;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}
.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--finlandia);
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 100px;
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover       { color: var(--everglade); background: rgba(255,255,255,.75); }
.nav-link:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
  border-radius: 100px;
}
.nav-link.active {
  background: var(--everglade);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(27,69,46,.28);
}

/* Right-side actions group */
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.btn-book {
  background: var(--grad);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 13px 22px;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(1,102,48,.25);
  transition: opacity var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn-book:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(1,102,48,.32); }

/* ── Hamburger button ────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: var(--soft);
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  z-index: 201;
  flex-shrink: 0;
  transition: background var(--t-fast);
}
.hamburger:hover { background: var(--muted); }
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--everglade);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base), width var(--t-base);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile backdrop ─────────────────────────────────────── */
.mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(10,20,10,.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;        /* never intercept clicks when invisible */
  transition: opacity var(--t-slow);
}
.mobile-backdrop.visible {
  opacity: 1;
  pointer-events: auto;        /* capture clicks only when menu is open */
}

/* ── Mobile drawer menu ──────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 100vw);
  z-index: 250;
  background: var(--cream);
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  pointer-events: none;        /* off-screen → ignore all taps */
  transition: transform var(--t-slow);
  box-shadow: -12px 0 40px rgba(0,0,0,.18);
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;        /* on-screen → accept taps */
}

/* Drawer sections */
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--muted);
  flex-shrink: 0;
  background: var(--cream);
}
.mobile-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--soft);
  color: var(--everglade);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast);
  flex-shrink: 0;
}
.mobile-close:hover { background: var(--muted); }

.mobile-menu-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--everglade);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: background var(--t-fast), color var(--t-fast);
  min-height: 52px;
}
.mobile-menu-link:hover  { background: var(--soft); }
.mobile-menu-link.active { color: var(--emerald); background: rgba(93,162,96,.07); }
.mobile-menu-link svg    { flex-shrink: 0; opacity: .6; }
.mobile-menu-link.active svg { opacity: 1; color: var(--emerald); }

.mobile-menu-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--muted);
  flex-shrink: 0;
  background: var(--cream);
}
.mobile-contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--finlandia);
  text-decoration: none;
  background: var(--soft);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  transition: background var(--t-fast), color var(--t-fast);
  flex: 1;
  justify-content: center;
}
.mobile-contact-chip:hover { background: var(--muted); color: var(--everglade); }

/* ── Bottom Navigation Bar ───────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 190;
  background: rgba(252,255,247,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--muted);
  box-shadow: 0 -4px 24px rgba(27,69,30,.09);
  height: 62px;
  padding: 0 4px;
  align-items: stretch;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  text-decoration: none;
  color: var(--finlandia);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 4px 2px;
  position: relative;
  transition: color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item svg { transition: transform var(--t-base); }
.bottom-nav-item.active { color: var(--emerald); }
.bottom-nav-item.active svg { transform: translateY(-2px); }
.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--emerald);
  border-radius: 0 0 3px 3px;
}

/* Book button — highlighted pill in centre */
.bottom-nav-item.book {
  background: var(--grad);
  color: #fff;
  border-radius: 14px;
  margin: 10px 4px;
  font-size: 9px;
  flex: 1.1;
  box-shadow: 0 4px 14px rgba(1,102,48,.3);
}
.bottom-nav-item.book::before { display: none; }
.bottom-nav-item.book svg { transform: none !important; }

/* ── Footer ─────────────────────────────────────────────── */
.footer        { background: #1C3D30; color: #c8e8d8; padding: 64px 0 0; }
.footer a      { color: #a8d4be; text-decoration: none; transition: color var(--t-fast); }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding: 20px 0; }
/* Footer columns — own grid so layout doesn't depend on the Tailwind CDN */
.footer-cols   { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
@media (max-width: 900px) { .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; gap: 28px; } }

/* ── CTA (pre-footer) ───────────────────────────────────── */
.cta           { background: var(--everglade); padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.cta::before,
.cta::after    { content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%; border: 1px solid rgba(255,255,255,.06); pointer-events: none; }
.cta::before   { left: -120px; bottom: -180px; }
.cta::after    { right: -120px; top: -180px; }
.cta-title     { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: clamp(28px,4vw,54px); color: #fff; letter-spacing: -1px; margin-bottom: 24px; position: relative; z-index: 1; }
.cta-badges    { display: inline-flex; align-items: center; gap: 32px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15); border-radius: var(--r-sm); padding: 16px 32px; margin-bottom: 32px; position: relative; z-index: 1; }
.cta-badge     { display: flex; align-items: center; gap: 9px; font-size: 15px; color: #fff; }
.btn-cta       { background: var(--grad); color: #fff; font-family: 'Lato', sans-serif; font-size: 17px; font-weight: 700; padding: 18px 48px; border-radius: var(--r-lg); border: none; cursor: pointer; text-decoration: none; display: inline-block; position: relative; z-index: 1; transition: opacity var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast); box-shadow: 0 8px 24px rgba(1,102,48,.3); }
.btn-cta:hover { opacity: .92; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(1,102,48,.38); }

/* ── WhatsApp FAB ───────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 300;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  text-decoration: none;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  animation: fab-bounce 2s ease-in-out 2s 1;
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,.55); }
.whatsapp-fab svg  { width: 30px; height: 30px; fill: #fff; }
@keyframes fab-bounce {
  0%,100% { transform: translateY(0); }
  40%     { transform: translateY(-8px); }
  60%     { transform: translateY(-4px); }
}

/* ── Scroll-to-top button ───────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  width: 44px;
  height: 44px;
  background: var(--everglade);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--t-base), transform var(--t-base);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover   { background: var(--forest); }
.scroll-top svg     { color: #fff; }

/* ── Shared form elements ───────────────────────────────── */
.form-input,
.form-select,
.form-textarea  { width: 100%; border-radius: var(--r-md); padding: 16px 20px; font-family: 'Lato', sans-serif; font-size: 15px; color: #333; outline: none; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(93,162,96,.15); }
.form-textarea  { resize: vertical; min-height: 120px; }
.form-label     { font-family: 'Lato', sans-serif; font-size: 15px; font-weight: 600; color: var(--finlandia); margin-bottom: 8px; display: block; }

/* ── Alert / status ─────────────────────────────────────── */
.alert          { display: none; padding: 14px 20px; border-radius: var(--r-sm); font-size: 15px; margin-bottom: 20px; }
.alert.success  { background: rgba(93,162,96,.12); color: var(--everglade); border: 1px solid rgba(93,162,96,.3); display: block; }
.alert.error    { background: rgba(200,50,50,.08); color: #8b1f1f; border: 1px solid rgba(200,50,50,.2); display: block; }

/* ── Footer social icons ────────────────────────────────── */
.social-icon {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: #a8d4be;
  transition: border-color .2s, color .2s;
}
.social-icon:hover,
.social-icon:focus-visible { border-color: #fff; color: #fff; }

/* ── Section label ──────────────────────────────────────── */
.sec-label      { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--emerald); margin-bottom: 10px; }

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ── Tablet (≤900px) ─────────────────────────────────────── */
@media (max-width: 900px) {
  .navbar-inner { padding: 0 20px; }
}

/* ── Tablet & mobile nav (≤1024px) — desktop nav can't fit, so switch
      to the hamburger + bottom nav for all tablet widths (incl. iPad portrait) ─ */
@media (max-width: 1024px) {
  /* Topbar hidden — contact info moves to drawer footer */
  .topbar          { display: none; }

  /* Desktop nav hidden, mobile controls shown */
  .nav-pill        { display: none; }
  .btn-book        { display: none; }
  .hamburger       { display: flex; }
  /* On mobile collapse to single column so logo + hamburger stay aligned */
  .navbar-inner    { grid-template-columns: 1fr auto; }
  .mobile-backdrop { display: block; }
  .mobile-menu     { display: flex; }
  .bottom-nav      { display: flex; }

  /* Body padding so the fixed bottom nav never covers content */
  body             { padding-bottom: 62px; }
  body.menu-open   { padding-bottom: 0; overflow: hidden; }

  /* Raise FABs above the bottom nav */
  .whatsapp-fab    { bottom: 78px; }
  .scroll-top      { bottom: 78px; }

  /* Footer clearance above bottom nav */
  .footer          { padding-bottom: 12px; }
}

/* ── Mobile (≤760px) ─────────────────────────────────────── */
@media (max-width: 760px) {
  /* Compact navbar */
  .navbar-inner    { padding: 0 16px; height: 60px; }
  .navbar.scrolled .navbar-inner { height: 56px; }

  /* CTA adjustments */
  .cta            { padding: 56px 20px; }
  .cta-badges     { flex-direction: column; gap: 14px; }

  /* Smaller FABs, offset from edges */
  .whatsapp-fab   { right: 16px; width: 50px; height: 50px; }
  .scroll-top     { right: 74px; width: 40px; height: 40px; }
}

/* ── Mobile-small (≤480px) ───────────────────────────────── */
@media (max-width: 480px) {
  .btn-cta        { padding: 16px 24px; font-size: 15px; }
  .cta-title      { font-size: clamp(22px,7vw,34px); }
  .mobile-menu    { width: 100vw; }
}

/* ── Print ──────────────────────────────────────────────── */
@media print {
  .topbar, .navbar, .whatsapp-fab, .scroll-top,
  .mobile-menu, .mobile-backdrop, .hamburger,
  .bottom-nav, .cta { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  a    { color: #000; text-decoration: underline; }
}
