/* ============================================================
   === RESET E BASE ==========================================
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Zain', sans-serif;
  font-size: 16px;
  color: var(--cor-escuro);
  background-color: var(--cor-bege);
  overflow-x: hidden;
}

/* ============================================================
   === VARIÁVEIS CSS =========================================
   ============================================================ */
:root {
  --cor-navy:   #2F4156; /* cabeçalhos, CTAs, textos principais */
  --cor-teal:   #567C8D; /* elementos secundários, hover        */
  --cor-sky:    #C8D9E6; /* destaques suaves, tags              */
  --cor-bege:   #F5EFEB; /* fundos de seções                    */
  --cor-branco: #FFFFFF; /* fundos de cards e navbar            */
  --cor-escuro: #1E2D3D; /* corpo de texto                      */
  --cor-ouro:   #8C7038; /* CRECI e detalhes dourados           */

  --fonte-titulo: 'Great Vibes', cursive;
  --fonte-corpo:  'Zain', sans-serif;

  --altura-cabecalho: 72px;
  --transicao-base: all 0.3s ease;
}

/* ============================================================
   === CABEÇALHO =============================================
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--cor-branco);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transicao-base);
}

/* Estado ao rolar — adicionado via JS */
.header.scrolled {
  box-shadow: 0 2px 20px rgba(47, 65, 86, 0.12);
  padding: 8px 20px;
}

/* --- Marca / Logo ------------------------------------------ */
.header__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}

.header__name {
  font-family: var(--fonte-titulo);
  font-size: 1.9rem;
  color: var(--cor-navy);
  line-height: 1;
}

.header__creci {
  font-family: var(--fonte-corpo);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--cor-teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* --- Navegação desktop ------------------------------------- */
.header__nav {
  display: none; /* oculto no mobile */
}

.nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  font-family: var(--fonte-corpo);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cor-navy);
  text-decoration: none;
  padding: 6px 10px;
  position: relative;
  transition: color 0.25s ease;
}

/* Sublinhado animado */
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background-color: var(--cor-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.nav__link:hover {
  color: var(--cor-teal);
}

/* Botão WhatsApp no cabeçalho */
.btn--whatsapp-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fonte-corpo);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cor-branco);
  background-color: var(--cor-navy);
  border: none;
  border-radius: 25px;
  padding: 10px 22px;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn--whatsapp-nav:hover {
  background-color: var(--cor-teal);
  transform: translateY(-1px);
}

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

/* --- Botão hambúrguer -------------------------------------- */
.header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hamburger__line {
  display: block;
  width: 28px;
  height: 2.5px;
  background-color: var(--cor-navy);
  border-radius: 2px;
  transition: var(--transicao-base);
  transform-origin: center;
}

/* Animação hambúrguer → X */
.header__hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.header__hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.header__hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* --- Menu mobile ------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: var(--altura-cabecalho);
  left: 0;
  width: 100%;
  background-color: var(--cor-branco);
  z-index: 999;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease;
  box-shadow: none;
}

.mobile-menu.open {
  max-height: 400px;
  box-shadow: 0 8px 24px rgba(47, 65, 86, 0.15);
}

.mobile-menu__inner {
  padding: 12px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-top: 1px solid var(--cor-sky);
}

.mobile-menu__link {
  font-family: var(--fonte-corpo);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cor-navy);
  text-decoration: none;
  padding: 16px 24px;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-bottom: 1px solid #f0eae6;
}

.mobile-menu__link:last-of-type {
  border-bottom: none;
}

.mobile-menu__link:hover,
.mobile-menu__link.active {
  background-color: #f7f3f0;
  color: var(--cor-teal);
}

.mobile-menu__whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--fonte-corpo);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cor-branco);
  background-color: var(--cor-navy);
  border: none;
  border-radius: 25px;
  padding: 14px 32px;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  margin: 20px 24px 0;
  transition: background-color 0.3s ease;
}

.mobile-menu__whatsapp:hover {
  background-color: var(--cor-teal);
}

.mobile-menu__whatsapp svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============================================================
   === SEÇÃO HERO ============================================
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Imagem de fundo */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/cidade.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Sobreposição gradiente */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(47, 65, 86, 0.65) 0%,
    rgba(47, 65, 86, 0.55) 60%,
    rgba(47, 65, 86, 0.70) 100%
  );
  z-index: 1;
}

/* Contêiner do conteúdo */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  width: 100%;
  max-width: 780px;
  gap: 20px;
  animation: heroSubir 0.9s ease both;
  animation-delay: 0.15s;
}

/* Animação de entrada (fade + subida) */
@keyframes heroSubir {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 1. Tag de localização */
.hero__tag {
  font-family: var(--fonte-corpo);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--cor-sky);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 217, 230, 0.35);
  padding: 6px 18px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

/* 2. Título principal */
.hero__title {
  font-family: var(--fonte-titulo);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--cor-branco);
  line-height: 1.15;
  margin: 0;
}

