:root {
  --blue: #02458C;
  --blue-soft: #6FA7D6;
  --graphite: #4A4A4A;
  --soft: #D9E5F0;
  --paper: #F7F9FB;
  --white: #FFFFFF;
  --ink: #26333D;
  --muted: #66717A;
  --line: rgba(2, 69, 140, .15);
  --header-h: 82px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

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

button,
input,
textarea {
  font: inherit;
}

section {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

h1, h2, h3, p {
  margin-top: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

/* HEADER */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px clamp(20px, 4vw, 70px);
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(2, 69, 140, .06);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: min(225px, 46vw);
  max-height: 61px;
  object-fit: contain;
  object-position: left center;
}

.menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 30px);
  color: var(--graphite);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.menu a {
  transition: color .18s ease;
}

.menu a:hover {
  color: var(--blue);
}

.nav-cta {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px 0;
  background: var(--blue);
}

/* HERO */

.hero {
  position: relative;
  min-height: 700px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: 0;
  background: url("assets/hero-rio.webp") center / cover no-repeat;
}

.hero-shade {
  z-index: 1;
  background: rgba(5, 20, 32, .52);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.kicker {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.kicker-light {
  color: #BFD9EF;
}

.hero h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 5.8vw, 5.1rem);
  line-height: .99;
  letter-spacing: -.055em;
}

.lead {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.6;
}

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

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

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

.primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(2,69,140,.22);
}

.secondary {
  color: var(--white);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.58);
}

/* VALUE BAND */

.value-band {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--blue);
  color: var(--white);
  padding: 26px clamp(20px, 5vw, 76px);
}

.value-band article {
  min-width: 0;
  padding: 24px 26px;
  border-right: 1px solid rgba(255,255,255,.22);
}

.value-band article:last-child {
  border-right: 0;
}

.value-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 15px;
}

.value-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-band h3 {
  margin-bottom: 10px;
  color: var(--white);
  font-size: .92rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.value-band p {
  margin-bottom: 0;
  color: rgba(255,255,255,.78);
  font-size: .9rem;
  line-height: 1.55;
}

/* COMMON SECTIONS */

.section {
  padding: clamp(70px, 8vw, 108px) clamp(20px, 5vw, 76px);
}

.section-title {
  margin-bottom: 40px;
}

.centered {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.subtitle {
  max-width: 780px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.65;
}

/* DIVISIONS */

.divisions {
  background: var(--white);
}

.division-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.division-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(2,69,140,.07);
}

.division-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.division-body {
  padding: 23px 24px 27px;
}

.division-index {
  display: block;
  margin-bottom: 10px;
  color: var(--blue-soft);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.division-body h3 {
  margin-bottom: 13px;
  color: var(--blue);
  font-size: 1.18rem;
  text-transform: uppercase;
}

.division-body ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.72;
}

/* SERVICES */

.services {
  background: var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-grid article {
  min-height: 205px;
  padding: 28px 20px;
  text-align: center;
  background: var(--white);
  border-right: 1px solid var(--line);
}

.service-grid article:last-child {
  border-right: 0;
}

.service-grid span {
  display: block;
  margin-bottom: 13px;
  color: var(--blue-soft);
  font-weight: 800;
}

.service-grid h3 {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: .98rem;
}

.service-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

/* METRICS */

.metrics {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 48px clamp(20px, 5vw, 76px);
  color: var(--white);
  background: url("assets/hero-rio.png") center / cover no-repeat;
}

.metrics::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(2,69,140,.88);
}

.metric {
  min-height: 130px;
  display: grid;
  align-content: center;
  padding: 0 22px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.26);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: .95;
  letter-spacing: -.055em;
}

.metric span {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,.84);
  line-height: 1.45;
}

/* PROJECTS */

.projects {
  background: var(--white);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.project-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 10px 26px rgba(2,69,140,.05);
}

.project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.project-card h3 {
  margin: 0;
  padding: 17px 17px 7px;
  color: var(--blue);
  font-size: .98rem;
}

