/* =========================================================
   Instituto Moratelli – Terapias Integradas
   Paleta extraída da logo
   ========================================================= */
:root {
  /* Marca */
  --green: #4E6B5C;        /* "Moratelli" */
  --green-dark: #3B5246;
  --green-soft: #E4ECE7;
  --orange: #ED8526;
  --orange-soft: #FDEBDA;
  --purple: #5F348F;
  --purple-soft: #ECE4F5;
  --blue: #2E6BAA;
  --blue-soft: #E1ECF7;

  /* Ambiente (creme + madeira da clínica) */
  --cream: #FBF6EE;
  --cream-2: #F4EADB;
  --wood: #B98A52;
  --ink: #2A3530;
  --muted: #5E6B64;
  --white: #FFFFFF;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px -18px rgba(46, 60, 52, .28);
  --shadow-sm: 0 6px 18px -8px rgba(46, 60, 52, .22);
  --header-h: 78px;

  --font-title: "Quicksand", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .5em; color: var(--green-dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section__head p { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.eyebrow--light { color: #CFE0D6; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 800; font-size: .98rem;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: var(--white); box-shadow: 0 10px 22px -10px rgba(237, 133, 38, .7); }
.btn--primary:hover { background: #DB7518; }
.btn--ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn--ghost:hover { background: var(--green); color: var(--white); }
.btn--lg { padding: 15px 28px; font-size: 1.03rem; }
.btn--block { width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(251, 246, 238, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .25s ease, background .25s ease;
}
.header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .25); background: rgba(251, 246, 238, .96); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__icon { width: 60px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-title); color: var(--green); }
.brand__text small { font-size: .62rem; letter-spacing: .38em; font-weight: 700; margin-bottom: 3px; }
.brand__text strong { font-size: 1.6rem; font-weight: 600; letter-spacing: -.01em; }
.brand--light .brand__text { color: var(--white); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--ink);
  position: relative; padding: 4px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--orange); border-radius: 2px; transform: scaleX(0); transition: transform .25s ease;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav__cta { padding: 10px 18px; }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--green); margin: 5px 0; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 56px) 0 90px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; pointer-events: none; }
