:root {
  /* Color system */
--navy: #0c2752;
  /* brand navy */
--fg: #0c2752;
  /* base text */
--bg: #ffffff;
  /* page bg */
--muted: #61677a;
  /* secondary text */
--border: #e6e7eb;
  /* hairlines */
--panel: #f6f7fb;
  /* light panel */
--gold: #DAAF69;
  --red: #d41c3a;
  --shadow: 0 8px 24px rgba(16,16,24,.06),0 2px 8px rgba(16,16,24,.05);
  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 1200px;
}

/* Base */ *,*::before,*::after {
  box-sizing: border-box;
}

html,body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 24px;
}

.center {
  text-align: center;
}

/* Header */ header.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.logo img {
  height: auto;
  max-height: 46px;
  width: auto;
  max-width: 70vw;
}

/* Buttons */ .btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  border: 1px solid var(--navy);
  transition: .18s ease;
  font-family: "Open Sans Condensed", sans-serif;
  font-size: 18px;
}

.btn:hover {
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--navy);
}

/* Hero */ .hero {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0 20px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.32);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding: clamp(36px,6vw,64px) 0;
}

.caps {
  text-transform: uppercase;
  font-size: 34px;
  font-family: "Open Sans Condensed", sans-serif;
  font-weight: 300;
  margin: 0;
}

h1 {
  font-size: clamp(36px,6vw,80px);
  line-height: 1.1;
  margin: 6px 0 14px;
  font-family: "minion-pro", serif;
  font-weight: 500;
  color: var(--gold);
}

.lead {
  font-size: 18px;
  max-width: 62ch;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* Media */ .card {
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.media {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Sections */ main section {
  padding: clamp(36px,6vw,64px) 0;
}

h2 {
  font-size: 50px;
  margin: 0 0 6px;
  font-family: "minion-pro", serif;
  font-weight: 700;
  font-style: normal;
  line-height: 1.1;
  color: var(--fg);
}

.section-lead {
  margin-top: 10px;
  color: var(--muted);
}

.hanging-quote {
  text-indent: -0.4em;
  font-size: 42px;
  margin: 0 0 6px;
  font-family: "minion-pro", serif;
  font-weight: 700;
  font-style: normal;
  line-height: 1.1;
  color: var(--fg);
}

/* Grids */ .grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 34px 0;
}

.two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

/* Info cards */ .info {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: box-shadow .18s;
}

.info:hover {
  box-shadow: var(--shadow);
}

.info.has-thumb {
  padding: 0;
  overflow: hidden;
}

.info-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--thumb,linear-gradient(180deg,#e8ecf3,#d5ddea));
  background-size: cover;
  background-position: center;
}

.info-body {
  padding: 18px;
}

.info-title {
  font-weight: 800;
  color: var(--navy);
}

.info-text {
  margin: 6px 0 0;
  color: #616572;
  font-size: 14px;
}

/* Color blocks */ .light {
  background: var(--panel);
}

.dark {
  background: linear-gradient(to bottom,#133661,#06182e);
  color: #fff;
}

.red {
  background: var(--red);
  color: #fff;
}

.blue {
  background: var(--navy);
  color: #fff;
}

.goldbg {
  background: linear-gradient(to bottom,#daaf69,#aa8447);
}

blockquote {
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
}

.red blockquote {
  font-size: 36px;
  text-align: center;
}

.red .subtle {
  color: var(--gold);
  font-size: 18px;
  margin-top: 18px;
  text-transform: uppercase;
  text-align: center;
}

/* Testimonial carousel */ .testimonial {
  padding: 28px;
}

.t-quote {
  margin: 0;
  transition: opacity .45s ease;
}

.t-quote.is-fading {
  opacity: 0;
}

.testimonial {
    min-height: 200px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
}

.t-dots {
  display: none;
}

/* White photo section */ .photos {
  background: #fff;
}

/* ensures white even after the blue section */ .photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* mobile: 2-up */
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Compact white photo section (minimal padding, fixed image height) */ .photos {
  /* override global section padding */
  padding-block: 8px;
}

/* optional: tighten the side padding a bit so pics feel larger */ .photos .container {
  padding-left: 12px;
  padding-right: 12px;
}

.photo-grid {
  gap: 12px;
  /* smaller gaps to showcase the images */;
}

.photo {
  aspect-ratio: auto;
  /* we control height now */
  height: 220px;
  /* mobile height */
  overflow: hidden;
  border: 1px solid var(--border, #e6e7eb);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* fills the frame, crops if needed */;
}

/* desktop tweaks */ @media (min-width: 900px) {
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  /* 4 across */
  }

  .photo {
    height: 300px;
  margin: 5px 0;
  };
}

/* ===== Header base ===== */ :root {
  --navy: #102d51;
  /* brand navy (already in your file) */
  --gold: #DAAF69;
  --shadow: 0 8px 24px rgba(16,16,24,.06),0 2px 8px rgba(16,16,24,.05);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
}

/* Your site already has .container; these keep things tidy on small screens */ .topbar .container {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 10px;
}

/* Logo */ .logo img {
  max-height: 46px;
  width: auto;
  display: block;
}

/* ===== Desktop nav ===== */ .topnav {
  margin-left: auto;
}

/* pushes nav to the right on desktop */ .topnav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 0 0;
  list-style: none;
}

.topnav li + li {
  position: relative;
  padding-left: 24px;
}

.topnav li + li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,.55);
}

.topnav a {
  display: block;
  color: #fff;
  text-decoration: none;
  opacity: .95;
  font-weight: 400;
  font-size: 14px;
}

.topnav a:hover {
  opacity: 1;
}

/* ===== Hamburger button (hidden on desktop) ===== */ .nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.nav-toggle i {
  font-size: 22px;
  line-height: 1;
}

.icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: inline-block;
}

