@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* Fixed header: logo slot (+20% vs prior); offset clears glass bar */
  --header-logo-height: 4.8rem;
  --header-logo-max-height: 5.1rem;
  --header-logo-max-width: 336px;
  --site-header-offset: 7rem;
  --gold: #c9a84c;
  --gold-hover: #b8963e;
  --gold-light: #f5edd3;
  --deep-blue: #1b3a6b;
  --sky-blue: #4a90d9;
  --sky-blue-dark: #357abd;
  --sky-blue-darker: #2a6599;
  --sky-light: #ebf4ff;
  --gold-dark: #9a7e38;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --gray-100: #f1f3f7;
  --gray-400: #9ca3af;
  --gray-700: #374151;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --theme-body: #52657d;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.07);
  --shadow-nav: 0 2px 12px rgba(0, 0, 0, 0.08);

  /* Logo carousel — ~25% smaller than prior defaults; gaps scale on narrow viewports */
  --carousel-logo-height: 45px;
  --carousel-logo-height-md: 57px;
  --carousel-logo-max-width: 180px;
  --carousel-qb-height: 51px;
  --carousel-qb-height-md: 63px;
  --carousel-qb-max-width: 210px;
  --carousel-slide-min-w: 0px;
  --carousel-gap: clamp(1.25rem, 4vw, 3.75rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--site-header-offset) + 0.25rem);
}

/* Hero background video: cover viewport, stay behind overlays */
.hero-video-bg {
  pointer-events: none;
  z-index: 0;
}

/* Keep hero/video section height consistent across page changes */
.hero-bleed {
  height: 80vh;
  min-height: 80vh;
  max-height: 80vh; 
}

/* Phone: hero height = video band + headline (no full-screen empty navy below CTA) */
@media (max-width: 640px) {
  .hero-bleed.relative.min-h-screen {
    height: 50svh;
    min-height: 50svh;
    max-height: 50svh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    justify-content: unset;
    align-items: stretch;
    justify-items: stretch;
  }

  .hero-media-layer {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    width: 100%;
    min-height: 100%;
    height: auto;
    align-self: stretch;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    z-index: 0;
    overflow: hidden;
  }

  #hero-video.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    transform: none;
    object-fit: cover;
    object-position: center 30%;
  }

  .hero-copy-wrap.container {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    position: relative;
    z-index: 20;
    flex: none;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding-top: 3.75rem;
    padding-bottom: 1rem; 
  }

  .hero-copy-wrap .btn-hero-cta {
    max-width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero-video {
    opacity: 0;
    visibility: hidden;
  }
}

/* Fixed site header: content clears nav; pages without shared hero get top padding */
body.has-fixed-site-header #site-header + main {
  padding-top: var(--site-header-offset);
}

/* Shared hero sits after #site-header — full-bleed behind glass bar (same on all pages) */
body.has-fixed-site-header #site-header + .hero-bleed {
  margin-top: calc(-1 * var(--site-header-offset));
  padding-top: calc(var(--site-header-offset) + 50px);
}

.hero-copy-wrap {
  padding-top: clamp(4rem, 9vh, 6.25rem);
}


body.has-fixed-site-header #site-header + .hero-bleed + main {
  padding-top: 0;
}

/* Inset fixed header so the rounded glass bar does not touch viewport edges */
#site-header > header {
  padding-left: 2.5px;
  padding-right: 2.5px;
}

/* Logo injected from layout.js — crisp scaling on glass + footer */
.site-logo {
  display: block;
  flex-shrink: 0;
  object-position: left center;
  -webkit-user-drag: none;
  image-rendering: auto;
}

/* Navbar logo — navy pill wraps image only (transparent PNGs) */
.logo-img-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: #0b1d33;
  border-radius: 12px;
  padding: 4px 10px;
  line-height: 0;
  box-sizing: border-box;
}

a.header-brand .logo-img-shell .site-logo.header-logo {
  height: var(--header-logo-height);
  max-height: var(--header-logo-max-height);
  max-width: min(var(--header-logo-max-width), 46vw);
  width: auto;
  object-fit: contain;
}

