/* ============================================================
   AXIOM RESEARCH GROUP — Layout (header, footer, sections, grid)
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--sp-6);
  padding-right: var(--sp-6);
}

.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.section--pale { background: var(--navy-pale); }
.section--white { background: var(--white); }
.section--navy {
  background: var(--navy-deep);
  color: var(--white);
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255, 255, 255, 0.8); }

.section-head {
  max-width: 720px;
  margin-bottom: var(--sp-10);
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 { margin-bottom: var(--sp-3); }
.section-head p { color: var(--slate); }
.section--navy .section-head p { color: rgba(255, 255, 255, 0.8); }

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}
.grid-2--asym {
  grid-template-columns: 1.15fr 0.85fr;
}
.grid-2--asym-rev {
  grid-template-columns: 0.85fr 1.15fr;
}

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2--asym, .grid-2--asym-rev { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--navy-deep);
  height: var(--header-h);
  transition: box-shadow var(--dur-fast) ease;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-medium);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}
.site-header__logo img {
  height: 44px;
  width: auto;
}
.site-header__logo span {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 17px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-small);
  font-weight: 500;
  padding: var(--sp-2) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] {
  color: var(--gold-2);
  border-bottom-color: var(--gold-1);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-shrink: 0;
}

/* Language dropdown */
.lang-switch {
  position: relative;
}
.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  padding: 6px 10px;
  cursor: pointer;
  transition: border-color var(--dur-fast) ease;
}
.lang-switch__btn:hover { border-color: var(--gold-1); }
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-medium);
  min-width: 140px;
  display: none;
  overflow: hidden;
}
.lang-switch__menu.is-open { display: block; }
.lang-switch__menu a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-small);
  color: var(--ink);
}
.lang-switch__menu a:hover { background: var(--navy-pale); }
.lang-switch__menu a[aria-current="true"] {
  font-weight: 600;
  color: var(--navy-deep);
  background: var(--navy-pale);
}

.header-call-btn {
  min-height: 38px;
  padding: 8px 16px;
  font-size: var(--fs-small);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: var(--sp-2);
}

@media (min-width: 1024px) {
  .lang-switch--mobile { display: none; }
}

/* Mobile nav panel */
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .header-call-btn { display: none; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-6);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-large);
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a {
    padding: var(--sp-4) var(--sp-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--fs-body);
  }
  .site-nav .lang-switch--mobile {
    margin-top: var(--sp-6);
    display: flex;
    gap: var(--sp-3);
  }
  .site-nav .lang-switch--mobile a {
    flex: 1;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-sm);
    padding: var(--sp-3);
    font-family: var(--font-mono);
    font-size: var(--fs-small);
  }
  .site-nav .lang-switch--mobile a[aria-current="true"] {
    background: var(--gold-1);
    border-color: var(--gold-1);
    color: var(--navy-deep);
    font-weight: 600;
  }
  .lang-switch--desktop { display: none; }
}

.nav-overlay {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(13, 40, 82, 0.5);
  z-index: 899;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Page hero ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--navy-pale), var(--paper));
  padding: var(--sp-12) 0 var(--section-pad);
}
.page-hero .breadcrumb {
  font-size: var(--fs-small);
  color: var(--slate);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  list-style: none;
}
.page-hero .breadcrumb a { color: var(--slate); }
.page-hero .breadcrumb a:hover { color: var(--navy-deep); }
.page-hero .breadcrumb li + li::before {
  content: "›";
  margin-right: var(--sp-2);
  color: var(--line);
}
.page-hero h1 { margin-bottom: var(--sp-4); }
.page-hero p {
  max-width: 680px;
  color: var(--slate);
}

/* ---------- Home hero ---------- */
.home-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(201, 162, 65, 0.10), transparent 60%),
    linear-gradient(180deg, var(--navy-pale) 0%, var(--paper) 100%);
  padding: var(--sp-15) 0;
}
@media (min-width: 1024px) {
  .home-hero { min-height: calc(100vh - var(--header-h)); }
}
.home-hero__peak {
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: 520px;
  opacity: 0.12;
  pointer-events: none;
}
@media (max-width: 640px) {
  .home-hero__peak { width: 300px; right: -80px; }
}
/* --- Video hero (Labozen-style, brand-adapted) --- */
.home-hero--video {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
}
.home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(900px 420px at 85% 110%, rgba(201, 162, 65, 0.18), transparent 60%),
    linear-gradient(100deg, rgba(13, 40, 82, 0.92) 0%, rgba(13, 40, 82, 0.72) 55%, rgba(13, 40, 82, 0.55) 100%);
}
.home-hero--video .home-hero__content {
  z-index: 2;
  max-width: 820px;
}
.home-hero--video .eyebrow {
  color: var(--gold-2);
}
.home-hero--video h1 {
  color: var(--white);
}
.home-hero--video .home-hero__lede {
  color: rgba(255, 255, 255, 0.82);
}
.stat-card--glass {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.stat-card--glass .stat-card__value {
  color: var(--gold-2);
}
.stat-card--glass .stat-card__label {
  color: rgba(255, 255, 255, 0.85);
}
/* Accessibility: respect reduced motion — hide video, keep navy gradient */
@media (prefers-reduced-motion: reduce) {
  .home-hero__video { display: none; }
}

.home-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  align-items: center;
}
@media (min-width: 1024px) {
  .home-hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-14); }
}
.home-hero__content {
  position: relative;
  max-width: 660px;
}
.home-hero__media {
  position: relative;
}
.photo-duotone--hero {
  border-radius: var(--radius-md);
}
.photo-duotone--hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Desktop: tall image beside the text */
@media (min-width: 1024px) {
  .photo-duotone--hero img { min-height: 500px; max-height: 620px; }
}
/* Tablet & mobile: image first (above the text) and compact, so it is
   visible without scrolling and the headline stays near the top. */