/* ===== Tablet & down ===== */ @media (max-width: 1024px) {
  /* a touch of side padding on the header itself */
  .topbar .container{ padding-left: 16px;
  padding-right: 16px;
  }


  /* show the hamburger, keep it on the far right */
  .nav-toggle{ display: inline-flex;
  margin-left: 12px;
  }


  /* keep markup order but ensure hamburger is right-aligned */
  .topnav{ order: 1;
  margin-left: 0;
  position: relative;
  }

  .nav-toggle{ order: 2;
  margin-left: auto;
  }


  /* dropdown panel aligned to the right, with breathing room */
  .topnav ul{
    position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(280px, 85vw);
  background: var(--navy);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 2px;
  /* hidden by default */
    max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height .25s ease, opacity .2s ease, transform .2s ease;
  }

  .topnav.is-open ul{
    max-height: 50vh;
  opacity: 1;
  transform: translateY(0);
  }


  /* vertical list — remove desktop dividers */
  .topnav li + li{ padding-left: 0;
  }

  .topnav li + li: : before{ content: none;
  }


  .topnav a{ padding: 12px 14px;
  border-radius: 8px;
  }

  .topnav a: hover{ background: rgba(255,255,255,.08);
  };
}

/* Anchor the dropdown to the whole header row, not the nav */ .topbar .container {
  position: relative;
}

/* Tidy the hamburger focus ring */ .nav-toggle {
  border: 0;
  box-shadow: none;
}

.nav-toggle:focus {
  outline: none;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  box-shadow: none;
  border-radius: 8px;
}

