/* ============================================================
   Astrolaabh · shared site chrome (injected by site-nav.js)
   One source of truth for: the top navigation bar, the
   Gemstones mega-menu, and the Astrolaabh Guarantee modal.
   Assumes the page :root defines the shared tokens
   (--bone, --ink-dark, --gold, --sage, --font-display,
   --font-ui, --nav-h, --pad-x, ...) - every page does.
   Header rules are scoped under #site-nav so the homepage's
   bespoke hero nav (styles.css) is never affected.
   ============================================================ */

/* Sesbania — display/title face (shared so every page matches the homepage) */
@font-face {
  font-family: "Sesbania";
  src: url("Sesbania/Web-TT/Sesbania-Regular.woff2") format("woff2"),
       url("Sesbania/Web-TT/Sesbania-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sesbania";
  src: url("Sesbania/Web-TT/Sesbania-Italic.woff2") format("woff2"),
       url("Sesbania/Web-TT/Sesbania-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* The placeholder itself must not create a box, or the sticky
   nav would stick only within it. */
#site-nav { display: contents; }

/* ============ Navigation - dark-ink (scrolled) state ============ */
#site-nav .nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 var(--pad-x);
  background: #f6f4ec;
  border-bottom: 1px solid rgba(161, 121, 58, 0.1);
  box-shadow: 0 1px 24px -12px rgba(32, 37, 26, 0.4);
}

/* Brand mark — left of the bar, matching the homepage header */
#site-nav .nav-logo {
  position: static;
  order: -1;
  transform: none;
  display: block;
}
#site-nav .nav-logo img {
  display: block;
  height: 64px;
  width: auto;
}

/* Guarantee badge (right cluster) */
#site-nav .nav-badge {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
#site-nav .badge-shield {
  position: relative;
  display: block;
  width: 42px;
  flex: none;
}
#site-nav .badge-shield img {
  display: block;
  width: 100%;
  height: auto;
}
/* Glossy wave: a light band sweeps across, clipped to the shield shape */
#site-nav .badge-shield::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.85) 50%,
    transparent 62%
  );
  background-size: 250% 100%;
  background-repeat: no-repeat;
  -webkit-mask: url("assets/shield.png") center / contain no-repeat;
  mask: url("assets/shield.png") center / contain no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: shield-shine 3.4s ease-in-out infinite;
}
@keyframes shield-shine {
  0% { background-position: 180% 0; }
  55%, 100% { background-position: -80% 0; }
}
#site-nav .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}
#site-nav .badge-text strong {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: #1f3324;
}
#site-nav .badge-text span {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.75rem;
  color: rgba(32, 37, 26, 0.55);
}

/* Right cluster */
#site-nav .nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Primary nav CTA - sage pill */
#site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 40px; /* matches the 40px icon circles */
  padding: 0 1.25rem;
  border-radius: 999px;
  background: #5b634a;
  border: 1px solid #5b634a;
  color: var(--bone);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
#site-nav .nav-cta i { font-size: 1rem; }
#site-nav .nav-cta:hover,
#site-nav .nav-cta:focus-visible {
  background: #4c543e;
  border-color: #4c543e;
}
#site-nav .nav-cta:active { transform: translateY(1px); }

#site-nav .nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
#site-nav .nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}
#site-nav .nav-links a:hover,
#site-nav .nav-links a:focus-visible { color: #a1793a; }
#site-nav .nav-links a .ph { font-size: 0.7em; }
#site-nav .has-caret { cursor: pointer; }

#site-nav .nav-icons {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  /* hairline divider between the guarantee badge and the icons */
  padding-left: 1.75rem;
  margin-left: 0.25rem;
  border-left: 1px solid rgba(32, 37, 26, 0.18);
}
#site-nav .nav-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--ink-dark);
  text-decoration: none;
  background: rgba(32, 37, 26, 0.05);
  border: 1px solid rgba(32, 37, 26, 0.14);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
#site-nav .nav-icons a:hover,
#site-nav .nav-icons a:focus-visible {
  color: #a1793a;
  background: rgba(32, 37, 26, 0.1);
  border-color: rgba(161, 121, 58, 0.4);
}


