:root {
  --bg-dark: #0d1f2d;
  --bg-section: #0a2233;
  --teal-primary: #1abc9c;
  --teal-light: #2ed3b5;
  --teal-bg: rgba(26, 188, 156, 0.12);
  --white: #ffffff;
  --text-light: rgba(255, 255, 255, 0.82);
  --text-muted: rgba(255, 255, 255, 0.55);
  --line: rgba(46, 211, 181, 0.22);
  --card: rgba(255, 255, 255, 0.055);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  color: var(--text-light);
  background: var(--bg-dark);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: 2.6rem;
  font-weight: 700;
}

h2 {
  margin-bottom: 14px;
  font-size: 1.85rem;
  font-weight: 700;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

p {
  margin-top: 0;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 34, 51, 0.96);
  border-bottom: 1px solid rgba(46, 211, 181, 0.22);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1140px, calc(100% - 32px));
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 156px;
  text-decoration: none;
}

.brand img {
  width: auto;
  max-width: 172px;
  height: 40px;
  object-fit: contain;
}

.nav-links {
  display: none;
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  padding: 10px 16px 18px;
  background: var(--bg-section);
  border-bottom: 1px solid var(--line);
}

.nav-links.is-open {
  display: grid;
  gap: 4px;
}

.nav-links a {
  display: block;
  padding: 12px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--teal-light);
  outline: none;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(46, 211, 181, 0.42);
  border-radius: 3px;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(13, 31, 45, 0.97) 0%, rgba(13, 31, 45, 0.86) 48%, rgba(13, 31, 45, 0.56) 100%),
    linear-gradient(180deg, rgba(13, 31, 45, 0.25), rgba(13, 31, 45, 0.78)),
    url("assets/haven-layout.jpg");
  background-position: center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(26, 188, 156, 0.18), transparent 36%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 72px 0 80px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 650px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.button.primary {
  color: var(--white);
  background: #ba4794;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: rgba(186, 71, 148, 0.74);
}

.button.secondary {
  color: var(--white);
  background: #0069b4;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(0, 105, 180, 0.74);
}

.section {
  position: relative;
  padding: 56px 0;
  background: var(--bg-dark);
  overflow: hidden;
}

.section:nth-of-type(even),
.intro,
.partners,
.contact {
  background: var(--bg-section);
}

.wave-top {
  clip-path: polygon(0 38px, 50% 0, 100% 38px, 100% 100%, 0 100%);
  padding-top: 88px;
}

.wave-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 38px), 50% 100%, 0 calc(100% - 38px));
  padding-bottom: 88px;
}

.section-heading {
  max-width: 850px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading.narrow {
  max-width: 780px;
}

.section-heading.compact {
  margin-top: 56px;
  margin-bottom: 24px;
}

.section-heading p:not(.eyebrow) {
  color: var(--text-muted);
  font-size: 1.06rem;
}

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

.intro-copy {
  max-width: 650px;
}

.intro-kicker {
  color: var(--teal-light);
  font-size: 1.2rem;
  font-weight: 700;
}

.workstation-card {
  position: relative;
  margin: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.workstation-card::after {
  content: "";
  position: absolute;
  inset: 22px -16px -16px 40px;
  z-index: -1;
  background: var(--teal-bg);
}

.workstation-card img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.aspect-grid,
.service-grid,
.logo-grid,
.people-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.aspect-card,
.service-card,
.person,
.contact-tile,
.privacy {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.aspect-card {
  padding: 0;
  overflow: hidden;
  border-top: 4px solid var(--teal-primary);
  display: flex;
  flex-direction: column;
}

.aspect-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.aspect-card h3,
.aspect-card p {
  padding: 0 24px;
}

.aspect-card h3 {
  margin-top: 20px;
}

.aspect-card p {
  color: var(--text-light);
}

.sdg-card img {
  width: 100%;
  max-height: 190px;
  margin-top: 20px;
  object-fit: contain;
}

.service-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-top: 4px solid var(--teal-primary);
}

.service-card > img {
  width: 100%;
  height: 130px;
  max-width: 100%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.service-body {
  padding: 18px 20px 22px;
}

.service-body p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.clients {
  background: var(--bg-dark);
}

.logo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.logo-grid a {
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-grid img {
  width: auto;
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: transform 180ms ease;
}

.logo-grid a:hover img,
.logo-grid a:focus-visible img {
  opacity: 1;
  transform: translateY(-2px);
}

.team {
  background: var(--bg-dark);
}

.person {
  min-height: 200px;
  padding: 22px 18px;
  text-align: center;
  border-top: 4px solid var(--teal-primary);
}

.person img {
  width: 80px;
  height: 80px;
  max-width: 100%;
  margin: 0 auto 12px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(46, 211, 181, 0.42);
}

.person h3 {
  margin-bottom: 9px;
  font-size: 1rem;
  text-transform: none;
}

.person p {
  margin-bottom: 0;
  color: var(--teal-light);
  font-size: 0.94rem;
  font-weight: 700;
}

.advisor {
  min-height: 220px;
}

.advisor p {
  color: var(--text-light);
  font-weight: 600;
}

.contact-grid {
  margin-bottom: 44px;
}

.contact-tile {
  min-height: 160px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 22px;
  color: var(--white);
  text-align: center;
  text-decoration: none;
}

.contact-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-weight: 800;
}

.contact-tile:nth-child(1):hover .contact-icon,
.contact-tile:nth-child(1):focus-visible .contact-icon {
  background: #00dd58;
}

.contact-tile:nth-child(2):hover .contact-icon,
.contact-tile:nth-child(2):focus-visible .contact-icon {
  background: #8224e3;
}

.contact-tile:nth-child(3):hover .contact-icon,
.contact-tile:nth-child(3):focus-visible .contact-icon {
  background: #789bbf;
}

.contact-tile strong {
  font-size: 1.22rem;
}

.contact-tile span:last-child {
  color: var(--text-muted);
}

.privacy {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px;
}

.privacy h2 {
  font-size: 1.24rem;
}

.privacy p {
  color: var(--text-light);
}

.privacy a {
  color: var(--teal-light);
}

.footer {
  padding: 28px 0;
  color: var(--text-muted);
  background: #071927;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
}

@media (min-width: 680px) {
  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .aspect-grid,
  .service-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: row;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 0;
    background: transparent;
    border-bottom: 0;
  }

  .nav-links a {
    padding: 0;
  }

  .intro-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  .aspect-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .logo-grid-six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .advisors-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

@media (min-width: 1120px) {
  h1 {
    font-size: 3.8rem;
  }

  .people-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero {
    min-height: 480px;
  }

  .button {
    width: 100%;
  }

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