/* =========================================================
   Cristina Yui — T.I.S.E.
   Design system + layout
   ========================================================= */

/* --- Tokens ------------------------------------------------ */
:root {
    --teal-50:  #f2f7f8;
    --teal-100: #dceaec;
    --teal-200: #bcd6da;
    --teal-400: #7aaeb6;
    --teal-500: #548d98;
    --teal-600: #467a84;
    --teal-700: #3a656e;
    --teal-900: #26454b;

    --ink:      #373737;
    --body:     #544f4f;
    --muted:    #7c7877;
    --line:     #e5e9ea;
    --surface:  #ffffff;
    --surface-2:#f8fafa;

    --font:       'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-serif: 'Noto Serif', Georgia, serif;

    --container: 1180px;
    --gutter: 24px;

    --radius-sm: 8px;
    --radius:    16px;
    --radius-lg: 26px;

    --shadow-sm: 0 2px 10px rgba(38, 69, 75, .06);
    --shadow:    0 10px 34px rgba(38, 69, 75, .10);
    --shadow-lg: 0 24px 60px rgba(38, 69, 75, .16);

    --header-h: 84px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* Componentes com display explícito (flex/grid) ignorariam o atributo hidden. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--body);
    background: var(--surface);
    overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, iframe, video { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4, h5 {
    margin: 0 0 .6em;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal-900); }

ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li + li { margin-top: .35em; }

strong { color: var(--ink); font-weight: 600; }
sup { font-size: .6em; vertical-align: super; line-height: 0; }

:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    padding: 12px 20px; background: var(--teal-700); color: #fff; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- Utilitários -------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--soft { background: var(--surface-2); }
.section--teal { background: var(--teal-900); color: #fff; }
.section--teal h2, .section--teal h3,
.section--teal p { color: #fff; }

.section--tise {
    position: relative; overflow: hidden; isolation: isolate;
    color: #fff;
}
.section--tise__bg { position: absolute; inset: 0; z-index: -2; }
.section--tise__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.section--tise__bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(38, 69, 75, .72) 0%, rgba(38, 69, 75, .86) 100%);
}
.section--tise .container { position: relative; }
.section--tise .section-head { margin-bottom: 0; max-width: 720px; }
.section--tise h2,
.section--tise p,
.section--tise .section-head p { color: #fff; }
.section--tise__lotus {
    display: block; width: 66px; margin: 0 auto 24px;
    filter: brightness(0) invert(1); opacity: .9;
}

.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.center { text-align: center; }

/* Cabeçalho de seção */
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.075rem; }

.eyebrow {
    display: inline-block; margin-bottom: 14px;
    font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: var(--teal-600);
}
.section--teal .eyebrow { color: var(--teal-200); }

.rule {
    width: 56px; height: 2px; margin: 0 0 22px;
    background: linear-gradient(90deg, var(--teal-500), var(--teal-200));
    border: 0;
}
.section-head--center .rule { margin-inline: auto; }

/* --- Botões -------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 30px;
    font: inherit; font-weight: 600; font-size: .95rem;
    color: #fff; background: var(--teal-500);
    border: 1px solid var(--teal-500); border-radius: 100px;
    cursor: pointer; text-align: center;
    transition: background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.btn:hover { background: var(--teal-700); border-color: var(--teal-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--teal-600); }
.btn--ghost:hover { background: var(--teal-500); border-color: var(--teal-500); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--teal-700); }
.btn--light:hover { background: var(--teal-100); border-color: var(--teal-100); color: var(--teal-900); }
.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--teal-700); }
.btn--sm { padding: 10px 22px; font-size: .875rem; }

.link-more {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; font-size: .95rem; color: var(--teal-600);
}
.link-more::after { content: '\2192'; transition: transform .22s var(--ease); }
.link-more:hover::after { transform: translateX(5px); }

/* --- Header -------------------------------------------------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 100;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    height: var(--header-h);
}
.site-header--transparent {
    background: transparent; border-bottom-color: transparent; backdrop-filter: none;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

body:not(.has-hero) { padding-top: var(--header-h); }

/* Marca */
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand__mark { width: 44px; height: auto; transition: filter .3s var(--ease); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 1.12rem; font-weight: 600; letter-spacing: .04em; }
.brand__sub { font-size: .68rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--teal-600); }

