
/* ─── JUNNO SURETY DESIGN SYSTEM ─── */

:root {
  --bg: #fafaf7;
  --bg-alt: #f0ede5;
  --paper: #ffffff;
  --ink: #1a1d1f;
  --ink-soft: #4a5158;
  --ink-mute: #7a818a;
  --line: #e5e2d8;
  --line-soft: #f0ede5;
  --navy: #14213d;
  --navy-deep: #0a1428;
  --gold: #c9a55c;
  --gold-soft: #e8d8b0;
  --accent: #b8860b;
  --green: #2d5a3d;
  --red: #a8302a;
  --shadow-sm: 0 1px 3px rgba(20, 33, 61, 0.06);
  --shadow: 0 4px 24px rgba(20, 33, 61, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 33, 61, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.serif-italic { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; }

/* ─── NAV ─── */
.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.78);
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.15);
}
.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar-left span { display: flex; align-items: center; gap: 6px; }
.topbar-right a {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.topbar-right a:hover { color: white; }

nav.main {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  padding: 0 32px;
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-mark {
  width: 44px;
  height: 44px;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.logo-text .name {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
  line-height: 1;
}
.logo-text .tag {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links > a {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 6px;
  transition: all 0.15s;
  position: relative;
}
.nav-links > a:hover { color: var(--navy); background: var(--line-soft); }
.nav-links > a.active { color: var(--navy); }
.nav-links > a.active::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: -2px;
  height: 2px;
  background: var(--gold);
}
.nav-cta {
  background: var(--navy);
  color: white !important;
  padding: 11px 22px !important;
  border-radius: 6px;
  font-weight: 600 !important;
  margin-left: 8px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--navy-deep) !important; color: white !important; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--navy);
  cursor: pointer;
}

/* ─── HERO ─── */
.hero {
  background: var(--navy-deep);
  color: white;
  padding: 100px 32px 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 80% 0%, rgba(201, 165, 92, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(201, 165, 92, 0.08), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(201, 165, 92, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 165, 92, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
}
.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 {
  color: white;
  font-size: clamp(44px, 6vw, 76px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 28px;
}
.hero h1 em {
  color: var(--gold);
  font-weight: 400;
}
.hero-desc {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 540px;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn-primary, .btn-secondary, .btn-outline {
  padding: 16px 30px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201, 165, 92, 0.4); }
.btn-secondary {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: white;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: var(--gold); }
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: white; }

.hero-trust {
  display: flex;
  gap: 36px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust-num {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.trust-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ─── HERO QUOTE CARD ─── */
.quote-card {
  background: white;
  border-radius: 12px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.quote-card::before {
  content: '';
  position: absolute;
  top: -2px; left: 32px;
  width: 60px;
  height: 4px;
  background: var(--gold);
  border-radius: 0 0 4px 4px;
}
.quote-card .eyebrow { color: var(--accent); }
.quote-card h3 {
  font-size: 26px;
  margin-bottom: 24px;
  color: var(--navy);
}
.quote-form { display: flex; flex-direction: column; gap: 14px; }
.quote-form label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.quote-form select, .quote-form input {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: white;
  transition: border-color 0.15s;
}
.quote-form select:focus, .quote-form input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(20, 33, 61, 0.08);
}
.quote-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-form button {
  background: var(--navy);
  color: white;
  padding: 15px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}
.quote-form button:hover { background: var(--navy-deep); }
.quote-card .small {
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 12px;
}

/* ─── SECTIONS ─── */
section { padding: 100px 32px; }
.section-inner { max-width: 1240px; margin: 0 auto; }
.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 {
  font-size: clamp(34px, 4vw, 52px);
  margin-bottom: 18px;
}
.section-head h2 em { color: var(--accent); font-style: italic; font-weight: 400; }
.section-head p {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ─── BOND TYPES GRID ─── */
.bonds-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.bond-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px;
  transition: all 0.25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.bond-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.bond-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold-soft);
}
.bond-card:hover::before { transform: scaleX(1); }
.bond-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  color: var(--accent);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 4px;
}
.bond-card h3 { font-size: 20px; }
.bond-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}
.bond-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
  margin-top: 4px;
  letter-spacing: 0.3px;
}
.bond-card:hover .arrow { color: var(--accent); }

/* ─── PROCESS ─── */
.process-section {
  background: var(--bg-alt);
  position: relative;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.process-step {
  position: relative;
  text-align: left;
}
.process-num {
  font-family: 'Fraunces', serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.process-num small {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--ink-mute);
  font-weight: 600;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}
.process-step h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.process-step p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ─── REVIEWS ─── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.review {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
  position: relative;
}
.review-stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.review-text {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.5;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  font-family: 'Fraunces', serif;
}
.review-name { font-weight: 600; font-size: 14px; }
.review-time { font-size: 12px; color: var(--ink-mute); }

/* ─── CTA STRIP ─── */
.cta-strip {
  background: var(--navy);
  color: white;
  padding: 80px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(201, 165, 92, 0.18), transparent 70%);
}
.cta-strip-inner { max-width: 800px; margin: 0 auto; position: relative; }
.cta-strip h2 {
  color: white;
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 16px;
}
.cta-strip h2 em { color: var(--gold); font-style: italic; font-weight: 400; }
.cta-strip p {
  color: rgba(255,255,255,0.78);
  font-size: 18px;
  margin-bottom: 36px;
}
.cta-strip-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── INTERIOR PAGE HERO ─── */
.page-hero {
  background: var(--navy-deep);
  color: white;
  padding: 80px 32px 100px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 30%, rgba(201, 165, 92, 0.15), transparent 60%);
}
.page-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.3); }
.page-hero h1 {
  color: white;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.page-hero h1 em { color: var(--gold); font-weight: 400; }
.page-hero p {
  font-size: 19px;
  color: rgba(255,255,255,0.78);
  max-width: 720px;
  line-height: 1.6;
}

/* ─── ARTICLE LAYOUT ─── */
.article {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: start;
}
.article-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.article-body h2 {
  font-size: 32px;
  margin: 48px 0 16px;
  color: var(--navy);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 22px;
  margin: 32px 0 12px;
  color: var(--navy);
}
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
  padding-left: 0;
}
.article-body li { margin-bottom: 8px; padding-left: 4px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body .callout {
  background: var(--bg-alt);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin: 32px 0;
}
.article-body .callout strong { color: var(--navy); display: block; margin-bottom: 6px; }
.article-body .callout p { margin-bottom: 0; font-size: 15px; }

.toc {
  position: sticky;
  top: 96px;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.toc-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}
.toc h4 {
  font-size: 17px;
  margin-bottom: 14px;
}
.toc-cta {
  display: block;
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  margin-top: 16px;
  transition: background 0.2s;
}
.toc-cta:hover { background: var(--navy-deep); color: white; }
.toc-phone {
  text-align: center;
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 12px;
}
.toc-phone a { color: var(--navy); font-weight: 600; }

/* ─── EDU CENTER GRID ─── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.edu-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold-soft);
}
.edu-card .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.edu-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.edu-card p {
  font-size: 15px;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: 20px;
}
.edu-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
}

/* ─── COST TABLE ─── */
.cost-table {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 32px 0;
}
.cost-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.cost-row:last-child { border-bottom: 0; }
.cost-row.head {
  background: var(--bg-alt);
  font-weight: 700;
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.cost-row strong { color: var(--navy); }

/* ─── FOOTER ─── */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 80px 32px 30px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}
.footer-brand .logo-text .name { color: white; }
.footer-brand p {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}
footer h5 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .bonds-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; gap: 40px; }
  .toc { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  section, .article, .hero, .page-hero { padding-left: 20px; padding-right: 20px; }
  .topbar { font-size: 12px; }
  .topbar-inner { padding: 0 20px; flex-direction: column; gap: 4px; }
  .topbar-left { gap: 12px; flex-wrap: wrap; }
  nav.main { padding: 0 20px; }
  .nav-links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: white; flex-direction: column; padding: 20px;
    border-bottom: 1px solid var(--line); align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 14px 16px; }
  .menu-toggle { display: block; }
  .bonds-grid, .process-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .quote-form .row { grid-template-columns: 1fr; }
  .cost-row { grid-template-columns: 1fr; gap: 4px; }
  .hero { padding: 60px 20px 80px; }
  section { padding: 60px 20px; }
}



