/* ACES Contabilidade Industrial — Landing 2026 */
:root {
  --aces-green: #396b63;
  --aces-green-deep: #2b504a;
  --aces-green-soft: #457e75;
  --aces-green-mist: #e8f0ee;
  --aces-gray: #a9a9a9;
  --aces-ink: #1a2422;
  --aces-muted: #5c6b68;
  --aces-paper: #f4f6f5;
  --aces-white: #ffffff;
  --aces-line: rgba(57, 107, 99, 0.18);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-accent: "Libre Baskerville", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.aces-landing {
  margin: 0;
  font-family: var(--font-body);
  color: var(--aces-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(69, 126, 117, 0.12), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(57, 107, 99, 0.08), transparent 55%),
    var(--aces-paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.aces-landing img {
  max-width: 100%;
  height: auto;
}

.aces-skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.aces-skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: var(--aces-white);
  padding: 0.5rem 1rem;
}

/* —— Nav —— */
.aces-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.aces-nav.is-solid {
  background: rgba(43, 80, 74, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.aces-nav.is-solid .aces-nav__links a,
.aces-nav.is-solid .aces-nav__toggle {
  color: var(--aces-white);
}

.aces-nav.is-solid .aces-btn--nav-secondary {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--aces-white);
}

.aces-nav.is-solid .aces-btn--nav-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--aces-white);
}

.aces-nav.is-solid .aces-btn--primary {
  background: var(--aces-white);
  color: var(--aces-green-deep);
}

.aces-nav.is-solid .aces-btn--primary:hover {
  background: var(--aces-green-mist);
  color: var(--aces-green-deep);
}

.aces-nav__inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.aces-nav__brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.aces-nav__brand img,
.aces-nav__logo {
  height: 42px;
  width: auto;
  display: block;
}

.aces-nav__logo {
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.aces-nav__logo--solid {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scale(0.96);
  opacity: 0;
  pointer-events: none;
}

.aces-nav.is-solid .aces-nav__logo--top {
  opacity: 0;
  transform: scale(0.96);
}

.aces-nav.is-solid .aces-nav__logo--solid {
  opacity: 1;
  transform: translateY(-50%) scale(0.75);
}

.aces-nav__links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aces-nav__links a {
  color: var(--aces-ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.aces-nav__links a:hover {
  opacity: 1;
  color: var(--aces-green);
}

.aces-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.aces-nav__toggle {
  display: inline-flex;
  background: none;
  border: 0;
  padding: 0.35rem;
  cursor: pointer;
  color: var(--aces-ink);
}

.aces-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.25s var(--ease);
}

@media (min-width: 900px) {
  .aces-nav__links {
    display: flex;
  }
  .aces-nav__toggle {
    display: none;
  }
}

.aces-nav--hero:not(.is-solid) .aces-nav__links a,
.aces-nav--hero:not(.is-solid) .aces-nav__toggle {
  color: var(--aces-white);
}

.aces-nav--hero:not(.is-solid) .aces-nav__brand .aces-nav__logo--top {
  filter: none;
}

.aces-nav--hero:not(.is-solid) .aces-btn--nav-secondary {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--aces-white);
  background: transparent;
}

.aces-nav--hero:not(.is-solid) .aces-btn--nav-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--aces-white);
}

/* —— Buttons —— */
.aces-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

.aces-btn--primary {
  background: var(--aces-green);
  color: var(--aces-white);
}

.aces-btn--primary:hover {
  background: var(--aces-green-deep);
  color: var(--aces-white);
}

.aces-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--aces-white);
}

.aces-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--aces-white);
}

.aces-btn--outline {
  background: transparent;
  border-color: var(--aces-green);
  color: var(--aces-green);
}

.aces-btn--outline:hover {
  background: var(--aces-green);
  color: var(--aces-white);
}

.aces-btn--light {
  background: var(--aces-white);
  color: #111;
}

.aces-btn--light:hover {
  background: #f0f0f0;
  color: #111;
}

.aces-link-quiet {
  color: inherit;
  opacity: 0.8;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aces-link-quiet:hover {
  opacity: 1;
}

/* —— Hero —— */
.aces-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--aces-white);
}

.aces-hero__media {
  position: absolute;
  inset: 0;
  background-color: #1a2422;
  background-image:
    linear-gradient(105deg, rgba(26, 36, 34, 0.90) 0%, rgba(43, 80, 74, 0.25) 48%, rgba(26, 36, 34, 0.45) 100%),
    url("../img/landing/hero-bg-hd.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.aces-hero__orbit {
  position: absolute;
  inset: -15% -10%;
  pointer-events: none;
  opacity: 0.35;
}

.aces-hero__orbit svg {
  width: 100%;
  height: 100%;
}

.aces-hero__orbit path {
  fill: none;
  stroke: var(--aces-gray);
  stroke-width: 18;
  stroke-linecap: round;
  animation: aces-orbit-draw 2.4s var(--ease) both;
}

.aces-hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) 0 3rem;
}

