/*
 * UpKate — cores mapeadas dos screenshots originais, outubro de 2026.
 * Valores de referência: conferir com o manual/CSS original antes do fechamento.
 * Alias --uk-teal mantido temporariamente para evitar retrabalho nos componentes.
 */
:root {
  --uk-purple: #4b3068;
  --uk-magenta: #b9476a;
  --uk-magenta-rich: #962f57;
  --uk-lavender: #edecf2;
  --uk-cream: #f5e9d9;
  --uk-teal: var(--uk-purple);
  --uk-teal-dark: #35204f;
  --uk-ink: #35204f;
  --uk-muted: #6e6178;
  --uk-peach: #f6cfa9;
  --uk-peach-soft: #f8debf;
  --uk-ivory: var(--uk-cream);
  --uk-mist: var(--uk-lavender);
  --uk-white: #fff;
  --uk-border: #e2dce8;
  --uk-radius: 5px;
  --uk-width: 1180px;
  --uk-space: clamp(4.5rem, 8vw, 8rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--uk-white);
  color: var(--uk-ink);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--uk-peach);
  outline-offset: 4px;
}
p,
h1,
h2,
h3 {
  margin-top: 0;
}
p {
  margin-bottom: 1.25rem;
}
h1,
h2,
h3 {
  line-height: 1.13;
  letter-spacing: -0.035em;
  font-weight: 650;
}
h1 {
  font-size: clamp(2.8rem, 5.4vw, 5.1rem);
}
h2 {
  font-size: clamp(2.2rem, 4.3vw, 3.7rem);
}
h3 {
  font-size: clamp(1.45rem, 2.1vw, 2rem);
}
::selection {
  background: var(--uk-peach);
  color: var(--uk-ink);
}

.uk-container {
  width: min(100% - 2.5rem, var(--uk-width));
  margin-inline: auto;
}
.uk-section {
  padding-block: var(--uk-space);
  scroll-margin-top: 6.5rem;
}
.uk-section--ivory {
  background: var(--uk-ivory);
}
.uk-section--white {
  background: var(--uk-white);
}
.uk-section--mist {
  background: var(--uk-mist);
}
.uk-section--contact {
  background: var(--uk-teal-dark);
  color: var(--uk-white);
}
.uk-eyebrow {
  margin: 0 0 1.4rem;
  color: var(--uk-magenta-rich);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.uk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.4rem;
}
.uk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 50px;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.35;
  text-decoration: none;
  text-align: center;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}
.uk-button:hover {
  transform: translateY(-2px);
}
.uk-button--peach {
  background: var(--uk-peach);
  color: #253b3f;
}
.uk-button--peach:hover {
  background: var(--uk-peach-soft);
}
/* Primary light CTA on the dark hero/contact blocks — no cream background. */
.uk-button--light {
  background: var(--uk-white);
  color: var(--uk-purple);
  border-color: var(--uk-white);
}
.uk-button--light:hover {
  background: var(--uk-lavender);
  border-color: var(--uk-lavender);
}
.uk-button--outline-purple {
  background: transparent;
  border-color: var(--uk-purple);
  color: var(--uk-purple);
}
.uk-button--outline-purple:hover {
  background: var(--uk-purple);
  color: #fff;
}
.uk-button--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.94);
  color: var(--uk-white);
}
.uk-button--outline-light:hover {
  background: var(--uk-white);
  border-color: var(--uk-white);
  color: var(--uk-purple);
}
.uk-button--magenta {
  background: var(--uk-magenta);
  border-color: var(--uk-magenta);
  color: var(--uk-white);
}
.uk-button--magenta:hover {
  background: #a53d60;
  border-color: #a53d60;
  color: var(--uk-white);
}
.uk-button--contact {
  font-size: 0.94rem;
  gap: 0.7rem;
  padding-inline: 1.3rem;
}
.uk-button__icon {
  display: block;
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

.uk-button--primary {
  background: var(--uk-magenta-rich);
  color: var(--uk-white);
}
.uk-button--primary:hover {
  background: #792143;
}
.uk-button--ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--uk-white);
}
.uk-button--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.uk-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.9rem;
  color: var(--uk-teal-dark);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.32em;
}
.uk-text-link:hover {
  text-decoration-thickness: 2px;
}

