:root {
  --color-bg: #f7f9fc;
  --color-surface: #ffffff;
  --color-primary: #1b5fa7;
  --color-primary-soft: #e6f0fb;
  --color-secondary: #0f3b66;
  --color-accent: #6aaee5;
  --color-text: #1b1f2b;
  --color-muted: #5b6474;
  --shadow-soft: 0 20px 45px rgba(15, 59, 102, 0.08);
  --radius-large: 24px;
  --radius-medium: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  margin: 0;
}

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

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

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading span {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
}

.section-heading h2 {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  margin: 0.75rem 0;
}

.section-heading p {
  color: var(--color-muted);
  margin: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 59, 102, 0.08);
  z-index: 10;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-secondary);
  letter-spacing: 0.05em;
}

.logo img {
  width: 48px;
  height: 48px;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  font-weight: 500;
}

.nav-links a {
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-secondary);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(27, 95, 167, 0.25);
  background: transparent;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--color-secondary);
}

.hero {
  position: relative;
  padding: 6.5rem 0 4.5rem;
  background: linear-gradient(135deg, #f6f8fb 0%, #eef3f9 80%);
}

.hero-card {
  background: var(--color-surface);
  border-radius: var(--radius-large);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.hero-card .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
}

.hero-card h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  margin: 1.25rem 0 1rem;
  line-height: 1.1;
}

.hero-card p {
  color: var(--color-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(27, 95, 167, 0.2);
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  color: var(--color-secondary);
  background: rgba(231, 239, 249, 0.8);
  position: relative;
}

/* Simple, accessible tooltip for chips */
.chip[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid rgba(15, 59, 102, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
  line-height: 1.25;
  width: max-content;
  max-width: 260px;
  opacity: 0;
  pointer-events: none;
  white-space: normal;
  z-index: 20;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.chip[data-tooltip]:hover::after,
.chip[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #1b5fa7, #6aaee5);
  color: white;
  box-shadow: 0 10px 25px rgba(27, 95, 167, 0.25);
}

.btn.secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 1px solid rgba(27, 95, 167, 0.3);
}

.btn:hover {
  transform: translateY(-1px);
}

.services,
.opportunity,
.contact {
  padding: 4.5rem 0;
}

.approach-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.approach-list h3 {
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
}

.approach-list p {
  margin: 0;
  color: var(--color-muted);
}

.highlight {
  background: var(--color-surface);
  border-radius: var(--radius-medium);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 59, 102, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

.highlight .btn {
  margin-top: 0.5rem;
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr; /* mobile-first */
  gap: 0.85rem 1.5rem;
  width: 100%;
  max-width: 920px;
}

.services-list li {
  padding-left: 1.5rem;
  position: relative;
}

/* Responsive columns for services list */
@media (min-width: 680px) {
  .services-list {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
}

@media (min-width: 1100px) {
  .services-list {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
  }
}

.services-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.team {
  padding: 4.5rem 0;
}

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

.team-card {
  background: var(--color-surface);
  border-radius: var(--radius-medium);
  border: 1px solid rgba(15, 59, 102, 0.08);
  box-shadow: 0 15px 30px rgba(15, 59, 102, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

.team-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.team-card-body .role {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

.team-card-body a {
  font-weight: 600;
  color: var(--color-secondary);
  width: fit-content;
  position: relative;
}

.team-card-body a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item span {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-muted);
}

.info-item strong {
  font-size: 1.15rem;
}

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

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border-radius: var(--radius-medium);
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 59, 102, 0.15);
  font-size: 1rem;
  font-family: inherit;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  font-size: 0.9rem;
  min-height: 1.25rem;
  color: var(--color-muted);
}

.form-status.is-success {
  color: #147a50;
}

.form-status.is-error {
  color: #b93838;
}

.calendar-card {
  margin-top: 1.5rem;
  border-radius: var(--radius-medium);
  overflow: hidden;
  border: 1px solid rgba(15, 59, 102, 0.1);
}

.calendar-card iframe {
  width: 100%;
  height: clamp(420px, 65vw, 760px);
  border: 0;
}

footer {
  text-align: center;
  padding: 2.5rem 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  height: 22px;
  width: auto;
  opacity: 0.85;
}

@media (max-width: 960px) {
  .hero-card {
    padding: 2rem;
  }
}

/* Add a bit more lateral spacing between approach columns on larger screens */
@media (min-width: 960px) {
  .approach-list {
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 88px;
    right: 5vw;
    left: 5vw;
    background: var(--color-surface);
    flex-direction: column;
    padding: 1.25rem;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 6rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 520px) {
  .hero-card h1 {
    font-size: 2.25rem;
  }

  .card,
  .highlight {
    padding: 1.5rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }
}
