/* Importação da fonte Syne */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400..800&display=swap');

/* Fonte editorial local */
@font-face {
  font-family: 'Tan Meringue';
  src: 
       url('./fonts/TAN-MERINGUE.otf') format('opentype'),
       url('./fonts/TAN-MERINGUE.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Variáveis de Identidade Visual MAPPA */
:root {
  --bg-offwhite: #f3f4f6;
  --azul-royal: #1e40af;
  --azul-escuro: #172554;
  --laranja: #f97316;
  --laranja-hover: #ea580c;
  --texto-escuro: #111827;
  --texto-suave: #4b5563;
  --branco: #ffffff;
}

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px; /* Evita que o header fixo cubra o título ao clicar no menu */
}

body {
  background-color: var(--bg-offwhite);
  color: var(--texto-escuro);
  font-family: 'Syne', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Tipografia Editorial nos Títulos Principais */
.mappa,
section h2 {
  font-family: 'Tan Meringue', serif;
  font-weight: normal;
  letter-spacing: 0.5px;
}

/* Header & Navegação */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.2rem 6%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(243, 244, 246, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 64, 175, 0.12);
}

.mappa {
  font-size: 2rem;
  color: var(--azul-royal);
}

nav {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--azul-royal);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--laranja);
}

/* Estrutura Geral das Seções */
main {
  width: 100%;
}

section {
  padding: 5rem 6%;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--azul-royal);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

section p {
  font-size: 1.05rem;
  color: var(--texto-suave);
  max-width: 720px;
}

/* Botões WhatsApp (CTA Principal) */
.btn-whatsapp {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 1rem 2.2rem;
  background-color: var(--laranja);
  color: var(--branco);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: var(--laranja-hover);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.4);
}

/* Seção 1: Sobre (Hero + Problema) */
#sobre {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-top: 3.5rem;
}

#sobre > div:first-child {
  background-color: var(--azul-royal);
  color: var(--branco);
  padding: 4rem 3.5rem;
  border-radius: 24px;
}

#sobre > div:first-child h2 {
  color: var(--branco);
}

#sobre > div:first-child p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
}

#sobre > div:last-child {
  background-color: var(--branco);
  padding: 3rem;
  border-radius: 24px;
  border-left: 6px solid var(--laranja);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

#sobre > div:last-child h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

/* Seção 2: Método MAPPA */
#metodomappa {
  background-color: var(--azul-royal);
  max-width: 100%;
  padding: 5rem 6%;
  color: var(--branco);
}

#metodomappa h2,
#metodomappa p {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  color: var(--branco);
}

#metodomappa p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
}

#metodomappa h3 {
  max-width: 1200px;
  margin: 0 auto 1rem auto;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.3rem 1.8rem;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--branco);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

#metodomappa h3:hover {
  transform: translateX(8px);
  background-color: var(--laranja);
  border-color: var(--laranja);
}

/* Seção 3: Diferenciais */
#diferenciais h3 {
  background-color: var(--branco);
  padding: 1.6rem 2rem;
  margin-top: 1.2rem;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--texto-escuro);
  border-left: 5px solid var(--azul-royal);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
  transition: border-color 0.3s ease;
}

#diferenciais h3:hover {
  border-left-color: var(--laranja);
}

/* Seção 4: Portfólios */
#portfolios {
  text-align: center;
}

#portfolios p {
  margin: 0 auto 2.5rem auto;
}

#portfolios a {
  display: inline-block;
  margin: 0.5rem 0.8rem;
  padding: 1.1rem 2.2rem;
  border: 2px solid var(--azul-royal);
  color: var(--azul-royal);
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
}

#portfolios a:hover {
  background-color: var(--azul-royal);
  color: var(--branco);
  transform: translateY(-3px);
}

/* Seção 5: Planos */
#planos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

#planos h2 {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 1.5rem;
}

div.planos {
  background-color: var(--branco);
  padding: 2.5rem 2rem;
  border-radius: 24px;
  border: 1px solid rgba(30, 64, 175, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

div.planos:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(30, 64, 175, 0.12);
}

/* Destaque visual no Plano Intermediário (Profissional) */
div.planos:nth-of-type(2) {
  background-color: var(--azul-royal);
  color: var(--branco);
  border: 2px solid var(--laranja);
}

div.planos .nome {
  font-family: 'Tan Meringue', serif;
  font-size: 1.9rem;
  color: var(--azul-royal);
  margin-bottom: 0.5rem;
}

div.planos:nth-of-type(2) .nome {
  color: var(--branco);
}

div.planos .preço {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--laranja);
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

div.planos:nth-of-type(2) .preço {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

div.planos .incluso {
  font-size: 0.95rem;
  color: var(--texto-suave);
  margin-bottom: 0.7rem;
  padding-left: 1.4rem;
  position: relative;
}

div.planos .incluso::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--laranja);
  font-weight: 800;
}

div.planos:nth-of-type(2) .incluso {
  color: rgba(255, 255, 255, 0.9);
}

/* Observação abaixo dos planos (h4) */
#planos h4 {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--texto-suave);
  background-color: rgba(30, 64, 175, 0.06);
  padding: 1.2rem 1.8rem;
  border-radius: 14px;
  margin-top: 1rem;
}

/* Seção 6: Contato Final */
#contato {
  text-align: center;
  background-color: var(--laranja);
  max-width: 100%;
  padding: 4.5rem 6%;
}

#contato .btn-whatsapp {
  margin-top: 0;
  background-color: var(--azul-royal);
  color: var(--branco);
  font-size: 1.15rem;
  padding: 1.2rem 2.8rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

#contato .btn-whatsapp:hover {
  background-color: var(--azul-escuro);
}

/* Responsividade para Celular */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 115px;
  }

  header {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 4%;
  }

  nav {
    justify-content: center;
    gap: 1rem;
  }

  nav a {
    font-size: 0.75rem;
  }

  #sobre > div:first-child,
  #sobre > div:last-child {
    padding: 2.2rem 1.6rem;
  }
}