/* Header: default -> scrolling down (hidden) -> scrolling up (visible). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--uk-teal);
  color: var(--uk-white);
  border-bottom: 0;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  will-change: transform;
}
.site-header[data-scroll-state="down"] {
  transform: translateY(calc(-100% - 2px - var(--uk-header-top-offset, 0px)));
  pointer-events: none;
}
.site-header[data-scroll-state="up"] {
  box-shadow: 0 8px 25px rgba(18, 39, 43, 0.18);
}
/* Keep an offscreen header visible for keyboard navigation, not mouse click focus. */
.site-header:has(:focus-visible) {
  transform: translateY(0);
  pointer-events: auto;
}
.admin-bar .site-header {
  top: 32px;
  --uk-header-top-offset: 32px;
}
.uk-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 3rem);
  min-height: 99px;
  padding-block: 0.85rem;
}
.uk-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 180px;
  text-decoration: none;
}
.uk-brand img {
  width: 100%;
  height: auto;
}
.site-header .uk-brand {
  max-width: 220px;
}
.uk-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.4rem clamp(0.9rem, 1.8vw, 1.8rem);
}
.uk-nav a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--uk-white);
  font-size: clamp(0.98rem, 1.15vw, 1.075rem);
  font-weight: 450;
  line-height: 1.5;
  text-decoration: none;
}
.uk-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.22rem;
  height: 2px;
  background: var(--uk-white);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s ease;
}
.uk-nav a:hover::after,
.uk-nav a:focus-visible::after {
  transform: scaleX(1);
}
.uk-nav .uk-nav__contact {
  color: var(--uk-white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  padding: 0.42rem 0.88rem;
}

.uk-nav .uk-nav__contact:hover,
.uk-nav .uk-nav__contact:focus-visible {
  color: var(--uk-white);
  border-color: var(--uk-white);
}

/* Hero: live HTML copy + original portrait without embedded text. */
.uk-hero {
  background: var(--uk-magenta);
  color: var(--uk-white);
  padding-block: clamp(3.5rem, 5vw, 6.5rem);
  overflow: hidden;
}
.uk-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 7rem);
}
.uk-hero__content {
  padding-block: 1rem 2rem;
}
.uk-hero .uk-eyebrow {
  color: var(--uk-white);
}
.uk-hero h1 {
  max-width: 750px;
  margin-bottom: 1.7rem;
}
.uk-hero h1 em {
  color: var(--uk-lavender);
  font-style: normal;
}
.uk-lead {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.06rem, 1.7vw, 1.25rem);
}
.uk-hero__visual {
  position: relative;
  width: 100%;
  max-width: 490px;
  margin-inline: auto;
}
.uk-hero__photo {
  display: grid;
  align-items: end;
  overflow: hidden;
  min-height: 450px;
  height: clamp(460px, 44vw, 610px);
  background: var(--uk-peach-soft);
  border-radius: 240px 240px 10px 10px;
}
.uk-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
}
.uk-hero__visual-caption {
  display: block;
  margin-top: 1rem;
  text-align: right;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
}

/* About */
.uk-about {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 8rem);
}
.uk-about__media {
  max-width: 450px;
  position: relative;
}
.uk-about__media::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1rem -1rem 1.25rem;
  background: var(--uk-magenta);
  border-radius: 5px;
}
.uk-about__media img {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 570px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 5px;
}
.uk-about__content {
  font-size: 1.08rem;
}
.uk-about__content h2 {
  max-width: 750px;
  margin-bottom: 1.8rem;
}

