/* Service detail pages + nav dropdown */

/* ── Nav dropdown (desktop) ── */
.top-nav__dropdown {
    position: relative;
}

.top-nav__dropdown-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    gap: 0.35rem;
}

.top-nav__dropdown-chevron {
    font-size: 0.62rem;
    opacity: 0.65;
    transition: transform var(--transition);
}

.top-nav__dropdown.is-open .top-nav__dropdown-chevron {
    transform: rotate(180deg);
}

.top-nav__dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 280px;
    padding: 0.5rem;
    margin: 0;
    list-style: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 300;
}

.top-nav__dropdown.is-open .top-nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.top-nav__dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    color: var(--gray-800);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}

.top-nav__dropdown-item i {
    width: 1.1rem;
    color: var(--blue-bright);
    text-align: center;
}

.top-nav__dropdown-item:hover,
.top-nav__dropdown-item.is-active {
    background: var(--blue-pale);
    color: var(--blue-bright);
}

.top-nav__drawer-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.top-nav__drawer-sublist {
    list-style: none;
    margin: 0;
    padding: 0 0 0.5rem 0.75rem;
    display: none;
}

.top-nav__drawer-dropdown.is-open .top-nav__drawer-sublist {
    display: block;
}

.top-nav__drawer-sublink {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 8px;
}

.top-nav__drawer-sublink:hover {
    background: var(--blue-pale);
    color: var(--blue-bright);
}

a.service-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

a.service-card:hover {
    transform: translateY(-4px);
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--blue-bright);
}

.about-team {
    margin-top: 2.5rem;
}

.about-team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.about-team__card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
}

.about-team__photo-wrap {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
}

.about-team__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-team__photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--blue-pale) 0%, var(--gray-100) 100%);
    color: var(--gray-400);
    font-size: 2.25rem;
}

.about-team__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.2rem;
}

.about-team__role {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blue-bright);
    margin-bottom: 0.65rem;
}

.about-team__bio {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--gray-600);
}

body.service-page {
    background: var(--white);
}

.service-page__backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, var(--blue-pale) 0%, var(--white) 45%);
    pointer-events: none;
}

.service-page__main {
    position: relative;
    z-index: 1;
    padding-top: var(--nav-height);
}

.service-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2rem) 2.5rem;
}

.service-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.service-breadcrumb a {
    color: var(--blue-bright);
    text-decoration: none;
}

.service-breadcrumb a:hover {
    text-decoration: underline;
}

.service-hero__tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    background: var(--blue-pale);
    color: var(--blue-bright);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.service-hero__title {
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--black);
    margin-bottom: 0.85rem;
}

.service-hero__summary {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--gray-600);
    max-width: 640px;
    margin-bottom: 1.5rem;
}

.service-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-hero__icon-wrap {
    display: none;
}

.service-hero__icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(145deg, var(--blue-pale), var(--white));
    border: 1px solid var(--gray-200);
    color: var(--blue-bright);
    box-shadow: var(--shadow-md);
}

.service-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem) 3rem;
}

.service-body__intro {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.service-body__lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--gray-800);
    margin-bottom: 1.25rem;
}

.service-body__features {
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.service-body__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.92rem;
    color: var(--gray-600);
}

.service-body__features i {
    color: #16a34a;
    margin-top: 0.15rem;
}

.service-detail-block {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1rem;
}

.service-detail-block__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: var(--black);
}

.service-detail-block__list {
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.service-detail-block__list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--gray-600);
}

.service-detail-block__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-bright);
}

.service-detail-block--highlight {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue-deep) 100%);
    border-color: transparent;
    color: var(--white);
}

.service-detail-block--highlight .service-detail-block__title,
.service-detail-block--highlight .service-detail-block__text {
    color: var(--white);
}

.service-detail-block__text {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--gray-600);
}

.service-detail-block__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-related {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem) 2rem;
}

.service-related__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.service-related__card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    text-decoration: none;
    color: var(--gray-800);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.service-related__card:hover {
    border-color: var(--blue-bright);
    box-shadow: var(--shadow-sm);
}

.service-related__icon {
    color: var(--blue-bright);
}

.service-related__name {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
}

.service-related__arrow {
    color: var(--gray-400);
    font-size: 0.75rem;
}

.service-page .cta-band {
    max-width: 1180px;
    margin: 0 auto 3rem;
}

@media (min-width: 900px) {
    .service-hero__icon-wrap {
        display: block;
    }
}

@media (max-width: 767px) {
    .service-hero {
        grid-template-columns: 1fr;
    }

    .service-hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── About section (restructured) ── */
.about-mvv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.25rem);
    max-width: 960px;
    margin: 0 auto clamp(1.5rem, 3vw, 2rem);
    padding: 0 clamp(20px, 4vw, 48px);
    position: relative;
    z-index: 1;
}