.site-header--transparent .brand { color: #fff; }
.site-header--transparent .brand__mark { filter: brightness(0) invert(1); }
.site-header--transparent .brand__sub { color: rgba(255, 255, 255, .8); }

/* Navegação */
.site-nav__list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav__list li { margin: 0; }
.site-nav__list a {
    position: relative; display: block; padding: 10px 14px;
    font-size: .935rem; font-weight: 500; color: var(--ink);
}
.site-nav__list a::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: var(--teal-500); transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
}
.site-nav__list a:hover { color: var(--teal-600); }
.site-nav__list a:hover::after,
.site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__list a[aria-current="page"] { color: var(--teal-600); }
.site-nav__cta { margin-left: 10px; }
.site-nav__cta a::after { display: none; }
.site-nav__cta .btn { color: #fff; }

.site-header--transparent .site-nav__list a { color: rgba(255, 255, 255, .9); }
.site-header--transparent .site-nav__list a:hover,
.site-header--transparent .site-nav__list a[aria-current="page"] { color: #fff; }
.site-header--transparent .site-nav__list a::after { background: #fff; }
.site-header--transparent .site-nav__cta .btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
.site-header--transparent .site-nav__cta .btn:hover { background: #fff; border-color: #fff; color: var(--teal-700); }

/* Botão hambúrguer */
.nav-toggle {
    display: none; width: 44px; height: 44px; padding: 0;
    background: none; border: 0; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle span {
    display: block; width: 26px; height: 2px; border-radius: 2px; background: var(--ink);
    transition: transform .28s var(--ease), opacity .2s var(--ease), background .3s var(--ease);
}
.site-header--transparent .nav-toggle span { background: #fff; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Hero ---------------------------------------------------- */
.hero {
    position: relative; display: flex; align-items: center;
    min-height: min(100svh, 860px); padding: calc(var(--header-h) + 40px) 0 80px;
    color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.12); }
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; animation: kenBurns 25s ease-in-out infinite alternate; }
.hero__bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(38, 69, 75, .92) 0%, rgba(38, 69, 75, .78) 45%, rgba(84, 141, 152, .55) 100%);
}
.hero__inner {
    position: relative; max-width: 760px; margin-inline: auto;
    text-align: center; display: flex; flex-direction: column; align-items: center;
}
.hero__lotus { width: 74px; margin-bottom: 26px; filter: brightness(0) invert(1); opacity: .9; }
.hero h1 { color: #fff; font-weight: 300; letter-spacing: .01em; }
.hero h1 strong { display: block; color: #fff; font-weight: 600; }
.hero__kicker {
    margin-bottom: 18px; font-size: .8rem; font-weight: 600;
    letter-spacing: .3em; text-transform: uppercase; color: var(--teal-200);
}
.hero__lead { max-width: 620px; margin-top: 22px; font-size: 1.1rem; color: rgba(255, 255, 255, .88); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

.hero__scroll {
    position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
    display: grid; place-items: center; width: 30px; height: 50px;
    border: 2px solid rgba(255, 255, 255, .45); border-radius: 100px;
}
.hero__scroll span {
    width: 4px; height: 8px; border-radius: 4px; background: #fff;
    animation: scrollDot 1.9s var(--ease) infinite;
}
@keyframes scrollDot {
    0%   { transform: translateY(-7px); opacity: 0; }
    35%  { opacity: 1; }
    100% { transform: translateY(8px); opacity: 0; }
}

/* Hero interno das páginas */
.page-hero {
    position: relative; padding: clamp(48px, 7vw, 86px) 0 clamp(40px, 6vw, 70px);
    background: linear-gradient(135deg, var(--teal-900), var(--teal-600));
    color: #fff; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; right: -80px; top: -120px;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%);
}
.page-hero__inner { position: relative; max-width: 760px; }
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p { color: rgba(255, 255, 255, .84); font-size: 1.075rem; }

.breadcrumb { margin-bottom: 18px; font-size: .85rem; color: rgba(255, 255, 255, .7); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; opacity: .55; }
.breadcrumb a { color: rgba(255, 255, 255, .82); }
.breadcrumb a:hover { color: #fff; }

/* --- Grid genérico ------------------------------------------- */
.grid { display: grid; gap: clamp(20px, 2.6vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* --- Cards de destaque (Palestras / Cursos / Técnicas) -------- */
.pillar {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 420px; padding: 34px 30px; overflow: hidden;
    border-radius: var(--radius-lg); color: #fff; isolation: isolate;
}
.pillar__img { position: absolute; inset: 0; z-index: -2; }
.pillar__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform-origin: top center; transition: transform .7s var(--ease); }
.pillar::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(38, 69, 75, .25) 0%, rgba(38, 69, 75, .72) 42%, rgba(38, 69, 75, .95) 100%);
    transition: background .4s var(--ease);
}
.pillar:hover .pillar__img img { transform: scale(1.07); }
.pillar:hover::after { background: linear-gradient(180deg, rgba(38, 69, 75, .4) 0%, rgba(38, 69, 75, .82) 42%, rgba(38, 69, 75, .97) 100%); }
.pillar h3 { color: #fff; margin-bottom: .5em; font-size: 1.5rem; }
.pillar h3::before {
    content: ''; display: block; width: 34px; height: 2px; margin-bottom: 16px; background: var(--teal-200);
}
.pillar blockquote { margin: 0; font-family: var(--font-serif); font-size: .96rem; font-style: italic; line-height: 1.7; color: rgba(255, 255, 255, .88); }
.pillar cite { display: block; margin-top: 12px; font-family: var(--font); font-size: .82rem; font-style: normal; font-weight: 600; letter-spacing: .06em; color: var(--teal-200); }

/* --- Bloco split (texto + imagem) ---------------------------- */
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 6vw, 76px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; isolation: isolate; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
/* A moldura fica atrás da foto, mas dentro do contexto de empilhamento do
   .split__media — senão o fundo da seção a esconderia. */
.split__media--framed::before {
    content: ''; position: absolute; inset: 22px -22px -22px 22px;
    border: 2px solid var(--teal-200); border-radius: var(--radius-lg); z-index: -1;
}
.split__body h2 { margin-bottom: .5em; }

/* --- Citação ------------------------------------------------- */
.quote {
    position: relative; max-width: 780px; margin-inline: auto; padding: 0 0 0 34px;
    border-left: 3px solid var(--teal-200);
    font-family: var(--font-serif); font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-style: italic;
    line-height: 1.65; color: var(--ink);
}
.quote cite { display: block; margin-top: 16px; font-family: var(--font); font-size: .88rem; font-style: normal; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); }
.quote--center { padding: 0; border: 0; text-align: center; }
.section--teal .quote { color: #fff; border-color: rgba(255, 255, 255, .35); }
.section--teal .quote cite { color: var(--teal-200); }

/* --- Técnicas ------------------------------------------------ */
.tecnica {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.tecnica:hover { transform: translateY(-4px); border-color: var(--teal-200); box-shadow: var(--shadow); }
.tecnica__media {
    position: relative; aspect-ratio: 16 / 9; overflow: hidden;
    background: var(--teal-50);
}
.tecnica__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s var(--ease); }
/* Logotipos e diagramas não podem ser cortados como fotos. */
.tecnica__media--contain { padding: 16px; background: #fff; }
.tecnica__media--contain img { object-fit: contain; }
.tecnica:hover .tecnica__media img { transform: scale(1.04); }
.tecnica:hover .tecnica__media--contain img { transform: scale(1.03); }
.tecnica__body { padding: 22px 24px 26px; }
.tecnica h3 { font-size: 1.08rem; line-height: 1.4; letter-spacing: .01em; }
.tecnica p { font-size: .95rem; color: var(--body); margin: 0; }

/* --- Cards de conteúdo (artigos, vídeos, portfólio) ---------- */
.card {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--teal-200); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--teal-50); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform-origin: top center; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 24px; }
.card__tag {
    align-self: flex-start; padding: 5px 12px; border-radius: 100px;
    font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: var(--teal-700); background: var(--teal-50);
}
.card__title { margin: 0; font-size: 1.08rem; line-height: 1.45; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--teal-600); }
.card__excerpt { margin: 0; font-size: .95rem; color: var(--muted); }
.card__footer { margin-top: auto; padding-top: 6px; }

/* Selo de play sobre a capa de vídeo */
.card__play {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(38, 69, 75, .32); transition: background .3s var(--ease);
}
.card:hover .card__play { background: rgba(38, 69, 75, .5); }
.card__play svg { width: 60px; height: 60px; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .35)); transition: transform .3s var(--ease); }
.card:hover .card__play svg { transform: scale(1.1); }

/* --- Depoimentos --------------------------------------------- */
.testimonial {
    display: flex; flex-direction: column; height: 100%; padding: 32px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.testimonial:hover { transform: translateY(-4px); border-color: var(--teal-200); box-shadow: var(--shadow); }
.testimonial__mark { font-family: var(--font-serif); font-size: 3.4rem; line-height: .7; color: var(--teal-200); }
.testimonial__text { margin: 16px 0 22px; font-size: .975rem; color: var(--body); }
.testimonial__text--clamp { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.testimonial__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.testimonial__name { font-weight: 600; color: var(--ink); }
.testimonial__tag {
    padding: 4px 11px; border-radius: 100px; background: var(--teal-50);
    font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--teal-700);
}

/* Carrossel */
.carousel { position: relative; }
.carousel__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, calc(33.333% - 21px));
    gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 8px; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__controls { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
.carousel__btn {
    display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
    background: #fff; border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
    color: var(--teal-700);
    transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.carousel__btn:hover { background: var(--teal-500); border-color: var(--teal-500); color: #fff; }
.carousel__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --- Abas ---------------------------------------------------- */
.tabs__list {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
    margin: 0 0 clamp(32px, 4vw, 52px); padding: 0; list-style: none;
}
.tabs__list li { margin: 0; }
.tabs__btn {
    padding: 11px 24px; font: inherit; font-size: .92rem; font-weight: 600;
    color: var(--body); background: var(--surface-2);
    border: 1px solid var(--line); border-radius: 100px; cursor: pointer;
    transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.tabs__btn:hover { border-color: var(--teal-400); color: var(--teal-700); }
.tabs__btn[aria-selected="true"] { background: var(--teal-500); border-color: var(--teal-500); color: #fff; }
.tabs__panel[hidden] { display: none; }

/* --- Galeria ------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery__item {
    position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
    border-radius: var(--radius-sm); background: var(--teal-50); cursor: zoom-in;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform-origin: top center; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item figcaption {
    position: absolute; inset: auto 0 0; padding: 26px 14px 12px;
    background: linear-gradient(transparent, rgba(38, 69, 75, .92));
    color: #fff; font-size: .8rem; line-height: 1.35;
    opacity: 0; transform: translateY(8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery__item:hover figcaption, .gallery__item:focus-visible figcaption { opacity: 1; transform: none; }
.gallery__item[hidden] { display: none; }

.gallery-more { margin-top: 32px; text-align: center; }

/* --- Lightbox ------------------------------------------------ */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 5vh 5vw; background: rgba(20, 36, 39, .94);
    opacity: 0; transition: opacity .28s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 90vh; text-align: center; }
.lightbox__figure img { max-width: 100%; max-height: 82vh; margin-inline: auto; border-radius: var(--radius-sm); object-fit: contain; }
.lightbox__figure figcaption { margin-top: 16px; color: rgba(255, 255, 255, .8); font-size: .9rem; }
.lightbox__close, .lightbox__nav {
    position: absolute; display: grid; place-items: center;
    background: rgba(255, 255, 255, .1); border: 0; border-radius: 50%;
    color: #fff; cursor: pointer; line-height: 1;
    transition: background .2s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .26); }
.lightbox__close { top: 20px; right: 20px; width: 46px; height: 46px; font-size: 2rem; }
.lightbox__nav { top: 50%; width: 54px; height: 54px; margin-top: -27px; font-size: 2.4rem; padding-bottom: 6px; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* --- Conteúdo longo (posts/artigos) -------------------------- */
.prose { max-width: 760px; margin-inline: auto; font-size: 1.075rem; }
.prose h2 { margin-top: 1.8em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.6em; }
.prose img { margin: 2em auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.prose blockquote {
    margin: 2em 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--teal-200);
    font-family: var(--font-serif); font-style: italic; color: var(--ink);
}
.prose figure { margin: 2em 0; }
.prose figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); text-align: center; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .btn { text-decoration: none; }
.prose ul { padding-left: 1.1em; list-style: none; }
.prose ul > li { position: relative; padding-left: 22px; }
.prose ul > li::before {
    content: ''; position: absolute; left: 0; top: .72em;
    width: 7px; height: 7px; border-radius: 50%; background: var(--teal-400);
}

/* Ficha de paciente nos depoimentos */
.ficha {
    display: grid; grid-template-columns: auto 1fr; gap: 10px 18px;
    margin: 0 0 2.2em; padding: 24px 28px;
    background: var(--teal-50); border-radius: var(--radius); font-size: .95rem;
}
.ficha dt { font-weight: 600; color: var(--teal-700); }
.ficha dd { margin: 0; color: var(--body); }

/* Autoria / instituição nos trabalhos científicos */
.autoria {
    margin: 0 0 2.2em; padding: 22px 26px;
    background: var(--surface-2); border-left: 3px solid var(--teal-400);
    border-radius: var(--radius-sm);
    font-size: .95rem; line-height: 1.75; color: var(--body);
}
.autoria strong { color: var(--teal-700); }

/* Referência bibliográfica do trabalho */
.citacao {
    margin: 2.4em 0 0; padding-top: 24px;
    border-top: 1px dotted var(--teal-200);
    font-size: .88rem; line-height: 1.7; color: var(--muted);
}

/* Entrevistas: pergunta + resposta */
.qa { margin: 0 0 1.8em; }
.qa__q {
    margin: 2em 0 .6em; font-family: var(--font-serif); font-weight: 600;
    font-size: 1.12rem; color: var(--teal-700);
}
.qa__a { margin: 0; }
.qa__a b, .qa__a strong { color: var(--ink); }

.video-embed {
    position: relative; aspect-ratio: 16 / 9; margin: 0 0 2.4em;
    overflow: hidden; border-radius: var(--radius); background: var(--teal-900); box-shadow: var(--shadow);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Lista de currículo */
.cv-list { margin: 0; padding: 0; list-style: none; counter-reset: cv; }
.cv-list li {
    position: relative; margin: 0; padding: 16px 0 16px 42px;
    border-bottom: 1px solid var(--line); font-size: .99rem;
}
.cv-list li:last-child { border-bottom: 0; }
.cv-list li::before {
    content: ''; position: absolute; left: 10px; top: 26px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #fff; border: 2px solid var(--teal-400);
}
.cv-list li::after {
    content: ''; position: absolute; left: 13.5px; top: 34px; bottom: -8px; width: 1px; background: var(--line);
}
.cv-list li:last-child::after { display: none; }

/* Currículo em blocos temáticos */
.cv-intro {
    max-width: 700px; margin: 0 auto clamp(36px, 4vw, 52px);
    font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.8;
    color: var(--ink); text-align: center;
}
.cv-group + .cv-group { margin-top: clamp(38px, 4vw, 56px); }
.cv-group__title {
    margin: 0 0 4px; padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-serif); font-size: 1.22rem; font-weight: 600;
    color: var(--teal-700);
}
.cv-list__note {
    display: block; margin-top: 6px;
    font-size: .9rem; line-height: 1.65; color: var(--muted);
}
.cv-list__note em { font-style: italic; }
.cv-list__note a { text-decoration: underline; text-underline-offset: 3px; }

/* --- Navegação entre posts ----------------------------------- */
.post-nav {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
    max-width: 760px; margin: clamp(48px, 6vw, 72px) auto 0;
    padding-top: 32px; border-top: 1px solid var(--line);
}
.post-nav a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }

/* --- Bloco de contato ---------------------------------------- */
.contact-card {
    display: flex; gap: 18px; padding: 26px; color: var(--body);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--teal-200); box-shadow: var(--shadow); }
.contact-card__icon {
    flex: 0 0 52px; display: grid; place-items: center; width: 52px; height: 52px;
    background: var(--teal-50); border-radius: 50%; color: var(--teal-600);
}
.contact-card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-card h3 { margin-bottom: .3em; font-size: 1.02rem; }
.contact-card p, .contact-card a { margin: 0; font-size: 1.02rem; color: var(--ink); font-weight: 500; }
.contact-card a { color: var(--body); }
.contact-card a:hover { color: var(--teal-600); }

.map-embed {
    aspect-ratio: 16 / 9; overflow: hidden;
    border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--teal-50);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.35); }

/* Faixa de CTA */
.cta-band {
    position: relative; padding: clamp(52px, 7vw, 86px) 0;
    background: linear-gradient(120deg, var(--teal-900), var(--teal-600));
    color: #fff; overflow: hidden; text-align: center;
}
.cta-band::before {
    content: ''; position: absolute; left: -100px; bottom: -160px;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .1), transparent 70%);
}
.cta-band__inner { position: relative; max-width: 660px; margin-inline: auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

/* --- Card resumido (Sobre) ---------------------------------- */
.profile-modal {
    position: fixed; inset: 0; z-index: 180;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 16px;
    background: rgba(38, 69, 75, .55);
    backdrop-filter: blur(8px);
    opacity: 0; transition: opacity .28s var(--ease);
}
.profile-modal[hidden] { display: none; }
.profile-modal.is-open { opacity: 1; }
.profile-modal__panel {
    position: relative; width: min(560px, 100%);
    max-height: min(90vh, 820px); overflow: auto;
    padding: 28px 28px 24px;
    background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg);
    transform: translateY(16px) scale(.98);
    transition: transform .28s var(--ease);
}
.profile-modal.is-open .profile-modal__panel { transform: none; }
.profile-modal__close {
    position: absolute; top: 18px; right: 18px;
    display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
    background: var(--surface-2); border: 0; border-radius: 50%;
    color: var(--muted); cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.profile-modal__close:hover { background: var(--teal-100); color: var(--teal-700); }
.profile-modal__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.profile-modal__head {
    display: flex; align-items: center; gap: 18px;
    padding: 4px 44px 22px 0;
    border-bottom: 1px solid var(--line);
}
.profile-modal__photo {
    flex: 0 0 88px; width: 88px; height: 88px; margin: 0;
    object-fit: cover; object-position: center 20%;
    border-radius: 50%; box-shadow: var(--shadow-sm);
}
.profile-modal__head h2 { margin: 0 0 4px; font-size: 1.45rem; }
.profile-modal__role { margin: 0; color: var(--teal-600); font-size: .98rem; }
.profile-modal__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.profile-modal__badges span {
    padding: 5px 11px; border-radius: 100px;
    font-size: .72rem; font-weight: 700; letter-spacing: .04em;
    color: var(--teal-700); background: var(--teal-50);
}
.profile-modal__list { display: grid; gap: 12px; margin: 18px 0 0; }
.profile-modal__list > div {
    padding: 16px 18px;
    background: var(--teal-50); border-radius: 16px;
}
.profile-modal__list dt {
    margin: 0 0 6px;
    font-size: .88rem; font-weight: 700; color: var(--teal-700);
}
.profile-modal__list dd { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--body); }
.profile-modal__foot {
    position: sticky; bottom: -24px; z-index: 1;
    display: flex; justify-content: center;
    margin-top: 20px; padding: 18px 0 24px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 22%);
}
.profile-modal__foot::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 1px; background: var(--line);
}
@media (max-width: 680px) {
    .profile-modal__foot { bottom: -18px; padding-bottom: 18px; }
}

