/* =============================================================
    NEUROSYNAPSIS · STYLESHEET
    -------------------------------------------------------------
    1. Design tokens (:root)
    2. Reset & base
    3. Layout / Background
    4. Header (navbar, logo, links, buttons)
    5. Hero section
    6. Carousel
    7. Quem Somos (badge, textos, timeline, molduras)
    8. Cards conceituais
    9. Responsivo
   ============================================================= */


/* =============================================================
    1. DESIGN TOKENS
   ============================================================= */
:root {
    /* Cores – base */
    --bg:            #fdf8ef;
    --surface:       rgba(255, 255, 255, 0.82);
    --white:         #ffffff;

    /* Cores – marca */
    --purple-900:    #35105f;
    --purple-700:    #5b21b6;
    --purple-500:    #8b5cf6;

    /* Cores – acentos */
    --mint:          #a9ead2;
    --mint-soft:     #e7fbf3;
    --lavender:      #ddd6fe;

    /* Cores – texto */
    --text:          #35105f;
    --muted:         #6f6380;

    /* Raios */
    --radius-sm:     12px;
    --radius-md:     22px;
    --radius-lg:     999px;

    /* Sombras */
    --shadow-soft:   0 18px 50px rgba(53, 16, 95, 0.08);
    --shadow-button: 0 12px 26px rgba(91, 33, 182, 0.22);

    /* Layout */
    --container:     1200px;
    --ease:          0.25s ease;
}


/* =============================================================
    2. RESET & BASE
   ============================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Nunito", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(139, 92, 246, 0.35);
    outline-offset: 4px;
}


/* =============================================================
    3. LAYOUT / BACKGROUND
   ============================================================= */
.hero-background {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 20%, rgba(169, 234, 210, 0.38), transparent 28%),
        radial-gradient(circle at 90% 15%, rgba(221, 214, 254, 0.55), transparent 30%),
        url("../img/background1.png") no-repeat center top / cover;
}


/* =============================================================
    4. HEADER
   ============================================================= */

/* ----- Navbar ------------------------------------------------ */
.main-header {
    position: relative;
    z-index: 20;
}

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    z-index: 30;
    transform: translateX(-50%);

    width: min(92%, var(--container));
    min-height: 74px;
    padding: 10px 18px 10px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* ----- Logo -------------------------------------------------- */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, var(--mint) 0 20%, transparent 21%),
        linear-gradient(135deg, var(--purple-700), var(--purple-500));
    box-shadow: 0 10px 22px rgba(91, 33, 182, 0.2);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-sub {
    margin-top: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
}

/* ----- Nav links --------------------------------------------- */
.nav-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.nav-item {
    padding: 10px 12px;
    border-radius: var(--radius-lg);

    font-size: 0.9rem;
    font-weight: 800;
    color: rgba(53, 16, 95, 0.82);
    white-space: nowrap;

    transition:
        color      var(--ease),
        background var(--ease),
        transform  var(--ease);
}

.nav-item:hover {
    color: var(--purple-700);
    background: rgba(139, 92, 246, 0.1);
}

.nav-item.active {
    color: var(--purple-900);
    background: var(--mint-soft);
}

.nav-actions {
    flex-shrink: 0;
}

.mobile-action {
    display: none;
}

/* ----- Buttons ----------------------------------------------- */
.btn-appointment,
.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-weight: 800;
    transition:
        transform  var(--ease),
        box-shadow var(--ease),
        background var(--ease),
        color      var(--ease);
}

.btn-appointment {
    padding: 12px 22px;
    font-size: 0.9rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
    box-shadow: var(--shadow-button);
}

.btn-appointment:hover,
.btn-hero-primary:hover,
.btn-hero-secondary:hover {
    transform: translateY(-2px);
}

.btn-appointment:hover,
.btn-hero-primary:hover {
    box-shadow: 0 16px 32px rgba(91, 33, 182, 0.28);
}

/* ----- Menu toggle (mobile) ---------------------------------- */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--mint-soft);
    cursor: pointer;
}

.bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: var(--purple-900);
    transition:
        transform var(--ease),
        opacity   var(--ease);
}


/* =============================================================
    5. HERO SECTION
   ============================================================= */
