/*
 * UAI POINT — landing page.
 * O verde medido (#00C36E) permanece no hero, sobre o azul-marinho.
 * Botões e títulos verdes sobre fundo claro usam #00884C:
 * branco sobre #00C36E fica em 2,3:1, abaixo do contraste necessário.
 */

:root {
  --color-navy: #001e40;
  --color-navy-deep: #001a31;
  --color-accent: #00c36e;
  --color-accent-action: #00884c;
  --color-accent-action-hover: #007243;
  --color-white: #ffffff;
  --color-surface: #f7fafc;
  --color-gray: #cfd3d8;
  --color-text: #1c2833;
  --color-text-muted: #5c6770;
  --color-line: rgba(0, 32, 60, 0.1);

  --font-sans: "Avenir Next", "Century Gothic", "Trebuchet MS", "Segoe UI", sans-serif;

  --header-height: 6.5rem;
  --container: 70rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4.5rem;
  --radius-md: 1rem;
  --radius-pill: 999px;
  --shadow-card: 0 10px 28px rgba(0, 32, 60, 0.08);
  --focus: 3px solid var(--color-accent);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
}

p {
  margin: 0 0 0.9rem;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  margin: 0 0 0.85rem;
  color: var(--color-navy);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

h3 {
  margin: 0.85rem 0 0.4rem;
  color: var(--color-navy);
  font-size: 1.05rem;
}

a {
  color: inherit;
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  padding: 0.6rem 1rem;
  background: var(--color-white);
  color: var(--color-navy);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

.icon {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
  flex: none;
}

.icon--mini {
  width: 1.1rem;
  height: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
}

.btn--primary {
  background: var(--color-accent-action);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-accent-action-hover);
}

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

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn:focus-visible {
  outline-color: var(--color-navy);
}

.hero .btn--ghost:focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--color-white);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  background: var(--color-navy);
  color: var(--color-white);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--header-height);
  padding-block: 0.35rem;
}

.brand {
  position: relative;
  display: block;
  width: 10.75rem;
  aspect-ratio: 1232 / 652;
  margin-right: auto;
  overflow: hidden;
  line-height: 0;
}

.brand picture {
  position: absolute;
  inset: 0;
  display: block;
}

.brand__logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 176.3%;
  max-width: none;
  height: auto;
  transform: translate(-21.64%, -3.87%);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__icon::before {
  top: -0.4rem;
}