.hero__blob--orange { width: 380px; height: 380px; background: var(--orange); top: -80px; left: -120px; }
.hero__blob--blue { width: 420px; height: 420px; background: var(--blue); bottom: -160px; right: -120px; opacity: .22; }
.hero__blob--purple { width: 260px; height: 260px; background: var(--purple); top: 40%; left: 45%; opacity: .14; }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hl { white-space: nowrap; }
.hl--orange { color: var(--orange); }
.hl--purple { color: var(--purple); }
.hl--blue { color: var(--blue); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 700; color: var(--green-dark); font-size: .95rem; }
.hero__badges li { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--orange { background: var(--orange); }
.dot--purple { background: var(--purple); }
.dot--blue { background: var(--blue); }

.hero__media { position: relative; justify-self: center; width: min(420px, 100%); }
.hero__photo {
  border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow);
  border: 8px solid var(--white);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero__card {
  position: absolute; left: -40px; bottom: 34px;
  display: flex; align-items: center; gap: 12px;
  background: var(--white); padding: 14px 18px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); max-width: 260px; animation: float 5s ease-in-out infinite;
}
.hero__card p { margin: 0; font-size: .9rem; line-height: 1.35; color: var(--muted); }
.hero__card strong { color: var(--green-dark); }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Sobre ---------- */
.about { background: var(--white); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.about__content > p { color: var(--muted); }
.about__content strong { color: var(--green-dark); }

.values { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.value { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius-sm); background: var(--cream); }
.value strong { display: block; font-family: var(--font-title); font-size: 1.05rem; }
.value small { color: var(--muted); font-size: .85rem; }
.value__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.value__icon svg, .card__icon svg, .info-list__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.value--green .value__icon { background: var(--green-soft); color: var(--green); }
.value--orange .value__icon { background: var(--orange-soft); color: var(--orange); }
.value--purple .value__icon { background: var(--purple-soft); color: var(--purple); }
.value--blue .value__icon { background: var(--blue-soft); color: var(--blue); }

/* ---------- Terapias ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; background: var(--white); border-radius: var(--radius); padding: 32px 28px 26px;
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--accent); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; background: var(--accent-soft); color: var(--accent); }
.card__icon svg { width: 28px; height: 28px; }
.card--orange { --accent: var(--orange); --accent-soft: var(--orange-soft); }
.card--purple { --accent: var(--purple); --accent-soft: var(--purple-soft); }
.card--blue { --accent: var(--blue); --accent-soft: var(--blue-soft); }
.card--green { --accent: var(--green); --accent-soft: var(--green-soft); }

.audience { margin-top: 56px; text-align: center; background: var(--green-soft); border-radius: var(--radius); padding: 36px 24px; }
.tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tags li { background: var(--white); color: var(--green-dark); font-weight: 700; font-size: .92rem; padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); }

/* ---------- Como funciona ---------- */
.steps-section { background: var(--white); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; position: relative; }
.step { position: relative; text-align: center; padding: 0 8px; }
.step::after {
  content: ""; position: absolute; top: 32px; left: calc(50% + 44px); width: calc(100% - 88px + 24px);
  border-top: 2px dashed #CFD9D3;
}
.step:last-child::after { display: none; }
.step__num {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px;
  font-family: var(--font-title); font-weight: 700; font-size: 1.6rem; color: var(--white);
}
.step:nth-child(1) .step__num { background: var(--orange); }
.step:nth-child(2) .step__num { background: var(--purple); }
.step:nth-child(3) .step__num { background: var(--blue); }
.step:nth-child(4) .step__num { background: var(--green); }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- Galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 16px; grid-auto-flow: dense; }
.gallery__item {
  position: relative; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; border-radius: var(--radius-sm);
  background: var(--cream-2);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__label {
  position: absolute; left: 14px; bottom: 14px; background: rgba(255, 255, 255, .92); color: var(--green-dark);
  font-weight: 800; font-size: .85rem; padding: 6px 14px; border-radius: 999px;
}

/* ---------- Acessibilidade ---------- */
.access { background: var(--green); color: #EEF4F0; }
.access h2 { color: var(--white); }
.access__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.access strong { color: var(--white); }
.access__media img { border-radius: var(--radius); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .45); max-height: 520px; width: 100%; height: auto; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.checklist li::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- FAQ ---------- */
.faq__inner { max-width: 820px; }
.accordion details { background: var(--white); border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.accordion summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-family: var(--font-title); font-weight: 700; font-size: 1.08rem; color: var(--green-dark);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange); font-size: 1.3rem; line-height: 1; transition: transform .25s;
}
.accordion details[open] summary::after { content: "−"; }
.accordion details p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* ---------- Contato ---------- */
.contact { background: var(--white); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__info > .btn { margin-top: 4px; }
.info-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list strong { display: block; font-family: var(--font-title); color: var(--green-dark); }
.info-list a, .info-list span:not(.info-list__icon) { color: var(--muted); text-decoration: none; }
.info-list a:hover { color: var(--orange); }
.info-list__icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.info-list__icon--green { background: var(--green-soft); color: var(--green); }
.info-list__icon--orange { background: var(--orange-soft); color: var(--orange); }
.info-list__icon--purple { background: var(--purple-soft); color: var(--purple); }
.info-list__icon--blue { background: var(--blue-soft); color: var(--blue); }

.form { background: var(--cream); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); display: grid; gap: 16px; }
.form h3 { margin: 0; font-size: 1.5rem; }
.form__hint { margin: -8px 0 4px; color: var(--muted); font-size: .93rem; }
.form label { display: grid; gap: 6px; }
.form label span { font-weight: 700; font-size: .9rem; color: var(--green-dark); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  padding: 12px 14px; border-radius: 12px; border: 2px solid #E3DACB; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.form .is-invalid { border-color: #D0453A; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__error { color: #C0392B; font-weight: 700; margin: 0; font-size: .92rem; }

.map { margin-top: 56px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); height: 360px; background: var(--cream-2); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--green-dark); color: #CFDDD4; padding: 56px 0 24px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer__brand p { margin: 14px 0 0; max-width: 340px; }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__nav a { text-decoration: none; font-weight: 700; }
.footer__nav a:hover { color: var(--orange); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; text-align: center; opacity: .8; }

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: var(--white); box-shadow: 0 12px 26px -8px rgba(37, 211, 102, .7);
  transition: transform .2s;
}
.whats-float:hover { transform: scale(1.08); }
.whats-float svg { width: 32px; height: 32px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 28, 24, .9); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius-sm); }
.lightbox__close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: var(--white); font-size: 2.6rem; cursor: pointer; line-height: 1; }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__card { animation: none; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step::after { display: none; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
}

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: 8px 16px 24px; box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3);
    transform: translateY(-120%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid #EADFCF; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 16px; }

  .hero__inner, .about__grid, .access__grid, .contact__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: calc(var(--header-h) + 32px); }
  .hero__media { width: min(360px, 100%); }
  .hero__card { left: -8px; }
  .about__media { order: 2; }
  .access__media img { max-height: 420px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .form { padding: 24px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; gap: 8px; }
  .hero__actions .btn { width: 100%; }
  .hero__card { position: relative; left: 0; bottom: 0; margin: -40px auto 0; }
  .brand__text strong { font-size: 1.4rem; }
  .brand__icon { width: 48px; }
  .map { height: 280px; }
}

