/* ============================================================
   Maevyn — Shared brand base
   Loaded by light-themed pages (destinations, future Japan/Europe/etc.)
   The homepage keeps its own inline CSS because its nav/cursor sit
   over a dark hero and require different defaults.
   ============================================================ */

:root {
  --green:        #1f4d3a;
  --green-pale:   #d8e4dd;
  --blue:         #3e6487;        /* hydrangea — primary brand */
  --blue-deep:    #2a4a6b;
  --blue-pale:    #c5d3e0;
  --blue-mist:    #e3eaf1;
  --sky:          #d6e3ee;
  --sky-pale:     #ecf2f7;
  --coral:        #e89888;        /* complementary accent — destinations */
  --coral-pale:   #f3dfd7;
  --coral-mist:   #fbe9e3;
  --bone:         #f4efe7;        /* primary background */
  --bone-warm:    #ede6da;
  --bone-cool:    #f8f4ec;
  --ink:          #2a3e5c;
  --ink-soft:     #44567a;
  --ink-mute:     #6e7a94;
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.24 0 0 0 0 0.36 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  overflow-x: hidden;
  cursor: none;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  pointer-events: none;
  z-index: 9999;
  opacity: 0.32;
  mix-blend-mode: multiply;
}

/* Cursor (light-page version — ink-colored ring) */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s, opacity 0.3s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
body.cursor-hover .cursor-ring { width: 64px; height: 64px; border-color: var(--blue); }
body.cursor-hover .cursor { opacity: 0; }
@media (max-width: 900px), (hover: none) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}

a { cursor: none; text-decoration: none; color: inherit; }
button { cursor: none; font-family: inherit; }
@media (max-width: 900px), (hover: none) {
  a, button { cursor: auto; }
}

.eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow .brand-mark {
  display: inline-block;
  height: 2.6em;
  width: auto;
  vertical-align: middle;
  margin-right: 0.5em;
  transform: translateY(3px);
}

/* =================== NAV (tuned for a light page) =================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: padding 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.4s;
}
.nav.scrolled {
  padding: 16px 56px;
  background: rgba(244, 239, 231, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(62, 100, 135, 0.12);
}
.nav-logo .logo-img {
  height: 38px;
  width: auto;
  display: block;
  transition: height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav.scrolled .nav-logo .logo-img { height: 32px; }
.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  color: var(--ink);
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink) !important;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-cta:hover { background: var(--ink); color: var(--bone) !important; }
.nav-cta::after { display: none !important; }

/* --- Destinations dropdown --- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  border: none;
  padding: 0;
  cursor: none;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  position: relative;
}
.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown.open .nav-dropdown-toggle::after { transform: scaleX(1); }
.nav-caret {
  font-size: 0.75em;
  transition: transform 0.3s ease;
  display: inline-block;
  line-height: 1;
}
.nav-dropdown:hover .nav-caret,
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 260px;
  background: rgba(244, 239, 231, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(62, 100, 135, 0.18);
  box-shadow: 0 24px 48px -28px rgba(42, 62, 92, 0.32);
  padding: 12px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown-menu li { margin: 0; }
.nav-dropdown-menu a {
  display: block;
  padding: 11px 22px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover {
  color: var(--blue);
  background: rgba(62, 100, 135, 0.06);
}

/* --- Mobile hamburger (shown only on narrow screens) --- */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 10px;
  cursor: none;
  z-index: 102;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav { padding: 18px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 86vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 100px 32px 32px;
    background: rgba(244, 239, 231, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(62, 100, 135, 0.16);
    box-shadow: -24px 0 48px -28px rgba(42, 62, 92, 0.32);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow-y: auto;
    /* override desktop "display: none" hiding */
    display: flex;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > li { width: 100%; }
  .nav-links > li > a,
  .nav-dropdown-toggle { padding: 10px 0; width: 100%; }
  .nav-cta { display: inline-block; margin-top: 12px; }

  /* On mobile the dropdown menu sits inline under its toggle (no popover) */
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 4px 0 8px 16px;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .nav-dropdown.open .nav-dropdown-menu { max-height: 600px; }
  .nav-dropdown-menu a { padding: 8px 0; font-size: 11px; }
}

/* =================== REVEAL =================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =================== FOOTER =================== */
.footer {
  padding: 100px 56px 40px;
  background: var(--bone-warm);
  border-top: 1px solid rgba(62,100,135,0.18);
}
.footer-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 64px;
  margin-bottom: 64px;
}
@media (max-width: 900px) {
  .footer { padding: 64px 24px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.footer-brand .logo-img { height: 32px; width: auto; margin-bottom: 24px; }
.footer-currently {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-mute);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  max-width: 340px;
}
.footer-currently span {
  display: inline-block;
  font-style: normal;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--coral);
  margin-right: 8px;
}
.footer h4 {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 22px;
  font-weight: 500;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 11px; }
.footer ul a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.3s ease;
  font-weight: 400;
}
.footer ul a:hover { color: var(--blue); }
.footer-newsletter form {
  display: flex;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 12px;
}
.footer-newsletter input {
  flex: 1;
  padding: 12px 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.footer-newsletter input::placeholder { color: var(--ink-mute); font-style: italic; }
.footer-newsletter button {
  padding: 8px 14px;
  background: transparent;
  color: var(--ink);
  border: none;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.footer-newsletter button:hover { color: var(--blue); }
.footer-newsletter p {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 12px;
  font-style: italic;
  line-height: 1.55;
}
.footer-base {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(62,100,135,0.2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.footer-base-links a {
  color: var(--ink-mute);
  margin-left: 28px;
  transition: color 0.3s ease;
}
.footer-base-links a:hover { color: var(--ink); }
