/* ============================================================
   site-nav.css
   Extracted from site.css (the lightweight main-site stylesheet).
   Loaded by /adsense-page/<slug>/*.html so the new nav + Soul Flame
   CTA + footer brand render with the same look as the main Astro
   site, WITHOUT pulling in site.css's global resets/grid/card rules
   that conflict with the adsense pages' Webflow stylesheet.
   ============================================================ */

/* ============ Navbar (custom design, not the original WP styling) ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  /* TALL state — when at top of page */
  padding: .5em;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(8, 26, 68, 0.06);
  transition: padding .2s ease, background .2s ease, box-shadow .2s ease;
}
.navbar .navbar-brand img {
  height: 48px;
  transition: height .2s ease;
}
.navbar .nav-link { transition: padding .2s ease; }
.navbar .btn-soul-flame { transition: padding .15s ease, transform .15s ease, box-shadow .15s ease, filter .15s ease; }

/* SHRUNK state — when page scrolled past threshold */
.navbar.is-shrunk {
  padding: .25em .5em;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(8, 26, 68, 0.06);
}
.navbar.is-shrunk .navbar-brand img { height: 32px; }
.navbar.is-shrunk .nav-link { padding-top: .45rem; padding-bottom: .45rem; }
.navbar.is-shrunk .btn-soul-flame { padding: .35rem .8rem; font-size: 12px; }

/* MOBILE — same .5em rhythm, smaller logo */
@media (max-width: 991.98px) {
  .navbar { padding: .35em .5em; }
  .navbar .navbar-brand img { height: 30px; }
  .navbar .navbar-toggler {
    padding: .2rem .45rem;
    font-size: 1rem;
    border-radius: 6px;
  }
  .navbar .navbar-toggler-icon { width: 1.2em; height: 1.2em; }
  .navbar.is-shrunk { padding: .25em .5em; }
  .navbar.is-shrunk .navbar-brand img { height: 26px; }
}
.navbar > .container,
.navbar > .container-fluid {
  display: flex;
  flex-wrap: inherit;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  width: 100%;
  padding: 0;
}
.navbar-brand {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}
.navbar-brand img { height: 48px; width: auto; }
.navbar-toggler {
  padding: .375rem .75rem;
  font-size: 1.25rem;
  background-color: transparent;
  border: 1px solid rgba(8, 26, 68, 0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease;
}
.navbar-toggler:hover { background: rgba(92, 49, 246, 0.06); }
.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(8, 26, 68, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

/* Mobile-first: collapse hidden by default */
.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
  display: none;
}
.navbar-collapse.show {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 1rem 0;
  gap: .25rem;
}
/* Override .mx-auto centering on mobile so nav-items flush-left */
.navbar-collapse.show .navbar-nav {
  align-items: stretch;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
}
.navbar-collapse.show .nav-item { width: 100%; }
.navbar-collapse.show .nav-link { padding-left: 0; padding-right: 0; text-align: left; }
/* Mobile collapsed dropdown items also flush-left */
.navbar-collapse.show .dropdown-menu { padding-left: 0; padding-right: 0; }
.navbar-collapse.show .dropdown-item { padding-left: 0; }

@media (min-width: 992px) {
  .navbar-expand-lg { flex-flow: row nowrap; justify-content: flex-start; }
  .navbar-expand-lg .navbar-nav { flex-direction: row; align-items: center; }
  .navbar-expand-lg .navbar-toggler { display: none; }
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
  }
}

.nav-item { position: relative; }
.nav-link {
  position: relative;
  display: block;
  padding: .75rem 1rem;
  color: #081A44;
  font-family: 'Cera Pro', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-transform: capitalize;
  transition: color .15s ease;
  cursor: pointer;
}
.nav-link:hover,
.nav-item:hover > .nav-link {
  color: #5C31F6;
  text-decoration: none;
}
/* Underline accent — uses ::before so ::after is free for the dropdown caret */
@media (min-width: 992px) {
  .nav-link::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #5C31F6, #BF8CFE);
    border-radius: 2px;
    transition: width .2s ease;
    pointer-events: none;
  }
  .nav-link:hover::before,
  .nav-item:hover > .nav-link::before { width: calc(100% - 2rem); }
}
@media (max-width: 991.98px) {
  .nav-link { padding: .625rem .25rem; border-bottom: 1px solid rgba(8, 26, 68, 0.05); }
}

