/* =============================================
   CSS - PSICÓLOGA GABRIELA NABOZNY
   Landing Page Institucional Otimizada
   ============================================= */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2a5c5a;
  --primary-light: #3e8e8a;
  --secondary: #8fa89b;
  --accent: #c9a96e;
  --accent-hover: #b8954f;

  --white: #ffffff;
  --off-white: #f8f7f4;
  --light-gray: #e8e6e1;
  --medium-gray: #8c8c8c;
  --text: #3d3d3d;
  --text-light: #6b6b6b;

  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Lato", "Segoe UI", Tahoma, sans-serif;

  --section-padding: 6rem 0;
  --container-width: 1140px;

  --border-radius: 12px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2.4rem;
}

/* ---------- TIPOGRAFIA ---------- */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

h1 {
  font-size: clamp(3rem, 5vw, 5.6rem);
  letter-spacing: -0.5px;
}

h2 {
  font-size: clamp(2.4rem, 3.5vw, 4rem);
  margin-bottom: 2.4rem;
  position: relative;
}

h3 {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  font-weight: 600;
}

/* =============================================
   LOADER
   ============================================= */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.loader--hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__spinner {
  text-align: center;
}

.loader__icon {
  width: 5rem;
  height: 5rem;
  color: var(--primary);
}

/* =============================================
   SEÇÕES GENÉRICAS
   ============================================= */
.section {
  padding: var(--section-padding);
}

.section--alt {
  background-color: var(--off-white);
}

.section__header {
  text-align: center;
  margin-bottom: 5rem;
}

.section__tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background-color: rgba(201, 169, 110, 0.1);
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  margin-bottom: 2rem;
}

.section__tag--left {
  margin-bottom: 1.6rem;
}

.section__title {
  text-align: center;
  margin-bottom: 1.6rem;
}

.section__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 1.6rem auto 0;
  border-radius: 2px;
}

.section__description {
  max-width: 550px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.7rem;
  line-height: 1.6;
  text-align: center;
}

/* ---------- BOTÕES ---------- */
.btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn--small {
  padding: 0.8rem 2rem;
  font-size: 1.3rem;
}

.btn--large {
  padding: 1.6rem 4.8rem;
  font-size: 1.8rem;
  box-shadow: var(--shadow-md);
}

/* ---------- HEADER / NAV ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 7rem;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 3.2rem;
}

.nav__menu a:not(.btn) {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding: 0.4rem 0;
}

.nav__menu a:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav__menu a:not(.btn):hover,
.nav__menu a:not(.btn).active {
  color: var(--primary);
}

.nav__menu a:not(.btn):hover::after,
.nav__menu a:not(.btn).active::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav__overlay.active {
  display: block;
  opacity: 1;
}

/* =============================================
   HERO SECTION COM CARROSSEL (CORRIGIDO MOBILE)
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 7rem;
  touch-action: pan-y;
}

.hero__carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition:
    opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.05);
  pointer-events: none;
}

.hero__slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: none;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(30, 69, 67, 0.8) 0%,
    rgba(42, 92, 90, 0.65) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* ---------- INDICADORES ---------- */
.hero__indicators {
  position: absolute;
  bottom: 3.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.4rem;
  z-index: 20;
}