.hero-section {
    position: relative;
    z-index: 2;

    min-height: 100vh;
    padding: 132px 24px 64px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    width: min(100%, var(--container));
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
    align-items: center;
    gap: clamp(36px, 6vw, 80px);
}

/* ----- Hero: texto ------------------------------------------- */
.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 14px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(221, 214, 254, 0.8);

    color: var(--purple-700);
    font-size: 0.84rem;
    font-weight: 800;
}

.hero-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
}

.hero-headline {
    max-width: 620px;
    font-size: clamp(2.45rem, 5vw, 4.25rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    font-weight: 800;
    color: var(--purple-900);
}

.highlight {
    position: relative;
    display: inline-block;
    color: var(--purple-500);
}

.highlight::after {
    content: "";
    position: absolute;
    left: -3%;
    right: -3%;
    bottom: 0.05em;
    height: 0.24em;
    z-index: -1;
    border-radius: 999px;
    background: var(--mint);
}

.hero-subtitle {
    max-width: 560px;
    padding-left: 18px;
    border-left: 4px solid var(--mint);

    color: var(--muted);
    font-size: clamp(1.02rem, 1.4vw, 1.18rem);
    line-height: 1.75;
    font-weight: 600;
}

.hero-buttons {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    gap: 10px;
    padding: 15px 26px;
    color: var(--white);
    background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
    box-shadow: var(--shadow-button);
}

.btn-hero-secondary {
    padding: 13px 24px;
    color: var(--purple-700);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(139, 92, 246, 0.24);
}

.btn-hero-secondary:hover {
    background: var(--white);
}


/* =============================================================
    6. CAROUSEL
   ============================================================= */
.hero-carousel-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carousel-area::before {
    content: "";
    position: absolute;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(169, 234, 210, 0.34);
    filter: blur(30px);
    transform: translate(8%, 6%);
}

.orbital-carousel {
    position: relative;
    width: min(100%, 640px);
    aspect-ratio: 1.18 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbital-frame {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.carousel-mask {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    -webkit-mask: url("../img/fundo3.svg") no-repeat center / contain;
            mask: url("../img/fundo3.svg") no-repeat center / contain;
}

.carousel-slides,
.carousel-slide {
    position: absolute;
    inset: 0;
}

.carousel-slide {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =============================================================
    7. QUEM SOMOS
   ============================================================= */
.quem-somos-secao {
    position: relative;
    min-height: 100vh;
    background: url("../img/background2.png") no-repeat center top / cover;
}

.container-quem-somos {
    max-width: 1150px;
    margin: 0 auto;
}

/* ----- Topo / Badge ------------------------------------------ */
.topo-secao {
    margin-bottom: 50px;
    text-align: center;
}

.badge-trajetoria {
    display: inline-block;
    padding: 10px 28px;

    background-color: #ffffff;
    color: #6c42f5;
    border: 2px solid #a48cff;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(108, 66, 245, 0.08);

    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ----- Layout principal -------------------------------------- */
.conteudo-principal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 70px;
}

.bloco-esquerdo {
    flex: 1.1;
}

.bloco-direito {
    flex: 0.9;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ----- Textos ------------------------------------------------ */
.subtitulo-secao {
    margin-bottom: 24px;
    font-size: 32px;
    font-weight: 800;
    color: #2d0c5a;
}

.paragrafo-quem-somos {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.7;
    color: #5a4f66;
}

.paragrafo-quem-somos strong {
    color: #6c42f5;
}

/* ----- Timeline ---------------------------------------------- */
.timeline {
    position: relative;
    margin-top: 50px;
    width: 100%;
    height: 170px;
}

.timeline-wave {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
}

.timeline-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 100%;
}

.timeline-item {
    position: relative;
    height: 100%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #6C42F5;
    border: 3px solid #FFF;
    box-shadow: 0 0 0 4px rgba(108, 66, 245, 0.15);
}

.timeline-item.top    .timeline-dot { top: 53px;  }
.timeline-item.bottom .timeline-dot { top: 107px; }

.timeline-card {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;

    text-align: center;
    white-space: nowrap;
    font-size: 14px;
    color: #2d0c5a;
}

.timeline-card strong {
    font-size: 18px;
    font-weight: 800;
    color: #6C42F5;
}

.timeline-card span {
    color: #5a4f66;
    font-weight: 600;
}

.timeline-item.top    .timeline-card { bottom: calc(100% - 53px + 18px); }
.timeline-item.bottom .timeline-card { top:    calc(107px + 18px);       }

/* ----- Molduras ---------------------------------------------- */
.molduras-grupo {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 380px;
}

.wrapper-moldura {
    position: absolute;
    transition: transform 0.4s ease;
}

.moldura-esquerda {
    top: 0;
    left: 0;
    z-index: 1;
    width: 320px;
}

.moldura-direita {
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 270px;
}

.img-moldura {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(108, 66, 245, 0.08));
}

.wrapper-moldura:hover {
    transform: scale(1.03) translateY(-3px);
    z-index: 3;
}


/* =============================================================
    8. CARDS CONCEITUAIS
   ============================================================= */
.grid-cards-conceito {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.card-conceito {
    position: relative;
    padding: 35px 30px;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(108, 66, 245, 0.04);
    overflow: hidden;
    transition:
        transform  0.3s ease,
        box-shadow 0.3s ease;
}

.card-conceito:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(108, 66, 245, 0.08);
}

/* Variantes de cor */
.card-missao {
    background: linear-gradient(135deg, #e9e5ff 0%, #d8d0fc 100%);
    border: 1px solid rgba(108, 66, 245, 0.15);
}

.card-metodologia {
    background: linear-gradient(135deg, #e4faf5 0%, #c9f5ec 100%);
    border: 1px solid rgba(38, 196, 163, 0.15);
}

.card-valores {
    background: linear-gradient(135deg, #fef4df 0%, #fde7be 100%);
    border: 1px solid rgba(255, 212, 106, 0.2);
}

/* Tipografia dos cards */
.titulo-card {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 800;
    color: #2d0c5a;
}

.texto-card {
    font-size: 14.5px;
    line-height: 1.6;
    color: #4c3c5c;
}

.lista-valores {
    padding: 0;
    list-style: none;
}

.lista-valores li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;

    font-size: 14.5px;
    font-weight: 600;
    color: #4c3c5c;
}

.lista-valores li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #6c42f5;
    font-weight: bold;
}

.icone-card {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 24px;
    opacity: 0.6;
}


/* =============================================================
    9. RESPONSIVO
   ============================================================= */

/* ----- Tablet (≤ 1080px) ------------------------------------- */
@media (max-width: 1080px) {

    /* Navbar */
    .navbar {
        width: min(94%, var(--container));
    }

    .menu-toggle {
        display: block;
        flex-shrink: 0;
    }

    .nav-actions {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: calc(100% + 14px);
        left: 0;
        right: 0;

        width: 100%;
        padding: 18px;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;

        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(221, 214, 254, 0.8);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-soft);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition:
            opacity    var(--ease),
            visibility var(--ease),
            transform  var(--ease);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-item {
        width: 100%;
        padding: 13px 16px;
        text-align: center;
    }

    .mobile-action {
        display: block;
        margin-top: 6px;
    }

    .mobile-action .btn-appointment {
        width: 100%;
    }

    /* Menu toggle animado */
    .menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg)  translate(5px,  5px); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    /* Hero */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        align-items: center;
    }

    .hero-subtitle {
        padding-left: 0;
        border-left: 0;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-carousel-area {
        width: min(100%, 620px);
        margin-inline: auto;
    }
}

/* ----- Tablet vertical (≤ 991px) ----------------------------- */
@media (max-width: 991px) {

    .conteudo-principal {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .molduras-grupo {
        margin-top: 40px;
        height: 340px;
    }

    .grid-cards-conceito {
        grid-template-columns: 1fr;
    }
}

/* ----- Mobile (≤ 640px) -------------------------------------- */
@media (max-width: 640px) {

    /* Navbar */
    .navbar {
        top: 12px;
        min-height: 64px;
        padding: 10px 12px;
        border-radius: 18px;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-sub {
        display: none;
    }

    /* Hero */
    .hero-section {
        padding: 108px 18px 44px;
    }

    .hero-headline {
        font-size: clamp(2.05rem, 12vw, 3rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.65;
    }

    .hero-buttons {
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
    }

    /* Carousel */
    .orbital-carousel {
        width: min(100%, 360px);
    }
}