.aces-hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  animation: aces-rise 0.9s var(--ease) 0.15s forwards;
}

.aces-hero__title {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: aces-rise 0.9s var(--ease) 0.28s forwards;
}

.aces-hero__lead {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0;
  animation: aces-rise 0.9s var(--ease) 0.4s forwards;
}

.aces-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  opacity: 0;
  animation: aces-rise 0.9s var(--ease) 0.52s forwards;
}

.aces-hero__cta .aces-link-quiet {
  margin-left: 0.25rem;
  color: rgba(255, 255, 255, 0.9);
}

/* —— Sections —— */
.aces-section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.aces-section__inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.aces-kicker {
  margin: 0 0 0.65rem;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--aces-green);
  letter-spacing: 0.02em;
}

.aces-section__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.aces-section__text {
  margin: 0;
  max-width: 58ch;
  color: var(--aces-muted);
  font-size: 1.05rem;
}

.aces-split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 880px) {
  .aces-split {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
    gap: 4rem;
  }
}

.aces-pillars {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 720px) {
  .aces-pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.aces-pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
}

.aces-pillar h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.aces-pillar p {
  margin: 0;
  color: var(--aces-muted);
  font-size: 0.98rem;
}

.aces-section--soft {
  background:
    linear-gradient(180deg, rgba(244, 246, 245, 0.92), rgba(244, 246, 245, 0.88)),
    url("../img/landing/soft-bg.png") center / cover no-repeat;
}

.aces-section--empresa,
.aces-section--clientes,
.aces-section--contato {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.aces-section--empresa {
  position: relative;
  overflow: hidden;
  min-height: clamp(34rem, 78vh, 56rem);
  padding-block: 0;
  background-image:
    linear-gradient(165deg, rgba(248, 249, 248, 0.9) 0%, rgba(228, 232, 230, 0.72) 48%, rgba(244, 246, 245, 0.88) 100%),
    url("../img/landing/section-empresa.png");
}

.aces-empresa-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  justify-content: start;
  min-height: inherit;
  width: 100%;
  margin: 0;
}

.aces-empresa-watermark {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(42vw, 420px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 55%,
    rgba(0, 0, 0, 0.55) 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 55%,
    rgba(0, 0, 0, 0.55) 82%,
    transparent 100%
  );
}

.aces-empresa-watermark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 60%,
    rgba(244, 246, 245, 0.45) 82%,
    rgba(244, 246, 245, 1) 100%
  );
  pointer-events: none;
}

.aces-empresa-watermark__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  mix-blend-mode: multiply;
  filter: grayscale(0.2) contrast(1.02) brightness(1.08);
}

.aces-section--empresa .aces-section__inner {
  position: relative;
  z-index: 1;
  width: auto;
  margin: 0;
  padding: clamp(5rem, 10vw, 7.5rem) 1.25rem;
}

@media (min-width: 880px) {
  .aces-empresa-shell {
    grid-template-columns: minmax(260px, 0.52fr) minmax(0, 1fr);
    gap: 0;
    justify-content: stretch;
  }

  .aces-empresa-watermark {
    position: relative;
    left: 0;
    top: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    min-height: 100%;
    justify-self: start;
    opacity: 0.52;
    -webkit-mask-image: linear-gradient(
      90deg,
      #000 0%,
      #000 72%,
      rgba(0, 0, 0, 0.8) 88%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      #000 0%,
      #000 72%,
      rgba(0, 0, 0, 0.8) 88%,
      transparent 100%
    );
  }

  .aces-empresa-watermark::after {
    background: linear-gradient(
      90deg,
      transparent 0%,
      transparent 68%,
      rgba(244, 246, 245, 0.22) 84%,
      rgba(244, 246, 245, 0.8) 94%,
      rgba(244, 246, 245, 1) 100%
    );
  }

  .aces-empresa-watermark__video {
    object-fit: cover;
    object-position: left center;
    position: absolute;
    inset: 0;
  }

  .aces-section--empresa .aces-section__inner {
    padding: clamp(5rem, 10vw, 7.5rem) clamp(1.25rem, 4vw, 3rem) clamp(5rem, 10vw, 7.5rem) 0.75rem;
    max-width: 1120px;
  }

  .aces-section--empresa .aces-split {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2rem;
  }

  .aces-empresa-copy {
    padding-left: 0;
  }

  .aces-empresa-copy .aces-section__text {
    max-width: 46ch;
  }

  .aces-pillars--empresa {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 2rem;
  }

  .aces-pillars--empresa .aces-pillar--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1200px) {
  .aces-empresa-shell {
    grid-template-columns: minmax(320px, 0.56fr) minmax(0, 1fr);
  }

  .aces-section--empresa .aces-section__inner {
    padding-right: 2rem;
  }
}

