/* =========================================================
   Shared navigation bar + site footer (used on every page)
   All selectors are prefixed so they never clash with the
   certificate generator's own styles.
   ========================================================= */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 22, 41, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217, 185, 104, 0.15);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  transition: box-shadow 0.3s, background 0.3s;
}

.site-nav.is-scrolled {
  background: rgba(13, 22, 41, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.site-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.site-nav__brand em {
  font-style: normal;
  color: #d9b968;
}

.site-nav__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e7cd8a, #b8913a);
  color: #0d1629;
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(184, 145, 58, 0.4);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav__links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.site-nav__links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.site-nav__links a.is-active {
  color: #d9b968;
}

.site-nav__links a.site-nav__cta {
  margin-left: 8px;
  color: #0d1629;
  font-weight: 600;
  background: linear-gradient(135deg, #e7cd8a, #c9a24b);
  box-shadow: 0 6px 18px rgba(201, 162, 75, 0.35);
}

.site-nav__links a.site-nav__cta:hover {
  color: #0d1629;
  background: linear-gradient(135deg, #f0d99c, #d4ae58);
}

/* Hamburger button (mobile only) */
.site-nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.site-nav__toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
  transition: transform 0.3s, opacity 0.3s;
}

.site-nav.is-open .site-nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-nav.is-open .site-nav__toggle span:nth-child(2) { opacity: 0; }
.site-nav.is-open .site-nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 820px) {
  .site-nav__toggle {
    display: flex;
  }

  .site-nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 20px 20px;
    background: rgba(13, 22, 41, 0.98);
    border-bottom: 1px solid rgba(217, 185, 104, 0.15);
    display: none;
  }

  .site-nav.is-open .site-nav__links {
    display: flex;
  }

  .site-nav__links a {
    padding: 12px 14px;
  }

  .site-nav__links a.site-nav__cta {
    margin: 8px 0 0;
    text-align: center;
  }
}

/* ---------- Site footer ---------- */
.site-footer {
  background: #0a1122;
  color: rgba(255, 255, 255, 0.65);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  padding: 64px 24px 28px;
}

.site-footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.site-footer__about p {
  margin: 16px 0 0;
  max-width: 360px;
  line-height: 1.7;
  font-size: 0.95rem;
}

.site-footer h4 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #d9b968;
}

.site-footer__bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
}

.site-footer__bottom strong {
  color: #d9b968;
  font-weight: 600;
}

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

  .site-footer__about {
    grid-column: 1 / -1;
  }
}