/* Current-section marking (set via data-active on #site-nav) */
#site-nav .nav-links a.is-active { color: #a1793a; }

/* ============ Responsive: header ============ */
@media (max-width: 1240px) {
  #site-nav .nav-badge { display: none; }
}
@media (max-width: 920px) {
  #site-nav .nav-links { display: none; }
  #site-nav .nav { gap: 1rem; }
}
@media (max-width: 560px) {
  #site-nav .nav-icons { display: none; }
}

/* ============ Gemstones mega-menu (ported from the homepage) ============ */
.nav-mega {
  position: fixed;
  top: calc(var(--nav-h) + 0.4rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 45;
  width: min(1040px, calc(100vw - 2 * var(--pad-x)));
  max-height: calc(100vh - var(--nav-h) - 1.4rem);
  overflow-y: auto;
  background: #f6f4ec;
  border: 1px solid rgba(201, 162, 75, 0.55);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(201, 162, 75, 0.12),
    0 40px 90px -30px rgba(32, 37, 26, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-mega.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr 1fr;
  gap: clamp(1.1rem, 2vw, 2rem);
  padding: clamp(1.1rem, 2vh, 1.5rem) clamp(1.1rem, 2vw, 1.7rem);
}
.mega-col { min-width: 0; }
.mega-col + .mega-col { border-left: 1px solid rgba(161, 121, 58, 0.16); padding-left: clamp(1.1rem, 2vw, 2rem); }

.mega-label {
  font-family: var(--font-ui);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a1793a;
  margin-bottom: 0.7rem;
}
.mega-label span {
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(32, 37, 26, 0.45);
}

/* ---- ZONE 1: two guided-path cards (check my stone · book an astrologer) ---- */
.mega-cards {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.7rem;
}
.mega-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 132px;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-deep, #20251a);
  background-size: cover;
  background-position: center;
  text-decoration: none;
  border: 1px solid rgba(161, 121, 58, 0.28);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.mega-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 16, 0) 24%, rgba(20, 24, 16, 0.55) 58%, rgba(20, 24, 16, 0.92) 100%);
  transition: opacity 0.4s ease;
}
.mega-banner > span { position: relative; z-index: 1; }
.mega-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -20px rgba(32, 37, 26, 0.6);
}
.mega-banner:hover::before { opacity: 0.92; }
.mega-banner-tag {
  font-family: var(--font-ui);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.4rem;
}
.mega-banner-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.1;
  color: var(--ink);
}
.mega-banner-sub {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.7rem;
  line-height: 1.4;
  color: rgba(236, 231, 218, 0.78);
  margin-top: 0.2rem;
}
.mega-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
}
.mega-banner-cta i { transition: transform 0.25s ease; }
.mega-banner:hover .mega-banner-cta i { transform: translateX(3px); }

