/* ────────────────────────────────────────────────────────────────────────── */
/* HEADER — PRIMEPATH HERO REFERENCE STYLE */
/* ────────────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ── PREVENT HORIZONTAL SCROLL ON MOBILE ───────────────────── */
/* clip hides horizontal overflow WITHOUT creating a scroll container,
   which keeps position:sticky working and avoids double scrollbars */
html, body {
  overflow-x: clip;
  max-width: 100vw;
}

/* ── CUSTOM SCROLLBAR ────────────────────────────────────────── */
/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}
/* Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(201,168,76,0.28);
}

/* ── DESIGN TOKENS are centralized in design-tokens.css ─────── */


/* ── HEADER ─────────────────────────────────────────────────── */
#mainHeader {
  position: relative;
  z-index: 100;
  background: var(--ink);
  overflow: visible;
  transition: background 0.4s ease;
}

@media (max-width: 980px) {
  #mainHeader {
    overflow: hidden;
  }
}

#mainHeader.scrolled {
  position: sticky;
  top: 0;
  background: rgba(34,34,34,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#mainHeader nav {
  display: flex;
  align-items: center;
  padding: 20px clamp(24px, 4vw, 52px);
  gap: 0;
  position: relative;
  max-width: 100%;
}

/* SVG that draws the header border — continuous bottom edge with rounded corners */
.header-border-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 200;
}

/* ── NAV LOGO ───────────────────────────────────────────────── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-pp {
  font-family: var(--font-accent);
  font-size: 38px;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -2px;
  font-weight: 500;
}

.nav-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo .logo-text .brand {
  font-family: var(--font-accent);
  font-size: var(--fs-body);
  letter-spacing: 0.28em;
  color: var(--white);
  font-weight: 500;
}

.nav-logo .logo-text .sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.nav-logo .logo-text .sub span {
  font-family: var(--font-accent);
  font-size: 8.5px;
  letter-spacing: 0.35em;
  color: var(--gold);
}

.nav-logo .logo-text .sub::before,
.nav-logo .logo-text .sub::after {
  content: '';
  height: 1px;
  width: 22px;
  background: var(--gold);
  opacity: 0.7;
}

/* ── NAV LINKS ──────────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  margin-left: auto;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-links li a {
  font-family: var(--font-nav);
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--gray-light);
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}

.nav-links li a:hover { color: var(--gold-light); }

.nav-links li.active a {
  color: var(--gold);
}

.nav-links li.active a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* ── NAV RIGHT ──────────────────────────────────────────────── */
.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 14px);
  margin-left: clamp(18px, 3vw, 42px);
  flex-shrink: 0;
}

.nav-auth-form {
  display: flex;
  align-items: center;
}

.nav-signin-link {
  font-family: var(--font-nav);
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--gray-light);
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-signin-link:hover { color: var(--gold-light); }

.nav-book {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--gold);
  padding: 11px clamp(14px, 1.5vw, 22px);
  border-radius: 4px;
  font-family: var(--font-accent);
  font-size: clamp(9px, 0.7vw, 11px);
  letter-spacing: var(--ls-wide);
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  flex-shrink: 0;
}

.nav-book:hover {
  background: var(--gold);
  color: var(--ink);
}

.nav-book svg {
  width: 14px;
  height: 14px;
}


/* ── MOBILE-ONLY NAV ITEMS (hidden on desktop, shown in mobile dropdown) ── */
.nav-mobile-only {
  display: none;
}

.nav-mobile-book {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  box-sizing: border-box;
  border: none;
  background: transparent;
  font-family: var(--font-nav);
  font-size: var(--fs-label-lg);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}

.nav-mobile-book:hover {
  color: var(--gold-light);
}

.nav-mobile-book svg {
  width: 14px;
  height: 14px;
}

/* ── MOBILE TOGGLE ──────────────────────────────────────────── */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 4px;
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--gold);
  display: block;
  border-radius: 2px;
  position: relative;
  transition: 0.3s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: 0.3s ease;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ── FLOATING CALL ──────────────────────────────────────────── */
.floating-call {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  max-width: calc(100vw - 44px);
  padding: 13px 18px;
  border: 1px solid rgba(201,168,76,0.45);
  border-radius: 2px;
  background: rgba(34,34,34,0.88);
  color: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,0.36);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: var(--font-nav);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, color 0.25s;
}

.floating-call svg {
  width: 17px;
  height: 17px;
  color: var(--gold);
  flex-shrink: 0;
}

.floating-call span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-call:hover {
  transform: translateY(-2px);
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.floating-call:hover svg { color: var(--black); }

/* ── FLOATING WHATSAPP ──────────────────────────────────────── */
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 82px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  max-width: calc(100vw - 44px);
  padding: 13px 18px;
  border: 1px solid rgba(37,211,102,0.45);
  border-radius: 2px;
  background: rgba(37,211,102,0.92);
  color: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,0.36);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: var(--font-nav);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, color 0.25s;
}

.floating-whatsapp svg {
  width: 17px;
  height: 17px;
  fill: #fff;
  flex-shrink: 0;
}

.floating-whatsapp span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-whatsapp:hover {
  transform: translateY(-2px);
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}

.floating-whatsapp:hover svg { fill: #fff; }

/* ────────────────────────────────────────────────────────────────────────── */
/* MOBILE MENU */
/* ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 0;
    border-radius: 4px;
    background: rgba(10,10,10,0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(201,168,76,0.15);
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    z-index: 1100;
    overflow: hidden;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
  }

  .nav-links.open { display: flex; }

  .nav-links li {
    width: 100%;
    box-sizing: border-box;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-links li.active a {
    color: var(--gold);
    background: rgba(201,168,76,0.08);
  }

  .nav-links li.active a::after {
    left: 0;
    top: 0;
    transform: none;
    width: 3px;
    height: 100%;
    border-radius: 2px 0 0 2px;
  }

  .nav-links li:not(.nav-mobile-only):last-child a { border-bottom: none; }

  .nav-mobile-only { display: list-item; width: 100%; box-sizing: border-box; }
  .nav-mobile-only a {
    color: var(--gold);
    display: block;
    width: 100%;
    padding: 14px 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
  }
  .nav-mobile-book {
    width: 100%;
    padding: 14px 16px;
    box-sizing: border-box;
  }

  .nav-signin-link { display: none; }

  .nav-right {
    margin-left: auto;
    gap: 12px;
  }

  .nav-toggle { display: flex; }

  #mainHeader nav {
    padding: 16px 24px;
  }
}

@media (max-width: 640px) {
  #mainHeader nav {
    padding: 14px 16px;
  }

  .nav-book { display: none; }
  .nav-mobile-only { display: list-item; }

  .nav-links {
    left: 8px;
    right: 8px;
    max-width: calc(100vw - 16px);
  }

  .floating-whatsapp {
    left: 16px;
    right: 16px;
    bottom: 72px;
    justify-content: center;
  }

  .floating-call {
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: center;
  }
}
