/* ============================================================
   OperateEDU Marketing Site — nav.css
   ============================================================ */

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #F9F3ED;
  border-bottom: 1px solid #EFB071;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  height: 72px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-img {
  max-height: 40px;
  width: auto;
  display: block;
}

.nav__logo-img--white {
  display: none;
}

/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #31413F;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav__link:hover {
  color: #477772;
  text-decoration: none;
}

.nav__link--active {
  color: #477772 !important;
  font-weight: 700 !important;
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #EFB071;
  border-radius: 2px;
}

/* Actions */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__login {
  color: #31413F;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  margin-right: 8px;
}

.nav__login:hover {
  color: #477772;
  text-decoration: none;
}

.nav__cta {
  display: inline-block;
  background: #EFB071;
  color: #31413F;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: 100px;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  transition: all 0.2s;
}

.nav__cta:hover {
  background: #D9935A;
  color: #31413F;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #31413F;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav__hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger--open span:nth-child(2) { opacity: 0; }
.nav__hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #F9F3ED;
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.nav__mobile--open { display: flex; }

.nav__mobile a {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #31413F;
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(71,119,114,0.1);
  display: block;
}

.nav__mobile a:last-child { border-bottom: none; }

.nav__mobile .nav__cta {
  display: block;
  text-align: center;
  font-size: 16px;
  padding: 16px;
  margin-top: 16px;
}

/* --- Footer --- */
.site-footer {
  background-color: #31413F;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
  position: relative;
  z-index: 1;
  margin-top: -2px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand-logo {
  max-height: 52px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

.footer__desc {
  font-size: 14px;
  line-height: 1.7;
  max-width: 260px;
  color: rgba(255,255,255,0.6);
}

.footer__heading {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.15s;
}
.footer__links a:hover { color: #EFB071; text-decoration: none; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
}

.footer__copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* --- Responsive Nav --- */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__actions { display: none; }
  .nav__hamburger { display: flex; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* Page body offset for fixed nav */
body { padding-top: 72px; }