@media (max-width: 680px) {
    .profile-modal__panel { padding: 22px 18px 18px; border-radius: 22px; }
    .profile-modal__head { gap: 14px; padding-right: 40px; }
    .profile-modal__photo { flex-basis: 72px; width: 72px; height: 72px; }
    .profile-modal__head h2 { font-size: 1.25rem; }
}

/* --- Footer -------------------------------------------------- */
.site-footer { background: var(--teal-900); color: rgba(255, 255, 255, .74); font-size: .96rem; }
.site-footer__grid {
    display: grid; grid-template-columns: 1.2fr 1.3fr .8fr; gap: clamp(32px, 5vw, 64px);
    padding-block: clamp(52px, 6vw, 76px);
}
.site-footer__brand img { width: 150px; }
.site-footer__tagline { margin-top: 18px; max-width: 280px; font-size: .9rem; color: rgba(255, 255, 255, .6); }
.site-footer__title {
    margin-bottom: 22px; font-size: .8rem; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase; color: #fff;
}
.site-footer__contact, .site-footer__nav { margin: 0; padding: 0; list-style: none; }
.site-footer__contact li { display: flex; gap: 12px; margin: 0 0 16px; }
.site-footer__contact svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--teal-400); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.site-footer__nav li { margin: 0 0 12px; }
.site-footer__social {
    display: inline-grid; place-items: center; width: 42px; height: 42px; margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; color: #fff;
    transition: background .22s var(--ease), border-color .22s var(--ease);
}
.site-footer__social:hover { background: var(--teal-500); border-color: var(--teal-500); }
.site-footer__social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__bar p { margin: 0; padding: 22px 0; font-size: .85rem; color: rgba(255, 255, 255, .5); text-align: center; }