.project-card p {
  margin: 0;
  padding: 0 17px 19px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

/* ABOUT */

.about {
  display: grid;
  grid-template-columns: 1fr 1.7fr .9fr;
  gap: 24px;
  align-items: stretch;
  background: var(--paper);
}

.about-text,
.director-card,
.about-points {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(2,69,140,.05);
}

.about-text {
  padding: 30px;
}

.about-text p {
  color: var(--muted);
  line-height: 1.62;
}

.director-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 43% 57%;
  color: var(--white);
  background: var(--blue);
}

.director-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.director-info {
  padding: 30px;
}

.director-info h2 {
  color: var(--white);
  font-size: 2rem;
}

.director-info ul {
  padding-left: 18px;
  color: rgba(255,255,255,.86);
  line-height: 1.66;
}

.about-points {
  display: grid;
  gap: 16px;
  padding: 25px;
}

.about-points article {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.about-points article:last-child {
  border-bottom: 0;
}

.about-points strong {
  color: var(--blue);
}

.about-points span {
  color: var(--muted);
}

/* CONTACT */

.contact {
  display: grid;
  grid-template-columns: 1fr 1.25fr .8fr;
  gap: 34px;
  align-items: center;
  padding: 68px clamp(20px, 5vw, 76px);
  background: var(--soft);
}

.contact-intro {
  max-width: 440px;
}

.contact-intro p:not(.kicker) {
  color: var(--graphite);
  line-height: 1.65;
}

.contact-form {
  display: grid;
  gap: 11px;
  padding: 24px;
  border: 1px solid rgba(2,69,140,.13);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(2,69,140,.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #CBD5DD;
  border-radius: 7px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(2,69,140,.09);
}

textarea {
  resize: vertical;
}

.hidden-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.contact-data {
  padding-left: 27px;
  border-left: 1px solid rgba(2,69,140,.24);
}

.contact-data p {
  margin-bottom: 22px;
  color: var(--graphite);
  line-height: 1.55;
}

.contact-data strong {
  color: var(--blue);
}

.contact-data a:hover {
  color: var(--blue);
}

/* FOOTER */

.footer {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) 1.4fr auto;
  gap: 34px;
  align-items: center;
  padding: 34px clamp(20px, 5vw, 76px);
  background: var(--blue);
  color: var(--white);
}

.footer-brand img {
  width: min(285px, 100%);
  max-height: 80px;
  object-fit: contain;
  object-position: left center;
}

.footer-copy {
  display: grid;
  gap: 6px;
  font-size: .86rem;
}

.footer-copy strong {
  font-size: .92rem;
}

.footer-copy span,
.footer-copy a {
  color: rgba(255,255,255,.75);
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 50%;
  font-weight: 800;
}

/* WHATSAPP */

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.whatsapp-float:hover {
  background: #1EBE5D;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}

/* THANK YOU */

.thanks-page {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: var(--paper);
}

.thanks-card {
  width: min(620px, 100%);
  padding: 46px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(2,69,140,.08);
}

.thanks-card img {
  width: min(360px, 100%);
  margin: 0 auto 26px;
}

.thanks-card p {
  color: var(--muted);
  line-height: 1.65;
}

/* RESPONSIVE */

@media (max-width: 1180px) {
  .value-band,
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .division-grid,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .contact-data {
    padding-left: 0;
    border-left: 0;
  }

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

  .footer-copy {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 76px;
  }

  .brand img {
    width: 190px;
    max-height: 56px;
  }

  .menu-toggle {
    display: block;
  }

  .menu {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 26px rgba(2,69,140,.08);
    flex-direction: column;
    align-items: flex-start;
  }

  body.menu-open .menu {
    display: flex;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .hero {
    min-height: 650px;
  }

  .value-band,
  .metrics,
  .division-grid,
  .project-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .value-band article,
  .metric,
  .service-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.2);
  }

  .service-grid article {
    border-bottom-color: var(--line);
  }

  .value-band article:last-child,
  .metric:last-child,
  .service-grid article:last-child {
    border-bottom: 0;
  }

  .director-card {
    grid-template-columns: 1fr;
  }

  .director-card img {
    max-height: 500px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-copy,
  .footer-brand,
  .socials {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .hero-content {
    width: min(100% - 30px, 1180px);
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .contact {
    padding-left: 18px;
    padding-right: 18px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    justify-content: center;
    padding: 0;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float svg {
    width: 29px;
    height: 29px;
  }
}
