/* ======================================================================
   ROUND 5 — direção visual aprovada
   Base: ZIP original. Este arquivo só contém os ajustes aprovados nesta rodada.
   ====================================================================== */

:root {
  --r5-cyan: #00B49D;
  --r5-ice: #EEF5F9;
  --r5-blue-soft: #8EC9ED;
  --r5-page-pad: clamp(22px, 4.6vw, 92px);
}

/* ----------------------------------------------------------------------
   TIPOGRAFIA — exclusivamente Gotham local
   ---------------------------------------------------------------------- */
html,
body,
button,
input,
textarea,
select,
a,
p,
span,
small,
strong,
blockquote,
h1,
h2,
h3,
h4 {
  font-family: "Gotham";
}

body { font-weight: 400; }
h1,
h2,
.hero h1,
.proposals h2,
.trajectory h2,
.accomplishments h2,
.numbers h2,
.news h2,
.fake-news h2,
.faq h2,
.testimonials h2,
.support-wipe__panel h2,
.site-scroll-wipe__copy p {
  font-weight: 900;
}

h3,
.btn,
.nav-links a,
.mobile-menu a,
.eyebrow,
.link,
.category,
.topic,
.news-badge,
.news-date,
.footer h4 {
  font-weight: 700;
}

/* ----------------------------------------------------------------------
   HEADER — verde sólido + menu em caixa alta + acentos da identidade + lupa
   ---------------------------------------------------------------------- */
.site-header,
.site-header.is-scrolled {
  background: var(--green);
  backdrop-filter: none;
  border-bottom-color: rgba(255,255,255,.2);
}

.nav-links {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}

.nav-links a {
  color: #fff;
  text-transform: uppercase;
  border: 1px solid var(--menu-accent, rgba(255,255,255,.28));
  background: rgba(255,255,255,.045);
}
.nav-links a:nth-child(1) { --menu-accent: var(--yellow); }
.nav-links a:nth-child(2) { --menu-accent: var(--blue-2); }
.nav-links a:nth-child(3) { --menu-accent: var(--orange); }
.nav-links a:nth-child(4) { --menu-accent: var(--r5-cyan); }
.nav-links a:nth-child(5) { --menu-accent: var(--blue); }
.nav-links a:hover {
  color: #fff;
  background: var(--menu-accent);
  border-color: var(--menu-accent);
}

.search-toggle {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.search-toggle:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.18);
}
.search-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.mobile-menu a { text-transform: uppercase; }
.mobile-menu a:nth-child(1) { border-left: 4px solid var(--yellow); padding-left: 14px; }
.mobile-menu a:nth-child(2) { border-left: 4px solid var(--blue-2); padding-left: 14px; }
.mobile-menu a:nth-child(3) { border-left: 4px solid var(--orange); padding-left: 14px; }
.mobile-menu a:nth-child(4) { border-left: 4px solid var(--r5-cyan); padding-left: 14px; }
.mobile-menu a:nth-child(5) { border-left: 4px solid var(--blue); padding-left: 14px; }

/* ----------------------------------------------------------------------
   HERO — proporção fixa, foto integral e dominante, branco → gelo
   ---------------------------------------------------------------------- */
