/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1a2b5e;
  --navy-dark: #131d42;
  --navy-light: #243770;
  --gray-blue: #c5cddc;
  --gray-light: #e8ecf2;
  --white: #ffffff;
  --gradient-end: #d4dce8;
  --subheading-font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  --theme-bg: #1a2b5e;
  --theme-text: #ffffff;
  --theme-muted: rgba(255, 255, 255, 0.7);
  --theme-border: rgba(255, 255, 255, 0.08);
  --theme-border-strong: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] {
  --theme-bg: #ffffff;
  --theme-text: #1a2b5e;
  --theme-muted: #6b7a99;
  --theme-border: rgba(0, 0, 0, 0.1);
  --theme-border-strong: rgba(26, 43, 94, 0.25);
}

[data-theme="light"] .hero {
  background: linear-gradient(
    135deg,
    #f8f9fc 0%,
    #ffffff 45%,
    #e8ecf2 55%,
    #f0f2f6 100%
  );
}

[data-theme="light"] .hero-panel {
  border-color: rgba(26, 43, 94, 0.2);
  background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .hero-cta {
  background: linear-gradient(180deg, rgba(26, 43, 94, 0.9) 0%, #1a2b5e 100%);
  color: #ffffff;
  border-color: #1a2b5e;
  box-shadow: 0 4px 12px rgba(26, 43, 94, 0.2);
}

[data-theme="light"] .hero-cta:hover {
  background: linear-gradient(180deg, #243770 0%, #1a2b5e 100%);
  border-color: #1a2b5e;
  box-shadow: 0 6px 16px rgba(26, 43, 94, 0.25);
}

[data-theme="light"] .hero-cta:focus-visible {
  outline: 2px solid #1a2b5e;
}

[data-theme="light"] .site-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer-mobile-contact {
  background: rgba(26, 43, 94, 0.12);
  color: #1a2b5e;
}

[data-theme="light"] .footer-mobile-contact:hover {
  background: rgba(26, 43, 94, 0.2);
}

[data-theme="light"] .footer-mobile-linkedin {
  color: #1a2b5e;
}


[data-theme="light"] .nav-dropdown-menu {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .nav-dropdown-menu a {
  color: #1a2b5e;
}

[data-theme="light"] .nav-dropdown-menu a:hover {
  background: #f8f9fc;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--theme-text);
  background: var(--theme-bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
}

/* Header */
.header {
  background: var(--theme-bg);
  padding: 1.25rem 2.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--theme-border);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: nowrap;
}

.logo {
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

.nav-links a {
  color: var(--theme-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.2s, text-decoration 0.2s;
  position: relative;
}

.nav-links a:hover {
  opacity: 0.85;
}

.nav-links a:active,
.nav-links a:focus {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.nav-links a.active {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Offerings dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--theme-text);
  font-weight: 500;
  font-size: 0.95rem;
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-dropdown-trigger:hover {
  opacity: 0.85;
}

.nav-dropdown.active .nav-dropdown-trigger {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.nav-dropdown-trigger::after {
  content: ' ▾';
  font-size: 0.75em;
  opacity: 0.8;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  min-width: 160px;
  background: var(--navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 30;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--white);
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: nowrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--theme-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity 0.2s, text-decoration 0.2s;
}

.contact-link:hover {
  opacity: 0.85;
}

.contact-icon {
  display: none;
}

.contact-link:active,
.contact-link:focus {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.contact-link.active {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.linkedin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--theme-text);
  transition: opacity 0.2s;
}

.linkedin-link:hover {
  opacity: 0.85;
}

/* Hamburger menu - mobile only */
.header-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--theme-text);
  z-index: 25;
  transition: opacity 0.2s;
}

.header-hamburger:hover {
  opacity: 0.85;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.header-hamburger.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header-hamburger.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.header-hamburger.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--theme-bg);
  border-bottom: 1px solid var(--theme-border);
  padding: 1rem;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.header-mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--theme-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.mobile-menu-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-dropdown {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: var(--theme-text);
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  border-radius: 6px;
  transition: background 0.2s;
}

.mobile-menu-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-chevron {
  font-size: 0.75em;
  opacity: 0.8;
  transition: transform 0.2s;
}

.mobile-menu-dropdown.is-open .mobile-menu-chevron {
  transform: rotate(180deg);
}

.mobile-menu-dropdown-list {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 1rem;
}

.mobile-menu-dropdown.is-open .mobile-menu-dropdown-list {
  display: flex;
}

@media (max-width: 768px) {
  .header-hamburger {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .header-mobile-menu {
    display: flex;
  }

  .header-right .nav-links,
  .header-right .contact-link,
  .header-right .linkedin-link,
  .header-right .search-wrapper {
    display: none;
  }

  .header-right {
    display: none;
  }

  .logo {
    order: 0;
  }

  .theme-toggle {
    display: flex;
    order: 1;
  }
}

[data-theme="light"] .mobile-menu-link:hover,
[data-theme="light"] .mobile-menu-trigger:hover {
  background: rgba(0, 0, 0, 0.06);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--theme-border-strong);
  border-radius: 8px;
  min-width: 200px;
}

.search-icon {
  flex-shrink: 0;
  opacity: 0.8;
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--theme-text);
  font-size: 0.9rem;
  width: 100%;
  outline: none;
}

.search-box input::placeholder {
  color: var(--theme-muted);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--theme-text);
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.theme-toggle:hover {
  opacity: 0.85;
}

.theme-toggle .theme-icon {
  position: absolute;
  transition: opacity 0.2s;
}

.theme-toggle .theme-icon-sun {
  opacity: 0;
}

.theme-toggle .theme-icon-moon {
  opacity: 1;
}

[data-theme="light"] .theme-toggle .theme-icon-sun {
  opacity: 1;
}

[data-theme="light"] .theme-toggle .theme-icon-moon {
  opacity: 0;
}

.search-wrapper {
  position: relative;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.25rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(26, 43, 94, 0.15);
  max-height: 360px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-wrapper.search-open .search-results {
  display: block;
}

.search-results .search-result-item {
  display: block;
  padding: 0.75rem 1rem;
  color: #1a2b5e;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(26, 43, 94, 0.08);
  transition: background 0.2s;
}

.search-results .search-result-item:last-child {
  border-bottom: none;
}

.search-results .search-result-item:hover {
  background: #f5f6f8;
}

.search-results .search-result-snippet {
  display: block;
  font-size: 0.85rem;
  color: #6b7a99;
  margin-top: 0.25rem;
}

.search-results .search-result-page {
  display: block;
  font-weight: 600;
}

.search-results-empty {
  padding: 1rem;
  color: #6b7a99;
  font-size: 0.9rem;
}

.search-results mark {
  background: #b3d9f2;
  color: inherit;
  padding: 0 0.1em;
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--theme-bg);
  padding: 0.75rem 2.5rem;
  position: relative;
  z-index: 9;
  border-bottom: 1px solid var(--theme-border);
}

.breadcrumbs-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs a {
  color: var(--theme-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--theme-text);
}

.breadcrumb-separator {
  color: var(--theme-muted);
  font-size: 0.85rem;
}

.breadcrumb-current {
  color: var(--theme-text);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: calc(100vh - 120px);
  background: linear-gradient(
    135deg,
    var(--navy) 0%,
    var(--navy) 45%,
    var(--navy-light) 55%,
    var(--gradient-end) 100%
  );
  overflow: hidden;
}

.hero-panel {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 0 0 2.5rem;
  padding: 3rem 3.5rem 4rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  background: rgba(26, 43, 94, 0.4);
  backdrop-filter: blur(8px);
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.hero-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.25s ease-out, transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}

.hero-cta:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}

.hero-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.hero-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 1.5rem;
  opacity: 0.95;
}

/* Our Principles - two-column layout (content left, image right) */
.our-principles {
  position: relative;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 3rem;
  align-items: start;
  background: #f8f9fc;
  padding: 4rem 2.5rem 5rem;
  border-top: 1px solid rgba(26, 43, 94, 0.12);
  max-width: 1200px;
  margin: 0 auto;
}

.our-principles::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  top: 0;
  bottom: 0;
  background: #f8f9fc;
  z-index: -1;
}

.our-principles-content {
  text-align: left;
}

.our-principles-title {
  font-size: var(--subheading-font-size);
  font-weight: 700;
  color: #1a2b5e;
  margin: 0 0 1rem;
  text-align: center;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.our-principles-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #1a2b5e;
  margin: 0 0 2rem;
  text-align: center;
}

.our-principles-accordions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.principle-accordion {
  background: rgba(232, 236, 242, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(26, 43, 94, 0.08);
  overflow: hidden;
}

.principle-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a2b5e;
  letter-spacing: 0.02em;
}

.principle-accordion-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #1a2b5e;
}

.principle-accordion-icon svg {
  width: 100%;
  height: 100%;
}

.principle-accordion summary::-webkit-details-marker {
  display: none;
}

.principle-accordion summary::after {
  content: ' ▾';
  margin-left: auto;
  font-size: 0.85em;
  opacity: 0.7;
}

.principle-accordion[open] summary::after {
  content: ' ▴';
}

.principle-accordion-content {
  padding: 0 1.25rem 1.25rem 3.25rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1a2b5e;
}

.principle-accordion[open] .principle-accordion-content {
  padding-top: 0;
}

/* Image placeholder - right column (aligned to top of first accordion) */
.our-principles-image {
  min-height: 320px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 12.5rem;
}

.our-principles-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: #e8ecf2;
  border-radius: 12px;
  overflow: hidden;
}

