/* ══ Nav bar ══ */
.cp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6,20,32,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid rgba(184,115,51,0.15);
}

.cp-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.cp-nav-logo {
  height: 28px;
  width: auto;
  opacity: 0.9;
}
.cp-nav-brand-text {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 400;
  color: #B87333;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── Desktop links ── */
.cp-nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 0;
  padding: 0;
}
.cp-nav-links a,
.cp-nav-dropdown-toggle {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}
.cp-nav-primary-link {
  color: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(184,115,51,0.35);
  border-radius: 999px;
  padding: 7px 14px;
}
.cp-nav-primary-link:hover {
  color: #B87333 !important;
  border-color: rgba(184,115,51,0.75);
  background: rgba(184,115,51,0.08);
}
.cp-nav-primary-link.active {
  color: #B87333 !important;
  border-color: rgba(184,115,51,0.8);
  background: rgba(184,115,51,0.12);
}
.cp-nav-links a:hover,
.cp-nav-dropdown-toggle:hover {
  color: #D4954A;
}
.cp-nav-links a.active {
  color: #B87333;
}

/* ── Dropdown menus ── */
.cp-nav-dropdown {
  position: relative;
}
.cp-nav-dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}
.cp-nav-dropdown-toggle {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  padding: 0;
}
.cp-nav-dropdown-toggle:hover {
  color: #D4954A;
}
.cp-nav-arrow {
  font-size: 0.65em;
  margin-left: 3px;
  opacity: 0.6;
}
.cp-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 10px;
  z-index: 1050;
}
.cp-nav-dropdown:hover .cp-nav-dropdown-menu {
  display: block;
}
.cp-nav-dropdown-inner {
  background: rgba(6,15,24,0.98);
  border: 0.5px solid rgba(184,115,51,0.2);
  border-radius: 8px;
  padding: 6px 0;
  min-width: 230px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.cp-nav-dropdown-inner a {
  display: block;
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.cp-nav-dropdown-inner a:hover {
  color: #B87333;
  background: rgba(184,115,51,0.08);
}
.cp-nav-dropdown-inner a.active {
  color: #B87333;
  background: rgba(184,115,51,0.12);
}

/* ── Hamburger ── */
.cp-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1201;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}
.cp-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #B87333;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.cp-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.cp-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.cp-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Mobile menu overlay ── */
.cp-mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1100;
  background: rgba(6,15,24,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 80px 24px 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.cp-mobile-menu.open {
  display: flex;
}
.cp-mobile-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  font-size: 28px;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cp-mobile-section {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #B87333;
  padding: 20px 0 8px;
  width: 100%;
  max-width: 300px;
  text-align: center;
  opacity: 0.7;
}
.cp-mobile-section:first-of-type {
  padding-top: 0;
}
.cp-mobile-menu a {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 14px 24px;
  width: 100%;
  max-width: 300px;
  text-align: center;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}
.cp-mobile-menu a:hover {
  color: #D4954A;
}
.cp-mobile-menu a.active {
  color: #B87333;
}
.cp-mobile-divider {
  width: 60px;
  height: 0.5px;
  background: rgba(184,115,51,0.2);
  margin: 8px auto;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .cp-nav {
    padding: 12px 16px;
  }
  .cp-nav-links {
    display: none !important;
  }
  .cp-hamburger {
    display: flex !important;
  }
  .cp-nav-brand-text {
    font-size: 11px;
  }
}

/* Touch devices */
@media (pointer: coarse) {
  .cp-nav a, .cp-nav button, .cp-mobile-menu a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
}

/* ══ READABILITY FIXES ══ */

body {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

p, li, td, th, dd, dt, blockquote, figcaption, label {
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}

small, .caption, .footnote, .helper-text {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

footer, .footer {
  color: rgba(255,255,255,0.45) !important;
}
footer a, .footer a {
  color: rgba(255,255,255,0.55) !important;
}
footer a:hover, .footer a:hover {
  color: #D4954A !important;
}
