:root {
  --bg: #fbf9ff;
  --bg-lilac: #f7effd;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --purple-100: #DFC2F2;
  --purple-200: #CDA7F2;
  --purple-300: #CC94F2;
  --purple-400: #B980F2;
  --purple-500: #8243D9;
  --primary: var(--purple-500);
  --primary-strong: #5f2da4;
  --primary-soft: #f3e7fc;
  --accent: var(--purple-300);
  --ink: #2b1840;
  --text: #443056;
  --muted: #78628f;
  --border: #e8d4f7;
  --shadow: 0 24px 60px rgba(130, 67, 217, 0.16);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  min-width: 320px;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 92px 0;
  overflow: hidden;
  scroll-margin-top: 86px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 255, 0.9);
  border-bottom: 1px solid rgba(130, 67, 217, 0.12);
  backdrop-filter: blur(18px);
}

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: white;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(130, 67, 217, 0.28);
}

.logo-icon img {
  width: 82%;
  height: 82%;
  display: block;
  object-fit: contain;
}

.logo strong,
.logo small {
  display: block;
}

.logo strong {
  color: var(--ink);
  font-size: 16px;
}

.logo small {
  color: var(--muted);
  font-size: 12px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 6px;
  border: 1px solid rgba(130, 67, 217, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.nav-menu li {
  display: flex;
}

.nav-menu a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-menu a:not(.nav-button) {
  padding: 0 14px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.nav-menu a:not(.nav-button):hover {
  background: rgba(130, 67, 217, 0.06);
}

.nav-menu a.active:not(.nav-button) {
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px rgba(130, 67, 217, 0.08);
}

.nav-button {
  padding: 0 22px;
  border-radius: 14px;
  background: var(--primary);
  color: white !important;
  box-shadow: 0 14px 30px rgba(130, 67, 217, 0.24);
}

.nav-button:hover {
  background: var(--primary-strong);
  transform: translateY(-1px);
}

@media (max-width: 1080px) {
  .nav-menu {
    gap: 2px;
    font-size: 13px;
  }

  .nav-menu a:not(.nav-button) {
    padding: 0 10px;
  }

  .nav-button {
    padding: 0 18px;
  }
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--primary-strong);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  padding: 70px 0;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(223, 194, 242, 0.36) 48%, rgba(205, 167, 242, 0.42) 100%);
}

.hero-content {
  animation: heroContentIn 0.8s ease both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 18%, rgba(204, 148, 242, 0.28) 0 2px, transparent 3px),
    radial-gradient(circle at 86% 24%, rgba(185, 128, 242, 0.22), transparent 32%),
    radial-gradient(circle at 12% 78%, rgba(223, 194, 242, 0.52), transparent 26%);
  pointer-events: none;
}

.hero-grid,
.intro-grid,
.about-grid,
.contact-grid,
.stats-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}

.about {
  padding-top: 72px;
  padding-bottom: 84px;
}

.about-grid {
  gap: 48px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.04;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 48px);
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

.hero-text {
  max-width: 600px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 18px 36px rgba(130, 67, 217, 0.26);
}

.btn.primary:hover {
  background: var(--primary-strong);
  transform: translateY(-2px);
}

.btn.secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-strong);
}

.btn.full {
  width: 100%;
}