.our-principles-image-placeholder img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .our-principles {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem 4rem;
  }

  .our-principles-content {
    text-align: center;
    order: -1;
  }

  .our-principles-intro {
    text-align: center;
  }

  .our-principles-image {
    min-height: 280px;
    margin-top: 0;
  }

  .our-principles-image-placeholder {
    min-height: 280px;
  }

  .our-principles-image-placeholder img {
    min-height: 280px;
  }
}

/* Engage single column (home page - no empty grid cell) */
.engage-lookfor-wrapper.engage-single {
  grid-template-columns: 1fr;
}

/* Engage with image on left (home page) */
.engage-with-image {
  display: grid !important;
  grid-template-columns: 400px 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.engage-image-left {
  border-radius: 12px;
  overflow: hidden;
  min-height: 280px;
}

.engage-image-left img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.engage-with-image .how-we-engage {
  padding: 3rem 2.5rem 3rem 0;
}

@media (max-width: 900px) {
  .engage-with-image {
    grid-template-columns: 1fr;
  }

  .engage-image-left {
    min-height: 220px;
    border-radius: 0;
  }

  .engage-image-left img {
    min-height: 220px;
  }

  .engage-with-image .how-we-engage {
    padding: 2.5rem 1.5rem;
  }
}

/* Why Bayes Compass */
.why-bayes-compass {
  background: #ffffff;
  padding: 4rem 2.5rem 5rem;
  border-top: 1px solid rgba(26, 43, 94, 0.12);
}

.why-bayes-title {
  font-size: var(--subheading-font-size);
  font-weight: 700;
  color: #1a2b5e;
  margin: 0 0 2.5rem;
  text-align: center;
  text-transform: uppercase;
}

.why-bayes-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 2.5rem;
}

