/* ===========================
   CognitivaMente — styles.css
   Phase 4
=========================== */

/* ---- Custom Properties ---- */
:root {
  --white:       #FFFFFF;
  --beige:       #FFF4ED;
  --beige-dark:  #F2E6DC;
  --blue:        #5F7C8A;
  --blue-light:  #7FA5B5;
  --navy:        #11263c;
  --navy-mid:    #1a3a5c;
  --btn-primary: #11263c;
  --btn-hover:   #1a3a5c;
  --text-dark:   #1c2a38;
  --text-body:   #3d5163;
  --text-muted:  #6b8395;

  --header-h:    80px;
  --container:   1240px;
  --radius:      16px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: auto;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Readex Pro', sans-serif;
  font-variation-settings: "HEXP" 0;
  font-weight: 300;
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
  max-width: 100vw;
}

body.loading { overflow: hidden; }

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

/* Botão "Conheça mais" — oculto no desktop, ativado no mobile via media query */
.btn-conheca { display: none; }

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

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', sans-serif;
  color: var(--text-dark);
  line-height: 1.2;
}

p { line-height: 1.75; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- Section Helpers ---- */
.section-tag {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-tag--light { color: rgba(255,255,255,.65); }

.section-title {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
}

.section-title--light { color: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: 50px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .3s var(--ease-out), color .3s var(--ease-out), transform .25s var(--ease-out), box-shadow .3s;
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--cta {
  background: var(--btn-primary);
  color: var(--white);
  border-color: var(--btn-primary);
}
.btn--cta:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17,38,60,.3);
}

.btn--cta-white {
  background: var(--white);
  color: var(--btn-primary);
  border-color: var(--white);
}
.btn--cta-white:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,.2);
}

.btn--servico {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
  font-size: .88rem;
}
.btn--servico:hover {
  background: var(--white);
  color: var(--btn-primary);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ════════════════════════════════════
   LOADER
════════════════════════════════════ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.loader__logo {
  width: 180px;
  opacity: 0;
}

.loader__bar {
  width: 200px;
  height: 3px;
  background: rgba(17,38,60,.12);
  border-radius: 99px;
  overflow: hidden;
}

.loader__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--navy);
  border-radius: 99px;
  transform-origin: left;
}

/* ════════════════════════════════════
   HEADER
════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  transition: background .4s var(--ease-out), backdrop-filter .4s, box-shadow .4s;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo wrapper — explicit size so absolute children don't collapse it */
.header__logo {
  position: relative;
  display: block;
  width: 130px;
  height: var(--header-h);
  flex-shrink: 0;
  line-height: 0;
}

/* Both logo images share the same position — centred vertically */
.logo-img {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 130px;
  height: auto;
  max-height: 68px;
  object-fit: contain;
  display: block;
}

.logo-dark  { opacity: 0; transition: opacity .4s; }
.logo-white { opacity: 1; transition: opacity .4s; }

.header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 30px rgba(17,38,60,.08);
}
.header.scrolled .logo-dark  { opacity: 1; }
.header.scrolled .logo-white { opacity: 0; }

/* Freeze header when mobile nav is open — prevents scroll glitch */
.header.nav-open {
  height: 100vh;
  background: rgba(255,255,255,.95) !important;
  box-shadow: none !important;
}
.header.nav-open .logo-dark  { opacity: 1 !important; }
.header.nav-open .logo-white { opacity: 0 !important; }
.header.nav-open .nav__toggle span { background: var(--navy) !important; }

/* Nav */
.nav { display: flex; align-items: center; gap: 36px; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  letter-spacing: .04em;
  position: relative;
  transition: color .3s;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: width .35s var(--ease-out);
}
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }
.nav__link:hover { color: var(--white); }

.header.scrolled .nav__link { color: var(--text-body); }
.header.scrolled .nav__link:hover { color: var(--navy); }
.header.scrolled .nav__link.active { color: var(--navy); }

/* Close button — hidden on desktop */
.nav__close { display: none; }

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .25s, background .3s;
}
.header.scrolled .nav__toggle span { background: var(--navy); }
.nav__toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ════════════════════════════════════
   HERO — FULLSCREEN SLIDER
════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  max-width: 100%;
}

.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide { height: 100%; }