/* Animated SVG accent for navy banners (page-hero) */
.page-hero { position: relative; overflow: hidden; }
.page-hero-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.page-hero-fx svg { width: 100%; height: 100%; display: block; }
.page-hero-inner { position: relative; z-index: 1; }
@keyframes pageHeroOrbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50%      { transform: translate(-25px, 15px) scale(1.1); opacity: 1; }
}
@keyframes pageHeroLineFlow { to { stroke-dashoffset: -200; } }
.ph-orb-a { animation: pageHeroOrbDrift 18s ease-in-out infinite; transform-origin: center; }
.ph-orb-b { animation: pageHeroOrbDrift 22s ease-in-out infinite reverse; transform-origin: center; }
.ph-line { stroke-dashoffset: 0; animation: pageHeroLineFlow 14s linear infinite; }
.ph-spark { animation: heroSparkleP 4s ease-in-out infinite; }
.ph-spark-2 { animation-delay: 1.5s; }
@keyframes heroSparkleP {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50%      { opacity: 0.8; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .ph-orb-a, .ph-orb-b, .ph-line, .ph-spark { animation: none !important; }
}

/* ── NAV DROPDOWN + SEARCH STYLES (added by update_nav.py) ── */

.nav-dropdown { position: relative; display: inline-block; }

/* Make dropdown toggles look IDENTICAL to regular nav links.
   They inherit all the .nav-links > a base styles, we only add the
   flex layout needed to align the caret next to the text. */
.nav-dropdown-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* The caret arrow next to dropdown labels */
.nav-dropdown-toggle .caret {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.2s;
  display: inline-block;
  transform: translateY(1px);
}
.nav-dropdown:hover .nav-dropdown-toggle .caret {
  transform: translateY(1px) rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 320px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(20, 33, 61, 0.15);
  padding: 8px;
  margin-top: 4px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.18s ease-out;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.12s;
}
.nav-dropdown-menu a:hover { background: var(--line-soft); }
.nav-dropdown-menu a strong {
  display: block;
  color: var(--navy);
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}
.nav-dropdown-menu a small {
  display: block;
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.4;
}

/* SEARCH */
.nav-search { position: relative; display: inline-flex; align-items: center; }
.nav-search-toggle {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--line-soft);
  color: var(--ink-soft);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.nav-search-toggle:hover {
  background: var(--gold-soft);
  color: var(--navy);
}
.nav-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 440px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 50px rgba(20, 33, 61, 0.18);
  padding: 12px;
  z-index: 300;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease-out;
}
.nav-search-panel.open {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}
.nav-search-input-wrap {
  position: relative;
  display: flex; align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 4px 12px;
  transition: border-color 0.15s;
}
.nav-search-input-wrap:focus-within {
  border-color: var(--gold);
  background: white;
}
.nav-search-icon { color: var(--ink-mute); flex-shrink: 0; }
#navSearchInput {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.nav-search-close {
  background: none; border: none;
  color: var(--ink-mute);
  cursor: pointer;
  font-size: 16px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}