.hero {
  min-height: 0 !important;
  height: auto;
  aspect-ratio: 16 / 7;
  color: var(--blue-deep);
  background:
    radial-gradient(circle at 81% 19%, rgba(0,114,188,.075), transparent 30%),
    radial-gradient(circle at 15% 76%, rgba(18,178,75,.035), transparent 25%),
    linear-gradient(135deg, #fff 0%, #F9FCFE 55%, var(--r5-ice) 100%);
}

.hero-grid {
  min-height: 0 !important;
  height: calc(100% - var(--nav-h));
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: stretch;
  gap: clamp(18px, 2.8vw, 56px);
}

.hero-copy {
  align-self: center;
  max-width: 720px;
  padding: clamp(22px, 3vw, 52px) 0 clamp(34px, 4vw, 64px);
}

.hero h1,
.hero h1 span {
  color: var(--blue-deep);
  text-shadow: none;
}

.hero h1 {
  font-size: clamp(4.2rem, 6.3vw, 7.15rem);
}

.hero p {
  color: rgba(11,41,69,.74);
  font-weight: 300;
  font-size: clamp(.96rem, 1.35vw, 1.15rem);
}

.hero .btn-white {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 28px rgba(18,178,75,.19);
}
.hero .scroll-cue { color: var(--blue); }

.hero-noise {
  background-image: radial-gradient(circle at 1px 1px, rgba(0,91,170,.23) 1px, transparent 0);
}
.hero-noise::after { color: rgba(0,91,170,.045); }

.hero-linefx-light {
  background: radial-gradient(42vw 42vw at 34% 34%, rgba(0,114,188,.10), transparent 64%);
}
.hero-linefx-stack svg { color: var(--r5-blue-soft); }
.hero-linefx-stack .tr { stroke: var(--r5-blue-soft) !important; }
.hero-linefx-live .tr { stroke: #62B2E5 !important; opacity: .28 !important; }
.hero-linefx-fine .tr { opacity: .10 !important; }

.hero-portrait {
  min-height: 0 !important;
  height: 100%;
  align-self: stretch;
  display: grid;
  place-items: end center;
  overflow: visible;
  padding: 0;
  transform: none;
}

.hero-portrait .candidate-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
  display: grid;
  place-items: end center;
}

.hero-portrait .candidate-photo-wrap img {
  width: auto;
  height: 96%;
  max-width: 100%;
  max-height: 96%;
  object-fit: contain;
  object-position: center bottom;
  align-self: end;
  justify-self: center;
  filter: drop-shadow(0 28px 36px rgba(0,41,78,.15));
  transform: none;
}

/* ----------------------------------------------------------------------
   PROPOSTAS — full-width, leitura editorial e blocos de identidade
   ---------------------------------------------------------------------- */
.proposals {
  padding: clamp(86px, 7vw, 124px) 0 clamp(96px, 8vw, 136px);
  background:
    radial-gradient(circle at 92% 18%, rgba(255,203,5,.12), transparent 16%),
    radial-gradient(circle at 8% 82%, rgba(0,180,157,.07), transparent 20%),
    #fff;
}

.proposals::before {
  width: clamp(360px, 34vw, 620px);
  height: clamp(360px, 34vw, 620px);
  left: clamp(-340px, -17vw, -180px);
  top: 54px;
  border-color: rgba(0,91,170,.09);
  box-shadow: 0 0 0 76px rgba(0,91,170,.022), 0 0 0 156px rgba(18,178,75,.017);
}

.proposals::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: clamp(-100px, -4vw, -30px);
  bottom: 5%;
  width: clamp(80px, 8vw, 140px);
  height: clamp(300px, 32vw, 560px);
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--r5-cyan), var(--blue-2));
  transform: rotate(24deg);
  opacity: .88;
}

.proposals > .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding-inline: var(--r5-page-pad);
}

.proposals .section-head {
  margin-bottom: clamp(36px, 4vw, 58px);
}

.proposals .section-head h2 {
  max-width: 780px;
  font-size: clamp(3.2rem, 6vw, 6.6rem);
}

.proposal-stage {
  position: relative;
  isolation: isolate;
}

.proposal-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: clamp(-32px, -2vw, -12px);
  top: clamp(26px, 4vw, 56px);
  width: clamp(130px, 13vw, 230px);
  height: 82%;
  border-radius: 44px;
  background: var(--yellow);
  transform: rotate(-4deg);
  box-shadow: 0 24px 70px rgba(255,203,5,.18);
}

.proposal-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 7vw;
  top: -28px;
  width: clamp(74px, 6vw, 110px);
  aspect-ratio: 1;
  border: 18px solid rgba(0,114,188,.10);
  border-radius: 50%;
}

.proposal-track {
  grid-auto-columns: minmax(780px, 78vw);
  gap: clamp(20px, 2vw, 34px);
  padding: 18px 4px 34px;
}

.proposal-card {
  min-height: clamp(500px, 34vw, 590px);
  grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr);
  border-radius: clamp(30px, 3vw, 48px);
  border: 1px solid rgba(0,91,170,.08);
  box-shadow: 0 30px 90px rgba(0,71,135,.13);
}

