/* ── SHARED NAV STYLES ── */
.kdoa-nav {
  background: #0c1f3f;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kdoa-nav-logo {
  font-family: 'DM Serif Display', serif;
  color: #fff;
  font-size: 1.15rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.kdoa-nav-logo img {
  height: 65px;
  width: auto;
  filter: brightness(1.15) drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
  flex-shrink: 0;
}

.kdoa-nav-logo .logo-text {
  font-family: 'DM Serif Display', serif;
  color: #fff;
  font-size: 1.05rem;
  white-space: nowrap;
}

.kdoa-nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.kdoa-nav-links li {
  position: relative;
}

.kdoa-nav-links a,
.kdoa-dropdown-trigger {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.kdoa-nav-links a:hover,
.kdoa-dropdown-trigger:hover {
  color: #dfc574;
}

.kdoa-nav-links .nav-cta {
  background: #c8a84e;
  color: #0c1f3f;
  padding: 8px 20px;
  border-radius: 5px;
  font-weight: 700;
  display: inline-block;
}

.kdoa-nav-links .nav-cta:hover {
  background: #dfc574;
  color: #0c1f3f;
}

.has-dropdown {
  position: relative;
}

.kdoa-dropdown-trigger {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  appearance: none;
  -webkit-appearance: none;
}

.kdoa-dropdown-trigger::after {
  content: '▾';
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.25s ease;
}

/* ── DESKTOP ── */
@media (min-width: 769px) {

  .kdoa-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #162d54;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, top 0.2s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1200;
  }

  .kdoa-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #162d54;
  }

  .has-dropdown:hover > .kdoa-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    top: calc(100% + 5px);
  }

  .has-dropdown:hover .kdoa-dropdown-trigger::after {
    transform: rotate(180deg);
  }
}

.kdoa-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.kdoa-dropdown a:hover {
  color: #dfc574;
  background: rgba(255, 255, 255, 0.04);
}

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1300;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-open .nav-hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-open .nav-hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .has-dropdown.dropdown-open .kdoa-dropdown {
    height: auto;
    overflow: visible;
    z-index:999;
  }
  .kdoa-nav {
    padding: 0 20px;
  }

  .nav-hamburger {
    display: flex;
  }

  .kdoa-nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0c1f3f;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 20px 28px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
  }

  .nav-open .kdoa-nav-links {
    display: flex;
  }

  .kdoa-nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .kdoa-nav-links a:not(.nav-cta),
  .kdoa-dropdown-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    font-size: 1rem;
    text-align: left;
    background: none;
    border: none;
    color: #fff;
  }

  .kdoa-dropdown-trigger {
    justify-content: space-between;
  }

  .kdoa-dropdown-trigger::after {
    margin-left: auto;
  }

  .kdoa-dropdown {
    position: static;
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    margin: 0;
    padding: 0 0 0 14px;

    height: 0;
    overflow: hidden;
  }

  .kdoa-dropdown::before {
    display: none;
  }

  .has-dropdown.dropdown-open .kdoa-dropdown-trigger::after {
    transform: rotate(180deg);
  }

  .kdoa-dropdown a {
    display: block;
    padding: 12px 16px 12px 10px;
    font-size: 0.92rem;
    line-height: 1.45;
    white-space: normal;
    color: #fff;
  }

  .kdoa-nav-links .nav-cta {
    display: block;
    width: 100%;
    margin: 16px 0 0;
    text-align: center;
    padding: 12px 18px;
    border-radius: 6px;
  }
}

/* ── SMALLER PHONES ── */
@media (max-width: 480px) {
  .kdoa-nav-logo .logo-text {
    display: none;
  }
}

/* ── FOOTER ── */
footer {
  background: #0c1f3f;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px 48px;
}

.footer-brand .brand-name {
  font-family: 'DM Serif Display', serif;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 280px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-title {
  color: #dfc574;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #dfc574;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 48px 24px 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 20px 24px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}