/* 3. Subtítulo */
.hero__subtitle {
  font-family: var(--fonte-corpo);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 400;
  color: var(--cor-bege);
  max-width: 600px;
  line-height: 1.6;
  opacity: 0.92;
}

/* 4. Grupo de botões */
.hero__actions {
  display: flex;
  flex-direction: column; /* empilhado no mobile */
  gap: 14px;
  width: 100%;
  margin-top: 4px;
}

/* Base compartilhada dos botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fonte-corpo);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 25px;
  padding: 14px 32px;
  min-height: 48px;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: var(--transicao-base);
  letter-spacing: 0.03em;
  width: 100%; /* largura total no mobile */
}

/* Botão primário */
.btn--primary {
  background-color: var(--cor-teal);
  color: var(--cor-branco);
  border-color: var(--cor-teal);
}

.btn--primary:hover {
  background-color: #4a6b7c;
  border-color: #4a6b7c;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(86, 124, 141, 0.4);
}

/* Botão contorno */
.btn--outline {
  background-color: transparent;
  color: var(--cor-branco);
  border-color: var(--cor-branco);
}

.btn--outline:hover {
  background-color: var(--cor-branco);
  color: var(--cor-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* 5. Indicador de rolagem */
.hero__scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--cor-branco);
  opacity: 0.75;
  animation: saltar 2.2s ease-in-out infinite;
  text-decoration: none;
  cursor: default;
}

.hero__scroll-hint span {
  font-family: var(--fonte-corpo);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__scroll-hint svg {
  width: 22px;
  height: 22px;
}

@keyframes saltar {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

/* ============================================================
   === SEÇÃO SOBRE MIM =======================================
   ============================================================ */

/* Linha decorativa abaixo dos títulos */
.linha-decorativa {
  width: 60px;
  height: 3px;
  background-color: var(--cor-teal);
  margin: 0 auto;
  border-radius: 2px;
}

/* Seção trajetória */
.secao-trajetoria {
  background-color: var(--cor-bege);
  padding: 60px 30px;
}

/* ============================================================
   === BREAKPOINT TABLET — 768px =============================
   ============================================================ */
@media (min-width: 768px) {
  .header {
    padding: 14px 32px;
  }

  .header.scrolled {
    padding: 10px 32px;
  }

  .header__name {
    font-size: 2.1rem;
  }

  .hero__content {
    padding: 0 40px;
    gap: 24px;
  }

  .hero__actions {
    flex-direction: row; /* lado a lado no tablet */
    justify-content: center;
    width: auto;
  }

  .btn {
    width: auto;
    min-width: 190px;
  }
}

/* ============================================================
   === BREAKPOINT DESKTOP — 1024px ===========================
   ============================================================ */
@media (min-width: 1024px) {
  :root {
    --altura-cabecalho: 80px;
  }

  .header {
    padding: 16px 60px;
  }

  .header.scrolled {
    padding: 10px 60px;
  }

  /* Exibe a navegação desktop e oculta o hambúrguer */
  .header__nav {
    display: flex;
    align-items: center;
  }

  .header__hamburger {
    display: none;
  }

  /* Menu mobile nunca aparece no desktop */
  .mobile-menu {
    display: none;
  }

  .hero__content {
    padding: 0 60px;
    gap: 28px;
  }

  .hero__tag {
    font-size: 0.82rem;
  }
}

/* ============================================================
   === RESPONSIVO — SOBRE MIM ================================
   ============================================================ */
@media (max-width: 768px) {
  .sobre-inner {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }

  .sobre__foto img {
    max-width: 280px;
    margin: 0 auto;
  }

  .trajetoria-grid {
    grid-template-columns: 1fr;
  }

  .trajetoria-section {
    padding: 40px 20px;
  }
}

/* ============================================================
   === BOTÃO FLUTUANTE WHATSAPP ==============================
   ============================================================ */

/* Anel de pulso ao redor do botão */
@keyframes pulsarWpp {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-wpp-flutuante {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;

  width: 60px;
  height: 60px;
  border-radius: 50%;

  background-color: #25D366; /* verde oficial do WhatsApp */
  color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  animation: pulsarWpp 2.4s ease-in-out infinite;

  transition: transform 0.25s ease, background-color 0.25s ease;
  text-decoration: none;
}

.btn-wpp-flutuante svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.btn-wpp-flutuante:hover {
  background-color: #1ebe5d;
  transform: scale(1.1);
  animation-play-state: paused; /* pausa o pulso no hover */
}

/* Menor em telas pequenas */
@media (max-width: 480px) {
  .btn-wpp-flutuante {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
  }

  .btn-wpp-flutuante svg {
    width: 26px;
    height: 26px;
  }
}

/* ============================================================
   === ACESSIBILIDADE — ANEL DE FOCO =========================
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--cor-sky);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Movimento reduzido — respeita preferência do sistema */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
