/* ==============================================
   SHARED NAVIGATION & FOOTER STYLES
   Extracted from all pages — loaded via <link>
   ============================================== */

/* =============================================
   SHARED BUTTON STYLES (used by header CTA, modal, etc.)
   Page-specific overrides may exist; these are the defaults.
============================================= */
.btn-primary {
  display: inline-block;
  padding: 14px 34px;
  background: linear-gradient(90deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(200,154,60,0.45), 0 1px 4px rgba(0,0,0,0.18);
  position: relative;
  overflow: hidden;
}
/* Glass shine sweep on hover */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0)   0%,
    rgba(255,255,255,0.35) 50%,
    rgba(255,255,255,0)   100%
  );
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}
.btn-primary:hover::after {
  left: 130%;
}
.btn-primary:hover {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 100%);
  box-shadow: 0 8px 28px rgba(200,154,60,0.55), 0 2px 8px rgba(0,0,0,0.22);
  transform: translateY(-2px);
}
.btn-secondary {
  display: inline-block;
  padding: 13px 32px;
  background: transparent;
  color: var(--navy);
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--navy);
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(10,29,51,0.22);
}
.btn-secondary.light {
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-secondary.light:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

/* =============================================
   NAVIGATION
============================================= */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray);
  box-shadow: 0 2px 16px rgba(10,29,51,0.07);
  transition: box-shadow 0.3s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}
.nav-logo img {
  height: 70px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-links > li {
  position: relative;
}
.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-radius: 2px;
  transition: color 0.2s;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--gold); }
.nav-links > li > a .chevron {
  font-size: 9px;
  transition: transform 0.25s;
}

/* Dropdown / Mega menu — base */
.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-top: 3px solid var(--gold);
  box-shadow: 0 12px 40px rgba(10,29,51,0.13);
  min-width: 220px;
  padding: 10px 0;
  border-radius: 0 0 4px 4px;
  z-index: 200;
}
.mega-menu a {
  display: block;
  padding: 9px 24px;
  font-size: 13px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 400;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.mega-menu a:hover {
  background: var(--ivory);
  color: var(--gold);
}
.nav-links > li:hover .mega-menu { display: block; }
.nav-links > li:hover > a .chevron { transform: rotate(180deg); }

/* Services — four-column mega menu (Undergrad x2, Grad/Prof, N.O.T.C.H.) */
.mega-menu.services-menu {
  left: 50%;
  transform: translateX(-50%);
  min-width: 1080px;
  padding: 0;
  overflow: hidden;
}
.services-menu-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 260px;
  grid-template-rows: auto 1fr;
  gap: 0;
}
.services-group-title {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--navy);
  padding: 12px 20px;
}
.services-group-title.undergrad-title { grid-column: 1 / span 2; grid-row: 1; }
.services-group-title.grad-title { grid-column: 3; grid-row: 1; border-left: 1px solid rgba(200,154,60,0.2); }
.services-menu-col {
  padding: 20px 20px 20px;
  grid-row: 2;
}
.services-menu-col + .services-menu-col {
  border-left: 1px solid var(--gray);
}
.services-menu-heading {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--gray);
}
.services-menu-col a {
  display: block;
  padding: 10px 12px;
  border-radius: 3px;
  white-space: normal;
  text-decoration: none;
  transition: background 0.15s;
}
.services-menu-col a .svc-title {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
  transition: color 0.15s;
}
.services-menu-col a .svc-sub {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--slate);
  line-height: 1.4;
  transition: color 0.15s;
}
.services-menu-col a:hover { background: var(--ivory); }
.services-menu-col a:hover .svc-title { color: var(--gold); }
.services-menu-col a:hover .svc-sub  { color: var(--gold); }