.proposal-copy {
  padding: clamp(32px, 3.5vw, 58px);
}
.proposal-card:nth-child(1) .proposal-copy { background: linear-gradient(145deg, #12B24B, #0A913B); }
.proposal-card:nth-child(2) .proposal-copy { background: linear-gradient(145deg, #0072BC, #005BAA); }
.proposal-card:nth-child(3) .proposal-copy { background: linear-gradient(145deg, #FAA61A, #E98B00); }
.proposal-card:nth-child(4) .proposal-copy { background: linear-gradient(145deg, #005BAA, #003F78); }
.proposal-card:nth-child(5) .proposal-copy { background: linear-gradient(145deg, #00B49D, #078A7B); }

.proposal-copy .category {
  font-weight: 900;
  font-size: clamp(2.8rem, 4.7vw, 5.2rem);
}

.proposal-image,
.proposal-image--photo img {
  min-height: 100%;
}
.proposal-image--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------------------------------------------------------------------
   TRAJETÓRIA — mais elementos gráficos, sem remover conteúdo/efeitos
   ---------------------------------------------------------------------- */
.trajectory {
  background:
    radial-gradient(circle at 88% 18%, rgba(0,114,188,.045), transparent 22%),
    linear-gradient(180deg, #F8FBFD 0%, #F2F7FA 100%);
}

.trajectory-grid::before,
.trajectory-grid::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.trajectory-grid::before {
  right: 3%;
  top: -62px;
  width: 92px;
  height: 220px;
  border-radius: 999px;
  background: var(--blue-2);
  transform: rotate(52deg);
  opacity: .10;
}

.trajectory-grid::after {
  right: 18%;
  bottom: -72px;
  width: 128px;
  height: 128px;
  border-radius: 34px;
  border: 18px solid var(--r5-cyan);
  transform: rotate(18deg);
  opacity: .12;
}

.trajectory-photo::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -30px;
  top: 11%;
  width: 64px;
  height: 220px;
  border-radius: 999px;
  background: var(--blue);
  transform: rotate(24deg);
  opacity: .13;
}

.achievement-badges::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 20%;
  bottom: -72px;
  width: 110px;
  height: 250px;
  border-radius: 999px;
  background: var(--yellow);
  transform: rotate(28deg);
}

/* ----------------------------------------------------------------------
   ÚLTIMAS NOTÍCIAS — full-width e blocos de impacto
   ---------------------------------------------------------------------- */
.news {
  padding: clamp(92px, 7vw, 124px) 0 clamp(100px, 8vw, 140px);
  background:
    radial-gradient(circle at 89% 16%, rgba(255,203,5,.14), transparent 15%),
    radial-gradient(circle at 8% 72%, rgba(0,180,157,.065), transparent 19%),
    linear-gradient(180deg, #F8FBFD 0%, #EFF5F9 100%);
}

.news::before {
  height: 9px;
  background: linear-gradient(90deg, var(--green) 0 28%, var(--yellow) 28% 56%, var(--blue-2) 56% 82%, var(--r5-cyan) 82%);
}

.news::after {
  content: "NOTÍCIAS";
  position: absolute;
  right: -1vw;
  top: 24px;
  z-index: 0;
  color: rgba(0,91,170,.035);
  font-size: clamp(7rem, 16vw, 18rem);
  font-weight: 900;
  letter-spacing: -.07em;
  line-height: .8;
  pointer-events: none;
}

.news > .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding-inline: var(--r5-page-pad);
}

.news .section-head {
  position: relative;
  align-items: center;
  margin-bottom: 26px;
}

.news .section-head h2 {
  font-size: clamp(3.8rem, 7vw, 7.4rem);
  color: var(--ink);
}

.news .section-head::after {
  content: "";
  width: clamp(72px, 7vw, 128px);
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow) 0 38%, var(--green) 38% 70%, var(--blue-2) 70%);
  position: absolute;
  left: 0;
  bottom: -18px;
}

.news-toolbar {
  margin-top: 38px;
  margin-bottom: 30px;
}

.news-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, .9fr);
  gap: clamp(16px, 1.5vw, 28px);
  align-items: stretch;
}

.news-card,
.news-card:nth-child(2) {
  position: relative;
  transform: none;
  border-radius: 30px;
  overflow: hidden;
  border: 0;
  box-shadow: 0 26px 70px rgba(0,66,124,.10);
}

.news-card::before {
  content: "";
  position: absolute;
  z-index: 6;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: var(--card-accent, var(--green));
}
.news-card:nth-child(1) { --card-accent: var(--yellow); }
.news-card:nth-child(2) { --card-accent: var(--green); }
.news-card:nth-child(3) { --card-accent: var(--blue-2); }

.news-card:hover,
.news-card:nth-child(2):hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 88px rgba(0,66,124,.16);
}

.news-card:first-child .news-image--photo,
.news-card:first-child .news-image--photo img {
  height: clamp(250px, 19vw, 340px);
  min-height: clamp(250px, 19vw, 340px);
}

.news-image--photo,
.news-image--photo img {
  min-height: clamp(225px, 16vw, 290px);
  height: clamp(225px, 16vw, 290px);
}

.news-body {
  padding: clamp(22px, 2.2vw, 34px);
  background:
    linear-gradient(135deg, rgba(255,255,255,1), rgba(248,251,253,.96));
}

.news-card:first-child .news-body {
  padding: clamp(26px, 2.6vw, 40px);
}

.news-card h3 {
  font-size: clamp(1.22rem, 1.55vw, 1.75rem);
  font-weight: 800;
}

.news-card:first-child h3 {
  font-size: clamp(1.5rem, 2.05vw, 2.2rem);
}

/* ----------------------------------------------------------------------
   DEPOIMENTOS — grid editorial, enquadramento consistente e mais vida
   ---------------------------------------------------------------------- */
.testimonials {
  padding: clamp(96px, 7vw, 132px) 0 clamp(110px, 8vw, 148px);
  background:
    radial-gradient(circle at 90% 18%, rgba(255,203,5,.13), transparent 18%),
    radial-gradient(circle at 8% 72%, rgba(0,180,157,.13), transparent 20%),
    linear-gradient(135deg, #003F78 0%, #005BAA 58%, #006AB4 100%);
}

.testimonials::before {
  content: "";
  position: absolute;
  left: -72px;
  top: 24%;
  width: 120px;
  height: 360px;
  border-radius: 999px;
  background: var(--green);
  transform: rotate(-24deg);
  opacity: .85;
}

.testimonials::after {
  right: -3vw;
  bottom: -80px;
  font-size: clamp(16rem, 28vw, 32rem);
  opacity: .075;
}

.testimonials > .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding-inline: var(--r5-page-pad);
}

.testimonials .section-head {
  align-items: center;
  margin-bottom: clamp(38px, 4vw, 62px);
}

.testimonials h2 {
  max-width: 840px;
  font-size: clamp(3.4rem, 6.5vw, 7rem);
}

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  grid-auto-flow: row;
  grid-auto-columns: initial;
  gap: clamp(16px, 1.5vw, 26px);
  overflow: visible;
  padding: 0;
}

.testimonial-card {
  min-height: 500px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.14);
  background: #D4D9DE;
  box-shadow: 0 30px 70px rgba(0,31,61,.26);
}
.testimonial-card:nth-child(1) { grid-column: span 5; }
.testimonial-card:nth-child(2) { grid-column: span 3; }
.testimonial-card:nth-child(3) { grid-column: span 4; }
.testimonial-card:nth-child(4) {
  grid-column: 1 / -1;
  min-height: 290px;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  background: var(--testimonial-accent, var(--yellow));
}
.testimonial-card:nth-child(1) { --testimonial-accent: var(--yellow); }
.testimonial-card:nth-child(2) { --testimonial-accent: var(--r5-cyan); }
.testimonial-card:nth-child(3) { --testimonial-accent: var(--green); }
.testimonial-card:nth-child(4) { --testimonial-accent: var(--blue-2); }

.testimonial-photo--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(.9) contrast(1.03);
  transition: transform .65s var(--rev-ease), filter .65s ease;
}

.testimonial-card:hover .testimonial-photo--image img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.04);
}

