/* Camada incremental: mantém o HTML, a marca e os breakpoints do site. */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 240ms;
  --duration-base: 400ms;
  --header-offset: 120px;
  --surface: #f4f6f9;
  --line: #dce3eb;
  --muted: #566373;
  --font-body: 'Segoe UI Variable Text', 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Segoe UI Variable Display', 'Segoe UI', Arial, sans-serif;
}
html {
  scroll-padding-top: var(--header-offset);
}
html.lenis {
  scroll-behavior: auto;
}
body {
  font-family: var(--font-body);
}
h1,
h2,
h3 {
  font-family: var(--font-heading);
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.2rem, 3.55vw, 3.5rem);
  line-height: 1.14;
  font-weight: 650;
  letter-spacing: -0.045em;
}
p {
  text-wrap: pretty;
}
main,
main section,
.service {
  scroll-margin-top: 0;
}
.section-space {
  padding-block: clamp(4.5rem, 8.5vw, 8rem);
}
.section-heading {
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.section-heading > p {
  max-width: 23rem;
  font-size: 1rem;
}
.eyebrow {
  letter-spacing: 0.13em;
}
.dark-eyebrow {
  color: #5f6c7c;
}
.dark-eyebrow::before,
.small-line {
  width: 1.75rem;
  flex-shrink: 0;
}

/* Hero e ações: o mesmo conteúdo com mais hierarquia e profundidade. */
.site-header {
  background: #fff;
  border-bottom-color: #e7edf3;
}
.site-header::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  box-shadow: 0 8px 28px #10284a0d;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}
.site-header.is-scrolled::after {
  opacity: 1;
}
.header-inner {
  min-height: 104px;
}
.brand-logo {
  width: 104px;
  height: 104px;
}
.brand-name {
  letter-spacing: 0.11em;
}
.navigation {
  gap: clamp(1rem, 2.25vw, 2.25rem);
  font-size: 0.875rem;
}
.navigation > a:not(.button)::after {
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}
.navigation > a:hover::after,
.navigation > a:focus-visible::after,
.navigation > a[aria-current='location']::after {
  transform: scaleX(1);
}
.hero {
  background: #10284a;
}
.hero-photo {
  inset: 1.5rem 1.5rem 7.5rem 37%;
  border-radius: 1rem;
  overflow: hidden;
}
.hero-photo img {
  object-position: 62% center;
}
.hero::before {
  background:
    linear-gradient(
      90deg,
      #10284a 4%,
      #10284afa 22%,
      #10284ace 41%,
      #10284a22 78%
    ),
    linear-gradient(0deg, #10284a99, transparent 45%);
}
.hero-inner {
  min-height: 680px;
  padding-block: 4.6rem 4rem;
}
.hero-copy {
  max-width: 47rem;
}
.hero h1 {
  font-size: clamp(3.2rem, 5.5vw, 5.4rem);
  line-height: 1.055;
  letter-spacing: -0.055em;
  font-weight: 700;
  margin-top: 1.7rem;
}
.hero-description {
  max-width: 28rem;
  font-size: 1.0625rem;
  line-height: 1.85;
  margin-top: 1.65rem;
  color: #d4dfeb;
}
.hero-actions {
  gap: 1.5rem;
  margin-top: 2rem;
}
.hero-proof {
  font-size: 0.8125rem;
  margin-top: 1.75rem;
  color: #c2d0df;
}
.photo-caption {
  right: 0.15rem;
  bottom: 1.2rem;
  writing-mode: horizontal-tb;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: #c7d3e1;
}
.hero-bottom {
  background: #0e2341;
  border-color: #ffffff1f;
}
.expertise-strip {
  min-height: 100px;
}
.expertise-strip a {
  min-height: 44px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.expertise-strip a .icon {
  transition: transform var(--duration-base) var(--ease-out);
}
.expertise-strip a:hover .icon {
  transform: translateY(-3px);
}
.button {
  position: relative;
  border-radius: 0.5rem;
  padding: 1rem 1.4rem;
  min-height: 58px;
  font-size: 0.9375rem;
  gap: 1.2rem;
  transition:
    transform var(--duration-base) var(--ease-out),
    background-color var(--duration-fast) ease-in-out,
    color var(--duration-fast) ease-in-out;
}
.button-small {
  min-height: 48px;
  padding: 0.8rem 1.1rem;
  font-size: 0.875rem;
}
.button .icon,
.text-link .icon,
.back-top span {
  transition: transform var(--duration-base) var(--ease-out);
}
.button:active {
  transform: scale(0.985);
}
.text-link,
.address-link,
.service-link,
.back-top,
.contact-detail a {
  transition: color var(--duration-fast) ease-in-out;
}
.text-link {
  position: relative;
  min-height: 44px;
  font-size: 0.9375rem;
  border-bottom: 0;
}
.text-link::after,
.address-link::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}
.text-link:hover::after,
.text-link:focus-visible::after,
.address-link:hover::after,
.address-link:focus-visible::after {
  transform: scaleX(1);
}
.address-link {
  position: relative;
  min-height: 44px;
  align-items: center;
  padding-bottom: 0.2rem;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #287bb5;
  outline-offset: 5px;
}
.hero a:focus-visible,
.sectors a:focus-visible,
.footer a:focus-visible {
  outline-color: #ffba70;
}

/* Serviços: preserva os quatro itens e o fluxo para o WhatsApp. */
.services-grid {
  gap: 1rem;
  border: 0;
  align-items: stretch;
}
.services-grid > .service {
  padding: 1.75rem 1.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  position: relative;
  isolation: isolate;
  background: #fff;
  min-width: 0;
}
.service::after {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid #f28b1b99;
  box-shadow: 0 16px 40px #10284a0c;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out);
}
.service:focus-within::after {
  opacity: 1;
}
.service-top {
  margin-bottom: 1.7rem;
}
.service-top > span {
  color: #657486;
  font-size: 0.75rem;
}
.service-icon {
  padding: 0.65rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.65rem;
  color: var(--navy);
  background: #edf2f8;
  transition:
    transform var(--duration-base) var(--ease-out),
    background-color var(--duration-fast) ease-in-out;
}
.service h3 {
  font-size: clamp(1.4rem, 1.8vw, 1.65rem);
  font-weight: 650;
  line-height: 1.2;
}
.service p {
  font-size: 1rem;
  line-height: 1.75;
}
.service ul {
  font-size: 0.875rem;
  margin-block: 1.4rem 1.75rem;
}
.service li {
  margin-block: 0.65rem;
}
.service li::before {
  top: 0.65rem;
  border-radius: 50%;
}
.service-link {
  font-size: 0.875rem;
  line-height: 1.6;
  min-height: 50px;
  gap: 0.65rem;
}
.service-link .icon {
  flex-shrink: 0;
  transition:
    transform var(--duration-base) var(--ease-out),
    color var(--duration-fast) ease-in-out;
}

/* Institucional, atuação e contato: evolução dos componentes existentes. */
.about {
  background: var(--surface);
}
.about-grid {
  gap: clamp(2.5rem, 7.5vw, 7rem);
}
.about-description {
  line-height: 1.9;
}
.commitments {
  padding-top: 2.75rem;
}
.commitment {
  padding-block: 1.85rem;
  gap: 1.4rem;
}
.commitment-number {
  display: grid;
  place-items: center;
  align-self: flex-start;
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid #cbd6e3;
  border-radius: 50%;
  padding: 0;
  color: var(--navy);
  background: #fff;
}
.commitment h3 {
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 650;
}
.commitment p {
  font-size: 1rem;
  line-height: 1.8;
}
.crea-note {
  padding-top: 2rem;
}
.sectors {
  background: #10284a;
}
.sectors-grid {
  gap: 1.5rem;
  border: 0;
}
.sectors-grid > article {
  padding: 2rem;
  border: 1px solid #ffffff24;
  border-radius: 0.75rem;
  background: #ffffff04;
  position: relative;
  isolation: isolate;
}
.sectors-grid > article:first-child,
.sectors-grid > article:last-child {
  padding: 2rem;
  border: 1px solid #ffffff24;
}
.sectors-grid > article::after {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid #f28b1b80;
  background: #ffffff04;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out);
}
.sectors h3 {
  font-size: 1.9rem;
  font-weight: 600;
}
.sectors article p {
  font-size: 1rem;
  line-height: 1.85;
}
.sector-tag {
  color: #b1c0d2;
  letter-spacing: 0.08em;
}
.contact-grid {
  gap: clamp(2.5rem, 7vw, 6.5rem);
}
.contact h2 > span {
  color: #a94e0e;
}
.contact-details {
  background: var(--surface);
  border-radius: 0.85rem;
  padding: 2.5rem;
  border-top: 3px solid var(--orange);
}
.contact-detail {
  gap: 1.3rem;
  padding-block: 1.8rem;
}
.contact-detail > .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--navy);
}
.contact-detail address,
.contact-detail p,
.contact-detail #phone-link,
.contact-detail #email-link {
  font-size: 1rem;
}
.detail-label {
  font-size: 0.75rem;
  color: #566577;
}
.contact-cta {
  min-width: 0;
  max-width: 100%;
  text-align: left;
}
.contact-grid > div > p.contact-caption {
  font-size: 0.8125rem;
  margin-top: 0.9rem;
}
.footer-main {
  padding-block: 2.5rem;
}
.back-top {
  font-size: 0.875rem;
  min-height: 44px;
}
.contact-detail #phone-link,
.contact-detail #email-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.contact-detail > div,
.about-grid > div,
.contact-grid > div,
.sectors-grid > article {
  min-width: 0;
}
.contact-detail address {
  overflow-wrap: anywhere;
}
.back-top span {
  border-radius: 0.35rem;
}
.footer-bottom {
  font-size: 0.75rem;
}
.whatsapp-floating {
  transition:
    transform var(--duration-base) var(--ease-out),
    background-color var(--duration-fast) ease-in-out;
}
.whatsapp-floating:hover {
  box-shadow: 0 5px 22px #061b2840;
}
.whatsapp-tooltip {
  transform: translateX(6px);
  transition:
    opacity var(--duration-fast) ease-in-out,
    transform var(--duration-fast) var(--ease-out),
    visibility var(--duration-fast);
}
.whatsapp-floating:hover .whatsapp-tooltip,
.whatsapp-floating:focus-visible .whatsapp-tooltip {
  transform: translateX(0);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    transform: translateY(-2px) scale(1.015);
  }
  .button:hover .icon,
  .text-link:hover .icon {
    transform: translate(2px, -2px);
  }
  .service:hover::after,
  .sectors-grid > article:hover::after {
    opacity: 1;
  }
  .service:hover .service-icon {
    transform: translateY(-3px);
    background: #fff0e0;
  }
  .back-top:hover span {
    transform: translateY(-3px);
  }
  .whatsapp-floating:hover {
    transform: translateY(-3px) scale(1.035);
  }
}
@media (max-width: 1150px) {
  .container {
    width: calc(100% - 64px);
  }
  .services-grid {
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services-grid > .service {
    padding: 1.45rem 1.05rem 1rem;
  }
  .service h3 {
    font-size: 1.4rem;
  }
  .hero h1 {
    font-size: clamp(3.2rem, 6.5vw, 4.7rem);
  }
  .sectors-grid {
    gap: 1rem;
  }
  .sectors-grid > article,
  .sectors-grid > article:first-child,
  .sectors-grid > article:last-child {
    padding: 1.5rem;
  }
  .contact-details {
    padding: 2rem;
  }
}
@media (max-width: 900px) {
  .container {
    width: calc(100% - 48px);
  }
  .header-inner {
    min-height: 86px;
  }
  .brand-logo {
    width: 82px;
    height: 82px;
  }
  .hero-photo {
    inset: 1rem 1rem 10rem 23%;
  }
  .hero::before {
    background:
      linear-gradient(90deg, #10284a 0%, #10284aeb 23%, #10284a4d 100%),
      linear-gradient(0deg, #10284abf, transparent 40%);
  }
  .hero-inner {
    min-height: 650px;
  }
  .hero h1 {
    font-size: clamp(3.1rem, 8.2vw, 4.7rem);
  }
  .expertise-strip {
    row-gap: 0.9rem;
  }
  .services-grid {
    gap: 1.25rem;
  }
  .services-grid > .service {
    padding: 1.75rem 1.6rem 1rem;
  }
  .service h3 {
    font-size: 1.65rem;
  }
  .section-heading {
    gap: 2rem;
  }
  .section-heading > p {
    padding-top: 2.8rem;
  }
  .contact-details {
    padding: 1.6rem;
  }
  /* Menu fechado sai da ordem de foco pelo atributo inert controlado no JS. */
  .menu-toggle {
    border-radius: 0.45rem;
    transition: background-color var(--duration-fast) ease-in-out;
  }
  .menu-toggle:hover {
    background: var(--surface);
  }
  .menu-toggle span {
    transition: transform var(--duration-base) var(--ease-out);
  }
  .js-menu .navigation,
  .js-menu .navigation.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    padding: 1rem 1.25rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    max-height: calc(
      100dvh - var(--header-offset) - 90px - env(safe-area-inset-bottom)
    );
    overflow-y: auto;
    box-shadow: 0 16px 38px #10284a1a;
    gap: 0.3rem;
    overscroll-behavior: contain;
  }
  .js-menu .navigation {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 280ms ease-in-out,
      transform 280ms var(--ease-out),
      visibility 0s 280ms;
  }
  .js-menu .navigation.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }
  .js-menu .navigation > a {
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition:
      opacity 220ms ease-in-out,
      transform 320ms var(--ease-out),
      color 220ms ease-in-out,
      background-color 220ms ease-in-out;
  }
  .js-menu .navigation.is-open > a {
    opacity: 1;
    transform: translateY(0);
  }
  .js-menu .navigation.is-open > a:nth-child(2) {
    transition-delay: 100ms;
  }
  .js-menu .navigation.is-open > a:nth-child(3) {
    transition-delay: 200ms;
  }
  .js-menu .navigation.is-open > a:nth-child(4) {
    transition-delay: 300ms;
  }
  /* Uma faixa opaca reserva visualmente o atendimento: sem texto por trás do botão. */
  html {
    scroll-padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
  .whatsapp-floating,
  .whatsapp-floating:hover {
    inset: auto 0 0;
    width: 100%;
    height: auto;
    min-height: calc(76px + env(safe-area-inset-bottom));
    padding: 12px max(20px, env(safe-area-inset-right))
      calc(12px + env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
    display: flex;
    justify-content: center;
    gap: 14px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    color: var(--navy);
    box-shadow: 0 -4px 18px #10284a0d;
    transform: none;
  }
  .whatsapp-floating:focus-visible {
    outline-offset: -4px;
  }
  .whatsapp-floating > svg {
    order: -1;
    width: 48px;
    height: 48px;
    padding: 7px;
    border-radius: 50%;
    background: #128c49;
    color: #fff;
  }
  .whatsapp-floating .whatsapp-tooltip {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
    color: var(--navy);
    font-weight: 600;
  }
  .footer-bottom {
    padding-right: 0;
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }
  html:not(.js-menu) .header-inner {
    flex-wrap: wrap;
    padding-bottom: 1rem;
  }
  html:not(.js-menu) .menu-toggle {
    display: none;
  }
  html:not(.js-menu) .navigation {
    display: flex;
    position: static;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    box-shadow: none;
  }
}
@media (max-width: 767px) {
  .about-grid,
  .contact-grid,
  .sectors-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    max-width: 100%;
    padding-top: 1.3rem;
  }
}
@media (max-width: 640px) {
  .container {
    width: calc(100% - 40px);
  }
  .brand-logo {
    width: 77px;
    height: 77px;
  }
  h2 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }
  .hero-photo {
    inset: 1rem 1rem 10rem 18%;
    border-radius: 0.7rem;
  }
  .hero::before {
    background:
      linear-gradient(90deg, #10284afa 0%, #10284acf 65%, #10284a99 100%),
      linear-gradient(0deg, #10284a 8%, transparent 80%);
  }
  .hero-inner {
    min-height: 660px;
    padding-block: 3.25rem 3.75rem;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 10.1vw, 4rem);
    margin-top: 1.65rem;
  }
  .hero-description {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 23rem;
  }
  .hero-actions {
    gap: 0.65rem;
    margin-top: 1.6rem;
  }
  .hero-actions > .button {
    font-size: 0.875rem;
  }
  .hero-proof {
    font-size: 0.75rem;
  }
  .photo-caption {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
  }
  .expertise-strip a {
    font-size: 0.875rem;
    gap: 0.55rem;
  }
  .section-space {
    padding-block: 4rem;
  }
  .section-heading {
    margin-bottom: 2.25rem;
  }
  .section-heading > p {
    padding-top: 1.3rem;
  }
  .services-grid {
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
  }
  .services-grid > .service {
    padding: 1.65rem 1.4rem 1rem;
    border: 1px solid var(--line);
  }
  .service h3 {
    font-size: 1.65rem;
  }
  .service h3 br {
    display: inline;
  }
  .service-top {
    margin-bottom: 1.25rem;
  }
  .about-grid,
  .contact-grid {
    gap: 2.5rem;
  }
  .commitments {
    padding-top: 0;
  }
  .commitment {
    gap: 1rem;
  }
  .commitment h3 {
    font-size: 1.2rem;
  }
  .sectors-grid {
    gap: 1rem;
  }
  .sectors-grid > article,
  .sectors-grid > article:first-child,
  .sectors-grid > article:last-child {
    padding: 1.6rem;
    border: 1px solid #ffffff24;
  }
  .sector-tag {
    font-size: 0.75rem;
  }
  .contact-details {
    padding: 1.65rem 1.3rem;
  }
  .contact-cta {
    max-width: 100%;
    gap: 0.8rem;
    font-size: 0.875rem;
  }
  .contact-detail {
    gap: 1rem;
  }
  .footer-main {
    padding-block: 2rem;
  }
  .back-top {
    font-size: 0.8125rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html,
  html.lenis {
    scroll-behavior: auto !important;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-photo img,
  .button:hover,
  .button:active,
  .button:hover .icon,
  .text-link:hover .icon,
  .expertise-strip a:hover .icon,
  .service:hover .service-icon,
  .service-link:hover .icon,
  .back-top:hover span,
  .whatsapp-floating:hover {
    transform: none !important;
  }
}
@media print {
  .hero-photo,
  .hero::before,
  .site-header::after {
    display: none;
  }
  .hero,
  .sectors {
    background: white;
    color: black;
  }
  .section-space {
    padding-block: 1.5rem;
  }
  .hero-inner {
    min-height: 0;
  }
  .services-grid > .service,
  .sectors-grid > article {
    break-inside: avoid;
  }
}
