/* ===========================================================================
   Hale Nani Awamoa — v3 "The Retreat"
   70s travel-poster soul, leaned into resort / wellness R&R.
   Deep ocean blues + golden sunlight. Self-contained (no retro.css dependency).
   Loaded only by base_v3.html.
   =========================================================================== */

:root {
  --ocean-deep: #06283D;
  --ocean:      #0E4D6B;
  --ocean-light:#2E86AB;
  --sun:        #F4A93C;
  --sun-deep:   #EC7E2B;
  --sun-light:  #FBD36B;
  --sand:       #FBF3E3;
  --foam:       #E6EFEC;
  --ink:        #112430;
}

/* --- Base ----------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -0.015em;
}
::selection { background: var(--sun); color: var(--ocean-deep); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

/* Soft sunlit grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- The signature: 70s striped sun --------------------------------------- */
.retro-sun {
  position: relative;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--sun-light) 0%, var(--sun) 48%, var(--sun-deep) 100%);
  box-shadow: 0 0 90px rgba(244, 169, 60, 0.45);
  overflow: hidden;
}
/* horizontal bands across the lower half, blending into the ocean behind it */
.retro-sun::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; top: 46%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 11px,
    var(--ocean-deep) 11px 18px
  );
}

/* --- Buttons (soft / luxe, not hard-shadow) ------------------------------- */
.btn-sun {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--sun); color: var(--ocean-deep);
  font-weight: 700; border-radius: 999px; padding: 0.9rem 1.9rem;
  box-shadow: 0 10px 26px rgba(244, 169, 60, 0.38);
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-sun:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(244, 169, 60, 0.52); }
.btn-line {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 2px solid currentColor; border-radius: 999px;
  padding: 0.85rem 1.8rem; font-weight: 600;
  transition: background 0.2s ease;
}
.btn-line:hover { background: rgba(255, 255, 255, 0.12); }

/* --- Tags / pills --------------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border-radius: 999px; padding: 0.4rem 0.95rem;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.02em;
}
.tag--sun  { background: var(--sun); color: var(--ocean-deep); }
.tag--foam { background: rgba(255,255,255,0.14); color: var(--sand); border: 1px solid rgba(255,255,255,0.25); }

/* --- Cards (soft elevation, resort-luxe) ---------------------------------- */
.retreat-card {
  background: #FFFFFF;
  border-radius: 1.5rem;
  box-shadow: 0 14px 34px rgba(6, 40, 61, 0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.retreat-card:hover { transform: translateY(-5px); box-shadow: 0 24px 46px rgba(6, 40, 61, 0.18); }
.retreat-card--glass {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
  backdrop-filter: blur(4px);
}
.retreat-card--glass:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-5px); }

/* --- Gallery + lightbox hooks (main.js toggles .active/.hidden) ------------ */
.gallery-item img       { transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.07); }
#lightbox.active        { display: flex; }

/* --- Mobile menu / nav active (main.js) ----------------------------------- */
.nav-link-active { color: var(--sun) !important; }

/* --- Accordion (if used) — driven by main.js ------------------------------ */
.accordion-arrow { display: inline-block; transition: transform 0.3s ease; }
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }

/* --- Motion: scroll reveal + staggered load (retro_v2.js adds .in) -------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.rise   { opacity: 0; animation: riseIn 0.9s ease forwards; }
.rise-1 { animation-delay: 0.10s; }
.rise-2 { animation-delay: 0.28s; }
.rise-3 { animation-delay: 0.46s; }
.rise-4 { animation-delay: 0.64s; }
.sr     { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.sr.in  { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .sr { opacity: 1; transform: none; }
  .rise { opacity: 1; animation: none; }
}

/* --- Floating version toggle (Classic · '76 · Retreat) -------------------- */
.ver-toggle {
  position: fixed; right: 14px; bottom: 14px; z-index: 70;
  display: inline-flex; align-items: center; gap: 2px; padding: 4px;
  background: rgba(6, 40, 61, 0.92);
  border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  font-family: 'Hanken Grotesk', system-ui, sans-serif; font-size: 12px; font-weight: 700;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ver-toggle a {
  display: inline-block; padding: 6px 11px; border-radius: 999px;
  color: rgba(255, 255, 255, 0.72); text-decoration: none; white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.ver-toggle a:hover { color: #fff; }
.ver-toggle a.is-active { background: var(--sun); color: var(--ocean-deep); }