/* Below desktop nav: logo ~20% smaller (hamburger / drawer layout) */
@media (max-width: 1023px) {
  a.header-brand .logo-img-shell .site-logo.header-logo {
    height: calc(var(--header-logo-height) * 0.8);
    max-height: calc(var(--header-logo-max-height) * 0.8);
    max-width: min(calc(var(--header-logo-max-width) * 0.8), 52vw);
  }

  a.header-brand {
    min-height: auto !important;
  }
}

/* Footer logo — +20% vs prior h-10 / sm:h-11 / md:h-12; same #0b1d33 shell as header */
.site-footer-logo-wrap.logo-img-shell .site-logo.footer-logo {
  display: block;
  height: 3rem;
  max-width: min(312px, 100%);
  width: auto;
  object-fit: contain;
  object-position: center center;
  filter: none;
}

/* Phone: shell hugs logo (row no longer stretch-wide); slightly larger mark + snug padding */
@media (max-width: 639px) {
  .site-footer-logo-wrap.logo-img-shell {
    width: fit-content;
    max-width: 100%;
    padding: 3px 6px;
    margin-inline: auto;
  }

  .site-footer-logo-wrap.logo-img-shell .site-logo.footer-logo {
    height: calc(3rem * 1.15);
    max-height: none;
    max-width: min(312px, 100%);
  }
}

@media (min-width: 640px) {
  .site-footer-logo-wrap.logo-img-shell .site-logo.footer-logo {
    height: 3.3rem;
  }
}

@media (min-width: 768px) {
  .site-footer-logo-wrap.logo-img-shell .site-logo.footer-logo {
    height: 3.6rem;
  }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--theme-body);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 55%, #f0f6fc 100%);
  min-height: 100vh;
}