/* N.O.T.C.H. promo panel */
.services-menu-promo {
  background: #FFF6E6;
  border-left: 1px solid var(--gray);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-column: 4;
  grid-row: 1 / span 2;
}
.services-menu-promo .promo-acronym {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.services-menu-promo .promo-desc {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 18px;
}
.services-menu-promo .promo-link {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #C89A3C;
  background: #0A1D33;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 2px;
  white-space: nowrap;
  transition: color 0.25s;
}
.services-menu-promo .promo-link:hover {
  color: #ffffff;
  background: #0A1D33;
}

.nav-cta .btn-primary { padding: 11px 22px; font-size: 11px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  overflow-y: auto;
  padding: 24px 24px 48px;
  flex-direction: column;
  gap: 0;
  border-top: 3px solid var(--gold);
}
.mobile-nav.open { display: flex; }
.mobile-nav a,
.mobile-nav .mobile-nav-label,
.mobile-nav .mobile-sub a {
  display: block;
  padding: 14px 0;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gray);
  transition: color 0.2s;
}
.mobile-nav .mobile-sub a {
  font-size: 11px;
  font-weight: 400;
  padding: 11px 12px;
  letter-spacing: 0.5px;
  color: var(--slate);
}
.mobile-nav a:hover,
.mobile-nav .mobile-sub a:hover { color: var(--gold); }
.mobile-nav .mobile-cta {
  margin-top: 28px;
}
.mobile-nav .mobile-cta .btn-primary {
  width: 100%;
  text-align: center;
  padding: 16px;
}

/* =============================================
   FOOTER
============================================= */
#footer {
  background: #060f1a;
  border-top: 3px solid var(--gold);
  padding: 72px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: auto; width: 260px; margin-bottom: 20px; border-radius: 12px; }
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 280px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}
.footer-contact-item i { color: var(--gold); font-size: 13px; width: 16px; }
.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200,154,60,0.25);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.footer-bottom p a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-bottom p a:hover { color: var(--gold); }
.footer-social {
  display: flex;
  gap: 10px;
  margin: 20px 0 24px;
}
.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(200,154,60,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.footer-social-icon:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

/* =============================================
   RESPONSIVE OVERRIDES (nav / footer)
============================================= */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* =============================================
   CONSULTATION FORM (shared) + MODAL
============================================= */
.consult-form-wrap {
  background: var(--white);
  border-radius: 6px;
  padding: 36px 36px 32px;
  box-shadow: 0 18px 60px rgba(10,29,51,0.10);
}
.consult-form-wrap h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.25;
}
.consult-form-wrap .form-subtitle {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 24px;
}
.consult-form-wrap .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.consult-form-wrap .form-group {
  margin-bottom: 14px;
}
.consult-form-wrap label {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}
.consult-form-wrap input,
.consult-form-wrap select,
.consult-form-wrap textarea {
  width: 100%;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: var(--navy);
  padding: 11px 14px;
  border: 1px solid var(--gray);
  border-radius: 3px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.consult-form-wrap textarea { resize: vertical; min-height: 96px; }
.consult-form-wrap input:focus,
.consult-form-wrap select:focus,
.consult-form-wrap textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,154,60,0.18);
}
.consult-form-wrap .form-select-wrap {
  position: relative;
}
.consult-form-wrap .form-select-wrap::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--slate);
  pointer-events: none;
}
.consult-form-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
}
.consult-form-wrap .form-submit { margin-top: 8px; }
.consult-form-wrap .form-submit .btn-primary {
  width: 100%;
  text-align: center;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: none;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: filter 0.2s;
}
.consult-form-wrap .form-submit .btn-primary:hover { filter: brightness(0.95); }

/* MODAL */
.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px;
  overflow-y: auto;
}
.consult-modal.open { display: flex; }
.consult-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,29,51,0.65);
  backdrop-filter: blur(2px);
  animation: consultFadeIn 0.2s ease;
}
.consult-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  animation: consultSlideUp 0.28s ease;
}
.consult-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--gray);
  color: var(--navy);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s, color 0.2s;
}
.consult-modal-close:hover { background: var(--gold); color: var(--navy); }

@keyframes consultFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes consultSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
  .consult-form-wrap { padding: 28px 22px; }
  .consult-form-wrap .form-row { grid-template-columns: 1fr; gap: 0; }
  .consult-modal { padding: 2vh 10px; }
  .consult-form-wrap h3 { font-size: 20px; }
}
