/* ============================================================
   ABOUT NEURO — mobile-first
   ============================================================ */

/* Global section padding — mobile base, scales up */
section {
    padding: 48px 20px;
}

.about-inner,
.header-inner,
.client-inner,
.three-tiles,
.team-section,
.key-advisors .advisors-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================
   SECTION 2 — THREE TILES (mission/vision/purpose)
   1 col → 3 col at lg
   ============================================================ */

.three-tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tile {
    text-align: center;
    padding: 24px 20px;
    background: #ffffff;
    border-radius: 16px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.tile:hover {
    transform: translateY(-8px);
    border-color: #d4af37;
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.15);
}

.tile img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
    filter: brightness(0.95);
}

.tile__icon {
    width: 90px;
    height: 90px;
    border-radius: 0;
    filter: none;
}

.tile h2 {
    margin-bottom: 14px;
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 700;
    color: #1a1a1a;
}

.tile p {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

/* Section divider */
.section-divider {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 2rem 0 -40px;
}

.section-divider__line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, #d4af37 40%, #d4af37 60%, transparent);
}

.section-divider__icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    padding: 16px;
    background: #fff;
    border-radius: 50%;
    border: 2px solid #d4af37;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    margin: 0 2rem;
}

/* ============================================================
   SECTION 3 — HEADER
   ============================================================ */

.section-header {
    text-align: center;
    background: #fafafa;
    padding: 48px 20px 36px;
}

.header-inner {
    max-width: 850px;
    margin: 0 auto;
}

.header-inner h1 {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
}

.header-inner p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

/* ============================================================
   SECTION 3b — TEAM CAROUSEL
   ============================================================ */

.team-section {
    position: relative;
    padding: 56px 0 80px;
    background: #ffffff;
    overflow: visible;
}

.team-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.team-viewport {
    overflow: hidden;
    padding: 20px 52px;
    width: 100%;
    cursor: grab;
}

.team-viewport.is-dragging {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
}

.team-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Mobile: card takes 100% of viewport (arrows overlay) */
.team-card {
    flex: 0 0 100%;
    padding: 32px 24px 36px;
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.team-card:hover {
    border-color: #d4af37;
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
}

.card-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin: 0 auto 22px;
    border: 5px solid #d4af37;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
    background: #f5f5f5;
}

.card-content {
    display: flex;
    flex-direction: column;
}

