/* =========================================================
   Alma — almacontent.com.br
   Folha de estilo principal
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --blue: #1440A2;
  --blue-deep: #0d2f7d;
  --blue-soft: #1d4cb4;
  --cream: #e8dfd9;
  --cream-70: rgba(232, 223, 217, 0.78);
  --cream-45: rgba(232, 223, 217, 0.62);
  --line: rgba(232, 223, 217, 0.16);
  --line-strong: rgba(232, 223, 217, 0.4);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --font-alt: "Lexend", "Inter", system-ui, sans-serif;
  --font-tight: "Inter Tight", "Inter", system-ui, sans-serif;

  --header-h: 78px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1180px;
  --section-pad: clamp(4.5rem, 9vw, 8rem);
  --radius: 12px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background-color: var(--blue);
  background-image:
    radial-gradient(1200px 820px at 82% -10%, rgba(61, 110, 214, 0.42), transparent 62%),
    radial-gradient(900px 700px at -5% 8%, rgba(11, 40, 112, 0.4), transparent 60%),
    linear-gradient(180deg, #1643a6 0%, #1440a2 45%, #113a94 100%);
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

::selection {
  background: var(--cream);
  color: var(--blue);
}

:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- Utilitários ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}

.container--narrow {
  max-width: 720px;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  background: var(--cream);
  color: var(--blue);
  font-family: var(--font-tight);
  font-weight: 500;
  transition: top 0.25s var(--ease);
}

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

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background-color: rgba(13, 45, 116, 0.82);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 12px 40px -30px rgba(0, 0, 0, 0.9);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: 1320px;
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  padding-block: 0.3rem;
}

.brand__mark {
  width: clamp(56px, 5.5vw, 74px);
  height: auto;
}

/* ---------- Navegação ---------- */
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.4rem);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--cream-70);
  font-family: var(--font-tight);
  font-size: 0.94rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--cream);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__link--cta {
  padding: 0.5rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover,
.nav__link--cta.is-active {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--blue);
}

