/* ===================================================================
   NeuroMotion — estilo do site público
   Design moderno, mobile-first, com variáveis de tema.
   =================================================================== */

:root {
    --brand:        #1577c4;
    --brand-dark:   #0c5390;
    --brand-darker: #083b66;
    --accent:       #16b8a6;
    --ink:          #14243a;
    --muted:        #5b6b7d;
    --line:         #e4ebf2;
    --bg:           #ffffff;
    --soft:         #f3f8fc;
    --soft-2:       #eaf3fb;

    --radius:    14px;
    --radius-lg: 22px;
    --shadow:    0 10px 30px rgba(16, 49, 84, .08);
    --shadow-lg: 0 24px 60px rgba(16, 49, 84, .16);
    --container: 1160px;
    --header-h:  72px;

    --ff-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --ff-head: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --ff-body: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ----------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--ff-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.2; color: var(--ink); font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.container--narrow { max-width: 820px; }

/* --------------------------------------------------------- Botões */
.btn {
    display: inline-flex; align-items: center; gap: .5em;
    font-family: var(--ff-head); font-weight: 600; font-size: .98rem;
    padding: .85em 1.6em; border-radius: 999px; border: 1.5px solid transparent;
    cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
    line-height: 1; white-space: nowrap;
}
.btn--sm { padding: .65em 1.2em; font-size: .9rem; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(21, 119, 196, .3); }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(21, 119, 196, .4); }
.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--brand-dark); transform: translateY(-2px); }

