/* ═══════════════════════════════════════════════════════════════════
   LUNARA — FEATURE PAGE SHARED STYLES
   Used by: feature-nav partial + all /features/* pages
   ═══════════════════════════════════════════════════════════════════ */

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

/* ─── Ambient layer ─── */
.ambient-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ─── Skip link ─── */
.skip-link {
  position: absolute; top: -999px; left: 0;
  background: var(--mint, #c3e0d4); color: var(--ink, #1c1624);
  padding: 8px 16px; font-size: 14px; z-index: 9999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

/* ─── Layout ─── */
.container {
  max-width: 1080px; margin: 0 auto;
  padding: 0 56px; position: relative; z-index: 1;
}
section { position: relative; z-index: 1; }

/* ─── Nav logo dot ─── */
.nav-logo-dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--mint, #c3e0d4); border-radius: 50%;
  margin-right: 3px; flex-shrink: 0;
  vertical-align: middle; position: relative; top: -1px;
}

/* ─── Sticky Navigation ─── */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(28, 22, 36, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(195, 224, 212, 0.10);
  padding: 18px 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 300;
  color: var(--cream, #fdf9f4); letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 4px;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: rgba(253, 249, 244, 0.60);
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--mint, #c3e0d4);
  transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
}
.nav-links a:hover { color: var(--cream, #fdf9f4); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--cream, #fdf9f4); }
.nav-cta {
  background: linear-gradient(135deg, #8b7cba, #c98472);
  color: #fff; padding: 10px 22px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  transition: transform 0.3s, box-shadow 0.3s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 124, 186, 0.4);
  color: #fff;
}

/* ─── Breadcrumb ─── */
.breadcrumb-nav {
  position: relative; z-index: 2;
  padding: 12px 0;
  background: rgba(28, 22, 36, 0.95);
  border-bottom: 1px solid rgba(195, 224, 212, 0.07);
}
.breadcrumb-nav .container { display: flex; gap: 8px; align-items: center; }
.breadcrumb-nav a,
.breadcrumb-nav span {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: rgba(253, 249, 244, 0.40);
}
.breadcrumb-nav .sep { color: rgba(253, 249, 244, 0.20); }
.breadcrumb-nav .current { color: rgba(195, 224, 212, 0.70); }

/* ═══════════════════════════════════════════════════════════════════
   HAMBURGER BUTTON
   ═══════════════════════════════════════════════════════════════════ */

.nav-hamburger {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  cursor: pointer;
  background: transparent; border: none;
  padding: 4px; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; height: 1.5px;
  background: rgba(253, 249, 244, 0.70);
  border-radius: 999px;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
              opacity 0.25s ease,
              width 0.35s cubic-bezier(0.16,1,0.3,1);
  transform-origin: center;
}
.nav-hamburger span:nth-child(1) { width: 22px; }
.nav-hamburger span:nth-child(2) { width: 16px; }
.nav-hamburger span:nth-child(3) { width: 22px; }

/* Animate to X when open */
.nav-hamburger.is-open span:nth-child(1) {
  width: 22px;
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.nav-hamburger.is-open span:nth-child(3) {
  width: 22px;
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════════════
   DRAWER OVERLAY
   ═══════════════════════════════════════════════════════════════════ */

.fnd-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10, 6, 18, 0.72);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.16,1,0.3,1);
}
.fnd-overlay.is-open {
  opacity: 1; pointer-events: all;
}

/* ═══════════════════════════════════════════════════════════════════
   DRAWER PANEL — "LUNARA VEIL"
   ═══════════════════════════════════════════════════════════════════ */

.fnd-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 400px; max-width: 92vw;
  z-index: 301;
  display: flex; flex-direction: column;
  overflow: hidden;
  /* Rich dark background with warm teal undertone */
  background: linear-gradient(160deg, #12101e 0%, #1c1624 50%, #0d1b18 100%);
  border-left: 1px solid rgba(195, 224, 212, 0.10);
  box-shadow: -32px 0 100px rgba(0, 0, 0, 0.60);
  transform: translateX(100%);
  transition: transform 0.52s cubic-bezier(0.16,1,0.3,1);
}
.fnd-drawer.is-open {
  transform: translateX(0);
}

/* Ambient orbs for depth and warmth */
.fnd-orb {
  position: absolute; border-radius: 50%;
  pointer-events: none; filter: blur(64px); z-index: 0;
}
.fnd-orb-1 {
  width: 340px; height: 340px;
  top: -100px; right: -80px;
  background: rgba(122, 191, 165, 0.18);
}
.fnd-orb-2 {
  width: 240px; height: 240px;
  bottom: 30px; left: -70px;
  background: rgba(139, 124, 186, 0.14);
}

/* ─── Drawer Header ─── */
.fnd-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 32px;
  border-bottom: 1px solid rgba(195, 224, 212, 0.07);
  flex-shrink: 0; position: relative; z-index: 1;
}
.fnd-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 300;
  color: var(--cream, #fdf9f4); letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 6px;
  text-decoration: none;
}

/* Close button — circle that rotates on hover */
.fnd-close {
  width: 36px; height: 36px;
  background: rgba(195, 224, 212, 0.07);
  border: 1px solid rgba(195, 224, 212, 0.13);
  border-radius: 50%; cursor: pointer;
  position: relative; flex-shrink: 0;
  transition: background 0.25s,
              border-color 0.25s,
              transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.fnd-close:hover {
  background: rgba(195, 224, 212, 0.14);
  border-color: rgba(195, 224, 212, 0.28);
  transform: rotate(90deg);
}
.fnd-close::before,
.fnd-close::after {
  content: ''; position: absolute;
  top: 50%; left: 50%;
  width: 13px; height: 1.5px;
  background: rgba(253, 249, 244, 0.60);
  border-radius: 999px;
}
.fnd-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.fnd-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* ─── Primary nav links — large editorial serif ─── */
.fnd-main-nav {
  display: flex; flex-direction: column;
  padding: 36px 32px 20px;
  flex-shrink: 0; position: relative; z-index: 1;
  gap: 0;
}
.fnd-main-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 50px; font-weight: 300; line-height: 1.12;
  color: rgba(253, 249, 244, 0.38); letter-spacing: -0.01em;
  text-decoration: none; display: block;
  padding: 2px 0; position: relative;
  transition: color 0.28s ease,
              transform 0.38s cubic-bezier(0.16,1,0.3,1);
  transform-origin: left center;
  will-change: transform;
}
/* Mint underline reveal on hover */
.fnd-main-link::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--mint, #c3e0d4), transparent);
  border-radius: 1px;
  transition: width 0.45s cubic-bezier(0.16,1,0.3,1);
}
.fnd-main-link:hover {
  color: var(--cream, #fdf9f4);
  transform: translateX(10px);
}
.fnd-main-link:hover::after { width: 55%; }
.fnd-main-link.active {
  color: var(--mint, #c3e0d4);
  transform: translateX(4px);
}
.fnd-main-link.active::after { width: 36%; }

/* Stagger in when drawer opens */
.fnd-drawer.is-open .fnd-main-link {
  animation: fnd-link-enter 0.55s cubic-bezier(0.16,1,0.3,1) both;
}
.fnd-drawer.is-open .fnd-main-link:nth-child(1) { animation-delay: 0.11s; }
.fnd-drawer.is-open .fnd-main-link:nth-child(2) { animation-delay: 0.17s; }
.fnd-drawer.is-open .fnd-main-link:nth-child(3) { animation-delay: 0.23s; }
.fnd-drawer.is-open .fnd-main-link:nth-child(4) { animation-delay: 0.29s; }
@keyframes fnd-link-enter {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
/* Active link animates to its offset position */
.fnd-drawer.is-open .fnd-main-link.active {
  animation: fnd-link-enter-active 0.55s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes fnd-link-enter-active {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(4px); }
}

/* ─── Divider ─── */
.fnd-divider {
  height: 1px; flex-shrink: 0;
  margin: 4px 32px 20px;
  background: linear-gradient(90deg, transparent, rgba(195,224,212,0.12), transparent);
  position: relative; z-index: 1;
}

/* ─── Feature quick-links ─── */
.fnd-features-section {
  padding: 0 32px 16px;
  flex: 1; overflow-y: auto;
  position: relative; z-index: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(195,224,212,0.12) transparent;
}
.fnd-features-section::-webkit-scrollbar { width: 3px; }
.fnd-features-section::-webkit-scrollbar-track { background: transparent; }
.fnd-features-section::-webkit-scrollbar-thumb {
  background: rgba(195,224,212,0.14); border-radius: 999px;
}
.fnd-section-label {
  display: block;
  font-family: 'DM Sans', sans-serif; font-size: 10px;
  font-weight: 500; letter-spacing: 0.11em; text-transform: uppercase;
  color: rgba(195, 224, 212, 0.32); margin-bottom: 12px;
}
.fnd-feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.fnd-feature-link {
  display: flex; align-items: center; gap: 7px;
  font-family: 'DM Sans', sans-serif; font-size: 12.5px;
  color: rgba(253, 249, 244, 0.42);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(195, 224, 212, 0.07);
  border-radius: 12px; padding: 9px 12px;
  text-decoration: none;
  transition: background 0.22s, border-color 0.22s, color 0.22s,
              transform 0.28s cubic-bezier(0.16,1,0.3,1);
}
.fnd-feature-link:hover {
  background: rgba(195, 224, 212, 0.08);
  border-color: rgba(195, 224, 212, 0.18);
  color: rgba(253, 249, 244, 0.80);
  transform: translateY(-2px);
}
.fnd-feature-link.active {
  background: rgba(195, 224, 212, 0.12);
  border-color: rgba(195, 224, 212, 0.24);
  color: var(--mint, #c3e0d4);
}
.fnd-feature-icon { font-size: 14px; flex-shrink: 0; }

/* Stagger-in for feature grid */
.fnd-drawer.is-open .fnd-feature-link {
  animation: fnd-grid-enter 0.50s cubic-bezier(0.16,1,0.3,1) both;
}
.fnd-drawer.is-open .fnd-feature-link:nth-child(1) { animation-delay: 0.32s; }
.fnd-drawer.is-open .fnd-feature-link:nth-child(2) { animation-delay: 0.36s; }
.fnd-drawer.is-open .fnd-feature-link:nth-child(3) { animation-delay: 0.40s; }
.fnd-drawer.is-open .fnd-feature-link:nth-child(4) { animation-delay: 0.44s; }
.fnd-drawer.is-open .fnd-feature-link:nth-child(5) { animation-delay: 0.48s; }
.fnd-drawer.is-open .fnd-feature-link:nth-child(6) { animation-delay: 0.52s; }
@keyframes fnd-grid-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Footer CTA ─── */
.fnd-footer {
  padding: 20px 32px 28px;
  border-top: 1px solid rgba(195, 224, 212, 0.07);
  flex-shrink: 0; position: relative; z-index: 1;
}
.fnd-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px 24px;
  background: linear-gradient(135deg, #8b7cba, #c98472);
  color: #fff; border: none; border-radius: 999px;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500;
  cursor: pointer; letter-spacing: 0.01em;
  box-shadow: 0 8px 32px rgba(139, 124, 186, 0.26);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.35s;
}
.fnd-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(139, 124, 186, 0.44);
}
.fnd-tagline {
  text-align: center; margin-top: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px; font-style: italic; font-weight: 300;
  color: rgba(253, 249, 244, 0.20); letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  nav.site-nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .container { padding: 0 24px; }
}

@media (max-width: 480px) {
  nav.site-nav { padding: 14px 16px; }
  .container { padding: 0 16px; }

  /* Drawer fills screen on small phones */
  .fnd-drawer { max-width: 100vw; }
  .fnd-header { padding: 22px 24px; }
  .fnd-main-nav { padding: 28px 24px 16px; }
  .fnd-main-link { font-size: 44px; }
  .fnd-divider { margin: 4px 24px 16px; }
  .fnd-features-section { padding: 0 24px 14px; }
  .fnd-footer { padding: 18px 24px 24px; }
  .fnd-feature-link { font-size: 11.5px; padding: 8px 10px; }
  .fnd-feature-grid { gap: 6px; }
}