/* =========================================================
   Página "Quem somos"
   ========================================================= */
.about__more { margin-top: 28px; }

.page-hero { padding-bottom: 72px; }
.page-hero__inner { position: relative; max-width: 820px; text-align: center; }
.page-hero .lead { margin-inline: auto; }
.breadcrumb { font-size: .9rem; font-weight: 700; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--green); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }

.mvv .card p strong { color: var(--green-dark); }

.integrated { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.integrated__item { background: var(--cream); border-radius: var(--radius); padding: 28px 24px; }
.integrated__item p { color: var(--muted); margin: 0; font-size: .96rem; }
.integrated__num { display: block; font-family: var(--font-title); font-weight: 700; font-size: 2.2rem; line-height: 1; margin-bottom: 14px; }
.integrated__item:nth-child(1) .integrated__num { color: var(--orange); }
.integrated__item:nth-child(2) .integrated__num { color: var(--purple); }
.integrated__item:nth-child(3) .integrated__num { color: var(--blue); }
.integrated__item:nth-child(4) .integrated__num { color: var(--green); }

.brand-colors { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.brand-colors li { display: flex; align-items: center; gap: 12px; }
.brand-colors span { flex: none; width: 40px; height: 40px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.brand-colors strong { display: block; font-family: var(--font-title); color: var(--green-dark); }
.brand-colors small { color: var(--muted); font-size: .86rem; }

.cta-band {
  text-align: center; border-radius: 32px; padding: clamp(40px, 6vw, 64px) 24px;
  background: linear-gradient(135deg, var(--orange-soft), var(--purple-soft) 55%, var(--blue-soft));
}
.cta-band img { width: 90px; height: auto; margin: 0 auto 18px; }
.cta-band p { color: var(--muted); max-width: 560px; margin-inline: auto; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }

@media (max-width: 1024px) {
  .integrated { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .page-hero { padding-top: calc(var(--header-h) + 40px); }
}
@media (max-width: 600px) {
  .integrated, .brand-colors { grid-template-columns: 1fr; }
  .cta-band__actions .btn { width: 100%; }
}

@media (max-width: 600px) {
  .gallery__label { left: 8px; bottom: 8px; font-size: .7rem; padding: 4px 10px; }
}