.testimonial-overlay {
  background: linear-gradient(to top, rgba(0,24,48,.94) 0%, rgba(0,31,61,.72) 38%, rgba(0,28,56,.08) 72%);
}

.testimonial-copy {
  inset: auto clamp(20px, 2vw, 32px) clamp(22px, 2vw, 34px);
  max-width: 92%;
}

.testimonial-copy blockquote {
  font-size: clamp(.96rem, 1.05vw, 1.16rem);
  line-height: 1.48;
  font-weight: 300;
}

.testimonial-copy strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.testimonial-card:nth-child(4) .testimonial-overlay {
  background: linear-gradient(90deg, rgba(0,24,48,.94) 0%, rgba(0,31,61,.78) 42%, rgba(0,28,56,.13) 72%);
}
.testimonial-card:nth-child(4) .testimonial-copy {
  inset: auto auto 34px 34px;
  width: min(680px, 60%);
}
.testimonial-card:nth-child(4) .testimonial-photo--image img {
  object-position: center 28%;
}

.play {
  width: 52px;
  height: 52px;
  border: 3px solid rgba(255,255,255,.5);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

/* ----------------------------------------------------------------------
   RODAPÉ — assinatura conceitual animada
   ---------------------------------------------------------------------- */
.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0 0 28px;
  background:
    radial-gradient(circle at 18% 34%, rgba(0,180,157,.16), transparent 22%),
    radial-gradient(circle at 86% 68%, rgba(255,203,5,.11), transparent 18%),
    linear-gradient(135deg, #003F78 0%, #004F94 52%, #005BAA 100%);
}

.footer-outline { opacity: .05; }

.footer-motion {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.footer-ribbon {
  position: absolute;
  display: block;
  width: clamp(90px, 8vw, 150px);
  height: 760px;
  border-radius: 999px;
  transform-origin: center;
  opacity: .78;
  will-change: transform;
}

.footer-ribbon--green {
  left: 7%;
  top: 20%;
  background: linear-gradient(to bottom, var(--green), rgba(18,178,75,.12));
  transform: rotate(34deg);
  animation: footerRibbonGreen 9s ease-in-out infinite alternate;
}
.footer-ribbon--yellow {
  right: 12%;
  top: -42%;
  background: linear-gradient(to bottom, var(--yellow), rgba(255,203,5,.06));
  transform: rotate(31deg);
  animation: footerRibbonYellow 11s ease-in-out infinite alternate;
}
.footer-ribbon--cyan {
  right: 32%;
  bottom: -58%;
  background: linear-gradient(to bottom, var(--r5-cyan), rgba(0,180,157,.05));
  transform: rotate(-27deg);
  animation: footerRibbonCyan 10s ease-in-out infinite alternate;
}

@keyframes footerRibbonGreen {
  to { transform: rotate(38deg) translate3d(18px,-34px,0); }
}
@keyframes footerRibbonYellow {
  to { transform: rotate(27deg) translate3d(-20px,40px,0); }
}
@keyframes footerRibbonCyan {
  to { transform: rotate(-31deg) translate3d(26px,-26px,0); }
}

.footer-marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: rgba(0,35,70,.22);
  backdrop-filter: blur(5px);
}

.footer-marquee__track {
  width: max-content;
  display: flex;
  gap: 28px;
  padding: 18px 0 16px;
  white-space: nowrap;
  animation: footerMarquee 26s linear infinite;
}

.footer-marquee__track span {
  font-size: clamp(1rem, 1.3vw, 1.35rem);
  font-weight: 900;
  letter-spacing: .08em;
  color: rgba(255,255,255,.9);
}

@keyframes footerMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 14px)); }
}