/* --- Botões flutuantes --------------------------------------- */
.whatsapp-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    display: grid; place-items: center; width: 56px; height: 56px;
    background: #25d366; color: #fff; border-radius: 50%;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
    transition: transform .25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.whatsapp-float svg { width: 30px; height: 30px; }

.to-top {
    position: fixed; right: 22px; bottom: 88px; z-index: 90;
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    background: #fff; border: 1px solid var(--line); border-radius: 50%;
    color: var(--teal-700); cursor: pointer; box-shadow: var(--shadow-sm);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal-500); border-color: var(--teal-500); color: #fff; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* --- Animação de entrada -------------------------------------- */
.reveal.is-visible { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --- Responsivo ----------------------------------------------- */
@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .carousel__track { grid-auto-columns: minmax(0, calc(50% - 16px)); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    :root { --header-h: 72px; }

    .nav-toggle { display: flex; }

    .site-nav {
        position: fixed; inset: var(--header-h) 0 0 auto;
        width: min(340px, 86vw); padding: 28px 24px 40px;
        background: #fff; border-left: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        transform: translateX(105%); visibility: hidden;
        transition: transform .36s var(--ease), visibility .36s;
        overflow-y: auto;
    }
    .site-nav.is-open { transform: none; visibility: visible; }
    .site-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
    .site-nav__list a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); color: var(--ink); }
    .site-nav__list a::after { display: none; }
    .site-nav__cta { margin: 22px 0 0; }
    .site-nav__cta .btn { width: 100%; background: var(--teal-500); border-color: var(--teal-500); color: #fff; }
    .site-header--transparent .site-nav__list a { color: var(--ink); }

    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
    .split__media--framed::before { display: none; }
}

@media (max-width: 680px) {
    body { font-size: 1rem; }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .carousel__track { grid-auto-columns: minmax(0, 88%); gap: 16px; }
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pillar { min-height: 340px; padding: 26px 22px; }
    .hero { min-height: auto; padding: calc(var(--header-h) + 64px) 0 72px; }
    .hero__actions .btn { width: 100%; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .lightbox__nav { width: 44px; height: 44px; margin-top: -22px; font-size: 2rem; }
    .lightbox__nav--prev { left: 6px; }
    .lightbox__nav--next { right: 6px; }
    .to-top { bottom: 84px; right: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