h1,
.h1 {
  font-size: clamp(2rem, 5vw, 52px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h2,
.h2 {
  font-size: clamp(1.75rem, 3.5vw, 38px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h3,
.h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0 0 0.35em;
}

a {
  color: var(--sky-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--sky-blue-dark);
}

.text-gold {
  color: var(--gold);
}

/* Tailwind utilities can lose to `.h2`/`.h3` above — reinforce themed headings */
.h2.text-deep-blue,
.h3.text-deep-blue {
  color: var(--deep-blue);
}

.bg-deep-blue {
  background: var(--deep-blue);
}

.bg-off-white {
  background: var(--off-white);
}

.bg-sky-light {
  background: var(--sky-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 15px;
  border-radius: 9999px;
  padding: 0.625rem 1.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gold-hover);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}

.btn-secondary:hover {
  background: var(--gold-light);
  border-color: var(--gold-dark);
  color: var(--gold-dark);
}

.btn-dark {
  background: var(--deep-blue);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--sky-blue-darker);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.35);
}

/* Hero primary CTA — sky blue (reference) */
.btn-hero-cta {
  background: var(--sky-blue);
  color: var(--white);
  border-radius: 9999px;
  font-weight: 600;
  font-size: 16px;
  padding: 0.875rem 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(27, 58, 107, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-hero-cta:hover {
  background: var(--sky-blue-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(42, 101, 153, 0.35);
}

/* Frosted chat bubbles (hero) */
.chat-glass {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.hero-chat-connector {
  width: 0;
  height: 1.75rem;
  margin-left: 1.75rem;
  border-left: 2px dashed color-mix(in srgb, var(--sky-blue) 82%, transparent);
}

.hero-chat-connector-right {
  align-self: flex-end;
  width: 0;
  height: 1.75rem;
  margin-right: 1.75rem;
  border-right: 2px dashed color-mix(in srgb, var(--sky-blue) 82%, transparent);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.story-card .h2 {
  font-size: clamp(1.625rem, 2.2vw, 2rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.story-copy p {
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
}

.story-emphasis {
  color: var(--deep-blue);
}

.story-logo-panel img {
  max-height: 100%;
}

.card-hover {
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card-hover:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 36px rgba(74, 144, 217, 0.12), 0 4px 24px rgba(0, 0, 0, 0.06);
  border-color: rgba(74, 144, 217, 0.35);
}

/* Inputs */
.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-dark);
  transition: border-color 0.2s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--sky-blue);
}

/* Range slider gold thumb */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: var(--gray-100);
  accent-color: var(--gold);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Marquee */
.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee {
  display: flex;
  gap: 3rem;
  animation: marquee 35s linear infinite;
  width: max-content;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Technologies logo carousel — white row, sky-blue heading, smooth horizontal scroll */
.carousel-container {
  width: 100%;
}

.carousel-heading {
  margin: 0 0 2.5rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-blue);
}

@media (min-width: 768px) {
  .carousel-heading {
    font-size: 1.5rem;
    margin-bottom: 3rem;
  }
}

.carousel-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.carousel-viewport:hover .carousel-track {
  animation-play-state: paused;
}

.carousel-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  animation: carousel-logo-scroll 55s linear infinite;
  will-change: transform;
}

.carousel-set {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--carousel-gap);
  padding-right: var(--carousel-gap);
}

.carousel-slide {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 58px;
  min-width: var(--carousel-slide-min-w);
  padding: 0 0.125rem;
  background: transparent;
  border: none;
}

.carousel-slide img {
  display: block;
  width: 150px;
  height: 52px;
  max-width: 150px;
  max-height: 52px;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 768px) {
  .carousel-slide img {
    width: 150px;
    height: 52px;
    max-width: 150px;
    max-height: 52px;
  }
}

.carousel-slide--featured img {
  width: 237px;
  height: 81px;
  max-width: 237px;
  max-height: 81px;
}

@media (min-width: 768px) {
  .carousel-slide--featured img {
    width: 237px;
    height: 81px;
    max-width: 237px;
    max-height: 81px;
  }
}

@keyframes carousel-logo-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    row-gap: 1rem;
  }

  .carousel-set {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding-right: 0;
  }

  .carousel-set[aria-hidden="true"] {
    display: none;
  }
}

/* Hero word cycle */
.hero-word {
  display: inline-block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 6px;
  min-width: 5ch;
}

.hero-word.is-out {
  animation: heroFadeOut 0.45s ease forwards;
}

.hero-word.is-in {
  animation: heroFadeIn 0.45s ease forwards;
}

@keyframes heroFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Chat cards entrance */
.chat-card {
  opacity: 0;
  transform: translateY(16px);
  animation: chatIn 0.55s ease forwards;
}

.chat-card:nth-child(1) {
  animation-delay: 0ms;
}
.chat-card:nth-child(2) {
  animation-delay: 200ms;
}
.chat-card:nth-child(3) {
  animation-delay: 400ms;
}
.chat-card:nth-child(4) {
  animation-delay: 600ms;
}

@keyframes chatIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nav dropdown — Inter matches index.html / site body */
.nav-dd {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  min-width: 280px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 130;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.nav-item:hover .nav-dd,
.nav-item:focus-within .nav-dd {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-top-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: color 0.18s ease;
}

.nav-top-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(74, 144, 217, 0.55);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.nav-top-link:hover::after,
.nav-top-link:focus-visible::after,
.nav-top-link.is-active::after {
  transform: scaleX(1);
}

.nav-link-divider {
  color: rgba(74, 144, 217, 0.42);
  text-shadow: 0 1px 8px rgba(74, 144, 217, 0.3);
  font-weight: 500;
}

.nav-dd-wide {
  min-width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.dd-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.7rem;
  border-radius: 12px;
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.dd-link:hover {
  background: var(--sky-light);
  border-color: rgba(74, 144, 217, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(74, 144, 217, 0.08),
    0 6px 14px rgba(0, 0, 0, 0.08);
}

.dd-link:hover .dd-icon {
  background: #dbeafe;
  color: var(--sky-blue-darker);
}

.dd-link--company-gold:hover .dd-icon--match-gold {
  color: var(--gold-dark);
  background: rgba(201, 168, 76, 0.22);
}

.dd-link-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Service row: navy title + sky subtitle (reference layout) */
.dd-link-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--deep-blue);
}

.dd-link-sub {
  display: block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--sky-blue);
}

.dd-link--service:hover .dd-link-title {
  color: var(--sky-blue-darker);
}

.dd-link--service:hover .dd-link-sub {
  color: var(--sky-blue-dark);
}

.dd-link-title--gold {
  color: var(--gold-dark);
}

.dd-link-sub--gold {
  color: rgba(154, 126, 56, 0.92);
}

.dd-link--company:hover .dd-link-title:not(.dd-link-title--gold) {
  color: var(--sky-blue-darker);
}

.dd-link--company:hover .dd-link-sub:not(.dd-link-sub--gold) {
  color: var(--sky-blue-dark);
}

.dd-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--sky-light);
  color: var(--deep-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease;
}

