/*
Theme Name: Ecossistema MENTIS
Theme URI: https://mentis-site.vercel.app
Author: Ecossistema MENTIS
Description: Tema institucional do Ecossistema MENTIS, com foco em cuidado médico em saúde mental e agendamento responsável.
Version: 1.4.0
Text Domain: mentis
*/

:root {
  --ink: #020b14;
  --ink-2: #061424;
  --ink-3: #0a1b2c;
  --cream: #f4efe5;
  --muted: #aeb8c2;
  --muted-dim: #7e8b98;
  --gold: #d6a84d;
  --gold-light: #f0c873;
  --line: rgba(214,168,77,.22);
  --line-soft: rgba(255,255,255,.09);
  --radius: 22px;
  --radius-lg: 34px;
  --max: 1538px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 55% -10%, rgba(17,59,83,.22), transparent 34%), var(--ink);
  color: var(--cream);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
:where(a, button, input, textarea, select, summary):focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 0; padding: 12px; background: #fff; color: #000; z-index: 9999; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(2,11,20,.9);
  backdrop-filter: blur(18px);
}
.header-inner { width: min(calc(100% - 40px), var(--max)); min-height: 78px; margin: auto; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { width: 42px; height: 46px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 0 8px rgba(214,168,77,.32)); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: Georgia, "Times New Roman", serif; letter-spacing: .19em; font-size: 18px; }
.brand-sub { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.25; letter-spacing: .13em; text-transform: uppercase; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 25px; }
.site-nav a { color: var(--muted); font-size: 14px; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav .current-menu-item > a { color: var(--gold-light); }
.nav-cta { padding: 10px 16px; border: 1px solid var(--gold); border-radius: 999px; color: var(--cream) !important; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-soft); border-radius: 12px; color: var(--cream); background: transparent; cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 19px; height: 1px; margin: 5px auto; background: currentColor; }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.site-main { min-height: 70vh; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.hero {
  position: relative; isolation: isolate; min-height: 560px; margin-top: 20px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ink-2);
  display: grid; align-items: center;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(2,8,18,.12) 0%, rgba(2,8,18,.83) 38%, rgba(2,8,18,.94) 61%, rgba(2,8,18,.17) 84%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(2,8,18,.28), transparent 50%); }