.hero__indicator {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
  outline: none;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.hero__indicator::after {
  content: "";
  position: absolute;
  top: -14px;
  left: -14px;
  right: -14px;
  bottom: -14px;
  border-radius: 50%;
}

.hero__indicator:hover {
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.hero__indicator.active {
  background-color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
  box-shadow: 0 0 16px rgba(201, 169, 110, 0.6);
}

/* ---------- SETAS DE NAVEGAÇÃO ---------- */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-size: 2rem;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hero__arrow:hover,
.hero__arrow:active {
  background-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
  border-color: var(--accent);
  color: var(--accent);
}

.hero__arrow--prev {
  left: 1.6rem;
}

.hero__arrow--next {
  right: 1.6rem;
}

/* ---------- CONTEÚDO DO HERO ---------- */
.hero__content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2.4rem;
  animation: fadeInUp 1s ease-out 0.3s both;
  pointer-events: none;
}

.hero__content .btn,
.hero__content a {
  pointer-events: auto;
}

.hero__badge {
  display: inline-block;
  background-color: rgba(201, 169, 110, 0.2);
  color: var(--accent);
  border: 1px solid rgba(201, 169, 110, 0.4);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2.4rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero__title {
  color: var(--white);
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4rem;
  font-weight: 300;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero__cta-group {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn--outline {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  box-shadow: none;
}

.btn--outline:hover {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* =============================================
   SEÇÃO SOBRE
   ============================================= */
.sobre__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.sobre__img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: var(--transition-slow);
}

.sobre__img:hover {
  transform: scale(1.02);
}

.sobre__texto h2 {
  margin-bottom: 3rem;
}

.sobre__texto h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-top: 1.6rem;
  border-radius: 2px;
}

.sobre__texto p {
  color: var(--text-light);
  margin-bottom: 1.8rem;
  font-size: 1.7rem;
}

.sobre__numeros {
  display: flex;
  gap: 3.2rem;
  margin: 3.2rem 0;
  flex-wrap: wrap;
}

.sobre__numero {
  text-align: center;
  min-width: 100px;
}

.sobre__numero-valor {
  display: block;
  font-family: var(--font-heading);
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.sobre__numero-valor::after {
  content: "+";
  color: var(--accent);
  margin-left: 2px;
}

.sobre__numero-label {
  display: block;
  font-size: 1.2rem;
  color: var(--medium-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.4rem;
}

.sobre__crp {
  font-size: 1.4rem !important;
  color: var(--medium-gray) !important;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 1rem;
}

/* =============================================
   CARDS ESPECIALIDADES
   ============================================= */
.cards-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}

.card-especialidade {
  background-color: var(--white);
  border-radius: 20px;
  padding: 3.6rem 2.8rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.card-especialidade::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--secondary),
    var(--accent),
    var(--secondary)
  );
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 0 3px 3px;
}

.card-especialidade:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(201, 169, 110, 0.2);
}

.card-especialidade:hover::before {
  width: 80%;
}

.card-especialidade__icon-wrapper {
  width: 7rem;
  height: 7rem;
  margin: 0 auto 2rem;
  background: linear-gradient(
    135deg,
    rgba(42, 92, 90, 0.06) 0%,
    rgba(143, 168, 155, 0.08) 100%
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.card-especialidade:hover .card-especialidade__icon-wrapper {
  background: linear-gradient(
    135deg,
    rgba(42, 92, 90, 0.1) 0%,
    rgba(201, 169, 110, 0.12) 100%
  );
  transform: scale(1.05) rotate(-3deg);
}

.card-especialidade__icon {
  width: 3.2rem;
  height: 3.2rem;
  color: var(--primary);
  transition: color 0.4s ease;
}

.card-especialidade:hover .card-especialidade__icon {
  color: var(--primary-light);
}

.card-especialidade h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 600;
}

.card-especialidade p {
  font-size: 1.4rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* =============================================
   CARDS SESSÕES
   ============================================= */
.cards-grid--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.4rem;
}

.card-sessao {
  background-color: var(--white);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.card-sessao::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--secondary),
    var(--accent),
    var(--secondary)
  );
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 0 3px 3px;
}

.card-sessao:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(201, 169, 110, 0.2);
}

.card-sessao:hover::before {
  width: 80%;
}

.card-sessao__icon-wrapper {
  width: 6.5rem;
  height: 6.5rem;
  margin: 0 auto 2rem;
  background: linear-gradient(
    135deg,
    rgba(42, 92, 90, 0.06) 0%,
    rgba(143, 168, 155, 0.08) 100%
  );
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.card-sessao:hover .card-sessao__icon-wrapper {
  background: linear-gradient(
    135deg,
    rgba(42, 92, 90, 0.1) 0%,
    rgba(201, 169, 110, 0.12) 100%
  );
  transform: scale(1.05) rotate(-3deg);
}

.card-sessao__icon {
  width: 3rem;
  height: 3rem;
  color: var(--primary);
  transition: color 0.4s ease;
}

.card-sessao:hover .card-sessao__icon {
  color: var(--primary-light);
}

.card-sessao h3 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--text);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.card-sessao p {
  font-size: 1.3rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* =============================================
   FAQ
   ============================================= */
.faq__list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq__item {
  background-color: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: var(--transition);
}

.faq__item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2.4rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  gap: 1.6rem;
  transition: var(--transition);
}

.faq__question:hover {
  color: var(--primary);
}

.faq__arrow {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq__item.active .faq__arrow {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
}

.faq__item.active .faq__answer {
  max-height: 400px;
}

.faq__answer p {
  padding: 0 2.4rem 2rem;
  font-size: 1.4rem;
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
}

/* =============================================
   CTA FINAL
   ============================================= */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4543 100%);
  color: var(--white);
  text-align: center;
}

.cta__content {
  max-width: 650px;
  margin: 0 auto;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 1.6rem;
}