/* Solutions: two equivalent entry points on one continuous surface. */
.uk-section__heading {
  max-width: 850px;
  margin-bottom: 3rem;
}
.uk-section__heading h2 {
  margin-bottom: 1.2rem;
}
.uk-section__heading > p:last-child {
  color: var(--uk-muted);
  font-size: 1.1rem;
}
.uk-solutions-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 0;
  border-radius: 5px;
}
.uk-solution {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 380px;
  padding: clamp(2rem, 4.2vw, 4.25rem);
  color: #fff;
  scroll-margin-top: 7.5rem;
}
.uk-solution--people {
  background: var(--uk-purple);
}
.uk-solution--companies {
  background: var(--uk-magenta);
}
.uk-solution__tag {
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: 0.105em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
}
.uk-solution h3 {
  max-width: 18ch;
  color: #fff;
  font-size: clamp(1.65rem, 2.3vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 1.15rem;
}
.uk-solution > p:not(.uk-solution__tag) {
  max-width: 47ch;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.uk-solution .uk-button {
  margin-top: auto;
}

/* Strengths */
.uk-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 8rem);
}
.uk-feature__content {
  max-width: 610px;
  font-size: 1.07rem;
}
.uk-feature__content h2 {
  margin-bottom: 1.6rem;
}
.uk-feature__content .uk-button {
  margin-top: 1.25rem;
}
.uk-feature__image img {
  width: 100%;
  max-height: 550px;
  object-fit: cover;
  border-radius: 220px 220px 8px 8px;
}

/* Contact, footer, and floating WhatsApp */
.uk-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.uk-contact h2 {
  max-width: 730px;
  margin-bottom: 1.5rem;
}
.uk-contact p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
}
.uk-contact .uk-eyebrow {
  color: var(--uk-white);
  background: transparent;
  padding: 0;
  letter-spacing: 0.15em;
}
.uk-contact > .uk-button {
  flex-shrink: 0;
}
.site-footer {
  background: var(--uk-teal);
  color: var(--uk-white);
  padding-block: 2.5rem;
}
.uk-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.uk-footer-inner p {
  margin: 0;
  font-size: 0.85rem;
}
.site-footer .uk-brand {
  max-width: 155px;
}
.uk-whatsapp {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 150;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: var(--uk-white);
  background: #25d366;
  box-shadow: 0 5px 19px rgba(0, 0, 0, 0.24);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.uk-whatsapp:hover {
  transform: translateY(-3px) scale(1.04);
  background: #1ebe59;
}
.uk-whatsapp:focus-visible {
  outline: 3px solid var(--uk-teal-dark);
  outline-offset: 3px;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  top: 1rem;
  left: 1rem;
  z-index: 999;
  background: var(--uk-white);
  color: var(--uk-ink);
  padding: 0.75rem;
}

/* Apenas o template genérico index.php recebe essa contenção.
 * Artigos, páginas editoriais e SEO precisam ter cabeçalho full-bleed. */
main#conteudo:not(.uk-inner) > article {
  width: min(100% - 2.5rem, var(--uk-width));
  margin: 3rem auto;
}