.name-flag-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.card-name {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.flags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.flag-img {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.flag-img:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.card-title {
    color: #d4af37;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.05rem;
    line-height: 1.4;
}

.card-steward {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #777;
    margin-bottom: 18px;
}

.steward-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.foundation-logo {
    display: block;
    max-width: 160px;
    height: auto;
    margin-top: 0.75rem;
}

.card-description p {
    color: #555;
    line-height: 1.75;
    font-size: 1rem;
    margin: 0;
}

.team-card:not(.expanded) .card-description p {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    color: #d4af37;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 14px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px 0;
    display: inline-block;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

.team-card.expanded .read-more-btn { margin-top: 18px; }

/* Slider controls — overlay on card edges */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #d4af37 0%, #c9a532 100%);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 300;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slider-control:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

.slider-control:active { transform: translateY(-50%) scale(1.04); }
.slider-control.prev { left: 4px; }
.slider-control.next { right: 4px; }

/* ============================================================
   SECTION 4 — KEY ADVISORS
   1 col → 2 col at sm → 4 col at lg
   ============================================================ */

.key-advisors {
    text-align: center;
    background: #fafafa;
    padding: 48px 20px;
}

.key-advisors h2 {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
}

.key-advisors .intro {
    max-width: 850px;
    margin: 0 auto 36px;
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

.advisors-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.advisor {
    padding: 28px 20px;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.advisor:hover {
    transform: translateY(-8px);
    border-color: #d4af37;
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.15);
}

.advisor-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin: 0 auto 18px;
    border: 4px solid #d4af37;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #f5f5f5;
}

.advisor h3 {
    margin-bottom: 8px;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #1a1a1a;
    font-weight: 700;
}

.advisor .role {
    color: #d4af37;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.advisor .description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================================
   SECTION 5 — PARTNERS / CLIENT LOGOS
   ============================================================ */

.client {
    background: #ffffff;
    text-align: center;
    padding: 48px 20px;
}

.section-title h2 {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
}

.section-title p {
    max-width: 860px;
    margin: 0 auto 36px;
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.logo {
    padding: 14px 18px;
    flex-shrink: 1;
    background: transparent;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.logo-findex {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border: 2px solid #3a3a3a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo-findex:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    border-color: #d4af37;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.logo img {
    width: 110px;
    height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo img:hover { transform: scale(1.05); }

/* ============================================================
   SECTION 6 — SPLIT (dark panel + image)
   Mobile: stacked → md: side by side
   ============================================================ */

.split-container {
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.text-panel {
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: white;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-panel h1 {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    margin-bottom: 24px;
    color: #d4af37;
    font-weight: 700;
}

.text-panel p {
    line-height: 1.9;
    color: #f5f5f5;
    font-size: 1.05rem;
}

.image-panel {
    overflow: hidden;
    min-height: 280px;
}

.image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95) contrast(1.05);
}

/* ============================================================
   TOC NAV — hidden mobile, shown at 1100px+
   ============================================================ */

.toc-nav {
    display: none;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
    flex-direction: column;
    gap: 2px;
    min-width: 130px;
}

.toc-nav__title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b8942d;
    padding: 0 8px 8px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 4px;
}

.toc-dot {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 7px 8px;
    border-radius: 8px;
    border-left: 2px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    color: #6a6a6a;
}

.toc-dot:hover { background: rgba(212, 175, 55, 0.08); color: #2c2c25; }
.toc-dot:focus-visible { outline: 2px solid #d4af37; background: rgba(212, 175, 55, 0.08); }
.toc-dot.active { border-left-color: #d4af37; color: #2c2c25; background: rgba(212, 175, 55, 0.06); }

.toc-dot__pip {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    background: transparent;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.toc-dot:hover .toc-dot__pip { border-color: #d4af37; background: rgba(212, 175, 55, 0.35); }
.toc-dot.active .toc-dot__pip { background: #d4af37; border-color: #d4af37; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18); }
.toc-dot__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; }
.toc-dot.active .toc-dot__label { font-weight: 700; }

/* ============================================================
   BREAKPOINTS
   ============================================================ */

/* sm — 2-col grids */
@media (min-width: 480px) {
    .advisors-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .three-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* md — full section padding, side-by-side split, bigger team cards */
@media (min-width: 768px) {
    section {
        padding: 64px 32px;
    }

    .three-tiles {
        padding: 40px 0;
        gap: 36px;
    }

    .tile {
        padding: 28px 24px;
    }

    .tile__icon {
        width: 110px;
        height: 110px;
    }

    .section-header {
        padding: 64px 32px 48px;
    }

    .team-section {
        padding: 80px 0 120px;
    }

    .team-viewport {
        padding: 30px 72px;
    }

    .team-card {
        flex: 0 0 85%;
        padding: 40px 32px 44px;
    }

    .card-image {
        width: 170px;
        height: 170px;
    }

    .slider-control {
        width: 52px;
        height: 52px;
        font-size: 1.8rem;
    }

    .slider-control.prev { left: 10px; }
    .slider-control.next { right: 10px; }

    .key-advisors {
        padding: 64px 32px;
    }

    .key-advisors .intro { margin-bottom: 48px; }

    .client { padding: 64px 32px; }

    .split-container {
        flex-direction: row;
        min-height: 450px;
    }

    .text-panel {
        width: 45%;
        padding: 60px 48px;
    }

    .image-panel {
        flex: 1;
        min-height: unset;
    }
}

/* lg — 3 tiles in a row, bigger cards, 4-col advisors */
@media (min-width: 1024px) {
    section {
        padding: 80px 40px;
    }

    .three-tiles {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
    }

    .tile__icon {
        width: 120px;
        height: 120px;
    }

    .team-viewport {
        padding: 40px 100px;
    }

    .team-card {
        flex: 0 0 480px;
        padding: 45px 35px 50px;
    }

    .card-image {
        width: 190px;
        height: 190px;
        margin-bottom: 26px;
    }

    .slider-control {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .slider-control.prev { left: 20px; }
    .slider-control.next { right: 20px; }

    .advisors-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 50px;
    }

    .advisor-image {
        width: 140px;
        height: 140px;
    }

    .logo img {
        width: 130px;
        height: 70px;
    }

    .text-panel {
        padding: 70px 60px;
    }
}

/* xl — bigger team cards */
@media (min-width: 1400px) {
    .team-card {
        flex: 0 0 520px;
    }

    .card-image {
        width: 200px;
        height: 200px;
    }
}

/* TOC visible at 1100px+ */
@media (min-width: 1100px) {
    .toc-nav {
        display: flex;
    }
}