.hero-content { width: min(90%, 690px); margin-left: 25%; padding: 70px 0; }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: 12px; font-weight: 650; letter-spacing: .28em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero h1 { max-width: 780px; margin: 0; font-size: clamp(2.7rem, 5vw, 5.5rem); line-height: .98; letter-spacing: -.035em; }
.hero h1 em { color: var(--gold-light); font-weight: 400; }
.hero-lead { max-width: 55ch; margin: 26px 0 0; color: var(--muted); font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 1px solid var(--gold); border-radius: 999px; background: linear-gradient(135deg,var(--gold-light),var(--gold)); color: #07111c; font-size: 14px; font-weight: 750; letter-spacing: .02em; transition: transform .2s ease, filter .2s ease; cursor: pointer; }
.button:hover { transform: translateY(-2px); filter: brightness(1.05); }
.button.secondary { border-color: var(--line); background: rgba(3,13,23,.62); color: var(--cream); }

.section { padding-top: 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem,3vw,3.25rem); line-height: 1.08; }
.section-heading p { max-width: 55ch; margin: 0; color: var(--muted); font-size: 14px; }
.ecosystem-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.pillar { position: relative; min-height: 360px; overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--ink-2); }
.pillar:nth-child(-n+3) { grid-column: span 2; }
.pillar:nth-child(n+4) { grid-column: span 3; min-height: 320px; }
.pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.pillar:hover img { transform: scale(1.035); }
.pillar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,9,16,.97), rgba(2,9,16,.18) 72%); }
.pillar-copy { position: absolute; inset: auto 0 0; z-index: 2; padding: 26px; }
.pillar h3 { margin: 0; font-size: 25px; }
.pillar p { margin: 8px 0 16px; color: var(--muted); font-size: 13.5px; }
.text-link { color: var(--gold-light); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.principles { margin-top: 18px; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.principle { padding: 25px; background: linear-gradient(180deg,#081828,#05111d); }
.principle + .principle { border-left: 1px solid var(--line-soft); }
.principle strong { display: block; color: var(--cream); font-family: Georgia,serif; font-size: 17px; font-weight: 400; }
.principle span { display: block; margin-top: 7px; color: var(--muted); font-size: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }
.copy h2 { margin: 0; font-size: clamp(2rem,3vw,3.3rem); line-height: 1.12; }
.copy p { color: var(--muted); font-size: 15px; }
.steps { margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); list-style: none; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 17px; padding: 23px; background: linear-gradient(to bottom,#0a1725,#071320); }
.steps li + li { border-top: 1px solid var(--line-soft); }
.step-number { color: var(--gold); font-family: Georgia,serif; font-size: 23px; }
.steps strong { display: block; font-family: Georgia,serif; font-weight: 400; }
.steps p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.final-cta { margin-top: 90px; padding: 70px 25px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(120deg,#061423,#04101d 58%,#020c17); text-align: center; }
.final-cta h2 { max-width: 24ch; margin: auto; font-size: clamp(2rem,3vw,3.35rem); line-height: 1.08; }
.final-cta p { max-width: 58ch; margin: 18px auto 0; color: var(--muted); }
.final-cta .actions { justify-content: center; }

.faq-grid { display: grid; gap: 14px; }
.faq-grid details { border: 1px solid var(--line-soft); border-radius: 16px; background: linear-gradient(160deg,#0a1b2c,#061320); }
.faq-grid summary { padding: 20px 22px; color: var(--cream); font-family: Georgia, "Times New Roman", serif; font-size: 20px; cursor: pointer; }
.faq-grid details p { margin: 0; padding: 0 22px 22px; color: var(--muted); font-size: 15px; }

.page-hero { padding: 95px 0 38px; border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { max-width: 18ch; margin: 0; font-size: clamp(2.7rem,5vw,5.1rem); line-height: 1; letter-spacing: -.035em; }
.page-lead { max-width: 64ch; margin: 24px 0 0; color: var(--muted); font-size: 17px; }
.content-grid { display: grid; grid-template-columns: 1.45fr .8fr; gap: 42px; padding: 60px 0 100px; }
.content-grid.single { grid-template-columns: 1fr; }
.panel { padding: 30px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: linear-gradient(160deg,rgba(10,26,42,.94),rgba(4,15,26,.94)); }
.panel h2, .panel h3 { margin-top: 0; }
.panel p { color: var(--muted); font-size: 15px; }
.panel a:not(.button) { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.prose { max-width: 76ch; color: var(--muted); }
.prose h2 { margin-top: 42px; color: var(--cream); font-size: 28px; }
.prose p, .prose li { font-size: 15px; line-height: 1.8; }
.prose a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.card { padding: 27px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: linear-gradient(160deg,#0a1b2c,#061320); }
.card h2, .card h3 { margin: 0; font-size: 24px; }
.card p { color: var(--muted); font-size: 14px; }
.notice { padding: 18px 20px; border-left: 3px solid var(--gold); background: rgba(214,168,77,.08); color: var(--muted); }
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; border: 1px solid var(--line-soft); border-radius: 12px; outline: none; background: #030e18; color: var(--cream); padding: 13px 14px; text-transform: none; letter-spacing: 0; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,168,77,.12); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.form-note { color: var(--muted); font-size: 14px; }
.status { margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; background: rgba(214,168,77,.1); color: var(--cream); }
.contact-priority { grid-template-columns: 1.15fr .85fr; }
.booking-panel h2 { margin-bottom: 14px; font-size: clamp(2rem,3vw,3rem); line-height: 1.08; }
.contact-steps { display: grid; gap: 10px; margin: 26px 0; padding-left: 22px; color: var(--muted); }
.contact-steps li { padding-left: 6px; }

.site-footer { margin-top: 100px; border-top: 1px solid var(--line-soft); background: #01070d; }
.footer-inner { width: min(calc(100% - 40px),var(--max)); margin: auto; display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 50px; padding: 55px 0 36px; }
.footer-inner h2, .footer-inner h3 { margin: 0 0 14px; font-size: 16px; }
.footer-inner p, .footer-inner a { color: var(--muted); font-size: 14px; }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { width: min(calc(100% - 40px),var(--max)); margin: auto; padding: 18px 0 28px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 13px; }
.whatsapp-float { display: none; }

@media (max-width: 1050px) {
  .site-nav { display: none; position: absolute; left: 20px; right: 20px; top: 68px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #061321; flex-direction: column; align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .menu-toggle { display: block; }
  .hero { min-height: 720px; align-items: end; }
  .hero::before { background: linear-gradient(to bottom,rgba(2,8,18,.12),rgba(2,8,18,.96) 67%); }
  .hero-bg { object-position: 70% center; }
  .hero-content { width: auto; margin: 0; padding: 270px 34px 48px; }
  .ecosystem-grid { grid-template-columns: 1fr 1fr; }
  .pillar, .pillar:nth-child(-n+3), .pillar:nth-child(n+4) { grid-column: span 1; min-height: 320px; }
  .pillar:last-child { grid-column: span 2; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(3) { border-left: 0; border-top: 1px solid var(--line-soft); }
  .principle:nth-child(4) { border-top: 1px solid var(--line-soft); }
  .split, .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body.admin-bar .site-header { top: 46px; }
  .header-inner, .container, .footer-inner, .footer-bottom { width: min(calc(100% - 28px),var(--max)); }
  .header-inner { min-height: 68px; }
  .brand-sub { display: none; }
  .hero { margin-top: 12px; min-height: 610px; border-radius: 24px; }
  .hero-content { padding: 220px 22px 34px; }
  .hero h1 { font-size: clamp(2.15rem,10.5vw,3.1rem); }
  .hero-lead { font-size: 15px; }
  .actions .button { width: 100%; }
  .section { padding-top: 68px; }
  .section-heading { align-items: start; flex-direction: column; }
  .ecosystem-grid, .cards { grid-template-columns: 1fr; }
  .pillar, .pillar:nth-child(-n+3), .pillar:nth-child(n+4), .pillar:last-child { grid-column: span 1; }
  .principles { grid-template-columns: 1fr; }
  .principle + .principle { border-left: 0; border-top: 1px solid var(--line-soft); }
  .split { gap: 30px; }
  .page-hero { padding-top: 68px; }
  .page-hero h1 { font-size: 2.45rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .whatsapp-float { position: fixed; right: 14px; bottom: 14px; z-index: 120; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border: 1px solid var(--gold); border-radius: 999px; background: linear-gradient(135deg,var(--gold-light),var(--gold)); color: #07111c; box-shadow: 0 10px 30px rgba(0,0,0,.38); font-size: 14px; font-weight: 750; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