.about-stats-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 960px;
    margin: 0 auto clamp(2rem, 4vw, 2.5rem);
    padding: 0 clamp(20px, 4vw, 48px);
    position: relative;
    z-index: 1;
}

.about-stat {
    text-align: center;
    padding: 1rem 0.75rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.about-stat__value {
    display: block;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--blue-bright);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.about-stat__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gray-600);
    line-height: 1.35;
}

.about-objectives {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.about-objective {
    display: flex;
    gap: 0.85rem;
    padding: 1.15rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.about-objective:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.about-objective__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--blue-pale);
    color: var(--blue-bright);
    font-size: 1rem;
}

.about-objective__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.3rem;
}

.about-objective__text {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--gray-600);
    margin: 0;
}

.about-software-teaser {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 1.75rem);
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue-deep) 100%);
    border-radius: 20px;
    color: var(--white);
    box-shadow: 0 16px 40px rgba(15, 37, 87, 0.22);
}

.about-software-teaser__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-red-soft);
    margin-bottom: 0.45rem;
}

.about-software-teaser__title {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.about-software-teaser__text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0;
}

.about-software-teaser .btn--primary {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ── Team section ── */
.section--team {
    position: relative;
    background: linear-gradient(180deg, var(--blue-pale) 0%, var(--white) 35%);
    padding-top: clamp(3rem, 6vw, 4.5rem);
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.section--team > .about-header,
.section--team > .team-lead,
.section--team > .team-grid {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(20px, 4vw, 48px);
    padding-right: clamp(20px, 4vw, 48px);
}

.section--team > .about-header {
    margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.team-lead {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}

.team-lead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--yellow), var(--brand-red) 42%, var(--blue-bright) 55%, rgba(37, 99, 235, 0.35));
}

.team-lead__photo-wrap {
    width: clamp(140px, 18vw, 200px);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background: var(--gray-100);
    flex-shrink: 0;
}

.team-lead__photo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

.team-lead__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--blue-bright);
    margin-bottom: 0.4rem;
}

.team-lead__eyebrow i {
    color: var(--brand-red);
}

.team-lead__name {
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 800;
    color: var(--black);
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.team-lead__subtitle {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.85rem;
}

.team-lead__bio {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--gray-600);
    margin-bottom: 0.65rem;
}

.team-lead__bio:last-of-type {
    margin-bottom: 1rem;
}

.team-lead__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.team-lead__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-pill);
    background: var(--blue-pale);
    border: 1px solid rgba(37, 99, 235, 0.15);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--navy);
}

.team-lead__chip i {
    color: var(--blue-bright);
    font-size: 0.72rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.team-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.team-card__photo-wrap {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background: var(--gray-100);
}

.team-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card__photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--blue-pale) 0%, var(--gray-100) 100%);
    color: var(--gray-400);
    font-size: 1.75rem;
}

.team-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.15rem;
}

.team-card__role {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--blue-bright);
    margin-bottom: 0.55rem;
}

.team-card__bio {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.team-card__credentials {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    margin: 0;
}

@media (max-width: 900px) {
    .about-mvv-grid,
    .about-objectives,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .about-stats-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-lead {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .team-lead__photo-wrap {
        width: 160px;
        margin: 0 auto;
    }

    .team-lead__highlights {
        justify-content: center;
    }

    .team-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .about-stats-band {
        grid-template-columns: 1fr 1fr;
    }

    .about-software-teaser,
    .about-team-teaser {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-software-teaser .btn--primary,
    .about-team-teaser .btn--outline {
        width: 100%;
        justify-content: center;
    }
}

/* ── Team page ── */
body.team-page {
    background: var(--white);
}

.team-page__backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, var(--blue-pale) 0%, var(--white) 42%);
    pointer-events: none;
}

.team-page__main {
    position: relative;
    z-index: 1;
    padding-top: var(--nav-height);
}

.team-page-hero {
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3rem) clamp(20px, 4vw, 48px) 1.5rem;
}

.team-page-hero__title {
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--black);
    margin: 0.75rem 0;
}

.team-page-hero__desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--gray-600);
    max-width: 640px;
    margin: 0;
}

.section--team-page {
    padding-top: 0;
    background: transparent;
}

.section--team-page > .team-lead,
.section--team-page > .team-grid {
    max-width: 960px;
}

.team-page .cta-band {
    max-width: 960px;
    margin: 0 auto 3rem;
    padding-left: clamp(20px, 4vw, 48px);
    padding-right: clamp(20px, 4vw, 48px);
}

.about-team-teaser {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    max-width: 960px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.about-team-teaser__title {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 700;
    color: var(--black);
    margin: 0.35rem 0 0.45rem;
}

.about-team-teaser__text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--gray-600);
    margin: 0;
    max-width: 520px;
}

.about-team-teaser .btn--outline {
    flex-shrink: 0;
    white-space: nowrap;
}