@media (max-width: 980px) {
  .uk-header-inner {
    min-height: 78px;
    gap: 1.5rem;
  }
  .site-header .uk-brand {
    max-width: 192px;
  }
  .uk-nav ul {
    gap: 0.25rem 1rem;
  }
  .uk-hero__inner {
    gap: 2rem;
  }
  .uk-hero__photo {
    min-height: 370px;
    height: 470px;
  }
  .uk-hero h1 {
    font-size: clamp(2.7rem, 5vw, 4rem);
  }
}
@media (max-width: 760px) {
  .uk-container {
    width: min(100% - 2rem, var(--uk-width));
  }
  .uk-section {
    scroll-margin-top: 9rem;
  }
  .uk-header-inner {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    gap: 0.55rem;
    padding-block: 0.7rem;
  }
  .site-header .uk-brand {
    max-width: 168px;
  }
  .uk-nav {
    width: 100%;
  }
  .uk-nav ul {
    gap: 0 1rem;
  }
  .uk-nav a {
    font-size: 0.96rem;
    padding: 0.35rem 0;
  }
  .uk-hero__inner,
  .uk-about,
  .uk-feature,
  .uk-solutions-pair {
    grid-template-columns: 1fr;
  }
  .uk-solution {
    min-height: 330px;
    padding: clamp(1.8rem, 6vw, 3rem);
  }
  .uk-hero {
    padding-top: 2.75rem;
  }
  .uk-hero__content {
    padding-bottom: 0;
  }
  .uk-hero__visual {
    max-width: 410px;
  }
  .uk-hero__photo {
    height: 450px;
    min-height: 0;
  }
  .uk-about__media {
    max-width: 390px;
    margin-inline: auto;
  }
  .uk-about__content {
    order: -1;
  }
  .uk-feature__image {
    max-width: 450px;
  }
  .uk-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
  }
  .uk-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .uk-whatsapp {
    height: 56px;
    width: 56px;
  }
}
@media (max-width: 480px) {
  .uk-hero__photo {
    height: 370px;
  }
  .uk-hero__visual-caption {
    font-size: 0.7rem;
  }
  .uk-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .uk-actions .uk-button {
    width: 100%;
  }
  .uk-feature__content .uk-button {
    width: 100%;
  }
  .uk-contact > .uk-button {
    width: 100%;
  }
}
@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
    --uk-header-top-offset: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .site-header,
  .uk-button,
  .uk-whatsapp,
  .uk-nav a::after {
    transition: none;
  }
}

/* Navegação mobile: progressive enhancement, visível sem JavaScript. */
.uk-menu-toggle { display: none; }
@media (max-width: 760px) {
  .uk-header-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    padding-block: .75rem;
  }
  .site-header .uk-brand { max-width: 170px; }
  .uk-mobile-nav-ready .uk-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: var(--uk-radius);
    background: transparent;
    color: var(--uk-white);
    cursor: pointer;
  }
  .uk-menu-toggle__line {
    display: block;
    width: 24px;
    height: 2px;
    flex-shrink: 0;
    background: currentColor;
    border-radius: 1px;
    transform-origin: center;
    transition: transform .2s ease, opacity .2s ease;
  }
  .site-header[data-menu-open="true"] .uk-menu-toggle__line:first-child {
    transform: translateY(7px) rotate(45deg);
  }
  .site-header[data-menu-open="true"] .uk-menu-toggle__line:nth-child(2) {
    opacity: 0;
  }
  .site-header[data-menu-open="true"] .uk-menu-toggle__line:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }
  /* Dropdown is separated from hero artwork and always has solid contrast. */
  .uk-mobile-nav-ready .site-header .uk-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    width: 100%;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    padding: 1rem max(1rem, calc((100vw - var(--uk-width)) / 2));
    background: var(--uk-purple);
    border-top: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 12px 22px rgba(28,18,38,.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .uk-mobile-nav-ready .site-header[data-menu-open="true"] .uk-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .uk-mobile-nav-ready .site-header .uk-nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: .2rem;
    margin: 0;
  }
  .uk-mobile-nav-ready .site-header .uk-nav a {
    display: block;
    width: fit-content;
    max-width: 100%;
    padding: .8rem .3rem;
    font-size: 1rem;
  }
  .uk-mobile-nav-ready .site-header .uk-nav .uk-nav__contact {
    margin-top: .55rem;
    padding: .65rem 1rem;
  }
  /* The inner-page sticky header is not allowed to clip the dropdown. */
  .site-header { overflow: visible; }
  .uk-section { scroll-margin-top: 5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .uk-menu-toggle__line,
  .uk-mobile-nav-ready .site-header .uk-nav { transition: none; }
}

/* Links legais: discretos no rodapé, inclusive nas páginas internas. */
.uk-footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.84rem;
}
.uk-footer-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-color: rgba(255, 255, 255, 0.55);
}
.uk-footer-legal a:hover {
  text-decoration-color: currentColor;
}
