/* ============================================================
   nav.css — Navigation bar styles
   Shared across all pages
   Ocean Club Global
   ============================================================ */

/* ── NAV ── */
  nav {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(10,8,5,0.80) 0%, transparent 100%);
    transition: background 0.4s, border-color 0.4s;
  }

  nav.scrolled {
    position: fixed;
    background: rgba(254,252,248,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 0.5px solid var(--border-mid);
  }

  nav.scrolled .nav-logo { color: var(--gold-dark); }
  nav.scrolled .nav-links a { color: var(--text-mid); }
  nav.scrolled .nav-links a:hover { color: var(--gold); }

  .nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    color: var(--gold-light);
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.4s;
  }

  .nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
  }

  .nav-links a {
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(250,247,240,0.75);
    text-decoration: none;
    transition: color 0.3s;
  }

  .nav-links a:hover { color: var(--gold-light); }

  .nav-cta {
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dark);
    background: var(--gold-mid);
    padding: 0.6rem 1.6rem;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
  }

  .nav-cta:hover { background: var(--gold); transform: translateY(-1px); }
  nav.scrolled .nav-cta { background: var(--gold); color: #fff; }
  nav.scrolled .nav-cta:hover { background: var(--gold-dark); }

  


  /* ── NAV LOGO ICON + TEXT ── */
  .nav-logo-icon-el {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s;
    flex-shrink: 0;
  }
  .nav-logo-img:hover .nav-logo-icon-el { opacity: 0.82; }
  .nav-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: -0.55rem;
    line-height: 1;
    gap: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
    min-width: 60px;
  }
  .nav-logo-ocean {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 400;
    letter-spacing: 0.32em;
    line-height: 1;
    transition: filter 0.4s;
    background: linear-gradient(to top right, #EDBA47 0%, #F8F9D1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 1px rgba(184,146,42,0.48);
    paint-order: stroke fill;
  }
  .nav-logo-rule {
    display: block !important;
    height: 1px;
    min-height: 1px;
    background: linear-gradient(to right, rgba(237,186,71,0.6), rgba(248,249,209,0.6));
    margin: 0.1rem 0;
    width: 100%;
    min-width: 40px;
    flex-shrink: 0;
  }
  .nav-logo-sub {
    font-family: 'Jost', sans-serif;
    font-size: 0.772rem;
    font-weight: 300;
    letter-spacing: 0.32em;
    line-height: 1;
    background: linear-gradient(to top right, #EDBA47 0%, #F8F9D1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 1px rgba(184,146,42,0.48);
    paint-order: stroke fill;
  }
  nav.scrolled .nav-logo-rule { opacity: 0.4; }

  /* ── HAMBURGER BUTTON ── */
  .nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    z-index: 300;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--gold-light);
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s;
  }

  nav.scrolled .nav-hamburger span { background: var(--gold-dark); }

  /* Open state */
  .nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* ── MOBILE DROPDOWN MENU ── */
  .nav-mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 70%;
    max-width: 420px;
    background: rgba(254,252,248,0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    z-index: 150;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
    will-change: transform;
    -webkit-overflow-scrolling: touch;
  }

  .nav-mobile-menu.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .nav-mobile-menu ul {
    list-style: none;
    text-align: center;
    padding: 0;
  }

  .nav-mobile-menu ul li {
    margin-bottom: 2.5rem;
  }

  .nav-mobile-menu ul li a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
    -webkit-tap-highlight-color: transparent;
    display: block;
    padding: 0.5rem 0;
  }

  .nav-mobile-menu ul li a:hover { color: var(--gold); }

  .nav-mobile-cta a {
    font-family: 'Jost', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase;
    color: #fff !important;
    background: var(--gold);
    padding: 0.9rem 2.2rem;
    display: inline-block;
    margin-top: 1rem;
  }

  .nav-mobile-cta a:hover { background: var(--gold-dark) !important; }

  /* ── RESPONSIVE BREAKPOINTS ── */
  @media (max-width: 1024px) {
    nav {
      padding: 1.2rem 1.5rem;
    }

    .nav-links,
    .nav-cta {
      display: none;
    }

    .nav-hamburger {
      display: flex;
    }

    .nav-logo-ocean { font-size: 1.2rem; }
    .nav-logo-sub { font-size: 0.586rem; }
    .nav-logo-icon-el { height: 42px; }
  }

  @media (max-width: 768px) {
    .nav-logo-ocean { font-size: 1.0rem; }
    .nav-logo-sub { font-size: 0.501rem; }
    .nav-logo-icon-el { height: 36px; }
  }

  @media (max-width: 480px) {
    .nav-logo-ocean { font-size: 0.85rem; }
    .nav-logo-sub { font-size: 0.428rem; }
    .nav-logo-icon-el { height: 30px; }
  }