.nav-toggle__icon::after {
  top: 0.4rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-header__cta {
  display: none;
}

.nav-toggle,
.site-header__cta {
  flex-shrink: 0;
}

@media (min-width: 400px) and (max-width: 1099px) {
  .site-header__cta {
    display: inline-flex;
    padding-inline: 0.9rem;
  }

  .nav__cta {
    display: none;
  }
}

@media (max-width: 1099px) {
  .nav {
    position: fixed;
    z-index: 30;
    inset: var(--header-height) 0 0 0;
    padding: 0.5rem 1.25rem 2rem;
    background: var(--color-navy);
    overflow: auto;
    transform: translateX(100%);
    visibility: hidden;
  }

  .nav.is-open {
    transform: none;
    visibility: visible;
  }

  .nav__list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav__list a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav__cta {
    margin-top: 1.25rem;
  }
}

.nav__list a[aria-current="true"] {
  color: var(--color-white);
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

body.nav-open {
  overflow: hidden;
}

.hero {
  background: var(--color-navy-deep);
  color: var(--color-white);
  padding: calc(var(--header-height) + 1.35rem) 0 2rem;
}

.hero__grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 0.75rem;
  max-width: 11em;
  color: var(--color-accent);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  text-wrap: balance;
}

.hero__lead {
  max-width: 36rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.highlights {
  display: grid;
  gap: 0.7rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.highlights li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.highlights .icon {
  color: var(--color-accent);
}

.hero__visual {
  margin: 0;
  width: min(100%, 28rem);
  justify-self: center;
}

.hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.15rem;
}

.band {
  padding: 2.35rem 0;
}

.segments {
  background: var(--color-white);
  padding-bottom: 1.15rem;
}

.segment-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.segment-card {
  padding: 1.05rem 0.9rem 0.95rem;
  background: var(--color-white);
  border: 1px solid rgba(0, 32, 60, 0.06);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.segment-card h3 {
  margin: 0.55rem 0 0.3rem;
}

.segment-card .icon {
  width: 2rem;
  height: 2rem;
  margin-inline: auto;
  color: var(--color-navy);
}

.segment-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.about {
  background: var(--color-white);
  padding-top: 1.15rem;
}

.about h2 {
  margin: 0;
  color: var(--color-accent-action);
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__text {
  color: var(--color-text-muted);
}

.catalog {
  background: var(--color-surface);
  padding-top: 1.75rem;
}

.catalog__grid {
  display: grid;
  gap: 1rem;
}

.note {
  padding: 1.15rem 1.25rem 0.4rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
}

.note h2 {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.note p {
  color: var(--color-text-muted);
}

.partnership {
  background: var(--color-white);
}

.partnership p,
.contact p {
  color: var(--color-text-muted);
}

.partnership__grid .btn,
.contact__grid .btn {
  margin-top: 0.4rem;
}

.contact {
  background: var(--color-surface);
}

.contact p:last-child {
  margin-bottom: 0;
}

.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 2.25rem 0 1.25rem;
}

.site-footer__grid {
  display: grid;
  gap: 1.5rem;
}

.site-footer .brand {
  width: 10.5rem;
  margin-right: 0;
}

.site-footer__phrase {
  margin: 0.85rem 0 0;
  color: var(--color-gray);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.site-footer__legal {
  margin: 1.75rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-gray);
  font-size: 0.92rem;
}

@media (max-width: 639px) {
  .hero__actions .btn,
  .partnership__grid .btn,
  .contact__grid .btn,
  .nav__cta {
    width: 100%;
  }
}

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

@media (min-width: 768px) {
  .container {
    width: min(100% - 4rem, var(--container));
  }

  .band {
    padding: 2.75rem 0;
  }

  .hero__visual {
    width: min(100%, 26rem);
  }

  .segment-list,
  .catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__grid {
    grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1.3fr);
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .nav-toggle {
    display: none;
  }

  .site-header__cta {
    display: inline-flex;
  }

  .nav__cta {
    display: none;
  }

  .nav {
    position: static;
    visibility: visible;
    transform: none;
    padding: 0;
    background: transparent;
    overflow: visible;
  }

  .nav__list {
    display: flex;
    justify-content: center;
    gap: 1.05rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav__list a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.92rem;
  }

  .nav__list a:hover {
    color: var(--color-white);
  }

  .brand {
    width: 13.25rem;
    margin-right: 0;
  }

  .site-header__bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
  }

  .hero {
    padding: calc(var(--header-height) + 1.5rem) 0 2.25rem;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(18rem, 0.98fr);
    gap: 2rem;
  }

  .hero__visual {
    width: min(100%, 32rem);
    justify-self: end;
  }

  .segment-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .about__grid {
    display: grid;
    grid-template-columns: minmax(15rem, 0.85fr) minmax(16rem, 1.35fr);
    gap: 1.25rem 2rem;
    align-items: center;
  }

  .partnership__grid,
  .contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem 2.5rem;
    align-items: center;
  }

  .partnership__grid .btn,
  .contact__grid .btn {
    margin-top: 0;
  }
}

@media (min-width: 1440px) {
  :root {
    --container: 76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav {
    transition: none;
  }
}

@media (max-width: 1099px) and (prefers-reduced-motion: no-preference) {
  .nav {
    transition: transform 0.2s ease, visibility 0.2s ease;
  }
}