/* ============ Soul Flame Pattern CTA button ============ */
.btn-soul-flame {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  font-family: 'Cera Pro', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(63.09deg, #5c31f6 -8.38%, #6169f6 39.09%, #bf8cfe 90.68%);
  box-shadow: 0 4px 14px rgba(92, 49, 246, 0.24);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-soul-flame:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(92, 49, 246, 0.32);
  filter: brightness(1.05);
}
.btn-soul-flame::before {
  content: '\f06d'; /* fa-fire */
  font-family: FontAwesome;
  font-weight: 900;
  font-size: 12px;
  opacity: 0.95;
}
@media (max-width: 991.98px) {
  .btn-soul-flame { width: 100%; justify-content: center; margin-top: .5rem; }
}

/* Dropdowns */
.dropdown { position: relative; display: inline-block; }
/* Top-level dropdown caret — inline to the RIGHT of the link text */
.dropdown-toggle::after {
  display: inline-block;
  margin-left: .4em;
  vertical-align: middle;
  content: "";
  width: 0;
  height: 0;
  border-top: .35em solid currentColor;
  border-right: .3em solid transparent;
  border-bottom: 0;
  border-left: .3em solid transparent;
  transition: transform .15s ease;
}
.nav-item.dropdown:hover > .nav-link.dropdown-toggle::after,
.nav-item.dropdown.show > .nav-link.dropdown-toggle::after {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1001;
  display: none;
  min-width: 10rem;
  padding: .5rem 0;
  margin: 0;
  font-size: 14px;
  color: #2C2218;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(8, 26, 68, 0.12), 0 2px 8px rgba(8, 26, 68, 0.06);
}
.dropdown-menu.show { display: block; }
.dropdown-item {
  display: block;
  width: 100%;
  padding: .55rem 1.25rem;
  clear: both;
  font-family: 'Cera Pro', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #081A44;
  text-align: inherit;
  white-space: nowrap;
  text-transform: capitalize;
  background-color: transparent;
  border: 0;
  transition: background .12s ease, color .12s ease;
}
.dropdown-item:hover {
  color: #5C31F6;
  background-color: rgba(92, 49, 246, 0.06);
  text-decoration: none;
}
.dropdown-item a,
.dropdown-item .submenu-link { color: inherit; text-decoration: none; }

/* Dropdown-submenu (hover-only on desktop, click on mobile via JS) */
.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: calc(100% + 4px);   /* slight gap from parent */
  margin: 0;
  min-width: 280px;
  max-width: 360px;
}
/* Right-side caret on submenu toggle */
.dropdown-submenu > .dropdown-toggle::after {
  display: inline-block;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  margin: 0;
  content: "";
  border-top: .3em solid transparent;
  border-right: 0;
  border-bottom: .3em solid transparent;
  border-left: .35em solid currentColor;
}
@media (min-width: 992px) {
  .dropdown-submenu:hover > .dropdown-menu { display: block; }
  /* Hover-to-open top-level dropdowns on desktop */
  .navbar-expand-lg .nav-item.dropdown:hover > .dropdown-menu { display: block; }
}
/* If submenu contains an inline .row grid (multi-column archetype list etc.),
   make sure it fits nicely without overflow */
.dropdown-menu .row {
  margin: .25rem 0;
  padding: 0 .5rem;
  flex-wrap: wrap;
}
.dropdown-menu .row > [class*="col-"] {
  padding: .25rem .5rem;
}
.dropdown-menu .menu-title {
  font-family: 'Recoleta', 'Cera Pro', serif;
  font-size: 14px;
  font-weight: 700;
  color: #081A44;
  margin: 0 0 .25rem;
  padding: .25rem .8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* submenu-link styling ONLY applies to leaf links inside an inner .row grid
   (the 12-archetype / daily-archetype multi-column lists). Plain
   .dropdown-item .submenu-link triggers keep their dropdown-item padding. */
.dropdown-menu .row .submenu-link {
  display: inline-block;
  padding: .35rem 0;
  color: #51596B;
  font-family: 'Cera Pro', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: capitalize;
}
.dropdown-menu .row .submenu-link:hover { color: #5C31F6; text-decoration: none; }
/* Make sure submenu trigger items (.dropdown-toggle inside dropdown-submenu)
   keep the standard dropdown-item padding and don't shrink to .submenu-link. */
.dropdown-submenu > .dropdown-toggle.submenu-link {
  display: block;
  padding: .55rem 2rem .55rem 1.25rem;   /* extra right padding for the caret */
  font-size: 14px;
  font-weight: 500;
  color: #081A44;
  text-transform: none;
}
.dropdown-submenu > .dropdown-toggle.submenu-link:hover { color: #5C31F6; }

/* Mobile: submenu sits below parent, indented */
@media (max-width: 991.98px) {
  .dropdown-submenu > .dropdown-menu {
    position: static;
    margin: 0 0 0 1rem;
    box-shadow: none;
    border-left: 2px solid rgba(92, 49, 246, 0.15);
    border-radius: 0;
    padding: .25rem 0 .25rem .5rem;
  }
  .navbar-collapse .dropdown-menu {
    position: static;
    box-shadow: none;
    background: transparent;
    margin: 0;
    padding: 0 0 0 1rem;
  }
}

/* Forms in navbar (Login/Sign Up buttons inside <form>) */
.form-inline { display: flex; flex-flow: row wrap; align-items: center; }

/* ============ Footer brand (logo + copyright) ============ */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-brand img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}
.footer-brand .copy {
  font-family: 'Cera Pro', sans-serif;
  font-size: 13px;
  color: #51596B;
  line-height: 1.4;
}
@media (max-width: 767.98px) {
  .footer-brand {
    justify-content: center;
    text-align: center;
    margin-bottom: 12px;
  }
  .footer-brand .copy { width: 100%; }
}

