/* ==========================================================================
   nav.css — Top info bar + sticky main navigation
   ========================================================================== */

/* ── Top bar (address / phone / socials) ─────────────────────────────────── */

.topbar {
  background: var(--navy);
  padding: 9px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, .75);
  letter-spacing: .02em;
}

.topbar-item svg { width: 13px; height: 13px; opacity: .7; flex-shrink: 0; }
.topbar-item a   { color: rgba(255, 255, 255, .75); transition: color .2s; }
.topbar-item a:hover { color: var(--yellow); }

/* Social icon buttons in topbar */
.topbar-socials { display: flex; align-items: center; gap: 8px; }

.sc-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
  flex-shrink: 0;
}

.sc-btn:hover { transform: scale(1.15); }
.sc-btn svg   { width: 14px; height: 14px; }

.sc-ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.sc-fb { background: #1877F2; }
.sc-yt { background: #FF0000; }
.sc-tk { background: #010101; }
.sc-wa { background: #25D366; }

/* ── Main navigation (sticky) ────────────────────────────────────────────── */

.nav {
  background: var(--white);
  border-bottom: 2px solid var(--green-light);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(24, 105, 60, .07);
}

.nav-logo { display: flex; align-items: center; gap: 16px; }

/* Square logo placeholder
   → Replace .logo-sq div with:
     <img src="assets/logo.png" alt="Newton School" class="logo-img">
   → Add rule: .logo-img { width:52px; height:52px; object-fit:contain; border-radius:var(--r-sm); }
*/
.logo-sq {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  background: var(--green-light);
  border: 2px dashed var(--green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-shrink: 0;
}

.logo-sq svg  { width: 16px; height: 16px; color: var(--green); opacity: .5; }
.logo-sq span { font-size: 7px; font-weight: 700; color: var(--green); letter-spacing: .04em; text-transform: uppercase; line-height: 1; }

.logo-text { display: flex; flex-direction: column; gap: 1px; }

.logo-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .04em;
  line-height: 1;
}

.logo-name span { color: var(--green); }

.logo-sub {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Inscription open badge */
.nav-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .04em;
  white-space: nowrap;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .25; }
}