.why-bayes-card {
  background: #f5f6f8;
  border-radius: 12px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(26, 43, 94, 0.06);
}

.why-bayes-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: rgba(26, 43, 94, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a2b5e;
}

.why-bayes-icon svg {
  width: 28px;
  height: 28px;
}

.why-bayes-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2b5e;
  margin: 0 0 0.5rem;
}

.why-bayes-card-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1a2b5e;
  margin: 0;
  opacity: 0.9;
}

.why-bayes-quote {
  max-width: 1000px;
  margin: 0 auto 2.5rem;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: rgba(26, 43, 94, 0.06);
  border-left: 4px solid #1a2b5e;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1a2b5e;
  font-style: normal;
}

@media (max-width: 960px) {
  .why-bayes-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .why-bayes-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .why-bayes-compass {
    padding: 3rem 1.5rem 4rem;
  }
}

/* Contact page form layout */
.contact-main {
  background: #ffffff;
  padding: 3rem 2.5rem 4rem;
}

.contact-card {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
}

.contact-header h1 {
  font-size: var(--subheading-font-size);
  font-weight: 700;
  color: #1a2b5e;
  margin-bottom: 0.75rem;
}

.contact-page-title {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-mailbox {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.contact-mail-icon {
  width: 100%;
  height: 100%;
  color: #1a2b5e;
  opacity: 0.9;
  animation: mail-icon-pulse 2s ease-in-out infinite;
}

@keyframes mail-icon-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

.contact-header p {
  font-size: 0.98rem;
  color: #4a5568;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.contact-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a2b5e;
  margin-bottom: 0.3rem;
}

.required {
  color: #e11d48;
  margin-left: 0.1rem;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #d0d7e2;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: #1a2b5e;
  box-shadow: 0 0 0 1px rgba(26, 43, 94, 0.35);
}

.contact-field select {
  background-color: #ffffff;
}

.contact-submit {
  margin-top: 1.5rem;
  align-self: flex-start;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: #213573;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.contact-submit:hover {
  background: #111b3c;
}

.contact-submit:active {
  transform: translateY(1px);
}

@media (max-width: 768px) {
  .contact-main {
    padding: 2.5rem 1.5rem 3rem;
  }

  .contact-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Careers page */
.careers-main {
  background: #ffffff;
  padding: 0;
}

.careers-intro h1 {
  font-size: var(--subheading-font-size);
  font-weight: 700;
  color: #1a2b5e;
  margin: 0 0 1rem;
}

.careers-intro p {
  font-size: 1rem;
  color: #1a2b5e;
  opacity: 0.9;
  margin: 0;
}

.careers-lookfor {
  border-right: none;
}

/* Blog article layout */
.blog-body {
  background: #ffffff;
  padding: 3rem 2.5rem 4rem;
}

.blog-article {
  max-width: 900px;
  margin: 0 auto;
  color: #1a2b5e;
}

.blog-article section + section {
  margin-top: 2rem;
}

.blog-article h2 {
  font-size: var(--subheading-font-size);
  margin-bottom: 0.75rem;
}

.blog-article h3 {
  font-size: var(--subheading-font-size);
  margin-bottom: 0.5rem;
}

.blog-article h4 {
  font-size: var(--subheading-font-size);
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.blog-article p {
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0.4rem 0 0.6rem;
}

.blog-article ul {
  padding-left: 1.25rem;
  margin: 0.25rem 0 0.75rem;
}

.blog-article li {
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 0.35rem;
}

@media (max-width: 768px) {
  .blog-body {
    padding: 2.5rem 1.5rem 3rem;
  }
}

@media (max-width: 480px) {
  .blog-body {
    padding: 2rem 1rem 2.5rem;
  }

  .blog-article h2,
  .blog-article h3,
  .blog-article h4 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
  }
}

.cta-button {
  display: inline-block;
  padding: 2rem 3rem;
  background: var(--navy-dark);
  color: var(--white);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}

.cta-button:hover {
  background: #0f1635;
  transform: translateY(-1px);
}

/* Twinkling stars overlay */
.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 50px 160px, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 90px 40px, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 200px 50px, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 250px 150px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 300px 90px, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 350px 200px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 400px 60px, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 450px 130px, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 500px 180px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 550px 40px, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 600px 100px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 650px 220px, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 700px 70px, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 750px 160px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 800px 30px, rgba(255,255,255,0.5), transparent);
  background-size: 800px 250px;
  animation: stars-twinkle 4s ease-in-out infinite;
  opacity: 0.9;
}

@keyframes stars-twinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes hero-bg-kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-2%, -1%); }
}

