/* Top navigation bar */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 247, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 58, 143, 0.1);
  padding: 0 5%;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--content);
  margin: 0 auto;
  gap: 20px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.logo-wrap img {
  height: 62px;
  width: 62px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--blue);
  font-weight: 700;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--wine);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.3px;
  text-transform: none;
  line-height: 1.4;
  margin-top: 3px;
  opacity: 0.95;
  transition: color 0.25s ease;
}

.logo-wrap:hover .logo-text span {
  color: var(--blue);
}


.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
  padding: 4px 0;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-cta {
  background: var(--blue);
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: #122870;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid rgba(26, 58, 143, 0.25);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 20px;
  line-height: 1;
  color: var(--blue);
  cursor: pointer;
}

.nav-links a[aria-current="page"] {
  color: var(--blue);
  font-weight: 500;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 12px 5% 16px;
    background: var(--bg);
    border-bottom: 1px solid rgba(26, 58, 143, 0.1);
    margin-left: 0;
  }
  .nav-links a { padding: 8px 0; }
  .nav-links.open { display: flex; }
}

@media (max-width: 600px) {
  .nav-cta { display: none; }
}

/* Fixed nav is 72px tall: keep anchor targets (#about, #why, #enquiry, #enrol, #tour)
   from landing underneath it, and scroll smoothly for users who allow motion. */
html {
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
