/* Refino proposto a partir do histórico aprovado. Mantém a identidade Fase. */
@media(min-width:851px) {
  .header-inner { height: auto; min-height: 90px; padding-block: 16px; flex-wrap: wrap; }
  .desktop-nav { flex-wrap: wrap; row-gap: 0; }
}
.services-shell {
  --reveal: 0;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #fff;
}
.services { position: relative; z-index: 1; }
.service-atmosphere {
  position: absolute;
  inset: 0 0 0 auto;
  width: 65%;
  overflow: hidden;
  background: #fff;
  opacity: 1;
  transform: none;
  transition: none;
  pointer-events: none;
}
.service-atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 25%;
  opacity: calc(var(--reveal) * .72);
  transform: scale(calc(1.01 + var(--reveal) * .16));
  transform-origin: 65% 30%;
  transition: opacity 180ms linear, transform 550ms ease-out;
}
.service-atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff, #ffffffed 16%, #ffffff85 42%, #ffffff14 76%), linear-gradient(180deg, #ffffff30, transparent 20%, transparent 78%, #fff);
}
.services .section-heading { min-height: 190px; }
.services .section-heading > p { max-width: 300px; padding: 18px 20px; background: #ffffffdf; border-radius: 5px; }
.services .service-card { background: #f1f4f7f2; border-color: #dbe2e894; }
.services .service-card:hover, .services .service-card:focus-within { border-color: #98adc9; }
.service-gallery { margin-top: 32px; border-radius: 8px; background: var(--ink); color: #fff; overflow: hidden; box-shadow: 0 12px 40px #102c4612; }
.gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 22px; }
.gallery-heading > p { font-size: .875rem; font-weight: 600; }
.gallery-toggle { display: inline-flex; align-items: center; gap: 13px; min-height: 44px; padding: 6px 0 6px 10px; background: transparent; color: #c9d7e4; font-size: .75rem; }
.gallery-toggle:hover { color: var(--yellow); }
.gallery-toggle:focus-visible { outline-color: var(--yellow); }
.gallery-toggle span { font-size: 1.1rem; }
.gallery-viewport { overflow: hidden; }
.gallery-track { display: flex; width: max-content; animation: gallery-drift 58s linear infinite; }
.gallery-group { display: flex; gap: 16px; padding: 0 16px 16px 0; }
.gallery-group figure { width: clamp(270px, 30vw, 395px); height: 248px; position: relative; margin: 0; overflow: hidden; border-radius: 4px; }
.gallery-group img { width: 100%; height: 100%; object-fit: cover; }
.gallery-group figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, #071b31cf); }
.gallery-group figcaption { position: absolute; left: 22px; bottom: 20px; right: 16px; z-index: 1; font-size: .9375rem; line-height: 1.4; font-weight: 700; }
.service-gallery:hover .gallery-track, .service-gallery:focus-within .gallery-track, .service-gallery[data-paused="true"] .gallery-track { animation-play-state: paused; }
@keyframes gallery-drift { to { transform: translateX(-50%); } }

.reviews-section { background: #f1f4f7; }
.reviews-heading { text-align: center; max-width: 660px; margin: 0 auto 38px; }
.reviews-heading .eyebrow { color: var(--action); margin-bottom: 17px; }
.reviews-heading > p:last-child { color: var(--muted); font-size: 1rem; line-height: 1.85; margin-top: 23px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { display: flex; flex-direction: column; align-items: center; margin: 0; padding: 30px 30px 28px; background: var(--ink); color: #fff; border-radius: 8px; border-top: 3px solid #2455cf; text-align: center; }
.review-stars { color: var(--yellow); letter-spacing: .17em; padding-left: .17em; font-size: 1.35rem; line-height: 1; margin: 3px 0 24px; }
.review-card blockquote { font-size: 1rem; line-height: 1.85; color: #e0e9f1; margin: 0 0 28px; }
.review-card figcaption { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: auto; }
.review-initial { width: 39px; height: 39px; display: grid; place-items: center; background: #ffffff0d; border: 1px solid #ffffff24; border-radius: 50%; color: #b9ceee; font-size: .75rem; }
.review-card figcaption > span:last-child { text-align: left; }
.review-card strong { display: block; font-size: .875rem; }
.review-card small { display: block; font-size: .75rem; color: #b5c9dd; margin-top: 2px; }

.contact-choice { display: block !important; width: 100%; margin-top: 3px; padding: 23px 24px 21px; border: 1px solid #ffffff20; border-radius: 8px; background: #ffffff0a; }
.contact-choice .eyebrow { color: #a8c1d7; margin-bottom: 10px; }
.contact-choice h3 { color: #fff; font-size: 1.2rem; line-height: 1.45; }
.contact-choice > p:not(.eyebrow) { color: #c5d3df; font-size: .8125rem; line-height: 1.75; margin-top: 9px; }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 21px; margin-top: 18px; }
.contact-actions .button { min-height: 50px; font-size: .8125rem; }
.contact-form-button { color: #fff; min-height: 46px; }
.contact-form-button span { display: inline; color: inherit; font-size: 1.1rem; margin-top: 0; }
.contact-form-button:hover { color: var(--yellow); }
.contact-form-button:focus-visible { outline-color: var(--yellow); }
.services-foot .inline-button { display: inline-flex; align-items: center; gap: 7px; min-height: 46px; margin-left: 5px; color: var(--action); }

.closing { position: relative; display: block; width: 100%; max-width: none; padding: 0; border-radius: 0; overflow: hidden; isolation: isolate; background: #123996; }
.closing-visual { position: absolute; inset: 0; overflow: hidden; }
.closing-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; }
.closing-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(95deg, #092867fc 0%, #123c9feb 35%, #1c58c99c 65%, #174bb862 100%), linear-gradient(0deg, #102c4680, transparent 50%); }
.closing-content { position: relative; z-index: 1; min-height: 480px; display: flex; align-items: center; padding-block: 68px; }
.closing-content > div { width: 50%; }
.closing h2 { font-size: 4.5rem; }
.closing .eyebrow { color: #c5d9ff; }
.closing p:not(.eyebrow) { color: #e1ebff; font-size: 1rem; margin-top: 22px; }
.closing .button { margin-top: 29px; min-height: 55px; }
.closing .button:focus-visible { outline-color: #fff; }
.footer-surface { background: linear-gradient(145deg, #102c46, #091f37 70%); color: #fff; }
.footer-surface .site-footer { padding-top: 48px; }
.footer-surface .brand-word > span, .footer-surface .brand-mark { color: #89aaff; stroke: #89aaff; }
.footer-surface .footer-top > p, .footer-surface .footer-bottom { color: #becfde; }
.footer-surface .footer-bottom { border-color: #ffffff21; }
.footer-surface a:hover, .footer-surface .inline-button:hover { color: var(--yellow); }
.footer-surface :is(a, button):focus-visible { outline-color: var(--yellow); }
.reviews-disclosure { max-width: 760px; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid #dbe2e8; color: var(--muted); font-size: .75rem; line-height: 1.7; text-align: center; }
.reviews-disclosure strong { color: var(--ink); }

@media(max-width:1050px) {
  .desktop-nav { gap: 18px; }
  .service-atmosphere { width: 80%; }
  .services .section-heading > p { max-width: 250px; }
  .review-card { padding-inline: 23px; }
  .reviews-grid { gap: 16px; }
  .closing h2 { font-size: 4rem; }
}
@media(max-width:850px) {
  .reviews-grid { grid-template-columns: 1fr; gap: 16px; }
  .review-card { padding: 28px 32px; }
  .review-card blockquote { max-width: 550px; }
  .closing-content { min-height: 465px; }
  .closing-content > div { width: 60%; }
  .closing-visual img { object-position: 70% 12%; }
}
@media(max-width:620px) {
  .service-atmosphere { width: 100%; }
  .service-atmosphere img { opacity: calc(var(--reveal) * .34); object-position: 60% 22%; transform: scale(calc(1.01 + var(--reveal) * .18)); }
  .service-atmosphere::after { background: linear-gradient(90deg, #ffffffed, #ffffff78 45%, #ffffff12), linear-gradient(180deg, #ffffff30, transparent 16%, transparent 82%, #fff); }
  .services .section-heading { min-height: 0; }
  .services .section-heading > p { background: transparent; padding: 0; max-width: 330px; }
  .services .service-card { background: #f1f4f7ed; }
  .service-gallery { margin-top: 24px; border-radius: 6px; }
  .gallery-heading { gap: 5px; padding: 13px 16px; flex-wrap: wrap; }
  .gallery-heading > p { font-size: .875rem; }
  .gallery-toggle { padding-left: 0; font-size: .75rem; gap: 9px; }
  .gallery-group { gap: 12px; padding: 0 12px 12px 0; }
  .gallery-group figure { width: 280px; height: 205px; }
  .gallery-group figcaption { left: 17px; bottom: 17px; font-size: .875rem; }
  .reviews-heading { margin-bottom: 28px; text-align: left; }
  .reviews-heading > p:last-child { font-size: 1rem; margin-top: 20px; }
  .reviews-heading > p:last-child br { display: none; }
  .review-card { padding: 27px 25px; }
  .review-stars { font-size: 1.4rem; margin-bottom: 22px; }
  .review-card blockquote { font-size: 1rem; margin-bottom: 22px; }
  .reviews-disclosure { margin-top: 24px; text-align: left; }
  .contact-choice { padding: 21px 19px; }
  .contact-actions { align-items: stretch; flex-direction: column; gap: 7px; }
  .contact-actions .button { width: 100%; justify-content: space-between; padding-inline: 17px; }
  .contact-form-button { align-self: flex-start; }
  .services-foot .inline-button { display: flex; width: max-content; margin: 0 auto; }
  .closing-content { min-height: 680px; align-items: flex-start; padding-block: 46px 310px; }
  .closing-content > div { width: 100%; }
  .closing h2 { font-size: 3.7rem; }
  .closing .eyebrow { font-size: .75rem; }
  .closing p:not(.eyebrow) { font-size: 1rem; margin-top: 19px; }
  .closing .button { margin-top: 25px; }
  .closing-visual { top: auto; bottom: 0; height: 340px; }
  .closing-visual img { object-position: 100% center; }
  .closing-visual::after { background: linear-gradient(180deg, #123996 0%, #143b93dd 20%, #174bb899 58%, #174bb853 100%), linear-gradient(90deg, #0b2e858c, #1245ae22); }
  .footer-surface .site-footer { padding-top: 34px; }
}
@media(prefers-reduced-motion:reduce) {
  .services-shell { --reveal: .65 !important; }
  .service-atmosphere img { transform: none !important; transition: none; }
  .gallery-track { animation: none; }
  .gallery-group[aria-hidden="true"] { display: none; }
  .gallery-viewport { overflow-x: auto; }
  .gallery-group { padding-left: 12px; }
}