/* ---------- Botão do menu (mobile) ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border-radius: 50%;
  cursor: pointer;
}

.nav-toggle__box {
  position: relative;
  display: block;
  width: 24px;
  height: 15px;
}

.nav-toggle__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: var(--cream);
  transition: top 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav-toggle__bar:first-child {
  top: 0;
}

.nav-toggle__bar:last-child {
  top: 13px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
  top: 6.5px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child {
  top: 6.5px;
  transform: rotate(-45deg);
}

/* ---------- Capa ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: clamp(2rem, 6vh, 4.5rem);
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(2rem, 6vh, 4rem)) var(--gutter) clamp(2rem, 5vh, 3.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -18%;
  left: 50%;
  width: min(1500px, 130vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 62%);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero__mark {
  position: relative;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.hero__mark img {
  width: min(940px, 105vh, 100%);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 80px rgba(3, 18, 58, 0.35));
}

.hero__bottom {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 4vh, 2.5rem);
}

.hero__title {
  max-width: 54ch;
  margin-inline: auto;
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 2.15vw, 2rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.005em;
  text-align: center;
  text-wrap: balance;
}

.hero__title strong {
  font-weight: 700;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream-70);
  font-family: var(--font-tight);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.25s var(--ease);
}

.scroll-cue__icon svg {
  width: 16px;
  height: 16px;
  animation: cue-bob 2.8s ease-in-out infinite;
}

.scroll-cue:hover {
  color: var(--cream);
}

@keyframes cue-bob {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(3px);
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.has-js .hero__mark img {
  animation: hero-in 1.3s var(--ease) both;
}

.has-js .hero__title {
  animation: hero-in 1.1s var(--ease) both 0.25s;
}

.has-js .scroll-cue {
  animation: hero-in 1.1s var(--ease) both 0.45s;
}

/* ---------- Seções ---------- */
.section {
  position: relative;
  padding: var(--section-pad) var(--gutter);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section__title {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3.05rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.section__title--center {
  text-align: center;
}

/* ---------- O que fazemos ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 6vw, 5rem);
}

.services__item {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 2vw, 1.75rem);
  padding: clamp(1.1rem, 2.2vw, 1.65rem) 0;
  border-top: 1px solid var(--line);
  transition: border-color 0.35s var(--ease);
}

.services__item:last-child {
  grid-column: 1 / -1;
}

.services__index {
  flex: 0 0 auto;
  padding-top: 0.2rem;
  color: var(--cream-45);
  font-family: var(--font-tight);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  transition: color 0.35s var(--ease);
}

.services__name {
  font-family: var(--font-alt);
  font-size: clamp(1.1rem, 1.85vw, 1.62rem);
  font-weight: 300;
  line-height: 1.4;
  transition: transform 0.45s var(--ease);
}

.services__item:hover {
  border-top-color: var(--line-strong);
}

.services__item:hover .services__index {
  color: var(--cream);
}

.services__item:hover .services__name {
  transform: translateX(6px);
}

/* ---------- Quem somos ---------- */
.people {
  display: grid;
  gap: clamp(3rem, 6vw, 4.75rem);
}

.person {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4.5vw, 4rem);
  align-items: start;
}

.person + .person {
  padding-top: clamp(3rem, 6vw, 4.75rem);
  border-top: 1px solid var(--line);
}

.person__media {
  position: relative;
}

.person__media img {
  width: 100%;
  aspect-ratio: 654 / 795;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  box-shadow: 0 30px 60px -34px rgba(2, 12, 40, 0.85);
}

.person__name {
  margin-bottom: 0.9rem;
  font-family: var(--font-alt);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.005em;
  text-wrap: pretty;
}

.person__role {
  font-weight: 300;
}

.person__bio {
  max-width: 64ch;
  margin-bottom: 1.35rem;
  font-family: var(--font-alt);
  font-size: clamp(0.95rem, 1.05vw, 1.04rem);
  font-weight: 300;
  line-height: 1.78;
  color: var(--cream);
  text-wrap: pretty;
}

.person__bio strong {
  font-weight: 700;
}

.person__link {
  font-family: var(--font-alt);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--cream-70);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(232, 223, 217, 0.45);
  text-underline-offset: 0.25em;
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}

.person__link:hover {
  color: var(--cream);
  text-decoration-color: var(--cream);
}

/* ---------- Onde tem Alma ---------- */
.brands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.8vw, 1.4rem);
}

.brands__item {
  display: grid;
  place-items: center;
  min-height: clamp(110px, 12vw, 152px);
  padding: clamp(1.1rem, 2.2vw, 1.9rem);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.brands__item img {
  width: auto;
  max-width: 100%;
  max-height: clamp(38px, 4vw, 54px);
  object-fit: contain;
}

.brands__item--square img {
  max-height: clamp(62px, 6.5vw, 84px);
}

.brands__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.65);
}

/* ---------- Contato ---------- */
.section--contact {
  display: flex;
  align-items: center;
  min-height: 72vh;
  min-height: 72svh;
  padding-bottom: clamp(5rem, 10vw, 8.5rem);
}

.contact__emails {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.contact__emails a {
  font-family: var(--font-tight);
  font-size: clamp(1.12rem, 2.1vw, 1.7rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.005em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(232, 223, 217, 0.45);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.25s var(--ease);
}

.contact__emails a:hover {
  text-decoration-color: var(--cream);
}

.contact__insta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: -moz-fit-content;
  width: fit-content;
  margin-inline: auto;
  padding: 0.35rem 1.15rem 0.35rem 0.35rem;
  border-radius: 999px;
  transition: background-color 0.3s var(--ease);
}

.contact__insta:hover {
  background: rgba(232, 223, 217, 0.08);
}

.contact__insta-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--cream);
  color: var(--blue);
  transition: transform 0.45s var(--ease);
}

.contact__insta-icon svg {
  width: 25px;
  height: 25px;
}

.contact__insta:hover .contact__insta-icon {
  transform: rotate(-4deg) scale(1.04);
}