/* Mobile / tablet behavior */ @media (max-width: 1024px) {
  /* keep hamburger on the far right */
  .nav-toggle{ display: inline-flex;
  order: 2;
  margin-left: auto;
  }


  /* let the nav sit before the button but don't be the positioning context */
  .topnav{
    order: 1;
  margin-left: 0;
  position: static;
  /* was relative — this caused the left-anchored panel */
  }


  /* dropdown panel: right-aligned, padded from edges, sane width */
  .topnav ul{
    position: absolute;
  right: 16px;
  /* anchor to the right edge of the header row */
    left: auto;
  top: calc(100% + 8px);
  width: min(280px, calc(100vw - 24px));
  z-index: 100;
  /* panel styles (keep yours if already set) */
    background: var(--navy);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 2px;
  /* hidden by default */
    max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height .25s ease, opacity .2s ease, transform .2s ease;
  }

  .topnav.is-open ul{ max-height: 50vh;
  opacity: 1;
  transform: translateY(0);
  }


  /* vertical list (no separators) and slightly smaller text */
  .topnav li + li{ padding-left: 0;
  }

  .topnav li + li: : before{ content: none;
  }

  .topnav a{ padding: 12px 14px;
  border-radius: 8px;
  font-size: 16px;
  }

  .topnav a: hover{ background: rgba(255,255,255,.08);
  }


  /* a touch of side padding on the header at small sizes */
  .topbar .container{ padding-inline: 16px;
  };
}

/* Force correct icon swapping based on aria-expanded */ .nav-toggle .icon-menu, .nav-toggle .icon-close {
  display: inline-block;
}

/* baseline */ .nav-toggle[aria-expanded="false"] .icon-close {
  display: none !important;
}

.nav-toggle[aria-expanded="false"] .icon-menu {
  display: inline-block !important;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: inline-block !important;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none !important;
}

/* Final CTA */ .final {
  background: linear-gradient(to bottom,#f1f3f8,#fff);
}

.subtle {
  color: #7a7d8c;
  font-size: 18px;
  margin-top: 10px;
}

.podcast_embed button {
  background: var(--red) !important;
}

/* Footer */ footer {
  background: #0c2752;
  color: #bbb;
  border-top: 1px solid #495d7d;
  padding: 40px 20px;
  text-align: center;
  font-size: .95rem;
}

footer a {
  color: #bbb;
}

footer a:hover {
  color: #fff;
}

/* Base: 1-up */ .photo-grid {
  grid-template-columns: 1fr;
}

/* Desktop: 4-up */ @media (min-width: 900px) {
  .photo-grid{ grid-template-columns: repeat(4, 1fr);
  };
}

/* Responsive */ @media (min-width: 768px) {
  .hero-grid{grid-template-columns: 1fr 1fr}

  .grid-3{grid-template-columns: repeat(3,1fr)}

  .two{grid-template-columns: 1fr 1fr};
}

/* --- NAV VISIBILITY GUARANTEE (last-in-wins) --- */ .nav-toggle {
  display: none !important;
}

/* hide on desktop by default */ @media (max-width:1024px) {
  .nav-toggle{ display: inline-flex !important;
  }
   /* show on tablet/phone */;
}

/* Desktop layout reset (ensures the dropdown styles don't leak onto desktop) */ @media (min-width:1025px) {
  .topnav{ order: 0;
  margin-left: auto;
  }

  .topnav ul{
    position: static !important;
  display: flex !important;
  gap: 8px;
  padding: 10px 0 0;
  margin: 0;
  list-style: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  max-height: none !important;
  opacity: 1 !important;
  transform: none !important;
  }

  .topnav li + li{ position: relative;
  padding-left: 24px;
  }

  .topnav li + li: : before{
    content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,.55);
  };
}

/* Mobile dropdown (right-aligned) */ @media (max-width:1024px) {
  .topbar .container{ position: relative;
  padding-inline: 16px;
  }

  .topnav{ order: 1;
  margin-left: 0;
  position: static;
  }

  .nav-toggle{ order: 2;
  margin-left: auto;
  }

  .topnav ul{
    position: absolute;
  right: 16px;
  top: calc(100% + 8px);
  width: min(280px, calc(100vw - 24px));
  background: var(--navy);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
  gap: 2px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height .25s ease, opacity .2s ease, transform .2s ease;
  }

  .topnav.is-open ul{ max-height: 50vh;
  opacity: 1;
  transform: translateY(0);
  };
}
