/* ===================================================
   PIARIST FATHERS — Navbar & Footer Components
   Inspired by Don Bosco College Bengaluru Visual Identity
   =================================================== */

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 74px;
  min-height: 74px;
  max-height: 74px;
  padding: 0;
  display: flex;
  align-items: center;
  transition: var(--transition);
  background: #061325;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.navbar.scrolled {
  background: rgba(6, 19, 37, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Navbar container override — Full horizontal width without clipping */
.navbar .container {
  width: 100%;
  max-width: 100%;
  padding: 0 clamp(1rem, 2.5vw, 2.5rem);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
}

/* Logo & Primary Branding */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  text-decoration: none;
}

.navbar-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(240, 178, 56, 0.6);
  box-shadow: 0 0 12px rgba(240, 178, 56, 0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.navbar-logo:hover .navbar-logo-img {
  transform: scale(1.06);
}

.navbar-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  flex-shrink: 0;
}

.navbar-logo-name {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  line-height: 1.15;
}

.navbar-logo-sub {
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.1rem;
  white-space: nowrap;
  line-height: 1.15;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-item {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  border-radius: 50px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}

.nav-link:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

/* Active Page Indication — Reduced subtle dark pill with gold accent */
.nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(240, 178, 56, 0.4);
  color: var(--gold) !important;
  font-weight: 700;
  padding: 6px 12px;
  box-shadow: inset 0 0 10px rgba(240, 178, 56, 0.08);
}

.nav-link .nav-arrow {
  font-size: 0.65rem;
  margin-left: 0.35rem;
  transition: transform 0.25s;
}

.nav-item:hover .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  width: 210px;
  background: var(--navy);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(240, 178, 56, 0.3);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: all 0.25s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: #ffffff;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-dropdown a:hover {
  color: var(--gold);
  background: rgba(240, 178, 56, 0.15);
  padding-left: 1.3rem;
}

/* CTA Button in Nav — Gallery Gold Pill (Compact & High Contrast) */
.nav-cta,
.nav-link.nav-cta {
  padding: 6px 16px !important;
  background: var(--gold) !important;
  color: #081d36 !important;
  border-radius: 50px !important;
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  border: none !important;
  box-shadow: 0 3px 12px rgba(240, 178, 56, 0.35) !important;
  margin-left: 6px !important;
}

.nav-cta:hover,
.nav-link.nav-cta:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(240, 178, 56, 0.55) !important;
  background: #fbc24a !important;
  color: #081d36 !important;
}

/* Hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
  background: transparent;
  border: none;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar-toggle.open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggle.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.navbar-toggle.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1280px) and (min-width: 1081px) {
  .nav-link {
    font-size: 13.5px !important;
    padding: 5px 8px !important;
  }
  .navbar-logo-name {
    font-size: 19px !important;
  }
  .nav-links {
    gap: 2px !important;
  }
}

@media (max-width: 1080px) {
  .nav-links {
    display: none !important;
  }
  .navbar-toggle {
    display: flex !important;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 2rem;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 3.5vw, 1.85rem);
  color: #ffffff;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  transition: var(--transition);
  text-align: center;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--light-gold);
}

.mobile-menu-divider {
  width: 60px;
  height: 1px;
  background: rgba(240, 178, 56, 0.3);
  margin: 1rem 0;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  padding-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.footer-logo-icon {
  width: 48px;
  height: 48px;
  background: var(--grad-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.footer-logo-text {
  flex: 1;
}

.footer-logo-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.footer-logo-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--light-gold);
}

.footer-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.footer-motto {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 600;
  color: var(--light-gold);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light-gold);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a::before {
  content: '›';
  color: var(--light-gold);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 0.3rem;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.footer-contact-icon {
  color: var(--light-gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.footer-contact-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
}

.social-icon:hover {
  border-color: var(--light-gold);
  color: var(--navy);
  background: var(--light-gold);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--light-gold);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

/* ---- FOOTER COPYRIGHT BAR ---- */
.footer-copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.75rem 0;
  text-align: center;
  width: 100%;
  background: var(--navy-dark);
}

.copyright-line-1 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.35rem;
  font-weight: 400;
}

.copyright-line-2 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--light-gold);
  opacity: 0.95;
  margin: 0;
  font-weight: 500;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
}

.breadcrumb a {
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--light-gold);
}

.breadcrumb-sep {
  color: rgba(255,255,255,0.45);
}

.breadcrumb-current {
  color: var(--light-gold);
  font-weight: 600;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .navbar-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}