.nav-search-close:hover { background: var(--line-soft); color: var(--ink); }

.nav-search-results {
  max-height: 480px;
  overflow-y: auto;
  margin-top: 10px;
}
.nav-search-results::-webkit-scrollbar { width: 6px; }
.nav-search-results::-webkit-scrollbar-thumb {
  background: var(--line); border-radius: 3px;
}
.nav-search-group {
  margin-bottom: 6px;
}
.nav-search-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 10px 14px 6px;
}
.nav-search-result {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.12s;
}
.nav-search-result:hover,
.nav-search-result.highlighted {
  background: var(--line-soft);
}
.nav-search-result .r-title {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}
.nav-search-result .r-desc {
  display: block;
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.4;
}
.nav-search-result mark {
  background: var(--gold-soft);
  color: var(--navy);
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 600;
}
.nav-search-empty {
  padding: 30px 14px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 14px;
}
.nav-search-empty .empty-icon {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.4;
}
.nav-search-hint {
  padding: 16px 14px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 13px;
}

@media (max-width: 900px) {
  .nav-dropdown { display: block; width: 100%; }
  .nav-dropdown-toggle { width: 100%; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--bg-alt);
    margin: 4px 0 8px 0;
    padding: 4px;
    min-width: 0;
    opacity: 1; visibility: visible;
    transform: none;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: 10px 14px; }

  .nav-search { width: 100%; margin: 8px 0; }
  .nav-search-toggle {
    width: 100%;
    height: 44px;
    justify-content: flex-start;
    padding: 0 14px;
    background: var(--bg-alt);
    border-radius: 6px;
    gap: 10px;
  }
  .nav-search-toggle::after {
    content: 'Search';
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
  }
  .nav-search-panel {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    border-radius: 0;
    padding: 16px;
    transform: translateY(-100%);
    overflow-y: auto;
  }
  .nav-search-panel.open { transform: translateY(0); }
  .nav-search-results { max-height: calc(100vh - 100px); }
}
/* ── END NAV DROPDOWN + SEARCH STYLES ── */