@media (max-width: 1023px) {
  .home-hero__media { order: -1; }
  .photo-duotone--hero img { min-height: 220px; max-height: 280px; }
}
.home-hero h1 {
  margin-bottom: var(--sp-5);
}
.home-hero__lede {
  font-size: 18px;
  color: var(--slate);
  max-width: 640px;
  margin-bottom: var(--sp-8);
}
.home-hero__ctas {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-12);
}
.home-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  gap: var(--sp-4);
}
@media (max-width: 640px) {
  .home-hero__stats { grid-template-columns: 1fr; }
}

/* ---------- Photos / duotone ---------- */
.photo-duotone {
  position: relative;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid rgba(13, 40, 82, 0.14);
}
.photo-duotone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(55%) contrast(1.08) saturate(0.9);
}
.photo-duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 40, 82, 0.7), rgba(201, 162, 65, 0.3));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.photo-banner {
  margin: 0;
}
.photo-banner .photo-duotone {
  aspect-ratio: 3 / 1;
}
@media (max-width: 640px) {
  .photo-banner .photo-duotone { aspect-ratio: 2 / 1; }
}
.photo-banner figcaption {
  font-size: var(--fs-small);
  color: var(--slate);
  margin-top: var(--sp-2);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-deep);
  color: var(--white);
  text-align: center;
  padding: var(--sp-18) 0;
  margin-bottom: 0;
}
.cta-band h2 {
  color: var(--white);
  margin-bottom: var(--sp-4);
}
.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 620px;
  margin: 0 auto var(--sp-8);
}

/* ---------- Compliance strip ---------- */
.compliance-strip {
  background: var(--navy-deep);
  padding: var(--section-pad) 0;
}
.compliance-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  margin-top: var(--sp-8);
}
@media (max-width: 1024px) {
  .compliance-strip__grid { grid-template-columns: 1fr; gap: var(--sp-8); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: var(--sp-15) 0 var(--sp-8);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--grid-gap);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
@media (max-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}
@media (max-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}
.site-footer__brand img {
  width: 140px;
  height: auto;
  margin-bottom: var(--sp-4);
}
.site-footer__brand p {
  font-size: var(--fs-small);
  max-width: 300px;
}
.site-footer h3 {
  color: var(--gold-2);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-small);
}
.site-footer a:hover { color: var(--gold-2); }
.site-footer address {
  font-style: normal;
  font-size: var(--fs-small);
  line-height: 1.8;
}
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-top: var(--sp-6);
  font-size: var(--fs-label);
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Floating widgets ---------- */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 950;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--navy-deep);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease, background var(--dur-fast) ease;
}
.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--navy-mid);
  box-shadow: var(--shadow-hover);
}

.quick-call {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 950;
  height: 48px;
  animation: pulse-gold 2.6s ease-in-out infinite;
}
@media (max-width: 640px) {
  .quick-call {
    height: 52px;
    width: 52px;
    padding: 0;
    border-radius: 50%;
  }
  .quick-call .quick-call__label { display: none; }
}

/* Mobile action bar */
.mobile-action-bar {
  display: none;
}
@media (max-width: 640px) {
  body { padding-bottom: 58px; }
  .quick-call { display: none; }
  .mobile-action-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 58px;
    z-index: 960;
    box-shadow: 0 -2px 12px rgba(13, 40, 82, 0.18);
  }
  .mobile-action-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    font-weight: 600;
    font-size: var(--fs-small);
  }
  .mobile-action-bar__call {
    background: var(--navy-deep);
    color: var(--white);
  }
  .mobile-action-bar__call:hover { color: var(--white); }
  .mobile-action-bar__msg {
    background: var(--paper);
    color: var(--navy-deep);
    border-top: 1px solid var(--line);
  }
  .scroll-top { bottom: 72px; }
}