.hero-highlights,
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-highlights span,
.about-tags span {
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-art {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.brain-shape {
  width: min(480px, 100%);
  aspect-ratio: 1.08;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(130, 67, 217, 0.14);
  box-shadow: 0 24px 70px rgba(92, 42, 130, 0.16);
  backdrop-filter: blur(10px);
  display: block;
  object-fit: contain;
  animation: heroImageIn 0.9s 0.1s ease both, softFloat 6s ease-in-out infinite;
}

.quick-services {
  position: relative;
  z-index: 4;
  margin-top: 0;
  padding: 42px 0 0;
  background: linear-gradient(180deg, rgba(247, 239, 253, 0.72), rgba(251, 249, 255, 0));
}

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

.quick-card {
  min-height: 128px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 22px;
  text-align: center;
  border: 1px solid rgba(130, 67, 217, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.quick-card:hover {
  border-color: rgba(130, 67, 217, 0.3);
  box-shadow: 0 22px 46px rgba(130, 67, 217, 0.15);
  transform: translateY(-6px);
}


.quick-card strong {
  color: var(--ink);
}

.about-content > p:not(.eyebrow),
.intro-grid > p {
  text-align: justify;
  text-justify: inter-word;
}

.intro,
.process,
.faq {
  background: var(--bg-soft);
}

.intro::before,
.services::before,
.stats::before,
.process::before,
.contact::before,
.faq::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(760px, 82%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(130, 67, 217, 0.22), transparent);
  transform: translateX(-50%);
}

.intro p,
.section-title p,
.about-content p,
.stats-content p,
.contact p {
  color: var(--muted);
}

.about-content h2 {
  max-width: 560px;
  margin-bottom: 18px;
}

.about-content p {
  max-width: 620px;
  font-size: 16px;
  line-height: 1.8;
}

.section-title {
  max-width: 740px;
  margin: 0 auto 46px;
  text-align: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

.service-card {
  grid-column: span 2;
}

.service-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.service-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.service-card,
.stat-card,
.timeline-item,
.contact-form,
.faq-list details,
.photo-placeholder {
  border: 1px solid rgba(130, 67, 217, 0.14);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 16px 36px rgba(130, 67, 217, 0.09);
}

.service-card {
  padding: 0;
  overflow: hidden;
  perspective: 1200px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  border-color: rgba(130, 67, 217, 0.28);
  box-shadow: 0 22px 48px rgba(130, 67, 217, 0.13);
}

.service-card-inner {
  position: relative;
  display: grid;
  min-height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s ease;
}

.service-card.is-flipped .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-face {
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow: visible;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.service-card-front {
  transform: rotateY(0deg);
}

.service-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, rgba(243, 231, 252, 0.96), rgba(255, 255, 255, 0.98));
  pointer-events: none;
}

.service-card.is-flipped .service-card-front {
  pointer-events: none;
}

.service-card.is-flipped .service-card-back {
  pointer-events: auto;
}

.service-card-back .eyebrow {
  margin-bottom: 10px;
}

.service-card p {
  margin-bottom: 18px;
  color: var(--muted);
}

.service-card ul {
  margin-bottom: 20px;
  list-style: none;
}

.service-card li {
  padding: 9px 0;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.card-link {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.card-actions {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 6px;
}

.card-flip-button {
  color: var(--primary-strong);
}

.stats {
  background: linear-gradient(135deg, rgba(130, 67, 217, 0.97), rgba(185, 128, 242, 0.92)), var(--primary);
  color: white;
}

.stats .eyebrow,
.stats h2,
.stats p {
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.stat-card {
  padding: 28px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transition: transform 0.25s ease, background 0.25s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  color: white;
  font-size: 34px;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.78);
}

.timeline {
  max-width: 980px;
  display: grid;
  gap: 24px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 30px 34px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.timeline-item:hover {
  border-color: rgba(130, 67, 217, 0.26);
  transform: translateX(6px);
}

.timeline-item span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.timeline-item h3 {
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--muted);
}

.timeline-duration {
  align-self: center;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.photo-placeholder {
  min-height: 500px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(130, 67, 217, 0.12);
  text-align: center;
  background: linear-gradient(135deg, rgba(204, 148, 242, 0.18), rgba(255, 255, 255, 0.92)), var(--card);
}

.photo-placeholder img {
  width: 100%;
  height: 500px;
  display: block;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.photo-placeholder:hover img {
  transform: scale(1.035);
}

.photo-placeholder span {
  display: block;
  color: var(--primary-strong);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 32px;
  font-weight: 800;
}

.photo-placeholder small {
  display: block;
  max-width: 280px;
  margin-top: 10px;
  color: var(--muted);
}

.about-tags {
  margin-top: 26px;
  gap: 10px;
}

.faq-list {
  max-width: 870px;
  display: grid;
  gap: 14px;
  margin: 0 auto;
}

.faq-list details {
  padding: 22px 24px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.faq-list details[open],
.faq-list details:hover {
  border-color: rgba(130, 67, 217, 0.26);
  box-shadow: 0 18px 42px rgba(130, 67, 217, 0.12);
  transform: translateY(-2px);
}

.faq-list summary {
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.faq-list p {
  margin-top: 12px;
  color: var(--muted);
}

.contact-box {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  color: var(--muted);
}

.contact-box a {
  color: var(--primary);
  font-weight: 800;
}

.contact-box a:hover {
  color: var(--primary-strong);
}

.contact-whatsapp {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #22c55e;
  color: white;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(34, 197, 94, 0.26);
}

.contact-whatsapp svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  fill: currentColor;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fdfcff;
  color: var(--text);
  font: inherit;
  padding: 14px 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(204, 148, 242, 0.24);
}

.form-message {
  min-height: 24px;
  color: var(--primary-strong);
  font-weight: 900;
  text-align: center;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #22c55e;
  color: white;
  box-shadow: 0 14px 28px rgba(34, 197, 94, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  box-shadow: 0 20px 38px rgba(34, 197, 94, 0.36);
  transform: translateY(-4px);
}

.footer {
  padding: 48px 0 24px;
  background: #2b1840;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 32px;
}

.footer strong {
  display: block;
  margin-bottom: 12px;
  color: white;
}

.footer a,
.footer p {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.footer p a {
  display: inline;
  margin-bottom: 0;
}

.footer a {
  transition: color 0.2s ease;
}

.footer a:hover {
  color: white;
}

.footer-map {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-map iframe {
  width: 100%;
  min-height: 260px;
  display: block;
  border: 0;
  border-radius: 18px;
  filter: saturate(0.88) contrast(0.95);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--shadow);
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
    justify-content: flex-start;
    padding: 0 14px;
  }

  .nav-menu .nav-button {
    justify-content: center;
  }

  .hero-grid,
  .intro-grid,
  .about-grid,
  .contact-grid,
  .stats-content {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 34px;
  }

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

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: auto;
  }

  .hero {
    min-height: auto;
  }

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

}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1140px);
  }

  .section {
    padding: 64px 0;
  }

  .about {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .navbar {
    min-height: 70px;
  }

  .nav-menu {
    top: 70px;
    left: 12px;
    right: 12px;
  }

  .logo small {
    display: none;
  }

  h1 {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 48px;
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-art {
    min-height: 300px;
  }

  .brain-shape {
    width: min(320px, 100%);
    padding: 18px;
  }

  .quick-services {
    margin-top: 0;
    padding-top: 28px;
  }

  .quick-grid,
  .cards-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 46px 1fr;
    gap: 18px;
    padding: 24px;
  }

  .timeline-duration {
    grid-column: 2;
    align-self: auto;
  }

  .photo-placeholder {
    min-height: 340px;
  }

  .photo-placeholder img {
    height: 340px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }

  .footer-map iframe {
    min-height: 220px;
  }
}


/* Ajustes para versão estática sem backend */
.privacy-note {
  max-width: 620px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(130, 67, 217, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 14px;
}

.form-message.success {
  color: #16803d;
}

.form-message.error {
  color: #b42318;
}

.contact-form small {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    filter 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
  filter: blur(4px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  margin-bottom: 30px;
}

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroImageIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes softFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

@media (max-width: 620px) {
  .privacy-note {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
