/* Ancient Languages — nav + footer styles.
   Extracted from /proofs/ancient-languages-course-single.html (nav + footer rules),
   plus dropdown styles per Phase 4 brief. */

/* NAV */
nav { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-alpha { font-family: 'Cormorant Garamond', serif; font-size: 42px; font-style: italic; font-weight: 400; color: var(--blue); line-height: 1; }
.logo-divider { width: 1px; height: 28px; background: var(--blue); opacity: 0.2; }
.logo-name { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 500; color: var(--blue); letter-spacing: 0.02em; padding-top: 8px; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--text); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active,
.nav-links .current-menu-item > a,
.nav-links .current-menu-ancestor > a,
.nav-links .current-page-ancestor > a { color: var(--blue); }

/* CTA button — works both from hardcoded class on <a> and WP class on <li> */
.nav-cta,
.nav-links li.nav-cta > a { background: var(--blue); color: var(--white) !important; padding: 8px 18px; }

/* My Account / Log In pill */
.nav-account { display: flex; align-items: center; margin-left: 8px; }
.nav-account-link { font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--blue); border: 1px solid var(--blue); padding: 7px 16px; text-decoration: none; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.nav-account-link:hover { background: var(--blue); color: var(--white); }

/* DROPDOWN — supports both custom classes and WordPress menu classes */
.nav-has-dropdown,
.nav-links .menu-item-has-children { position: relative; }

.nav-dropdown,
.nav-links .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  min-width: 180px;
  list-style: none;
  z-index: 200;
  padding: 0.5rem 0;
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-links .menu-item-has-children:hover .sub-menu { display: block; }

.nav-dropdown li a,
.nav-links .sub-menu li a {
  display: block;
  padding: 8px 1.25rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.nav-dropdown li a:hover,
.nav-links .sub-menu li a:hover { color: var(--blue); background: var(--surface); }

/* HAMBURGER + MOBILE MENU */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); }
.mobile-menu { display: none; background: var(--white); border-top: 1px solid var(--border); padding: 1.5rem 2rem; }
.mobile-menu a { display: block; font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: block; }

/* FOOTER */
footer { background: var(--footer-bg); padding: 4rem 0 0; }
.footer-top { display: flex; gap: 4rem; padding-bottom: 3rem; align-items: flex-start; }
.footer-brand { flex-shrink: 0; max-width: 200px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 0.75rem; }
.footer-logo-alpha { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-style: italic; font-weight: 400; color: var(--white); line-height: 1; }
.footer-logo-divider { width: 1px; height: 22px; background: rgba(255,255,255,0.25); }
.footer-logo-name { font-family: 'Cormorant Garamond', serif; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.65); padding-top: 6px; }
.footer-tagline { font-size: 12px; color: rgba(255,255,255,0.28); line-height: 1.65; }
.footer-cols { display: flex; gap: 2.5rem; flex: 1; flex-wrap: wrap; justify-content: flex-end; }
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col-heading { font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 0.35rem; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,0.9); }
.footer-social-link { display: flex; align-items: center; gap: 8px; }
.footer-social-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 0; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }

/* RESPONSIVE */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 900px) {
  .footer-top { flex-direction: column; gap: 2.5rem; }
  .footer-cols { justify-content: flex-start; }
  .footer-brand { max-width: none; }
}
@media (max-width: 600px) {
  .footer-cols { gap: 2rem; }
  .footer-col { min-width: calc(50% - 1rem); }
}