.cta h2::after {
  background: var(--accent);
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 3.6rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background-color: #1e4543;
  color: rgba(255, 255, 255, 0.7);
  padding: 3.2rem 0;
  font-size: 1.4rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr 1fr;
  align-items: center;
  gap: 1.2rem;
}

.footer__info p {
  margin: 0;
  line-height: 1.8;
}

.footer__social {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer__social-link:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.footer__social-icon {
  width: 1.8rem;
  height: 1.8rem;
}

.footer__copyright {
  text-align: center;
}

.footer__copyright p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
}

.footer__credits p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.3rem;
  text-align: right;
}

.footer__link {
  color: var(--accent);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.footer__link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.footer__link:hover {
  color: #d4b87a;
}

.footer__link:hover::after {
  width: 100%;
}

/* =============================================
   INSTAGRAM FLOAT
   ============================================= */
.instagram-float {
  position: fixed;
  bottom: 12rem;
  right: 2.4rem;
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #f77737 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(131, 58, 180, 0.35);
  z-index: 998;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.instagram-float__icon {
  width: 2.6rem;
  height: 2.6rem;
}

.instagram-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(131, 58, 180, 0.5);
}

@keyframes pulse-instagram {
  0% {
    box-shadow: 0 8px 24px rgba(131, 58, 180, 0.35);
  }
  50% {
    box-shadow: 0 8px 32px rgba(131, 58, 180, 0.6);
  }
  100% {
    box-shadow: 0 8px 24px rgba(131, 58, 180, 0.35);
  }
}

.instagram-float {
  animation: pulse-instagram 3s ease-in-out infinite;
}

.instagram-float:hover {
  animation: none;
}

/* =============================================
   WHATSAPP FLOAT
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 5.5rem;
  right: 2.4rem;
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.whatsapp-float__icon {
  width: 2.8rem;
  height: 2.8rem;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  }
  50% {
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
  }
  100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  }
}

.whatsapp-float {
  animation: pulse-whatsapp 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
  animation: none;
}

/* =============================================
   BOTÃO VOLTAR AO TOPO
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 18.5rem;
  right: 2.4rem;
  width: 4.2rem;
  height: 4.2rem;
  background-color: var(--white);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 997;
  border: 1px solid var(--light-gray);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 2rem;
  height: 2rem;
}

.back-to-top:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* =============================================
   ANIMAÇÕES
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVIDADE
   ============================================= */

/* Tablet Grande */
@media (max-width: 992px) {
  .sobre__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .sobre__img {
    max-width: 350px;
    margin: 0 auto;
  }

  .sobre__texto {
    text-align: center;
  }

  .sobre__texto h2::after {
    margin: 1.6rem auto 0;
  }

  .sobre__numeros {
    justify-content: center;
  }

  .cards-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.8rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-slow);
    z-index: 1000;
  }

  .nav__menu.active {
    right: 0;
  }

  .nav__menu a {
    font-size: 1.8rem !important;
  }

  .faq__list {
    max-width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    text-align: center;
    gap: 1.2rem;
  }

  .footer__credits p {
    text-align: center;
  }
}

