/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= THEME VARIABLES ================= */
:root {
  --bg: #fffafa;
  --bg-alt: #f5f7fa;
  --text: #1f2933;
  --primary: #133d97;
  --secondary: #0f172a;
  --card: #ffffff;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-alt: #020617;
  --text: #d5d6d8;
  --primary: #133d97;
  --secondary: #94a3b8;
  --card: #020617;
}

/* ================= BASE ================= */
body {
  font-family: system-ui, sans-serif;
  background: linear-gradient(135deg, var(--bg), var(--bg-alt));
  color: var(--text);
  line-height: 1.6;
}

/* ================= LAYOUT ================= */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section.alt {
  background: var(--bg-alt);
}

/* ================= HEADER ================= */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
}

[data-theme="dark"] .header {
  background: rgba(2, 6, 23, 0.85);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

/* ================= HERO (DESKTOP PADRÃO) ================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 4rem;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  max-width: 720px;

  line-height: 1.15;
  letter-spacing: -0.015em;

  margin-bottom: 1rem;
  text-align: left;
}

.hero-subtitle {
  max-width: 920px;
  font-size: 1.05rem;
  font-weight: 400;

  line-height: 1.65;
  letter-spacing: 0.015em;

  margin-top: 1rem;
  margin-bottom: 1.8rem;

  color: var(--text);
}

/* ================= GRID / CARDS ================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ================= PROCESS ================= */
.process-list {
  margin-top: 2rem;
  padding-left: 1.5rem;
}

/* ================= CTA ================= */
.cta {
  background: linear-gradient(135deg, var(--primary), #1e40af);
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}

/* ================= FORM ================= */
.contact form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* ================= BUTTONS ================= */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: #1e40af;
}

/* ================= FOOTER ================= */
.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  background: var(--bg-alt);
}

/* ================= TRANSIÇÕES ================= */
body,
.header,
.card,
input,
textarea,
button,
section {
  transition:    background-color 0.35s ease,    color 0.25s ease,    border-color 0.25s ease,    box-shadow 0.25s ease;
  -webkit-transition:    background-color 0.35s ease,    color 0.25s ease,    border-color 0.25s ease,    box-shadow 0.25s ease;
  -moz-transition:    background-color 0.35s ease,    color 0.25s ease,    border-color 0.25s ease,    box-shadow 0.25s ease;
  -ms-transition:    background-color 0.35s ease,    color 0.25s ease,    border-color 0.25s ease,    box-shadow 0.25s ease;
  -o-transition:    background-color 0.35s ease,    color 0.25s ease,    border-color 0.25s ease,    box-shadow 0.25s ease;
}
#themeToggle {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.35s ease;
  -webkit-transition: transform 0.35s ease;
  -moz-transition: transform 0.35s ease;
  -ms-transition: transform 0.35s ease;
  -o-transition: transform 0.35s ease;
}

#themeToggle:active {
  transform: rotate(180deg) scale(0.9);
  -webkit-transform: rotate(180deg) scale(0.9);
  -moz-transform: rotate(180deg) scale(0.9);
  -ms-transform: rotate(180deg) scale(0.9);
  -o-transform: rotate(180deg) scale(0.9);
}
/* ===== BOTÃO MENU MOBILE ===== */
.menu-toggle {
  display: none; /* ESCONDIDO NO DESKTOP */
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);

  width: 44px;
  height: 44px;
  border-radius: 12px;

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

  transition:
    background-color 0.25s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}


/* ================= MENU MOBILE ================= */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
}

.menu-toggle:hover {
  background: rgba(0,0,0,0.06);
}

/* ================= LOGO ================= */
.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 25px;
}

.logo-dark {
  display: none;
}

[data-theme="dark"] .logo-light {
  display: none;
}

[data-theme="dark"] .logo-dark {
  display: block;
}

/* ================= WHATSAPP FLOAT ================= */
.whatsapp-float-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.8);
  color: #e9d2d2;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(6px);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
}

/* Tooltip no dark */
[data-theme="dark"] .whatsapp-tooltip {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.whatsapp-float-btn {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #25d366, #1ebe57);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float-btn svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.whatsapp-float-wrapper:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

.whatsapp-float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

/* ================= BIO ================= */
.bio-text {
  text-align: justify;
  hyphens: auto;
}

/* ================= FOTO PERFIL ================= */
.bio-photo {
  margin: 2rem auto;
  display: flex;
  justify-content: center;
}

.bio-photo img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}

/* ================================================= */
/* =============== RESPONSIVO ≤ 868px ============== */
/* ================================================= */
@media (max-width: 868px) {
  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  nav {
    position: absolute;
    top: 64px;
    right: 1.5rem;
    background: var(--card);
    border-radius: 14px;
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    -webkit-border-radius: 14px;
    -moz-border-radius: 14px;
    -ms-border-radius: 14px;
    -o-border-radius: 14px;
}

  nav.show {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.25;
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: 1rem;
    max-width: 100%;
  }
}

/* ================================================= */
/* =============== MOBILE PEQUENO ================== */
/* ================================================= */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .bio-photo img {
    width: 140px;
    height: 140px;
  }
}