/* Stroke icons — same hue as .dd-link-title; hover tracks title */
.dd-icon--stroke {
  color: var(--deep-blue);
}

.dd-icon-svg {
  display: block;
  flex-shrink: 0;
}

.dd-icon--match-gold {
  color: var(--gold-dark);
}

.nav-dd--stack {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dd-link--simple-row {
  align-items: center;
  padding: 0.55rem 0.65rem;
}

.dd-simple-label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--deep-blue);
  transition: color 0.18s ease;
}

.dd-link--simple-row:hover .dd-simple-label {
  color: var(--sky-blue-darker);
}

.dd-link--simple-row .dd-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--gold-hover);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.45);
  transform: translateY(-2px);
}

/* Team hub — card shell (reference) */
.team-hub-card {
  border: 1px dashed rgba(74, 144, 217, 0.35);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(74, 144, 217, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-hub-card:hover {
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 8px 28px rgba(27, 58, 107, 0.1);
}

.team-hub-diagram-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

/* Home index: services → calculator (sky / gold / deep-blue band) */
.home-band-services {
  background: linear-gradient(180deg, rgba(235, 244, 255, 0.92) 0%, var(--off-white) 42%, rgba(235, 244, 255, 0.45) 100%);
  border-bottom: 1px solid rgba(74, 144, 217, 0.14);
}

.home-band-services .home-svc-icon {
  background: linear-gradient(145deg, var(--sky-light) 0%, rgba(74, 144, 217, 0.2) 100%);
  border: 1px solid rgba(74, 144, 217, 0.28);
  color: var(--deep-blue);
  box-shadow: 0 4px 16px rgba(27, 58, 107, 0.08);
}

.home-band-team {
  background: linear-gradient(180deg, #ffffff 0%, rgba(235, 244, 255, 0.4) 100%);
  border-bottom: 1px solid rgba(74, 144, 217, 0.12);
}

.home-band-stats {
  background: linear-gradient(145deg, #152f52 0%, var(--deep-blue) 45%, #1a5080 100%);
}

.home-band-calc {
  background: linear-gradient(180deg, var(--off-white) 0%, rgba(235, 244, 255, 0.55) 100%);
  border-bottom: 1px solid rgba(74, 144, 217, 0.1);
}

.home-calc-card {
  border: 1px solid rgba(74, 144, 217, 0.16);
  box-shadow: 0 8px 36px rgba(74, 144, 217, 0.1), 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Mobile drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(100%, 360px);
  height: 100%;
  background: var(--white);
  z-index: 210;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  padding: 1.25rem;
}

.drawer.is-open {
  transform: translateX(0);
}

/* Mobile nav drawer — matches desktop sky / gold / deep-blue theme */
.drawer.drawer--nav {
  width: min(100%, 400px);
  display: flex;
  flex-direction: column;
  padding: 0;
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.drawer.drawer--nav .drawer__scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 1rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.875rem;
  border-bottom: 1px solid rgba(74, 144, 217, 0.18);
  background: linear-gradient(180deg, rgba(235, 244, 255, 0.5) 0%, #fff 100%);
  flex-shrink: 0;
}

.drawer__brand .logo-img-shell {
  max-width: 100%;
}

/* Drawer logo on phone: fixed 3rem height, width from aspect ratio */
@media (max-width: 640px) {
  .drawer.drawer--nav .drawer__brand .logo-img-shell .site-logo.header-logo {
    height: 3rem;
    max-height: 3rem;
    width: auto;
    max-width: min(280px, 90vw);
    object-fit: contain;
  }

  .drawer.drawer--nav .drawer__brand .logo-img-shell {
    padding: 3px 8px;
  }
}

.drawer__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 9999px;
  background: rgba(235, 244, 255, 0.9);
  cursor: pointer;
  color: var(--deep-blue);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.drawer__close:hover {
  background: var(--sky-light);
  color: var(--sky-blue-darker);
}

.drawer__close-icon {
  display: block;
  color: inherit;
}

.drawer__nav {
  padding-top: 0.5rem;
}

.drawer-accordion {
  border-bottom: 1px solid rgba(74, 144, 217, 0.12);
}

.drawer-accordion__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.25rem;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--deep-blue);
  font-family: inherit;
}

.drawer-accordion__btn:hover {
  color: var(--sky-blue-darker);
}

.drawer-accordion__label--active {
  color: var(--gold);
}

/* Closed = down chevron (open panel); open = up chevron (close panel) */
.drawer-accordion__icons {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--deep-blue);
}

.drawer-accordion__chev {
  grid-area: 1 / 1;
  display: block;
}

.drawer-accordion__chev--collapse {
  display: none;
}

.drawer-accordion.is-open .drawer-accordion__chev--expand {
  display: none;
}

.drawer-accordion.is-open .drawer-accordion__chev--collapse {
  display: block;
}

.drawer-accordion__btn:hover .drawer-accordion__icons {
  color: var(--sky-blue-darker);
}

.drawer-accordion__panel {
  padding: 0 0 0.75rem 0.25rem;
}

.drawer-accordion__panel[hidden] {
  display: none;
}

.drawer-accordion__inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.25rem 0 0.5rem;
  border-radius: 12px;
  background: rgba(235, 244, 255, 0.45);
  border: 1px solid rgba(74, 144, 217, 0.12);
}

.drawer .dd-link {
  width: 100%;
  box-sizing: border-box;
}

.drawer .dd-link--simple-row {
  border-radius: 10px;
  margin-bottom: 0.2rem;
}

.drawer .dd-icon {
  width: 36px;
  height: 36px;
}

.drawer .dd-link-title {
  font-size: 14px;
}

.drawer .dd-link-sub {
  font-size: 12px;
}

.drawer-row-link {
  display: block;
  padding: 0.85rem 0.25rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--deep-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 144, 217, 0.1);
  transition: color 0.15s ease, background 0.15s ease;
}