.footer > .container {
  position: relative;
  z-index: 2;
  padding-top: clamp(62px, 6vw, 92px);
}

.footer-grid {
  padding: clamp(26px, 3vw, 46px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 32px;
  background: rgba(0,48,92,.34);
  box-shadow: 0 26px 90px rgba(0,20,41,.16);
  backdrop-filter: blur(10px);
}

.footer-links a { color: rgba(255,255,255,.72); }
.footer-socials a {
  background: rgba(255,255,255,.06);
  transition: transform .25s var(--ease), background .25s ease, border-color .25s ease;
}
.footer-socials a:hover {
  transform: translateY(-4px) rotate(-4deg);
  background: var(--green);
  border-color: var(--green);
}

/* ----------------------------------------------------------------------
   RESPONSIVIDADE
   ---------------------------------------------------------------------- */
@media (max-width: 1199px) and (min-width: 900px) {
  .hero { aspect-ratio: 16 / 9; }
  .hero-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .hero h1 { font-size: clamp(3.7rem, 6.4vw, 5.6rem); }
  .hero-portrait .candidate-photo-wrap img { height: 94%; max-height: 94%; }
  .proposal-track { grid-auto-columns: minmax(720px, 84vw); }
  .proposal-card { grid-template-columns: minmax(300px,.9fr) minmax(0,1.1fr); }
}

@media (max-width: 899px) {
  .hero {
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
  }
  .hero-grid {
    min-height: 0 !important;
    height: calc(100% - var(--nav-h));
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0,1fr);
    gap: 0;
  }
  .hero-copy {
    padding: 34px 0 16px;
  }
  .hero-portrait {
    height: 100%;
  }
  .hero-portrait .candidate-photo-wrap img {
    height: 98%;
    max-height: 98%;
    max-width: 96%;
  }

  .proposal-track { grid-auto-columns: 90vw; }
  .proposal-card {
    min-height: 0;
    grid-template-columns: 1fr;
  }
  .proposal-image { min-height: 320px; }

  .news-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .news-card:first-child { grid-column: 1 / -1; }

  .testimonial-card:nth-child(1),
  .testimonial-card:nth-child(2),
  .testimonial-card:nth-child(3) { grid-column: span 6; }
  .testimonial-card:nth-child(3) { grid-column: 1 / -1; min-height: 400px; }
  .testimonial-card:nth-child(4) { min-height: 300px; }
}