/* ── HEADER REDESIGN: Bond Types mega menu, labeled search, uniform fonts ── */
.nav-links > a, .nav-dropdown-toggle { font-size: 14px !important; font-weight: 500 !important; }
.nav-dropdown-toggle .caret { font-size: 12px; color: var(--ink-mute); }

.nav-mega-menu {
  position: absolute; top: 100%; left: 0;
  display: flex; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 50px rgba(20,33,61,.16);
  padding: 16px; margin-top: 4px; z-index: 200;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s ease-out;
}
.nav-dropdown:hover .nav-mega-menu,
.nav-dropdown:focus-within .nav-mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-mega-col { min-width: 252px; }
.nav-mega-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-weight: 700; padding: 6px 12px 8px; }
.nav-mega-menu a { display: block; padding: 9px 12px; border-radius: 8px; transition: background .12s; }
.nav-mega-menu a:hover { background: var(--line-soft); }
.nav-mega-menu a strong { display: block; color: var(--navy); font-family: 'Fraunces', serif; font-size: 14px; font-weight: 600; margin-bottom: 1px; }
.nav-mega-menu a small { display: block; color: var(--ink-mute); font-size: 11.5px; line-height: 1.4; }

/* Labeled, discoverable search button */
.nav-search-toggle { width: auto !important; height: 38px; gap: 7px; padding: 0 15px !important; font-size: 13px; font-weight: 600; border-radius: 8px; }
.nav-search-toggle .label { white-space: nowrap; }

@media (max-width: 900px) {
  .nav-mega-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    flex-direction: column; box-shadow: none; border: none;
    padding: 0 0 0 12px; margin-top: 0; gap: 0; display: none;
  }
  .nav-dropdown.open .nav-mega-menu { display: flex; }
  .nav-mega-col { min-width: 0; }
  .nav-search { width: 100%; }
  .nav-search-toggle { width: 100% !important; justify-content: flex-start; }
}


  .junno-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }
  .junno-fab-trigger {
    background: linear-gradient(135deg, #C9A55C, #D4B26F);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 14px 22px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 8px 24px rgba(14, 30, 58, 0.25);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .junno-fab-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(14, 30, 58, 0.35);
  }
  .junno-fab-panel {
    background: white;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 16px 48px rgba(14, 30, 58, 0.2);
    max-width: 280px;
    display: none;
    border: 1px solid #E5E0D5;
  }
  .junno-fab-panel.open { display: block; }
  .junno-fab-panel h5 {
    font-family: "Fraunces", "Georgia", serif;
    font-size: 18px;
    color: #0E1E3A;
    margin: 0 0 6px 0;
  }
  .junno-fab-panel .sub {
    font-size: 13px;
    color: #4a4a4a;
    margin-bottom: 14px;
  }
  .junno-fab-panel a {
    display: block;
    color: #0E1E3A;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: background 0.15s;
  }
  .junno-fab-panel a:hover { background: #FAF7F0; }
  .junno-fab-panel .badge {
    display: inline-block;
    background: #FFF8E7;
    color: #8a6a1f;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  @media (max-width: 600px) {
    .junno-fab { bottom: 14px; right: 14px; }
    .junno-fab-trigger { padding: 12px 18px; font-size: 14px; }
  }