.drawer-row-link:hover {
  color: var(--sky-blue-darker);
  background: rgba(235, 244, 255, 0.5);
  border-radius: 8px;
}

.drawer-row-link--active {
  color: var(--gold);
}

.drawer__signin {
  flex-shrink: 0;
  margin: 0.75rem 1rem 1.25rem;
  justify-content: center;
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 1rem 0;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.is-open .faq-a {
  max-height: 400px;
}

.faq-a-inner {
  padding-bottom: 1rem;
  color: var(--text-muted);
}

/* Blog tag pill */
.tag-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--gold);
  color: var(--white);
}

/* Footer — sky + gold band */
.theme-footer {
  background: linear-gradient(165deg, #1e4a78 0%, #1b3a6b 42%, #152d52 100%);
}

.footer-link {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--gold);
}

.footer-social {
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.footer-social:hover {
  border-color: var(--gold);
  background: rgba(74, 144, 217, 0.2);
  color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.35);
}

.footer-legal {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}

.footer-legal:hover {
  color: var(--gold);
}

/* Footer top bar */
.footer-top {
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Dark content bands (stats, etc.) */
.theme-band-dark {
  background: linear-gradient(135deg, #1b3a6b 0%, #142a45 50%, #1a5080 100%);
  color: var(--white);
}

.text-theme-body {
  color: var(--theme-body);
}

/* Utility */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.max-w-6xl {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

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