/* ----------------------------------------------------- Cabeçalho */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: box-shadow .3s; }
.topbar { background: var(--brand-darker); color: #dceaf6; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__contact { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.topbar__contact a, .topbar__hours { color: #dceaf6; display: inline-flex; align-items: center; gap: 6px; }
.topbar__contact a:hover { color: #fff; }
.topbar__contact i, .topbar__hours i { color: var(--accent); }
.topbar__social { display: flex; gap: 12px; }
.topbar__social a:hover { color: #fff; }

.navbar { background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: background .3s; }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.navbar__brand img { height: 46px; width: auto; }
.navbar__menu { display: flex; align-items: center; gap: 28px; }
.navbar__menu ul { display: flex; gap: 26px; }
.navbar__menu a { font-family: var(--ff-head); font-weight: 500; color: var(--ink); font-size: .98rem; position: relative; padding: 6px 0; }
.navbar__menu ul a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--brand); transition: width .25s; }
.navbar__menu ul a:hover { color: var(--brand); }
.navbar__menu ul a:hover::after { width: 100%; }
.navbar__cta { color: #fff; }

.navbar__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.navbar__toggle span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s; }
.navbar__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar__toggle.is-open span:nth-child(2) { opacity: 0; }
.navbar__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ----------------------------------------------------- Seção base */
.block { padding: clamp(56px, 8vw, 100px) 0; }
.block:nth-child(even) { background: var(--soft); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(34px, 5vw, 54px); }
.eyebrow { font-family: var(--ff-head); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.section__title { font-family: var(--ff-display); font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 600; }
.section__rule { display: block; width: 60px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); margin: 18px auto 0; }

/* Texto rico */
.rich { color: var(--muted); }
.rich h4 { color: var(--ink); margin: 22px 0 6px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }
.rich h4:first-child { margin-top: 0; }
.rich p { margin-bottom: 14px; }
.rich ul { list-style: disc; padding-left: 20px; margin-bottom: 14px; }
.rich strong { color: var(--ink); }

/* ----------------------------------------------------------- Hero (slideshow) */
.hero { position: relative; min-height: 100svh; overflow: hidden; color: #fff; display: flex; }
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; display: grid; place-items: center; pointer-events: none; }
.hero__slide.is-active { opacity: 1; pointer-events: auto; }
.hero__slide::before { content: ""; position: absolute; inset: 0; background-image: var(--bg); background-size: cover; background-position: center 40%; transform: scale(1.08); }
.hero__slide.is-active::before { animation: heroZoom 7s ease-out forwards; }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 42, 74, .42), rgba(8, 42, 74, .80)); }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__slide-inner { position: relative; z-index: 2; text-align: center; padding: 0 24px; max-width: 980px; transform: translateY(14px); opacity: 0; transition: opacity .9s ease .25s, transform .9s ease .25s; }
.hero__slide.is-active .hero__slide-inner { opacity: 1; transform: none; }
.hero__title { font-family: var(--ff-display); color: #fff; font-weight: 600; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.08; text-shadow: 0 6px 28px rgba(0, 0, 0, .35); }
.hero__subtitle { margin: 20px auto 0; font-size: clamp(1rem, 2vw, 1.3rem); color: #eaf2fb; max-width: 660px; }
.hero__cta { position: absolute; left: 0; right: 0; bottom: clamp(86px, 14vh, 132px); z-index: 4; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; padding: 0 20px; }
.hero__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 1.35rem; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s; box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }
.hero__nav:hover { background: #11a092; transform: translateY(-50%) scale(1.07); }
.hero__nav--prev { left: clamp(10px, 3vw, 40px); }
.hero__nav--next { right: clamp(10px, 3vw, 40px); }
.hero__dots { position: absolute; bottom: 30px; left: 0; right: 0; z-index: 5; display: flex; gap: 9px; justify-content: center; }
.hero__dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; transition: .25s; padding: 0; }
.hero__dots button.is-active { background: #fff; width: 30px; border-radius: 6px; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ----------------------------------------------------- Highlights */
.highlights { padding: 0; background: transparent !important; }
.highlights__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: -60px; position: relative; z-index: 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.highlight { background: var(--brand); color: #fff; padding: 38px 28px; text-align: center; transition: transform .3s; }
.highlight:nth-child(2) { background: var(--brand-dark); }
.highlight:nth-child(3) { background: var(--brand-darker); }
.highlight:hover { transform: translateY(-6px); }
.highlight__icon { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, .15); font-size: 1.5rem; margin-bottom: 14px; }
.highlight__title { color: #fff; font-size: 1.12rem; margin-bottom: 8px; }
.highlight__text { color: #e6f1fb; font-size: .95rem; }

/* ----------------------------------------------------- ImageText */
.imageText__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.imageText__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; }
.imageText__body .eyebrow { text-align: left; }
.imageText__body .section__title { text-align: left; margin-bottom: 18px; }

/* ------------------------------------------------------- Features */
.features__grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 26px; }
.feature { background: var(--bg); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature__img { aspect-ratio: 4 / 3; overflow: hidden; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.feature:hover .feature__img img { transform: scale(1.08); }
.feature__cap { padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.feature__title { font-family: var(--ff-head); font-weight: 600; color: var(--ink); }
.feature__text { color: var(--muted); font-size: .92rem; }

/* -------------------------------------------------------- Gallery */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery__item { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.1); }
.gallery__zoom { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 59, 102, .55); color: #fff; font-size: 1.4rem; opacity: 0; transition: opacity .3s; }
.gallery__item:hover .gallery__zoom { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 999; background: rgba(6, 22, 40, .92); display: none; place-items: center; padding: 30px; }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; cursor: pointer; width: 50px; height: 50px; border-radius: 50%; font-size: 1.3rem; display: grid; place-items: center; transition: background .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .28); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__nav--prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------- Carousel */
.carousel { max-width: 860px; margin: 0 auto; }
.carousel__viewport { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: #0c1f33; height: clamp(280px, 56vw, 520px); box-shadow: var(--shadow); }
.carousel__track { display: flex; height: 100%; transition: transform .5s ease; }
.carousel__slide { min-width: 100%; height: 100%; position: relative; }
.carousel__slide img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .85); color: var(--brand-dark); border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); transition: background .2s; }
.carousel__btn:hover { background: #fff; }
.carousel__btn--prev { left: 14px; }
.carousel__btn--next { right: 14px; }
.carousel__dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.carousel__dots button { width: 10px; height: 10px; border-radius: 50%; background: var(--line); border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.carousel__dots button.is-active { background: var(--brand); transform: scale(1.25); }

/* --------------------------------------------------------- Vídeos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; max-width: 980px; margin: 0 auto; }
.video-item { background: #0c1f33; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.video-item video { width: 100%; aspect-ratio: 9 / 16; max-height: 64vh; display: block; background: #0c1f33; object-fit: cover; }

/* ----------------------------------------------- Banner TotalPass */
.imageText--accent { background: linear-gradient(120deg, var(--brand-darker), var(--brand-dark)); color: #fff; }
.imageText--accent .section__title, .imageText--accent .eyebrow { color: #fff; }
.imageText--accent .rich { color: #dcebfa; }
.imageText--accent .rich h4 { color: #fff; }
.imageText--accent .imageText__media img { background: #fff; padding: 22px; }

/* ----------------------------------------------------------- Team */
.team__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.member { background: var(--bg); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.member__photo { aspect-ratio: 4 / 3; overflow: hidden; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__body { padding: 26px 28px; }
.member__name { font-size: 1.3rem; }
.member__role { color: var(--brand); font-weight: 600; font-family: var(--ff-head); font-size: .95rem; margin-bottom: 14px; }
.member__social { display: flex; gap: 10px; margin-top: 16px; }
.member__social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--soft-2); color: var(--brand-dark); font-size: 1.05rem; transition: background .2s, color .2s, transform .2s; }
.member__social a:hover { background: var(--brand); color: #fff; transform: translateY(-3px); }
.member__qr { margin-top: 20px; display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.member__qr img { width: 96px; height: 96px; border-radius: 10px; }
.member__qr span { font-size: .9rem; color: var(--muted); font-weight: 500; }
/* Membro em destaque ocupa a linha inteira, com foto à esquerda */
.member--featured { grid-column: 1 / -1; flex-direction: row; }
.member--featured .member__photo { flex: 0 0 38%; aspect-ratio: auto; }
.member--featured .member__body { flex: 1; }

/* --------------------------------------------------- Testimonials */
.testimonials__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.testimonial { position: relative; background: var(--bg); border-radius: var(--radius-lg); padding: 32px 30px 26px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.block:nth-child(even) .testimonial { background: #fff; }
.testimonial__mark { color: var(--soft-2); font-size: 2.2rem; position: absolute; top: 22px; right: 26px; }
.testimonial blockquote { color: var(--muted); font-style: italic; position: relative; z-index: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.testimonial__avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; display: grid; place-items: center; font-family: var(--ff-head); font-weight: 700; font-size: 1.2rem; flex: none; }
.testimonial__who { display: flex; flex-direction: column; }
.testimonial__who strong { color: var(--ink); font-family: var(--ff-head); }
.testimonial__who small { color: var(--muted); }

/* -------------------------------------------------------- Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact__list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.contact__list i { color: var(--brand); margin-top: 4px; width: 20px; text-align: center; }
.contact__list a { color: var(--muted); }
.contact__list a:hover { color: var(--brand); }
.contact__social { display: flex; gap: 12px; }
.contact__social a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 1.1rem; transition: transform .2s, background .2s; }
.contact__social a:hover { background: var(--brand-dark); transform: translateY(-3px); }
.contact__form { background: var(--bg); padding: 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .9rem; font-weight: 600; font-family: var(--ff-head); color: var(--ink); }
.field input, .field textarea { font-family: var(--ff-body); font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--soft); transition: border-color .2s, background .2s; width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 12px; font-size: .92rem; min-height: 1.2em; }
.form-status.is-ok { color: #15803d; }
.form-status.is-error { color: #b91c1c; }
.contact__map { margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.contact__map iframe { display: block; }

/* --------------------------------------------------------- Footer */
.site-footer { background: var(--brand-darker); color: #c6dcef; padding-top: 60px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.site-footer__brand img { height: 54px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .95; }
.site-footer__brand p { font-size: .95rem; color: #a9c6e0; }
.site-footer__col h4 { color: #fff; margin-bottom: 16px; font-size: 1.05rem; }
.site-footer__col p, .site-footer__col li { font-size: .94rem; margin-bottom: 10px; color: #c6dcef; }
.site-footer__col i { color: var(--accent); margin-right: 8px; }
.site-footer__col a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; }
.site-footer__bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-footer__bottom p { font-size: .88rem; color: #9bb8d4; }
.site-footer__admin { font-size: .85rem; color: #9bb8d4; }
.site-footer__admin:hover { color: #fff; }
.site-footer__views { font-size: .85rem; color: #9bb8d4; display: inline-flex; align-items: center; gap: 7px; }
.site-footer__views i { color: var(--accent); }

/* ------------------------------------------------ Botões flutuantes */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.wa-float { position: fixed; right: 22px; bottom: 78px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 10px 26px rgba(37, 211, 102, .45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

/* -------------------------------------------------- Reveal anim. */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ----------------------------------------------------- Responsivo */
@media (max-width: 980px) {
    .topbar__hours { display: none; }
    .imageText__grid { grid-template-columns: 1fr; }
    .imageText--left .imageText__media { order: -1; }
    .member--featured { flex-direction: column; }
    .member--featured .member__photo { flex: none; aspect-ratio: 4 / 3; }
    .features__grid { grid-template-columns: repeat(2, 1fr); }
    .gallery__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 920px) {
    :root { --header-h: 64px; }
    .topbar { display: none; }
    .navbar__toggle { display: flex; }
    .navbar__menu {
        position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
        background: #fff; padding: 18px 22px 26px; gap: 6px; border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg); transform: translateY(-130%); transition: transform .35s ease; z-index: 99;
    }
    .navbar__menu.is-open { transform: translateY(0); }
    .navbar__menu ul { flex-direction: column; gap: 0; }
    .navbar__menu ul li { border-bottom: 1px solid var(--line); }
    .navbar__menu ul a { display: block; padding: 14px 4px; }
    .navbar__menu ul a::after { display: none; }
    .navbar__cta { margin-top: 14px; justify-content: center; }
    .highlights__grid { grid-template-columns: 1fr; margin-top: -40px; }
    .team__grid, .testimonials__grid { grid-template-columns: 1fr; }
    .contact__grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .features__grid { grid-template-columns: 1fr; }
    .gallery__grid { grid-template-columns: repeat(2, 1fr); }
    .hero__cta { flex-direction: column; width: 100%; }
    .hero__cta .btn { justify-content: center; }
}