@media (max-width: 639px) {
  .hero { aspect-ratio: 9 / 16; }
  .hero-copy { padding: 24px 0 8px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.25rem); }
  .hero p { margin: 14px 0 18px; font-size: .94rem; }
  .hero-portrait .candidate-photo-wrap img {
    height: 98%;
    max-height: 98%;
    max-width: 100%;
  }
  .hero .scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    margin: 0;
  }
  .search-toggle { width: 36px; height: 36px; flex-basis: 36px; }

  .proposals > .container,
  .news > .container,
  .testimonials > .container {
    padding-inline: 16px;
  }

  .proposal-track { grid-auto-columns: 92vw; }
  .proposal-copy { padding: 28px; }
  .proposal-image { min-height: 250px; }
  .proposal-stage::before { left: -12px; width: 90px; }

  .news-grid { grid-template-columns: 1fr; }
  .news-card:first-child { grid-column: auto; }
  .news-image--photo,
  .news-image--photo img,
  .news-card:first-child .news-image--photo,
  .news-card:first-child .news-image--photo img {
    min-height: 230px;
    height: 230px;
  }

  .testimonial-track {
    grid-template-columns: 1fr;
  }
  .testimonial-card:nth-child(1),
  .testimonial-card:nth-child(2),
  .testimonial-card:nth-child(3),
  .testimonial-card:nth-child(4) {
    grid-column: auto;
    min-height: 430px;
  }
  .testimonial-card:nth-child(4) .testimonial-overlay {
    background: linear-gradient(to top, rgba(0,24,48,.94) 0%, rgba(0,31,61,.72) 38%, rgba(0,28,56,.08) 72%);
  }
  .testimonial-card:nth-child(4) .testimonial-copy {
    inset: auto 20px 22px;
    width: auto;
  }

  .footer-grid { border-radius: 24px; padding: 24px 18px; }
  .footer-ribbon { opacity: .48; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-ribbon,
  .footer-marquee__track {
    animation: none !important;
  }
}

/* Ajuste final do enquadramento: a grade usa toda a área útil do hero,
   impedindo que a foto extrapole e seja cortada em telas menores. */
.hero-grid { height: 100%; }
.hero-portrait .candidate-photo-wrap img {
  height: 96%;
  max-height: 96%;
  max-width: 100%;
  width: auto;
}

@media (max-width: 899px) {
  .hero-grid { height: 100%; }
  .hero-portrait .candidate-photo-wrap img {
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    width: auto;
  }
}

@media (max-width: 639px) {
  .hero { aspect-ratio: 1 / 2; }
}