/* Animation placeholder - large soft circle covering the right side */
.animation-placeholder {
  position: absolute;
  top: -8%;
  right: -20%;
  width: 120vmin;
  height: 120vmin;
  min-width: 600px;
  min-height: 600px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(
    circle at center,
    rgba(232, 236, 245, 0.45) 0%,
    rgba(210, 218, 232, 0.28) 35%,
    rgba(190, 200, 220, 0.15) 60%,
    rgba(180, 192, 212, 0.06) 85%,
    transparent 100%
  );
  box-shadow: 0 0 160px rgba(220, 228, 240, 0.2);
  animation: placeholder-glow 4s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.compass-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3%;
}

.compass-svg {
  width: 100%;
  height: 100%;
  max-width: 900px;
  max-height: 900px;
  object-fit: contain;
}


.compass-depth-rings {
  transform-origin: 50% 50%;
}

.compass-needle {
  transform-origin: 50% 50%;
  animation: compass-spin 16s linear infinite;
}

@keyframes compass-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes placeholder-glow {
  0%, 100% {
    opacity: 0.9;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

/* Laptop view only - move hero box slightly down */
@media (min-width: 769px) and (max-width: 1280px) {
  .hero-panel {
    margin-top: 2rem;
  }
}

/* Responsive - tablets and below */
@media (max-width: 768px) {
  .header {
    padding: 0.875rem 1.25rem;
  }

  .breadcrumbs {
    padding: 0.5rem 1.25rem;
  }

  .breadcrumbs-content {
    justify-content: flex-start;
  }

  .header-content {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .search-box {
    min-width: 110px;
    max-width: 140px;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }

  .search-box input {
    font-size: 0.9rem;
  }

  .search-icon {
    width: 18px;
    height: 18px;
  }

  .hero-panel {
    padding: 1.75rem 1.5rem 2.5rem;
    margin: 0 1rem;
  }

  .hero-content {
    padding: 0;
  }

  .animation-placeholder {
    width: min(100vmin, 360px);
    height: min(100vmin, 360px);
    min-width: 280px;
    min-height: 280px;
    top: 15%;
    right: -20%;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .nav-links a {
    font-size: 0.85rem;
    padding: 0.4rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .contact-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0;
  }
}

/* Responsive - smartphones */
@media (max-width: 480px) {
  .header {
    padding: 0.75rem 1rem;
  }

  .header-content {
    gap: 0.5rem;
  }

  .logo-img {
    height: 36px;
  }

  .breadcrumbs {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }

  .search-box {
    min-width: 90px;
    max-width: 120px;
    padding: 0.45rem 0.6rem;
    gap: 0.4rem;
  }

  .search-box input {
    font-size: 0.85rem;
  }

  .search-icon {
    width: 16px;
    height: 16px;
  }

  .linkedin-link {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 0 1.5rem;
  }

  .hero-panel {
    padding: 1.5rem 1rem 2rem;
    margin: 0 1rem;
    max-width: calc(100% - 2rem);
    background: rgba(26, 43, 94, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .hero-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .hero-description {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
  }

  .hero-cta {
    padding: 0.875rem 1.75rem;
    font-size: 0.9rem;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .animation-placeholder {
    position: absolute;
    top: 0;
    right: -20%;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 0;
    background: radial-gradient(
      circle at center,
      rgba(26, 43, 94, 0.5) 0%,
      rgba(19, 29, 66, 0.4) 40%,
      rgba(15, 22, 48, 0.3) 70%,
      rgba(10, 15, 35, 0.2) 100%
    );
    box-shadow: none;
  }

  .our-principles,
  .why-bayes-compass,
  .how-we-engage-section {
    padding: 1.5rem 1rem 2rem;
  }

  .contact-main {
    padding: 1.5rem 1rem 2rem;
  }

  .contact-header h1 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
  }

  .site-footer {
    padding: 1.5rem 1rem 1rem;
  }

  .footer-addresses {
    gap: 1.25rem;
  }
}

/* Footer */
.site-footer {
  background: var(--theme-bg);
  color: var(--theme-text);
  padding: 3rem 2.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.footer-addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.footer-address {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

.footer-address strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-mobile-actions {
  display: none;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  opacity: 0.7;
  text-align: center;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 2rem 1.5rem 1.5rem;
  }

  .footer-addresses {
    grid-template-columns: 1fr;
  }

  .footer-mobile-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .footer-mobile-contact {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s;
  }

  .footer-mobile-contact:hover {
    background: rgba(255, 255, 255, 0.25);
  }

  .footer-mobile-linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--white);
    opacity: 0.9;
    transition: opacity 0.2s;
  }

  .footer-mobile-linkedin:hover {
    opacity: 1;
  }
}