/* Tablet Pequeno */
@media (max-width: 768px) {
  :root {
    --section-padding: 5rem 0;
  }

  .container {
    padding: 0 2rem;
  }

  .nav {
    height: 6.5rem;
  }

  .nav__logo {
    font-size: 1.8rem;
  }

  .hero__arrow {
    width: 4.4rem;
    height: 4.4rem;
    font-size: 1.8rem;
  }

  .hero__arrow--prev {
    left: 0.8rem;
  }

  .hero__arrow--next {
    right: 0.8rem;
  }

  .hero__indicators {
    bottom: 2.4rem;
    gap: 1.2rem;
  }

  .hero__indicator {
    width: 1.2rem;
    height: 1.2rem;
  }

  .hero__indicator::after {
    top: -14px;
    left: -14px;
    right: -14px;
    bottom: -14px;
  }

  .hero__badge {
    font-size: 1.1rem;
    padding: 0.5rem 1.4rem;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .hero__cta-group {
    flex-direction: column;
    align-items: center;
  }

  .section__header {
    margin-bottom: 3.5rem;
  }

  .section__description {
    font-size: 1.5rem;
  }

  .card-especialidade {
    padding: 2.4rem 1.8rem;
  }

  .card-especialidade__icon-wrapper {
    width: 6rem;
    height: 6rem;
  }

  .card-especialidade__icon {
    width: 2.8rem;
    height: 2.8rem;
  }

  .card-especialidade h3 {
    font-size: 1.6rem;
  }

  .card-especialidade p {
    font-size: 1.3rem;
  }

  .card-sessao {
    padding: 2.2rem 1.6rem;
  }

  .card-sessao__icon-wrapper {
    width: 5.5rem;
    height: 5.5rem;
  }

  .card-sessao__icon {
    width: 2.6rem;
    height: 2.6rem;
  }

  .card-sessao h3 {
    font-size: 1.5rem;
  }

  .card-sessao p {
    font-size: 1.2rem;
  }

  .faq__question {
    padding: 1.8rem;
    font-size: 1.4rem;
  }

  .faq__answer p {
    padding: 0 1.8rem 1.8rem;
    font-size: 1.3rem;
  }

  .cta p {
    font-size: 1.5rem;
  }

  .sobre__numeros {
    gap: 2rem;
  }

  .sobre__numero-valor {
    font-size: 3rem;
  }

  .instagram-float,
  .whatsapp-float {
    right: 1.6rem;
  }

  .back-to-top {
    right: 1.6rem;
  }
}

/* Mobile */
@media (max-width: 576px) {
  :root {
    --section-padding: 4rem 0;
  }

  .container {
    padding: 0 1.6rem;
  }

  .nav {
    height: 6rem;
  }

  .nav__logo {
    font-size: 1.7rem;
  }

  .hero {
    min-height: 100vh;
  }

  .hero__content {
    padding: 0 1.6rem;
  }

  .hero__title {
    font-size: 2.6rem;
  }

  .hero__subtitle {
    font-size: 1.4rem;
  }

  .hero__arrow {
    width: 4rem;
    height: 4rem;
    font-size: 1.6rem;
    border-width: 1.5px;
  }

  .hero__arrow--prev {
    left: 0.6rem;
  }

  .hero__arrow--next {
    right: 0.6rem;
  }

  .hero__indicators {
    bottom: 2rem;
    gap: 1rem;
  }

  .hero__indicator {
    width: 1.1rem;
    height: 1.1rem;
  }

  .hero__indicator::after {
    top: -16px;
    left: -16px;
    right: -16px;
    bottom: -16px;
  }

  .cards-grid--3,
  .cards-grid--4 {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .section__header {
    margin-bottom: 3rem;
  }

  .section__tag {
    font-size: 1.1rem;
    padding: 0.5rem 1.4rem;
    letter-spacing: 1.5px;
  }

  .section__title {
    font-size: 2.4rem;
  }

  .section__description {
    font-size: 1.4rem;
    padding: 0;
  }

  .sobre__img {
    max-width: 280px;
  }

  .sobre__texto p {
    font-size: 1.5rem;
  }

  .sobre__numeros {
    gap: 1.6rem;
  }

  .sobre__numero {
    min-width: 80px;
  }

  .sobre__numero-valor {
    font-size: 2.6rem;
  }

  .sobre__numero-label {
    font-size: 1rem;
  }

  .btn--large {
    padding: 1.4rem 3rem;
    font-size: 1.5rem;
    width: 100%;
  }

  .cta p {
    font-size: 1.4rem;
    margin-bottom: 2.4rem;
  }

  .faq__question {
    padding: 1.6rem;
    font-size: 1.3rem;
    gap: 1rem;
  }

  .faq__question span {
    flex: 1;
  }

  .faq__arrow {
    width: 1.6rem;
    height: 1.6rem;
  }

  .faq__answer p {
    padding: 0 1.6rem 1.6rem;
    font-size: 1.3rem;
  }

  .footer {
    padding: 2.4rem 0;
    font-size: 1.3rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer__info {
    order: 0;
  }
  .footer__social {
    order: 1;
  }
  .footer__copyright {
    order: 2;
  }
  .footer__credits {
    order: 3;
  }

  .footer__credits p {
    text-align: center;
  }

  .instagram-float {
    bottom: 10rem;
    right: 1.2rem;
    width: 4.5rem;
    height: 4.5rem;
  }

  .instagram-float__icon {
    width: 2.4rem;
    height: 2.4rem;
  }

  .whatsapp-float {
    bottom: 4rem;
    right: 1.2rem;
    width: 4.5rem;
    height: 4.5rem;
  }

  .whatsapp-float__icon {
    width: 2.6rem;
    height: 2.6rem;
  }

  .back-to-top {
    bottom: 16rem;
    right: 1.2rem;
    width: 3.8rem;
    height: 3.8rem;
  }

  .back-to-top svg {
    width: 1.8rem;
    height: 1.8rem;
  }
}

/* =============================================
   ACESSIBILIDADE
   ============================================= */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