@media (max-width: 879px) {
  .aces-section--empresa {
    min-height: 28rem;
  }

  .aces-empresa-watermark {
    max-width: min(58vw, 280px);
    opacity: 0.26;
  }

  .aces-section--empresa .aces-section__inner {
    padding-left: min(42vw, 11rem);
  }
}

/* Tour 360° — card + modal */
.aces-tour360-cta {
  margin-top: 1.75rem;
  width: max-content;
  max-width: 100%;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.aces-tour360-cta__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--aces-green);
  white-space: nowrap;
}

.aces-tour360-card {
  position: relative;
  display: block;
  width: 10.5rem;
  margin-left: 0;
  margin-right: auto;
  padding: 0;
  border: 1px solid var(--aces-line);
  border-radius: 10px;
  overflow: hidden;
  background: #1a2422;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 32px rgba(26, 36, 34, 0.1);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.aces-tour360-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(26, 36, 34, 0.16);
}

.aces-tour360-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 42%;
}

.aces-tour360-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(180deg, rgba(26, 36, 34, 0.15), rgba(26, 36, 34, 0.55));
  color: #fff;
}

.aces-tour360-card__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  min-height: 3.4rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(43, 80, 74, 0.88);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.aces-tour360-card__hint {
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.95;
}

.aces-tour360-dialog {
  width: min(96vw, 1200px);
  max-width: 96vw;
  margin: 0.75rem auto;
  height: calc(100vh - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
}

.aces-tour360-dialog .modal-content {
  height: 100%;
}

.aces-tour360-modal {
  background: #1a2422;
  color: #fff;
  border: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.aces-tour360-modal .modal-header {
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.9rem 1.1rem;
  background: var(--aces-green-soft);
  color: #fff;
}

.aces-tour360-modal .modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.aces-tour360-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.aces-tour360-modal__viewer {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  max-height: none;
  background: #111;
}

.aces-tour360-modal__viewer iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.aces-tour360-modal__hint {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  margin: 0;
  z-index: 2;
  pointer-events: none;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(26, 36, 34, 0.72);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  animation: aces-tour360-hint 4.5s var(--ease) 1.2s forwards;
}

@keyframes aces-tour360-hint {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@media (max-width: 719px) {
  .aces-tour360-cta {
    width: 100%;
  }

  .aces-tour360-card {
    width: min(60%, 11rem);
  }

  .aces-tour360-dialog {
    width: 100vw;
    max-width: 100vw;
    height: calc(100dvh - 0.5rem);
    max-height: calc(100dvh - 0.5rem);
    margin: 0.25rem auto;
  }
}

.aces-section--clientes {
  background-image:
    linear-gradient(165deg, rgba(248, 249, 248, 0.9) 0%, rgba(228, 232, 230, 0.7) 52%, rgba(244, 246, 245, 0.88) 100%),
    url("../img/landing/section-clientes.png");
}

.aces-section--contato {
  background-image:
    linear-gradient(165deg, rgba(248, 249, 248, 0.9) 0%, rgba(228, 232, 230, 0.7) 48%, rgba(244, 246, 245, 0.9) 100%),
    url("../img/landing/section-contato.png");
}

.aces-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--aces-green);
  margin-bottom: 0.85rem;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center top;
}

.aces-services .aces-icon {
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.aces-service-list__name {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.15rem;
}

.aces-pillar--clickable {
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.aces-pillar--clickable:hover h3 {
  color: var(--aces-green);
}

/* Serviços — lista, sem cards */
.aces-services {
  background-image:
    linear-gradient(180deg, rgba(43, 80, 74, 0.92), rgba(26, 36, 34, 0.94)),
    url("../img/landing/services-bg.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--aces-white);
}

.aces-services .aces-kicker {
  color: #b7d0cb;
}

.aces-services .aces-section__title,
.aces-services .aces-section__text {
  color: var(--aces-white);
}

.aces-services .aces-section__text {
  opacity: 0.85;
}

.aces-service-list {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.aces-service-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: inherit;
  text-decoration: none;
  transition: padding-left 0.3s var(--ease), background 0.3s ease;
}

.aces-service-list a:hover {
  padding-left: 0.5rem;
}

.aces-service-list__desc {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  max-width: 62ch;
}

.aces-service-list__arrow {
  font-size: 1.25rem;
  color: var(--aces-gray);
  transition: transform 0.3s var(--ease), color 0.3s ease;
}

.aces-service-list a:hover .aces-service-list__arrow {
  transform: translateX(4px);
  color: var(--aces-white);
}

@media (min-width: 720px) {
  .aces-service-list a {
    grid-template-columns: minmax(220px, 0.9fr) 1.4fr auto;
    align-items: center;
  }
  .aces-service-list__desc {
    grid-column: auto;
    margin: 0;
  }
}

/* Clientes — grade estática com contraste */
.aces-clients {
  border-block: 1px solid var(--aces-line);
}

.aces-logo-grid {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .aces-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .aces-logo-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

.aces-logo-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 1.1rem 1.25rem;
  background: var(--aces-green-deep);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  transition: background 0.25s ease, transform 0.25s var(--ease);
}

.aces-logo-grid li:hover {
  background: var(--aces-green);
  transform: translateY(-2px);
}

.aces-logo-grid img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

/* Contato */
.aces-contact {
  border-block: 1px solid var(--aces-line);
}

.aces-contact__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .aces-contact__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }
}

.aces-form {
  display: grid;
  gap: 1rem;
}

.aces-form__row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .aces-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.aces-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--aces-green-deep);
}