.hero-slide {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slide__bg {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 8s linear;
}
.swiper-slide-active .hero-slide__bg { transform: scale(1.06); }

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.08) 0%,
    rgba(0,0,0,.32) 55%,
    rgba(0,0,0,.55) 100%
  );
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  padding: 0 40px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero-slide__tag {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease-out) .2s, transform .8s var(--ease-out) .2s;
}

.hero-slide__headline {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--white);
  line-height: 1.1;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease-out) .4s, transform .9s var(--ease-out) .4s;
}

.hero-slide__headline em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,.85);
}

.hero-slide__line {
  width: 0;
  height: 3px;
  background: rgba(255,255,255,.6);
  border-radius: 2px;
  margin-top: 28px;
  transition: width .9s var(--ease-out) .75s;
}

/* Active slide — animate in */
.swiper-slide-active .hero-slide__tag     { opacity: 1; transform: translateY(0); }
.swiper-slide-active .hero-slide__headline { opacity: 1; transform: translateY(0); }
.swiper-slide-active .hero-slide__line    { width: 80px; }

/* Hero navigation */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: var(--white);
  opacity: .65;
  transition: opacity .3s;
}
.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover { opacity: 1; }
.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after { font-size: 1.4rem; font-weight: 700; }

/* Hero pagination */
.hero-pagination {
  bottom: 32px !important;
}
.hero-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,.5);
  opacity: 1;
  transition: width .3s, background .3s;
}
.hero-pagination .swiper-pagination-bullet-active {
  width: 28px;
  border-radius: 4px;
  background: var(--white);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  right: 44px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll-label {
  font-family: 'Quicksand', sans-serif;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,.2);
  border-radius: 1px;
  overflow: hidden;
}
.hero__scroll-line span {
  display: block;
  width: 100%;
  height: 40%;
  background: rgba(255,255,255,.7);
  border-radius: 1px;
  animation: scrollDrop 1.8s var(--ease-in-out) infinite;
}
@keyframes scrollDrop {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(300%); }
}

/* ════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
}
[data-reveal="up"]    { transform: translateY(50px); }
[data-reveal="left"]  { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ════════════════════════════════════
   SOBRE
════════════════════════════════════ */
.sobre {
  padding: 120px 0;
  background: var(--white);
}

.sobre__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.sobre__img-wrap {
  position: relative;
  overflow: hidden;
}

.sobre__img-wrap img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4/5;
  box-shadow: 0 24px 60px rgba(17,38,60,.15);
}

.sobre__img-deco {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  border: 2px solid var(--beige-dark);
  border-radius: var(--radius);
  z-index: -1;
}

.sobre__text .section-tag { display: block; }

.sobre__text .section-title {
  margin-bottom: 28px;
}

.sobre__text p {
  margin-bottom: 16px;
  font-size: .97rem;
  color: var(--text-body);
}

.sobre__highlight {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  font-style: italic;
  border-left: 3px solid var(--blue);
  padding-left: 16px;
  margin-top: 8px;
  margin-bottom: 16px !important;
}

.sobre__crd {
  font-size: .88rem;
  color: var(--text-muted);
}

/* ════════════════════════════════════
   VALORES
════════════════════════════════════ */
.valores-section {
  padding: 110px 0;
  background: var(--beige);
  position: relative;
}

.valores__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.valor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px 24px 40px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(17,38,60,.06);
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.valor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(17,38,60,.11);
}

.valor-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.valor-card:hover::after { transform: scaleX(1); }

.valor-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #11263c 0%, #1f4a6e 100%);
  border-radius: 18px;
  color: var(--white);
  flex-shrink: 0;
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.valor-card:hover .valor-card__icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 24px rgba(17,38,60,.25);
}
.valor-card__icon svg {
  width: 28px;
  height: 28px;
}

.valor-card h4 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  letter-spacing: .02em;
  text-align: center;
}

/* ════════════════════════════════════
   SERVIÇOS — FULLSCREEN SLIDER
════════════════════════════════════ */
.servicos {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  max-width: 100%;
}

.servicos__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  text-align: center;
  padding: 56px 40px 0;
  pointer-events: none;
}

.servicos-swiper,
.servicos-swiper .swiper-wrapper,
.servicos-swiper .swiper-slide { height: 100%; }

.servico-slide {
  position: relative;
  display: flex;
  align-items: flex-end;
}

.servico-slide__bg {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  transition: transform 7s linear;
}
.swiper-slide-active .servico-slide__bg { transform: scale(1.05); }