/* ---- ZONE 2: Navaratna jewel tiles ---- */
/* big secondary (ghost) "Explore all stones" button under the gems */
.mega-allstones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0.3rem 0 1.1rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(91, 99, 74, 0.4);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--sage, #5b634a);
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, gap 0.25s ease;
}
.mega-allstones i { font-size: 0.9em; color: #a1793a; transition: transform 0.25s ease; }
.mega-allstones:hover {
  background: var(--sage, #5b634a);
  border-color: var(--sage, #5b634a);
  color: var(--bone, #f1efe8);
  gap: 0.75rem;
}
.mega-allstones:hover i { color: var(--bone, #f1efe8); transform: translateX(3px); }
.mega-gems {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: column;
  grid-template-rows: repeat(5, 1fr);
  gap: 0.1rem 0.5rem;
}
.mega-gems .mg {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.45rem;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--ink-dark);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.mega-gems .mg:hover {
  background: rgba(58, 64, 48, 0.05);
  border-color: rgba(161, 121, 58, 0.28);
}
.mg-thumb {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 10px;
  background-color: #efe9db;
  background-size: 66%;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(161, 121, 58, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 18px rgba(201, 162, 75, 0.1);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.mega-gems .mg:hover .mg-thumb {
  border-color: rgba(201, 162, 75, 0.55);
  transform: scale(1.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 6px 16px -8px rgba(161,121,58,0.45);
}
.mg-text { min-width: 0; flex: 1; }
.mg-text strong {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.88rem;
  line-height: 1.15;
}
.mg-top { flex: none; }
.mg-top {
  font-family: var(--font-ui);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a1793a;
  border: 1px solid rgba(161, 121, 58, 0.4);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  line-height: 1;
}
.mg-sub {
  display: block;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.625rem;
  color: rgba(32, 37, 26, 0.55);
  white-space: nowrap;
  margin-top: 0.1rem;
}
.mg-glyph {
  flex: none;
  font-size: 0.95rem;
  color: rgba(161, 121, 58, 0.55);
  transition: color 0.25s ease, transform 0.25s ease;
}
.mega-gems .mg:hover .mg-glyph { color: #a1793a; transform: scale(1.12); }

/* Uparatna chips */
.mega-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mega-chips a {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--ink-dark);
  text-decoration: none;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(161, 121, 58, 0.25);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.mega-chips a:hover { background: #3a4030; border-color: #3a4030; color: var(--bone); }

/* ---- ZONE 3: intent rows + rashi tiles ---- */
.mega-intents { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.mega-intents a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.5rem;
  border-radius: 9px;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--ink-dark);
  text-decoration: none;
  transition: background 0.25s ease, padding-left 0.25s ease, color 0.25s ease;
}
.mega-intents a > i {
  flex: none;
  font-size: 0.95rem;
  color: rgba(161, 121, 58, 0.7);
  transition: color 0.25s ease;
}
.mega-intents .mi-name { flex: 1; min-width: 0; }
.mega-intents .mi-stone {
  flex: none;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  background: rgba(91, 99, 74, 0.1);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  transition: background 0.25s ease, color 0.25s ease;
}
.mega-intents a:hover {
  background: rgba(58, 64, 48, 0.05);
  padding-left: 0.85rem;
  color: #a1793a;
}
.mega-intents a:hover > i { color: #a1793a; }
.mega-intents a:hover .mi-stone { background: rgba(161, 121, 58, 0.16); color: #7d5a24; }

/* rashi zodiac tiles */
.mega-rashi {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
}
.rz {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem 0.45rem;
  border-radius: 9px;
  text-decoration: none;
  transition: background 0.25s ease;
}
.rz:hover { background: rgba(58, 64, 48, 0.05); }
.rz-glyph {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 7px;
  border: 1px solid rgba(161, 121, 58, 0.28);
  color: #a1793a;
  font-size: 0.9rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.rz:hover .rz-glyph { background: var(--sage); border-color: var(--sage); color: var(--bone); }
.rz-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
.rz-text strong {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-dark);
}
.rz-text span {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: rgba(32, 37, 26, 0.5);
}

/* ---- FOOT: browse by form + promise ---- */
.mega-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: 0.95rem clamp(1.5rem, 2.6vw, 2.25rem);
  border-top: 1px solid rgba(161, 121, 58, 0.18);
  background: rgba(58, 64, 48, 0.035);
}
.mega-foot-cats {
  display: flex;
  align-items: center;
  gap: 0.4rem 1.4rem;
  flex-wrap: wrap;
}
.mega-foot-lead {
  font-family: var(--font-ui);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(32, 37, 26, 0.45);
}
.mega-foot-cats a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--ink-dark);
  text-decoration: none;
  transition: color 0.25s ease;
}
.mega-foot-cats a i { color: #a1793a; }
.mega-foot-cats a:hover { color: #a1793a; }
.mega-foot-lib { color: var(--sage) !important; font-weight: 500 !important; }
.mega-foot-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.8125rem;
  color: rgba(32, 37, 26, 0.55);
}
.mega-foot-note i { color: var(--gold, #a1793a); }

@media (max-width: 900px) { .nav-mega { display: none; } }

/* ============ Astrolaabh Guarantee modal (ported from the homepage) ============ */
.nav-badge { cursor: pointer; background: none; border: 0; text-align: left; font: inherit; }
.guarantee-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vh, 3rem) 1rem;
}
.guarantee-modal[hidden] { display: none; }
.gm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 16, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.guarantee-modal.open .gm-backdrop { opacity: 1; }
.gm-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bone);
  border: 1px solid rgba(161, 121, 58, 0.3);
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 4vw, 3.25rem) clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: 0 50px 100px -40px rgba(20, 24, 16, 0.6);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.guarantee-modal.open .gm-panel { opacity: 1; transform: none; }
.gm-close {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(32, 37, 26, 0.05);
  border: 1px solid rgba(32, 37, 26, 0.12);
  color: var(--ink-dark);
  cursor: pointer;
  font-size: 1.15rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.gm-close:hover { background: rgba(32, 37, 26, 0.1); color: #a1793a; }
.gm-head { text-align: center; margin-bottom: clamp(1.5rem, 3vh, 2.25rem); }
.gm-shield { display: inline-block; width: 52px; margin-bottom: 0.75rem; }
.gm-shield img { width: 100%; height: auto; display: block; }
.gm-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  line-height: 1.05;
  color: #1f3324;
  margin: 0 0 0.5rem;
}
.gm-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  color: #a1793a;
  margin: 0;
}
.gm-hero {
  text-align: center;
  background: linear-gradient(160deg, rgba(201,162,75,0.08), rgba(201,162,75,0.03));
  border: 1px solid rgba(161, 121, 58, 0.2);
  border-radius: 14px;
  padding: clamp(1.35rem, 3vw, 2rem);
  margin-bottom: 1rem;
}
.gm-hero h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  color: #1f3324;
  margin: 0 0 0.6rem;
}
.gm-hero p {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(32, 37, 26, 0.72);
  max-width: 52ch;
  margin: 0 auto;
}
.gm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.gm-cell {
  background: rgba(246, 244, 236, 0.7);
  border: 1px solid rgba(161, 121, 58, 0.16);
  border-radius: 12px;
  padding: clamp(1.1rem, 2vw, 1.5rem);
}
.gm-ic {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(161, 121, 58, 0.28);
  color: #a1793a;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.gm-cell h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  color: #1f3324;
  margin: 0 0 0.4rem;
}
.gm-cell p {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(32, 37, 26, 0.68);
  margin: 0;
}
.gm-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(161, 121, 58, 0.18);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.9375rem;
  color: #1f3324;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}
.gm-foot i { color: #a1793a; transition: transform 0.2s ease; }
.gm-foot:hover { color: #a1793a; gap: 0.8rem; }
@media (max-width: 620px) {
  .gm-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .gm-backdrop, .gm-panel { transition: none; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .badge-shield::after { animation: none; }
  .nav-mega { transition: none; }
}

/* universal bag count badge */
#site-nav .nav-bag { position: relative; }
#site-nav .nav-bag-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #a1793a;
  color: #fff;
  font-family: "Outfit", -apple-system, sans-serif;
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1;
  display: grid;
  place-items: center;
}
#site-nav .nav-bag-badge[hidden] { display: none; }

/* general nav bag badge (covers bespoke headers outside #site-nav too) */
.nav-bag { position: relative; }
.nav-bag-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #a1793a;
  color: #fff;
  font-family: "Outfit", -apple-system, sans-serif;
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1;
  display: grid;
  place-items: center;
}
.nav-bag-badge[hidden] { display: none; }

/* ============================================================

/* ===== mega structural tweaks (theme stays the original light cream) ===== */
.nav-mega .mega-inner { grid-template-columns: 1.35fr 1fr 0.9fr; }  /* cards on the right */
.nav-mega .mega-cards { order: 3; }
.nav-mega .mg-glyph { display: none; }
.nav-mega .mg-thumb { background-color: #ece6d6; border: none; box-shadow: none; }
.nav-mega .mega-gems .mg:hover .mg-thumb { background-color: #e4dcc7; }

/* footer: three certified / energised / one-of-one badges with icons */
.nav-mega .mega-foot { justify-content: center; }
.nav-mega .mega-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  width: 100%;
}
.nav-mega .mega-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(32, 37, 26, 0.72);
}
.nav-mega .mega-trust i { color: var(--gold, #a1793a); font-size: 1.15rem; }
.nav-mega .mega-trust strong { font-weight: 600; color: #20251a; }

/* ===== ambient spacing — declutter the mega for readability ===== */
.nav-mega .mega-inner {
  gap: clamp(1.75rem, 3.2vw, 3.5rem);
  padding: clamp(1.75rem, 2.8vh, 2.6rem) clamp(1.75rem, 2.6vw, 2.6rem);
}
.nav-mega .mega-label { margin-bottom: 1.15rem; }
.nav-mega .mega-gems { gap: 0.4rem 0.9rem; margin-bottom: 1.7rem; }
.nav-mega .mega-gems .mg { padding: 0.55rem 0.55rem; }
.nav-mega .mega-allstones { margin: 0.4rem 0 1.7rem; padding: 0.8rem 1.2rem; }
.nav-mega .mega-chips { gap: 0.55rem; }
.nav-mega .mega-allstones + .mega-label,
.nav-mega .mega-chips + .mega-label { margin-top: 1.9rem; }
.nav-mega .mega-intents { margin-bottom: 1.9rem; }
.nav-mega .mega-intents a { padding: 0.62rem 0.55rem; }
.nav-mega .mega-rashi { gap: 0.7rem 0.9rem; }
.nav-mega .mega-col + .mega-col { padding-left: clamp(1.75rem, 2.6vw, 2.9rem); }
.nav-mega .mega-cards { gap: 0.9rem; }

/* shop-by-intent: drop the stone chip, keep each label on one line */
.nav-mega .mega-intents .mi-stone { display: none; }
.nav-mega .mega-intents .mi-name { white-space: nowrap; }

/* subtle icons in the "by form" chips */
.nav-mega .mega-chips--icon a { display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-mega .mega-chips--icon a i { font-size: 0.95em; color: var(--gold, #a1793a); }

/* ============================================================
   Blinking sparkle — used in place of a full stop at the end of a
   title. currentColor so it matches the text (like the period it replaces).
   Add <span class="twinkle" aria-hidden="true"></span> where a "." would go.
   ============================================================ */
.twinkle {
  display: inline-block;
  width: 0.4em; height: 0.4em;
  margin-left: 0.05em;
  vertical-align: baseline;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0 C13 8 16 11 24 12 C16 13 13 16 12 24 C11 16 8 13 0 12 C8 11 11 8 12 0 Z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0 C13 8 16 11 24 12 C16 13 13 16 12 24 C11 16 8 13 0 12 C8 11 11 8 12 0 Z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: twinkle 1.9s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.72); }
  50% { opacity: 1; transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) { .twinkle { animation: none; opacity: 0.9; } }

/* ============================================================
   Footer state: the search bar collapses to a round "back to top" button.
   Toggled by .at-footer (site-nav.js); the smooth width easing lives here.
   ============================================================ */
.ai-bar .ai-input-wrap { transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease; }
.ai-bar.at-footer { width: auto !important; cursor: pointer; }
.ai-bar.at-footer .ai-pill { gap: 0; }
.ai-bar.at-footer .ai-add,
.ai-bar.at-footer .ai-home { display: none; }
.ai-bar.at-footer .ai-input-wrap {
  flex-grow: 0; width: 0; min-width: 0; opacity: 0; overflow: hidden; pointer-events: none;
}

/* ============================================================
   Slide-in cart drawer (shared; injected by cart-drawer.js)
   ============================================================ */
.cd-overlay { position: fixed; inset: 0; z-index: 300; }
.cd-overlay[hidden] { display: none; }
.cd-backdrop {
  position: absolute; inset: 0; background: rgba(20, 24, 16, 0.5);
  opacity: 0; transition: opacity 0.3s ease;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.cd-overlay.open .cd-backdrop { opacity: 1; }
.cd-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(440px, 100vw);
  background: #f6f4ec;
  border-left: 1px solid rgba(161, 121, 58, 0.3);
  box-shadow: -24px 0 70px -34px rgba(20, 24, 16, 0.6);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cd-overlay.open .cd-panel { transform: none; }
.cd-head { position: relative; padding: 1.6rem 1.5rem 1.15rem; border-bottom: 1px solid rgba(161, 121, 58, 0.18); }
.cd-eyebrow { font-family: var(--font-ui); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #a1793a; margin: 0 0 0.3rem; }
.cd-title { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--ink-dark, #20251a); margin: 0; }
.cd-close { position: absolute; top: 1.35rem; right: 1.35rem; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(32, 37, 26, 0.15); background: rgba(246, 244, 236, 0.7); cursor: pointer; display: grid; place-items: center; color: var(--ink-dark, #20251a); font-size: 1rem; }
.cd-close:hover { background: #fff; }
.cd-body { flex: 1 1 auto; overflow-y: auto; padding: 0.5rem 1.5rem; background: #fff; }
.cd-item { position: relative; display: flex; gap: 0.85rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(161, 121, 58, 0.14); }
.cd-thumb { flex: none; width: 58px; height: 58px; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, rgba(201,162,75,0.16), #fff); border: 1px solid rgba(161,121,58,0.25); display: grid; place-items: center; }
.cd-thumb img { width: 74%; height: 74%; object-fit: contain; }
.cd-lines { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.cd-planet { font-family: var(--font-ui); font-size: 0.56rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #a1793a; margin: 0; }
.cd-name { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; line-height: 1.15; color: var(--ink-dark, #20251a); }
.cd-sub { font-family: var(--font-ui); font-size: 0.75rem; color: rgba(32, 37, 26, 0.6); }
.cd-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.cd-chip { font-family: var(--font-ui); font-size: 0.66rem; color: rgba(32, 37, 26, 0.7); padding: 0.18rem 0.5rem; border: 1px solid rgba(161, 121, 58, 0.25); border-radius: 999px; }
.cd-chip-design { color: #8a5f22; border-color: rgba(161, 121, 58, 0.4); }
.cd-chip i { font-size: 0.85em; color: rgba(161, 121, 58, 0.7); }
/* mount decision: loose / custom / named design with thumbnail */
.cd-mount {
  display: flex; align-items: center; gap: 0.55rem;
  margin-top: 0.5rem; padding: 0.4rem 0.5rem;
  border: 1px solid rgba(161, 121, 58, 0.22); border-radius: 10px;
  background: linear-gradient(160deg, rgba(201, 162, 75, 0.08), rgba(255, 255, 255, 0.4));
}
.cd-mount-thumb {
  flex: none; width: 34px; height: 34px; border-radius: 7px; overflow: hidden;
  background: #fff; border: 1px solid rgba(161, 121, 58, 0.28); display: grid; place-items: center;
}
.cd-mount-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.cd-mount-ic {
  flex: none; width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center;
  background: rgba(161, 121, 58, 0.1); border: 1px solid rgba(161, 121, 58, 0.22);
  color: #8a5f22; font-size: 1rem;
}
.cd-mount-text { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; }
.cd-mount-text strong { font-family: var(--font-ui); font-weight: 600; font-size: 0.78rem; color: var(--ink-dark, #20251a); }
.cd-mount-text span { font-family: var(--font-ui); font-size: 0.68rem; color: rgba(32, 37, 26, 0.55); line-height: 1.3; }
/* energisation status + subtle upsell */
.cd-energise {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem 0.6rem;
  margin-top: 0.5rem;
  font-family: var(--font-ui); font-size: 0.7rem; color: rgba(32, 37, 26, 0.62);
}
.cd-energise-st i { color: #6f8a4d; }
.cd-energise-st em { font-style: normal; font-weight: 600; color: #6f8a4d; }
.cd-energise-st em.cd-free { color: #4e8f3e; }
.cd-energise.is-live { color: #8a5f22; font-weight: 500; }
.cd-energise.is-live i { color: #c9a24b; }
.cd-energise-on {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: #6f8a4d; border: 1px solid rgba(111, 138, 77, 0.4); border-radius: 999px; padding: 0.05rem 0.4rem;
}
.cd-energise-add {
  margin-left: auto; cursor: pointer;
  font-family: var(--font-ui); font-size: 0.68rem; font-weight: 600; color: #5b634a;
  background: rgba(91, 99, 74, 0.1); border: 1px solid rgba(91, 99, 74, 0.4);
  border-radius: 999px; padding: 0.22rem 0.6rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cd-energise-add:hover { background: rgba(91, 99, 74, 0.18); border-color: rgba(91, 99, 74, 0.65); }
.cd-item-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.6rem; }
.cd-qty { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid rgba(32, 37, 26, 0.16); border-radius: 999px; padding: 0.15rem 0.35rem; }
.cd-qty-btn { width: 22px; height: 22px; border-radius: 50%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink-dark, #20251a); font-size: 0.75rem; }
.cd-qty-btn:disabled { opacity: 0.35; cursor: default; }
.cd-qty-n { font-family: var(--font-ui); font-size: 0.82rem; min-width: 1ch; text-align: center; }
.cd-price { font-family: var(--font-ui); font-weight: 600; font-size: 0.9rem; color: var(--ink-dark, #20251a); font-variant-numeric: tabular-nums; }
.cd-remove { position: absolute; top: 1rem; right: 0; width: 26px; height: 26px; border-radius: 50%; border: 0; background: none; cursor: pointer; color: rgba(32, 37, 26, 0.4); display: grid; place-items: center; }
.cd-remove:hover { color: var(--madder, #b23a2a); }
.cd-foot { padding: 1.1rem 1.5rem calc(1.3rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(161, 121, 58, 0.2); background: #f4f1e8; }
.cd-foot[hidden] { display: none; }
.cd-sum { margin-bottom: 0.9rem; }
.cd-row { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--font-ui); font-size: 0.85rem; color: rgba(32, 37, 26, 0.72); padding: 0.25rem 0; }
.cd-row.cd-muted { color: rgba(32, 37, 26, 0.5); font-size: 0.8rem; }
.cd-row span:last-child { color: var(--ink-dark, #20251a); font-variant-numeric: tabular-nums; }
.cd-total { margin-top: 0.4rem; padding-top: 0.6rem; border-top: 1px solid rgba(161, 121, 58, 0.25); font-family: var(--font-display); font-size: 1.2rem; }
.cd-total span:last-child { font-size: 1.25rem; }
.cd-checkout { display: flex; align-items: center; justify-content: center; gap: 0.5rem; height: 48px; border-radius: 999px; background: url("assets/consult-card-bg.jpg") center / cover; color: #fff; text-decoration: none; font-family: var(--font-ui); font-size: 0.9rem; font-weight: 500; box-shadow: 0 4px 14px rgba(20, 25, 15, 0.18); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.cd-checkout:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(20, 25, 15, 0.24); }
.cd-continue { display: block; width: 100%; margin-top: 0.6rem; background: none; border: 0; cursor: pointer; font-family: var(--font-ui); font-size: 0.82rem; color: rgba(32, 37, 26, 0.6); }
.cd-continue:hover { color: var(--ink-dark, #20251a); }
.cd-empty { text-align: center; padding: 3.5rem 1.5rem; }
.cd-empty-ic { font-size: 2.4rem; color: #a1793a; }
.cd-empty p { font-family: var(--font-display); font-size: 1.25rem; color: rgba(32, 37, 26, 0.6); margin: 0.75rem 0 1.25rem; }
.cd-empty-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 1.6rem; border-radius: 999px;
  font-family: var(--font-ui); font-size: 0.9rem; font-weight: 500; color: #fff;
  text-decoration: none;
  background: url("assets/consult-card-bg.jpg") center / cover;
  border: 1px solid rgba(220, 190, 110, 0.35);
  box-shadow: 0 6px 20px rgba(20, 25, 15, 0.28);
  transition: filter 0.2s ease, border-color 0.2s ease;
}
.cd-empty-cta:hover { filter: brightness(1.08); border-color: rgba(220, 190, 110, 0.6); }
