:root {
  --navy: #1E3D57;
  --navy-deep: #112233;
  --sage: #7FADA3;
  --sage-dark: #67988e;
  --surface: #F4F7F6;
  --white: #FFFFFF;
  --heading: #112233;
  --body: #4A5568;
  --line: #dbe5e2;
  --container: 1160px;
  --radius: 4px;
  --shadow: 0 18px 42px rgba(17, 34, 51, 0.1);
  --shadow-soft: 0 10px 24px rgba(17, 34, 51, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--body);
  background: var(--white);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 20;
  padding: 0.65rem 1rem;
  color: var(--navy-deep);
  background: var(--sage);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.top-bar {
  color: var(--white);
  background: var(--navy-deep);
  font-size: 0.78rem;
}

.top-bar__inner {
  display: flex;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: 2.45rem;
  padding-block: 0.45rem;
}

.top-bar a {
  color: var(--sage);
  font-weight: 700;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: 5.5rem;
  padding-block: 0.75rem;
}

.brand img {
  width: 220px;
  border-radius: 2px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

.main-nav > a:not(.btn) {
  padding-block: 0.5rem;
}

.main-nav > a:not(.btn):hover,
.main-nav > a:not(.btn):focus-visible {
  color: var(--sage-dark);
}

main > .section {
  scroll-margin-top: 6.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--navy-deep);
  background: var(--sage);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--sage-dark);
}

.btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.8);
  background: transparent;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  color: var(--navy-deep);
  border-color: var(--sage);
  background: var(--sage);
}

.btn-nav {
  min-height: 2.55rem;
  padding-inline: 1rem;
  font-size: 0.82rem;
}