.servico-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5,15,28,.92) 0%,
    rgba(5,15,28,.65) 45%,
    rgba(5,15,28,.2) 100%
  );
}

.servico-slide__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 80px;
}

.servico-slide__inner {
  max-width: 620px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s var(--ease-out) .2s, transform .8s var(--ease-out) .2s;
}
.swiper-slide-active .servico-slide__inner {
  opacity: 1;
  transform: translateY(0);
}

.servico-slide__num {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255,255,255,.12);
  line-height: 1;
  margin-bottom: -8px;
}

.servico-slide__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.servico-slide__text {
  font-size: .95rem;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  margin-bottom: 28px;
}

.servicos-swiper .swiper-button-prev,
.servicos-swiper .swiper-button-next {
  color: var(--white);
  opacity: .5;
  transition: opacity .3s;
}
.servicos-swiper .swiper-button-prev:hover,
.servicos-swiper .swiper-button-next:hover { opacity: 1; }
.servicos-swiper .swiper-button-prev::after,
.servicos-swiper .swiper-button-next::after { font-size: 1.2rem; font-weight: 700; }

.servicos-pagination {
  bottom: 24px !important;
}
.servicos-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,.4);
  opacity: 1;
  transition: width .3s, background .3s;
}
.servicos-pagination .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 4px;
  background: var(--white);
}

/* ════════════════════════════════════
   NOSSA HISTÓRIA
════════════════════════════════════ */
.historia {
  position: relative;
  padding: 120px 0 140px;
  background: linear-gradient(160deg, #f8f6f3 0%, #f1ede7 100%);
}

.historia__bg-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.historia__bg-deco::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(95,124,138,.18) 0%, transparent 62%);
}

.historia__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}

.historia__text {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.historia__label {
  display: flex;
  flex-direction: column;
}

.historia__label .section-tag {
  font-size: .7rem;
  letter-spacing: .24em;
  color: var(--blue);
  opacity: .85;
}

.historia__label .section-title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--text-dark);
  margin-top: 8px;
}

.historia__label::after {
  content: '';
  display: block;
  width: 52px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  border-radius: 2px;
  margin-top: 18px;
}

.historia__blocks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.historia__p {
  font-size: .98rem;
  color: #5a6875;
  line-height: 1.85;
  text-align: left;
}

.historia__p--emphasis {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  color: var(--text-dark);
}

.historia__collage {
  display: flex;
  gap: 14px;
  align-items: stretch;
  height: 480px;
}

.historia__collage-deco { display: none; }

.historia__photo {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .45s var(--ease-out);
}

.historia__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .65s var(--ease-out);
  display: block;
}

.historia__photo:hover { transform: scale(1.01); }
.historia__photo:hover img { transform: scale(1.05); }

/* ════════════════════════════════════
   EQUIPE — FULL-BLEED MAGAZINE CARDS
════════════════════════════════════ */
.equipe {
  padding: 0;
  background: var(--navy);
}

.equipe__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  min-height: 92vh;
}

.psi-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  cursor: default;
}

.psi-card + .psi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,.12);
  z-index: 5;
}

.psi-card__img-wrap {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  overflow: hidden;
}

.psi-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .9s var(--ease-out), filter .6s var(--ease-out);
}
.psi-card:hover .psi-card__img {
  transform: scale(1.07);
  filter: brightness(.45);
}

.psi-card__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,22,36,.96) 0%,
    rgba(10,22,36,.65) 30%,
    rgba(10,22,36,.15) 60%,
    transparent 100%
  );
  transition: opacity .5s;
}
.psi-card:hover .psi-card__img-overlay {
  opacity: .85;
}

.psi-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 3;
  transform: translateY(calc(100% - 124px));
  transition: transform .55s var(--ease-out);
}

.psi-card:hover .psi-card__body {
  transform: translateY(0);
}

.psi-card__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.psi-card__name {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--white);
  line-height: 1.1;
}

.psi-card__role {
  font-family: 'Quicksand', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.psi-card__role::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--blue-light);
  border-radius: 2px;
  margin-top: 10px;
  transition: width .4s var(--ease-out) .1s;
}
.psi-card:hover .psi-card__role::after { width: 56px; }

