/* ============================================
   Cérebro e Cia — identidade refinada
   predominante: #92C4B3 (mint) · #AA83B8 (roxo)
   secundário:   #EFD069 (amarelo — só como acento)
   fundo:        #FFFFFF
   ============================================ */

:root {
  --mint: #92C4B3;
  --mint-soft: #f3faf7;
  --mint-mid: #7bb5a3;
  --mint-deep: #4f8a79;
  --purple: #AA83B8;
  --purple-soft: #f8f4fa;
  --purple-mid: #9a74a9;
  --purple-deep: #7d5a8c;
  --yellow: #EFD069;
  --yellow-soft: #fbf6e3;
  --yellow-deep: #c9a83f;
  --bg: #ffffff;
  --bg-alt: #fafbfc;
  --text: #3a3a44;
  --text-muted: #6a6a76;
  --line: rgba(90, 100, 110, 0.1);
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 12px 40px rgba(70, 80, 100, 0.08);
  --header-h: 120px;
  --ease: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-deep); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--mint-deep); }

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header.is-scrolled {
  box-shadow: 0 4px 24px rgba(80, 90, 110, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 96px;
  width: auto;
  object-fit: contain;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  list-style: none;
}

.nav__link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav__link:hover,
.nav__link.is-active { color: var(--purple-deep); }

.nav__link--cta {
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background: var(--mint);
  color: #fff !important;
  font-weight: 600;
}

.nav__link--cta:hover {
  background: var(--mint-deep);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  background: var(--purple-deep);
  border-radius: 2px;
  transition: var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Patterns (sutis) ---------- */
.pattern-layer {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
}

.pattern-layer--icons {
  background-image: url("../assets/patterns/pattern1.png");
  background-size: 220px;
  opacity: 0.055;
}

.pattern-layer--brain {
  background-image: url("../assets/patterns/pattern2.png");
  background-size: 240px;
  opacity: 0.05;
}

.pattern-layer--icons-dark {
  background-image: url("../assets/patterns/pattern1-dark.png");
  background-size: 210px;
  opacity: 0.1;
  mix-blend-mode: soft-light;
}

.pattern-layer--brain-dark {
  background-image: url("../assets/patterns/pattern2-dark.png");
  background-size: 230px;
  opacity: 0.12;
  mix-blend-mode: soft-light;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: var(--header-h);
  background: var(--bg);
}

.hero__frame {
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__image {
  width: 100%;
  height: min(72vh, 680px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  padding: 1.6rem 1rem 2.2rem;
  background: var(--bg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.7rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: var(--ease);
}

.btn--primary {
  background: var(--mint);
  color: #fff;
}

.btn--primary:hover {
  background: var(--mint-deep);
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--purple-deep);
  border-color: rgba(170, 131, 184, 0.45);
}

.btn--ghost:hover {
  background: var(--purple-soft);
  border-color: var(--purple);
  color: var(--purple-deep);
}

.btn--whatsapp {
  margin-top: 1.4rem;
  background: var(--purple);
}

.btn--whatsapp:hover {
  background: var(--purple-deep);
  color: #fff;
}

/* ---------- Stats ---------- */
.stats {
  position: relative;
  overflow: hidden;
  background: var(--purple-deep);
  color: #fff;
  padding: 2.6rem 0;
}

.stats .container { position: relative; z-index: 1; }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 600;
  color: var(--yellow);
  line-height: 1.15;
}

.stat__label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0.35rem;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.section > .container { position: relative; z-index: 1; }

.section--sobre { background: var(--mint-soft); }
.section--historia { background: var(--bg); }
.section--servicos { background: var(--bg-alt); }
.section--galeria { background: var(--bg); }
.section--equipe { background: var(--purple-soft); }
.section--faq { background: var(--bg); }

.section--contato {
  position: relative;
  background: var(--mint-deep);
  color: #fff;
}

.section__header { margin-bottom: 2.6rem; }

.section__header--center {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 2.6rem;
}

.section__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 0.65rem;
}

.section--contato .section__tag {
  color: var(--yellow);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.45rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.22;
}

.section--contato .section__title { color: #fff; }

.section__desc {
  margin-top: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Sobre ---------- */
.sobre__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.sobre__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sobre__media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.sobre__media-caption {
  padding: 0.85rem 1.1rem;
  background: var(--mint-deep);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

.sobre__text p + p {
  margin-top: 1rem;
  color: var(--text-muted);
}

.sobre__cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
}

.card--mission {
  border-top: 3px solid var(--mint);
}

.card--vision {
  border-top: 3px solid var(--purple);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.valores__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--text);
  margin-bottom: 1.15rem;
}

.valores__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.9rem;
}

.valores__list li {
  padding: 1rem 1.15rem;
  background: #fff;
  border-radius: var(--radius);
  border-left: 3px solid var(--yellow);
  box-shadow: 0 2px 12px rgba(70, 80, 100, 0.04);
  color: var(--text-muted);
  font-size: 0.96rem;
}

.valores__list strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.2rem;
}

/* ---------- História ---------- */
.historia__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.historia__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.historia__media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
}