.aces-field input,
.aces-field select,
.aces-field textarea {
  width: 100%;
  border: 1px solid var(--aces-line);
  border-radius: 4px;
  background: var(--aces-paper);
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--aces-ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.aces-field input:focus,
.aces-field select:focus,
.aces-field textarea:focus {
  outline: none;
  border-color: var(--aces-green);
  background: var(--aces-white);
}

.aces-field textarea {
  min-height: 140px;
  resize: vertical;
}

.aces-form__actions {
  display: flex;
  justify-content: flex-end;
}

.aces-offices {
  display: grid;
  gap: 1.75rem;
}

.aces-office h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.aces-office dl {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.aces-office dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aces-green);
  font-weight: 700;
}

.aces-office dd {
  margin: 0.15rem 0 0;
  color: var(--aces-muted);
}

.aces-office a {
  color: var(--aces-green-deep);
  text-decoration: none;
}

.aces-office a:hover {
  text-decoration: underline;
}

/* FAQ */
.aces-faq details {
  border-bottom: 1px solid var(--aces-line);
  padding: 0.85rem 0;
}

.aces-faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.aces-faq summary::-webkit-details-marker {
  display: none;
}

.aces-faq summary::after {
  content: "+";
  font-weight: 400;
  color: var(--aces-green);
  font-size: 1.4rem;
  line-height: 1;
}

.aces-faq details[open] summary::after {
  content: "–";
}

.aces-faq__links {
  margin: 0.75rem 0 0.35rem;
  padding: 0 0 0.5rem;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.aces-faq__links a {
  color: var(--aces-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.aces-faq__links a:hover {
  color: var(--aces-green);
  text-decoration: underline;
}

/* Footer */
.aces-footer {
  background: var(--aces-ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 2rem 0;
}

.aces-footer__inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.aces-footer img {
  height: 36px;
  width: auto;
}

.aces-footer p {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
}

.aces-footer a {
  color: #c5ddd8;
}

/* Reveal on scroll */
.aces-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.aces-reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes aces-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes aces-hero-ken {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.02);
  }
}

@keyframes aces-orbit-draw {
  from {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    opacity: 0;
  }
  to {
    stroke-dasharray: 1400;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* Mobile nav panel */
.aces-nav-panel {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 auto;
  background: rgba(244, 246, 245, 0.98);
  border-bottom: 1px solid var(--aces-line);
  padding: 1rem 1.25rem 1.25rem;
  z-index: 99;
}

.aces-nav-panel.is-open {
  display: block;
}

.aces-nav-panel a {
  display: block;
  padding: 0.7rem 0;
  color: var(--aces-ink);
  text-decoration: none;
  font-weight: 550;
  border-bottom: 1px solid var(--aces-line);
}

/* Modal color alignment with brand */
body.aces-landing .modal-login-header,
body.aces-landing .btn-login-submit {
  background: linear-gradient(135deg, var(--aces-green) 0%, var(--aces-green-deep) 100%);
}

body.aces-landing .modal-login-input-group .input-icon,
body.aces-landing .link-forgot-password,
body.aces-landing .btn-modal-close {
  color: var(--aces-green);
}

body.aces-landing .btn-modal-close {
  border-color: var(--aces-green);
}

body.aces-landing .btn-modal-close:hover {
  background: var(--aces-green);
  border-color: var(--aces-green);
  color: #fff;
}

body.aces-landing .modal-login-input-group .form-control:focus {
  border-color: var(--aces-green);
  box-shadow: 0 0 0 0.2rem rgba(57, 107, 99, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