.psi-card__bio {
  font-size: .88rem;
  color: rgba(255,255,255,.82);
  line-height: 1.75;
  opacity: 0;
  transition: opacity .38s var(--ease-out) .28s;
}
.psi-card:hover .psi-card__bio {
  opacity: 1;
}

/* ════════════════════════════════════
   CTA
════════════════════════════════════ */
.cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 50%, #2a5a7c 100%);
}
.cta__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(95,124,138,.25) 0%, transparent 70%);
}

.cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
}

.cta__text {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 480px;
  margin-bottom: 8px;
}

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.footer {
  background: #0c1e2e;
  color: rgba(255,255,255,.65);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 60px;
  padding-top: 72px;
  padding-bottom: 56px;
}

.footer__logo {
  height: auto;
  width: 80px;
  margin-bottom: 16px;
  opacity: .9;
}

.footer__tagline {
  font-size: .9rem;
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  color: rgba(255,255,255,.65);
  transition: background .3s, color .3s, border-color .3s;
}
.footer__social-link:hover {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border-color: rgba(255,255,255,.35);
}
.footer__social-link svg { width: 16px; height: 16px; }

.footer__nav-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 20px;
}

.footer__nav-list li + li,
.footer__contact-list li + li { margin: 12px 0; }

.footer__nav-list a,
.footer__contact-list a {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  transition: color .25s;
}
.footer__nav-list a:hover,
.footer__contact-list a:hover { color: var(--white); }

.footer__contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__contact-list svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: .5;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px 0;
}
.footer__bottom p {
  font-size: .82rem;
  color: rgba(255,255,255,.3);
  text-align: center;
}
.footer__bottom strong { color: rgba(255,255,255,.5); font-weight: 600; }

