/* ============================================================
   LAYOUT.CSS — Navbar, Containers, Footer, Body Variants
   ============================================================ */

/* =========================
   UNIFIED NAVBAR
   ========================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  flex-shrink: 0;
  animation: fadeInUp 0.8s ease-out both;
}

.navbar.scrolled {
  border-bottom-color: var(--light-grey);
  box-shadow: 0 2px 12px var(--shadow);
}

/* Left — Logo + brand name */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-logo {
  width: 32px;
  height: 32px;
}

.navbar-brand {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--black);
  letter-spacing: -0.02em;
}

/* =========================
   SUBPAGE HEADER (below navbar)
   ========================= */
.header-subpage {
  text-align: center;
  padding: 2rem 1.5rem 2rem;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.header-subpage h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.header-subpage p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--grey);
  max-width: 480px;
  margin: 0 auto;
}

/* =========================
   BODY VARIANTS
   ========================= */

/* --- Landing page body (100vh flex column) --- */
body.page-landing {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 0 1.5rem;
}

body.page-landing footer {
  animation: fadeInUp 0.8s ease-out 0.2s both;
  padding: 1rem 1.5rem;
  width: 100%;
}

/* Landing: navbar is fixed, overlaid on top */
body.page-landing .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.page-landing .navbar.scrolled {
  border-bottom-color: transparent;
  box-shadow: none;
}

/* --- PDF page body (full-height flex column) --- */
html:has(body.page-pdf),
html:has(body.page-pdf) body {
  height: 100%;
}

body.page-pdf {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

body.page-pdf main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* =========================
   MAIN CONTENT CONTAINERS
   ========================= */
.main-narrow {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  flex: 1;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.main-medium {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  flex: 1;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

/* =========================
   FOOTER
   ========================= */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  flex-shrink: 0;
}

footer .legal-links {
  margin-bottom: 1.25rem;
}

footer .social-icons {
  margin-bottom: 1.25rem;
}

footer p {
  font-size: 0.75rem;
  color: var(--grey);
}

footer a {
  color: var(--primary);
  text-decoration: none;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 480px) {
  .navbar {
    padding: 0.6rem 1rem;
  }

  .navbar-brand {
    font-size: 0.9rem;
  }

  .header-subpage h1 {
    font-size: 1.6rem;
  }
}
