/* ── LAYOUT ELEMENTS ────────────────────────────────────────────────────── */

/* Skip to Content Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--gold);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), box-shadow var(--transition-normal), padding var(--transition-normal);
  padding: 0.8rem 0;
}

.site-header.scrolled {
  background-color: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), var(--shadow-md);
  border-bottom: none;
  padding: 0.55rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand Logo */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  z-index: 1010;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo {
  height: 44px;
  width: auto;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.site-header.scrolled .brand-logo {
  height: 38px;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 0.7rem + 0.8vw, 1.1rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.brand-tagline {
  font-family: var(--font-body);
  font-size: clamp(11px, 0.45rem + 0.2vw, 10px);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-light);
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
}

/* Nav Menu (Desktop) */
.nav-menu {
  display: none;
  align-items: center;
  gap: clamp(0.1rem, -1.5rem + 2.5vw, 1rem);
  flex-shrink: 0;
  flex-wrap: nowrap;
}

@media (min-width: 900px) {
  .nav-menu {
    display: flex;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: clamp(0.78rem, 0.65rem + 0.4vw, 0.9rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.45rem clamp(0.35rem, -0.5rem + 1.5vw, 0.75rem);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: var(--gold-light);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background-color: var(--gold);
  transform: scaleX(1);
}

.nav-btn {
  background-color: var(--gold);
  color: var(--white);
  font-weight: 600;
  padding: 0.5rem clamp(0.7rem, -0.5rem + 2vw, 1.1rem);
  border-radius: var(--radius-sm);
  font-size: clamp(0.75rem, 0.65rem + 0.35vw, 0.875rem);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 10px rgba(230, 81, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-btn:hover {
  background-color: var(--gold-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(230, 81, 0, 0.3);
}

.nav-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Mobile Toggle Hamburger Menu */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  background: transparent;
  cursor: pointer;
  z-index: 1010;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: var(--radius-full);
  transition: transform var(--transition-normal), opacity var(--transition-fast);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Overlay Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--navy);
  z-index: 1005;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  transition: right var(--transition-slow);
  padding: var(--space-xl);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu .nav-link {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading);
}

.mobile-menu .nav-link.active {
  color: var(--gold-light);
}

.mobile-menu .nav-btn {
  margin-top: var(--space-sm);
  font-size: var(--text-md);
  padding: 0.8rem 2rem;
}

/* Footer Section */
.site-footer {
  background-color: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-md);
  border-top: 4px solid var(--gold);
}

@media (min-width: 768px) {
  .site-footer {
    padding-top: var(--space-2xl);
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-logo-container {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer-logo {
  height: 60px;
  width: auto;
}

.footer-school-name {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
}

.footer-motto {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--gold-muted);
}

.footer-desc {
  font-size: var(--text-sm);
  line-height: 1.6;
}

.footer-heading {
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
  position: relative;
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: var(--text-sm);
}

.footer-info-item {
  display: flex;
  gap: var(--space-xs);
  line-height: 1.4;
}

.footer-info-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: var(--gold-muted);
}

/* Bottom Bar */
.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: var(--text-xs);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--navy-light);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal), background-color var(--transition-fast), transform var(--transition-fast);
  z-index: 99;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--gold);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