/* ════════════════════════════════════
   WHATSAPP FLOAT
════════════════════════════════════ */
.whatsapp-float-wrap {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.wa-menu {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.16);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 215px;
  transform: scale(.9) translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
  transform-origin: bottom right;
}
.whatsapp-float-wrap.open .wa-menu {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.wa-menu__title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #999;
  padding: 2px 6px 8px;
  border-bottom: 1px solid #f2f2f2;
  margin-bottom: 4px;
}
.wa-menu__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  transition: background .15s;
}
.wa-menu__opt:hover { background: #f4fdf8; }
.wa-menu__opt svg { width: 21px; height: 21px; flex-shrink: 0; fill: #25D366; }
.wa-menu__opt strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; }
.wa-menu__opt span { display: block; font-size: 12px; color: #666; }
.whatsapp-float {
  position: relative;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37,211,102,.55);
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.5);
  animation: waPulse 2.2s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ---- WhatsApp modal ---- */
.wa-modal {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.wa-modal.open { opacity: 1; pointer-events: auto; }
.wa-modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.wa-modal-box {
  position: relative; background: #fff; border-radius: 18px;
  padding: 28px 24px; width: min(380px, 92vw);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  transform: translateY(16px); transition: transform .25s ease;
}
.wa-modal.open .wa-modal-box { transform: translateY(0); }
.wa-modal-close {
  position: absolute; top: 14px; right: 14px; border: none; background: #f5f5f5;
  border-radius: 50%; width: 30px; height: 30px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.wa-modal-close:hover { background: #eaeaea; }
.wa-modal-close svg { width: 15px; height: 15px; stroke: #555; fill: none; }
.wa-modal-ico { width: 50px; height: 50px; border-radius: 50%; background: #e8faf0; display: flex; align-items: center; justify-content: center; margin: 0 0 14px; }
.wa-modal-ico svg { width: 26px; height: 26px; fill: #25D366; }
.wa-modal-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; color: #1a1a2e; }
.wa-modal-sub { font-size: 13.5px; color: #777; margin: 0 0 18px; }
.wa-modal-opt {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border: 1.5px solid #eee; border-radius: 12px; text-decoration: none;
  color: #333; transition: border-color .15s, background .15s; margin-bottom: 8px;
}
.wa-modal-opt:last-child { margin-bottom: 0; }
.wa-modal-opt:hover { border-color: #25d366; background: #f4fdf8; }
.wa-modal-opt svg { width: 24px; height: 24px; flex-shrink: 0; fill: #25D366; }
.wa-modal-opt-info strong { display: block; font-size: 14px; font-weight: 600; }
.wa-modal-opt-info span { display: block; font-size: 12.5px; color: #666; }

/* ════════════════════════════════════
   ATIVIDADES — CARROSSEL INFINITO
════════════════════════════════════ */
.atividades {
  padding: 96px 0 0;
  background: var(--beige);
  overflow: hidden;
  margin-bottom: 0;
}

.ativ-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.92);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(17,38,60,.18);
  backdrop-filter: blur(6px);
  transition: background .3s var(--ease-out), color .3s, transform .25s var(--ease-out), box-shadow .3s;
}
.ativ-arrow:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 28px rgba(17,38,60,.28);
}
.ativ-arrow svg { width: 20px; height: 20px; }

.ativ-arrow--prev { left: 20px; }
.ativ-arrow--next { right: 20px; }

.atividades__header {
  text-align: center;
  padding: 0 40px;
  margin-bottom: 52px;
}

.atividades__carousel {
  position: relative;
  overflow: hidden;
}

.atividades__carousel:hover .atividades__track {
  animation-play-state: paused;
}

.atividades__track {
  display: flex;
  gap: 0;
  width: max-content;
  padding: 0;
  animation: atividadesScroll 42s linear infinite;
  will-change: transform;
}

@keyframes atividadesScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ativ-card {
  position: relative;
  width: 320px;
  height: 550px;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}

.ativ-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .7s var(--ease-out);
}
.ativ-card:hover .ativ-card__bg { transform: scale(1.06); }

.ativ-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,18,30,.88) 0%,
    rgba(8,18,30,.45) 38%,
    transparent 65%
  );
  transition: opacity .4s var(--ease-out);
}
.ativ-card:hover .ativ-card__overlay { opacity: .85; }

.ativ-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 22px;
}

.ativ-card__tag {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 6px;
}

.ativ-card__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 0;
  transition: margin-bottom .35s var(--ease-out);
}
.ativ-card:hover .ativ-card__title { margin-bottom: 10px; }

.ativ-card__text {
  font-size: .8rem;
  color: rgba(255,255,255,.78);
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .45s var(--ease-out),
              opacity    .4s  var(--ease-out) .08s;
}
.ativ-card:hover .ativ-card__text {
  max-height: 400px;
  opacity: 1;
}

.ativ-card.tapped .ativ-card__bg      { transform: scale(1.06); }
.ativ-card.tapped .ativ-card__overlay { opacity: .85; }
.ativ-card.tapped .ativ-card__title   { margin-bottom: 10px; }
.ativ-card.tapped .ativ-card__text    { max-height: 400px; opacity: 1; }

/* ════════════════════════════════════
   RESPONSIVE — 1024px
════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .container { padding: 0 28px; }

  .header__logo { width: 116px; }
  .logo-img { width: 116px; max-height: 60px; }
  .footer__logo { width: 72px; }

  .sobre__inner { gap: 48px; }

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

  .historia__inner { grid-template-columns: 1fr 320px; gap: 48px; }
  .historia__collage { height: 420px; gap: 10px; }

  .equipe__grid {
    grid-template-columns: repeat(2, 1fr);
    min-height: auto;
  }
  .psi-card { min-height: 70vh; }
  .psi-card__body { transform: translateY(0); }
  .psi-card__bio  { opacity: 1; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px;}
  .footer__brand { grid-column: 1 / -1; padding-top: 20px;}
}

/* ════════════════════════════════════
   RESPONSIVE — 768px
════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .container { padding: 0 20px; }

  .header__logo { width: 104px; }
  .logo-img { width: 104px; max-height: 52px; }
  .footer__logo { width: 68px; }

  .historia { padding: 80px 0 96px; }
  .historia__inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .historia__collage { order: -1; }

  .hero { height: 78vh; min-height: 480px; }
  .historia__collage { height: auto; aspect-ratio: 3/2; gap: 8px; }
  .historia__photo { border-radius: 10px; }
  .historia__photo img { object-position: center center; }

  .nav__toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    transform: translateX(100%);
    transition: transform .4s var(--ease-out);
    z-index: 850;
  }
  .nav.open { transform: translateX(0); }

  .nav__toggle.open span { background: var(--navy) !important; }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
  }
  .nav__list li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #f0e8e0;
  }
  .nav__link {
    display: block;
    padding: 18px 24px;
    font-size: 1rem;
    color: var(--text-dark) !important;
  }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 24px; }

  .nav__close {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid #e8ddd5;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
  }
  .nav__close span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    position: absolute;
  }
  .nav__close span:nth-child(1) { transform: rotate(45deg); }
  .nav__close span:nth-child(2) { transform: rotate(-45deg); }

  .footer__brand { text-align: center; align-items: center; display: flex; flex-direction: column; }
  .footer__logo { width: 80px; display: block; margin-left: auto; margin-right: auto; }

  .sobre__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sobre__img-deco { display: none; }

  .valores__grid { grid-template-columns: repeat(2, 1fr); }
  .valor-card { padding: 40px 20px 36px; }

  .servicos { height: auto; min-height: unset; }
  .servicos-swiper,
  .servicos-swiper .swiper-wrapper,
  .servicos-swiper .swiper-slide { height: auto; min-height: unset; }
  .servico-slide { align-items: flex-end; }
  .servico-slide__content { padding-bottom: 80px; padding-top: 120px; padding-left: 64px; padding-right: 64px; }
  .servico-slide__inner { max-width: 100%; }
  .servico-slide__text { font-size: .88rem; }

  .equipe__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .psi-card { min-height: 80vh; }
  .psi-card__body { transform: translateY(0); }
  .psi-card__bio  { opacity: 1; }
  .psi-card + .psi-card::before { display: none; }

  .hero__scroll { display: none; }

  .btn-conheca {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    background: none;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 20px;
    color: rgba(255,255,255,.85);
    font-family: 'Quicksand', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    padding: 7px 16px;
    cursor: pointer;
    transition: background .25s, border-color .25s, color .25s;
  }
  .btn-conheca::after {
    content: '↓';
    display: inline-block;
    transition: transform .3s;
  }
  .btn-conheca[aria-expanded="true"]::after { transform: rotate(180deg); }
  .btn-conheca:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.7);
    color: #fff;
  }

  .psi-card__bio {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: max-height .4s ease;
  }
  .psi-card.expanded .psi-card__bio {
    display: block;
    overflow: visible;
  }

  .ativ-card__text,
  .ativ-card.tapped .ativ-card__text,
  .ativ-card:hover  .ativ-card__text {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    opacity: 1 !important;
    max-height: none !important;
    transition: none;
  }
  .ativ-card.expanded .ativ-card__text {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
  }

  .hero-slide__content { padding: 0 64px; }
  .hero-slide__headline { font-size: clamp(1.6rem, 7vw, 2.6rem); line-height: 1.2; }
  .hero-slide__tag { margin-bottom: 10px; }

  .sobre__img-wrap { overflow: visible; }
  .sobre__img-wrap img { aspect-ratio: 4/5; }

  .servico-slide__bg { background-position: top center; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__brand { grid-column: auto; }

  .whatsapp-float-wrap { bottom: 20px; right: 20px; }

  .atividades { padding-top: 60px; }
  .ativ-card  { width: 100vw; height: 520px; flex-shrink: 0; }
  .atividades__track { animation: none !important; gap: 0; padding: 0; width: auto; }
  .ativ-arrow { display: flex; }
}

/* ════════════════════════════════════
   RESPONSIVE — 480px
════════════════════════════════════ */
@media (max-width: 480px) {
  .header__logo { width: 94px; }
  .logo-img { width: 94px; max-height: 48px; }
  .footer__logo { width: 64px; }

  .sobre { padding: 72px 0; }
  .valores-section { padding: 72px 0; }
  .historia { padding: 72px 0; }
  .cta { padding: 80px 0; }

  .valores__grid { grid-template-columns: 1fr 1fr; }
  .valor-card { padding: 32px 14px 28px; gap: 16px; }
  .valor-card__icon { width: 56px; height: 56px; }

  .historia { padding: 64px 0 72px; }
  .historia__collage { aspect-ratio: 4/3; gap: 6px; }
  .historia__p { font-size: .94rem; line-height: 1.8; }
  .historia__p--emphasis { font-size: 1.1rem; }

  .valores-section .section-header { margin-bottom: 48px; }

  .servico-slide__num { font-size: 2.4rem; }
  .servico-slide__title { font-size: 1.3rem; }
  .servico-slide__text { font-size: .82rem; line-height: 1.6; }
  .servico-slide__content { padding-bottom: 36px; padding-top: 60px; padding-left: 64px; padding-right: 64px; }

  .psi-card { min-height: 70vh; }
}