.hero {
  display: flex;
  align-items: center;
  min-height: min(620px, calc(100vh - 8rem));
  color: var(--white);
  background: linear-gradient(118deg, var(--navy-deep) 0%, var(--navy) 62%, #2c5669 100%);
}

.hero__content {
  max-width: 930px;
  padding-block: 5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--sage);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.eyebrow-dark {
  color: var(--sage-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.15;
}

h1 {
  max-width: 790px;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-size: clamp(2.35rem, 5.5vw, 4.35rem);
}

h1 span {
  color: var(--sage);
}

.hero__lead {
  max-width: 670px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.detail-hero {
  color: var(--white);
  background: var(--navy);
}

.detail-hero__content {
  max-width: 920px;
  padding-block: 5rem;
}

.detail-hero h1 {
  max-width: 850px;
  margin-bottom: 1.5rem;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.detail-intro {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.section {
  padding-block: 6.25rem;
}

.detail-section,
.detail-cta {
  background: var(--surface);
}

.detail-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.detail-summary {
  max-width: 680px;
}

.detail-summary .section-title {
  margin-bottom: 1.25rem;
}

.detail-facts {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.detail-facts div {
  display: grid;
  gap: 0.2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--sage);
}

.detail-facts strong {
  color: var(--navy);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.detail-facts span {
  font-size: 0.92rem;
}

.service-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.service-pillars article {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 3.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-pillars .step-index {
  top: 1.55rem;
  left: 1.5rem;
}

.service-pillars h3 {
  margin-bottom: 0.6rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.service-pillars p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.detail-band {
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy);
}

.detail-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.detail-columns .section-title {
  margin-bottom: 0;
}

.detail-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 1.5rem;
}

.detail-list li::before {
  position: absolute;
  top: 0.1rem;
  left: 0;
  color: var(--sage);
  content: "✓";
  font-weight: 900;
}

.section-light,
.contact-section {
  background: var(--surface);
}

.about-section {
  background: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.about-layout .section-title {
  margin-bottom: 0;
}

.about-copy {
  max-width: 680px;
}

.about-copy p:last-of-type {
  margin-bottom: 0;
}

.about-highlight {
  padding-left: 1rem;
  border-left: 4px solid var(--sage);
  color: var(--navy);
  font-weight: 800;
}

.director-profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.director-profile__image-wrap {
  min-height: 320px;
  background: var(--surface);
  overflow: hidden;
}

.director-profile__image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center 20%;
}

.director-profile__content {
  align-self: center;
  max-width: 680px;
}

.director-profile h3 {
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
}

.director-profile__role {
  margin-bottom: 1.25rem;
  color: var(--sage-dark);
  font-weight: 800;
}

.director-profile__content p:last-child {
  margin-bottom: 0;
}

.section-title {
  max-width: 700px;
  margin-bottom: 2.5rem;
  color: var(--heading);
  font-size: clamp(2rem, 3.7vw, 3rem);
}

.section-title-light {
  color: var(--white);
}

.impact-section {
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy);
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.impact-level {
  padding: 1.5rem;
  border: 1px solid rgba(127, 173, 163, 0.36);
  border-radius: var(--radius);
  background: rgba(17, 34, 51, 0.24);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.impact-level:hover {
  transform: translateY(-4px);
  border-color: rgba(127, 173, 163, 0.72);
  background: rgba(17, 34, 51, 0.42);
}

.impact-number {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--sage);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.impact-label {
  margin-bottom: 0.4rem;
  color: var(--sage);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.impact-level h3 {
  margin-bottom: 0.75rem;
  color: var(--white);
  font-size: 1.2rem;
}

.impact-level p:not(.impact-label) {
  margin-bottom: 1.25rem;
  font-size: 0.94rem;
}

.text-link {
  color: var(--sage);
  font-size: 0.9rem;
  font-weight: 800;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--white);
}

.units-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card-unidad {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--sage);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card-unidad:hover {
  transform: translateY(-4px);
  border-color: var(--sage-dark);
  box-shadow: var(--shadow);
}

.card-number {
  margin-bottom: 1rem;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.card-unidad h3 {
  margin-bottom: 1rem;
  color: var(--navy);
  font-size: 1.15rem;
}

.card-unidad p {
  margin-bottom: 1.25rem;
}

.card-unidad ul {
  display: grid;
  gap: 0.8rem;
  margin: auto 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.card-unidad .btn-secondary {
  align-self: flex-start;
  margin-top: 1.5rem;
}

.btn-secondary {
  min-height: 2.6rem;
  padding: 0.55rem 1rem;
  color: var(--navy);
  border-color: var(--sage);
  background: transparent;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--navy-deep);
  background: var(--sage);
}

.card-unidad li {
  position: relative;
  padding-left: 1.45rem;
  font-size: 0.92rem;
}

.card-unidad li::before {
  position: absolute;
  top: 0.1rem;
  left: 0;
  color: var(--sage-dark);
  content: "✓";
  font-weight: 900;
}

.methodology {
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy);
}

.method-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}

.method-step {
  position: relative;
  padding-left: 3.5rem;
}

.step-index {
  position: absolute;
  top: -0.35rem;
  left: 0;
  color: var(--sage);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.method-step h3 {
  margin-bottom: 0.7rem;
  color: var(--white);
  font-size: 1rem;
}

.method-step p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-content {
  max-width: 760px;
  text-align: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.contact-mark {
  display: flex;
  justify-content: center;
}

.contact-mark img {
  width: min(170px, 55vw);
  aspect-ratio: 239 / 224;
  object-fit: contain;
}

.contact-content .eyebrow {
  text-align: center;
}

.contact-content .section-title {
  margin-inline: auto;
}

.contact-copy {
  max-width: 650px;
  margin-inline: auto;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.btn-large {
  min-width: min(100%, 290px);
  min-height: 3.4rem;
  font-size: 1rem;
}

.contact-alternative {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
}

.contact-alternative a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy-deep);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-block: 3.5rem;
}

.brand-footer {
  display: inline-block;
  width: min(250px, 100%);
  margin-bottom: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.brand-footer img {
  width: 100%;
}

.footer-brand p,
.footer-grid p {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.footer-heading {
  margin-bottom: 0.75rem;
  color: var(--sage);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--sage);
}

.footer-bottom {
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 640px) {
  .container {
    width: min(calc(100% - 3rem), var(--container));
  }

  .units-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
  }
}

@media (min-width: 900px) {
  .impact-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .impact-level:nth-child(1) {
    grid-column: span 5;
  }

  .impact-level:nth-child(2) {
    grid-column: span 3;
  }

  .impact-level:nth-child(3) {
    grid-column: span 4;
  }

  .about-layout {
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: 5rem;
  }

  .director-profile {
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    gap: 4rem;
  }

  .detail-main {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 5rem;
    align-items: start;
  }

  .service-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-columns {
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: 5rem;
    align-items: start;
  }

  .contact-layout {
    grid-template-columns: 220px minmax(0, 760px);
    justify-content: center;
    gap: 3.5rem;
  }

  .units-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .card-unidad:first-child {
    grid-column: 1 / -1;
  }

  .method-flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  .method-flow::before {
    position: absolute;
    top: 0.65rem;
    right: 11%;
    left: 11%;
    height: 1px;
    background: rgba(127, 173, 163, 0.5);
    content: "";
  }

  .method-step {
    padding: 3rem 0 0;
  }

  .step-index {
    top: 0;
    left: 0;
  }
}

@media (max-width: 700px) {
  .top-bar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.2rem 0.8rem;
  }

  .main-nav .btn-nav {
    max-width: 100%;
    white-space: normal;
  }

  .main-nav > a:not(.btn) {
    padding-block: 0.25rem;
  }

  .btn-nav {
    margin-top: 0.2rem;
  }
}

@media (max-width: 420px) {
  .hero__actions,
  .hero__actions .btn {
    width: 100%;
  }

  .hero__actions .btn {
    padding-inline: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