.contact__insta-handle {
  font-family: var(--font-tight);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  letter-spacing: 0.01em;
}

/* ---------- Rodapé ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(8, 30, 86, 0.32);
  padding: clamp(2.5rem, 5vw, 3.75rem) var(--gutter) clamp(1.75rem, 4vw, 2.5rem);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.5rem 2rem;
  max-width: var(--maxw);
  margin-inline: auto;
}

.site-footer__brand {
  display: inline-flex;
  width: -moz-fit-content;
  width: fit-content;
  padding: 0.25rem 0;
  opacity: 0.92;
  transition: opacity 0.25s var(--ease);
}

.site-footer__brand:hover {
  opacity: 1;
}

.site-footer__brand img {
  width: clamp(64px, 7vw, 82px);
  height: auto;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-self: end;
  gap: 0.5rem clamp(1rem, 2.4vw, 2rem);
  font-family: var(--font-tight);
  font-size: 0.86rem;
}

.site-footer__nav a {
  color: var(--cream-70);
  transition: color 0.25s var(--ease);
}

.site-footer__nav a:hover {
  color: var(--cream);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  grid-column: 1 / -1;
  margin-top: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--cream-70);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

/* ---------- Animações de entrada ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsivo ---------- */
@media (max-height: 560px) {
  .hero {
    gap: clamp(0.75rem, 2.5vh, 1.5rem);
    padding-bottom: clamp(1.25rem, 3vh, 2rem);
  }

  .hero__title {
    font-size: clamp(1rem, 2.4vw, 1.3rem);
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 1024px) {
  .person {
    grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* Sem JavaScript o botão não teria função — evita controle inerte */
  html:not(.has-js) .nav-toggle {
    display: none;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100svh - var(--header-h));
    padding: 0.5rem var(--gutter) 2rem;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 38, 100, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
      visibility 0.3s var(--ease);
  }

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

  body.nav-open {
    overflow: hidden;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link--cta {
    margin-top: 1.25rem;
    padding: 0.85rem 1.25rem;
    text-align: center;
  }

  .hero__mark img {
    width: min(720px, 105vh, 100%);
  }

  .person {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .person__media {
    max-width: 230px;
  }

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

@media (max-width: 620px) {
  .services {
    grid-template-columns: 1fr;
  }

  .services__item:last-child {
    grid-column: auto;
  }

  .services__item {
    padding: 1rem 0;
  }

  .section {
    padding-block: clamp(3.5rem, 12vw, 5rem);
  }

  .section__title {
    margin-bottom: clamp(2rem, 9vw, 3rem);
  }

  .hero__title {
    font-size: clamp(1.15rem, 4.6vw, 1.4rem);
    max-width: 32ch;
  }

  .hero__mark img {
    width: min(480px, 105vh, 100%);
  }

  .brands {
    gap: 0.7rem;
  }

  .brands__item {
    min-height: 92px;
    padding: 0.9rem;
    border-radius: 10px;
  }

  .person__media {
    max-width: 190px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-footer__nav {
    justify-self: start;
  }

  .site-footer__legal {
    flex-direction: column;
    margin-top: 0.25rem;
  }
}

@media (max-width: 380px) {
  .contact__emails a {
    font-size: 1rem;
  }
}

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

  .has-js [data-reveal],
  .has-js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .has-js .hero__mark img,
  .has-js .hero__title,
  .has-js .scroll-cue,
  .scroll-cue__icon svg {
    animation: none;
  }

  .services__item:hover .services__name,
  .brands__item:hover,
  .contact__insta:hover .contact__insta-icon {
    transform: none;
  }
}

/* ---------- Impressão ---------- */
@media print {
  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .scroll-cue,
  .site-footer__nav {
    display: none;
  }

  .section,
  .hero {
    min-height: 0;
    padding: 1.5cm 0;
    border-color: #ccc;
    break-inside: avoid;
  }

  .hero__mark img,
  .contact__insta-icon {
    filter: none;
  }

  .person__link,
  .contact__emails a {
    color: #111;
  }
}