.historia__text p + p {
  margin-top: 1rem;
  color: var(--text-muted);
}

/* ---------- Serviços ---------- */
.servicos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.2rem;
}

.servico {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--ease);
}

.servico:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(146, 196, 179, 0.45);
}

.servico--soon { opacity: 0.9; }

.servico__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.95rem;
  border-radius: 14px;
  background: var(--mint-soft);
  color: var(--mint-deep);
}

.servico:nth-child(even) .servico__icon {
  background: var(--purple-soft);
  color: var(--purple-deep);
}

.servico__icon svg { width: 28px; height: 28px; }

.servico h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.servico p {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.48rem;
  background: var(--yellow-soft);
  color: var(--yellow-deep);
  border-radius: 4px;
  margin-right: 0.3rem;
}

/* ---------- Galeria ---------- */
.galeria__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.9rem;
}

.galeria__item {
  grid-column: span 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: 0 4px 20px rgba(70, 80, 100, 0.07);
  min-height: 240px;
}

.galeria__item--wide { grid-column: span 8; }
.galeria__item--tall { min-height: 300px; }

.galeria__item img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: center;
}

/* ---------- Equipe ---------- */
.equipe__featured {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.6rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.equipe__featured-foto {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
}

.equipe__featured-info h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  color: var(--text);
}

.equipe__featured-badge {
  display: inline-block;
  margin: 0.5rem 0 0.8rem;
  padding: 0.32rem 0.85rem;
  background: var(--yellow);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}

.equipe__featured-info p { color: var(--text-muted); }

.equipe__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.35rem;
}

.profissional {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: var(--ease);
}

.profissional:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.profissional__foto {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-alt);
}

.profissional__foto--logo {
  object-fit: contain;
  padding: 2.4rem;
  background: var(--mint-soft);
}

.profissional__info { padding: 1.2rem 1.3rem 1.4rem; }

.profissional__info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
}

.profissional__cargo {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--purple-mid);
  margin: 0.25rem 0 0.65rem;
}

.profissional__info p:last-child {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.profissional--incomplete { border-style: dashed; }

/* ---------- FAQ ---------- */
.faq__layout {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 2.4rem;
  align-items: start;
}

.faq__item {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}

.faq__item summary {
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  color: var(--mint-mid);
  font-size: 1.2rem;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p {
  margin-top: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Contato ---------- */
.contato__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.4rem;
  align-items: start;
}

.contato__address {
  font-style: normal;
  margin: 1.3rem 0;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

.contato__links { list-style: none; }
.contato__links li + li { margin-top: 0.4rem; }
.contato__links a {
  color: var(--yellow);
  font-weight: 600;
}
.contato__links a:hover { color: #fff; }

.contato__map {
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.contato__map iframe {
  min-height: 320px;
  width: 100%;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  overflow: hidden;
  background: #2f3038;
  color: rgba(255, 255, 255, 0.72);
  padding: 2.5rem 0;
}

.footer .pattern-layer { opacity: 0.08; }

.footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.footer__logo {
  height: 64px;
  width: auto;
}

.footer__copy { font-size: 0.88rem; }

.footer__nav { display: flex; gap: 1.3rem; }
.footer__nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}
.footer__nav a:hover { color: var(--yellow); }

/* ---------- Back top / reveal ---------- */
.back-top {
  position: fixed;
  bottom: 1.3rem;
  right: 1.3rem;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mint);
  color: #fff;
  border-radius: 50%;
  font-size: 1.15rem;
  box-shadow: var(--shadow);
  z-index: 900;
}

.back-top:hover {
  background: var(--purple);
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .sobre__grid,
  .historia__layout,
  .faq__layout,
  .contato__layout,
  .equipe__featured {
    grid-template-columns: 1fr;
  }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .historia__media { order: -1; }
  .hero__image { height: min(55vh, 460px); }

  .galeria__item,
  .galeria__item--wide { grid-column: span 6; }
}

@media (max-width: 768px) {
  :root { --header-h: 96px; }

  .logo img { height: 72px; }

  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0 1.2rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--ease);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1.35rem;
    gap: 0;
  }

  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link { display: block; padding: 0.9rem 0; }
  .nav__link--cta { text-align: center; margin-top: 0.55rem; }

  .section { padding: 3.4rem 0; }

  .galeria__item,
  .galeria__item--wide { grid-column: span 12; }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .btn { width: 100%; }
  .logo img { height: 60px; }
  :root { --header-h: 84px; }
}
