/*
Theme Name: 3tdesign
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

.mb-0 {
    margin-bottom: 0;
}

.font-noto {
    font-family: 'Noto Serif JP', serif;
}

.text-mb-0 p {
    margin-bottom: 0;
}

.banner-text p {
    color: hsl(0 0% 100% / .8);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.banner-text h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 3em;
}

/* Client Logo Slider */
.client-slider {
    overflow: hidden;
    width: 100%;
}

.client-slider__track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.client-slider__item {
    flex: 0 0 min(200px, calc(100vw / var(--per-view, 6)));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.client-slider__item img {
    max-height: var(--logo-height, 200px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s, opacity 0.3s;
}

.client-slider__item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Timeline */
.timeline {
    max-width: 560px;
    margin: 0 auto;
    padding: 60px 0;
}

.timeline__item {
    text-align: center;
}

.timeline__line {
    width: 1px;
    height: 60px;
    background: #ccc;
    margin: 0 auto;
}

.timeline__item:first-child .timeline__line--top {
    visibility: hidden;
}

.timeline__item:last-child .timeline__line--bottom {
    visibility: hidden;
}

.timeline__dot {
    width: 16px;
    height: 16px;
    background: #1a1a1a;
    border-radius: 50%;
    margin: 0 auto;
}

.timeline__content {
    padding: 24px 0;
}

.timeline__label {
    font-size: 0.8em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 12px;
}

.timeline__text {
    font-size: 1em;
    line-height: 1.8;
    color: #555;
    max-width: 420px;
    margin: 0 auto;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(var(--team-cols, 3), 1fr);
    gap: 40px 30px;
}

.team-grid__item {
    text-align: center;
}

.team-grid__photo {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin-bottom: 20px;
}

.team-grid__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-grid__name {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.3em;
    font-weight: 400;
    margin: 0 0 6px;
    color: #1a1a1a;
}

.team-grid__position {
    font-size: 0.9em;
    color: #888;
    margin: 0;
}

/* Project Slider */
.project-slider {
    overflow: hidden;
    width: 100%;
    cursor: grab;
}

.project-slider__track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.project-slider__item {
    flex: 0 0 min(380px, calc(100vw / var(--ps-per-view, 3)));
    padding: 0 calc(var(--ps-gap, 30px) / 2);
    box-sizing: border-box;
}

.project-slider__image {
    aspect-ratio: var(--ps-ratio, 4/3);
    overflow: hidden;
}

.project-slider__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-slider__item:hover .project-slider__image img {
    transform: scale(1.05);
}

.project-slider__info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0 0;
}

.project-slider__name {
    font-family: 'Noto Serif JP', serif;
    font-size: 1em;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0;
    white-space: nowrap;
}

.project-slider__line {
    flex: 1;
    height: 1px;
    background: #ccc;
    min-width: 20px;
}

.project-slider__location {
    font-size: 0.9em;
    color: #888;
    white-space: nowrap;
}

/* Tablet: 4 logos */
@media only screen and (max-width: 64em) {
    .client-slider__item {
        flex: 0 0 min(200px, calc(100vw / 4));
    }
}

/* Mobile */
@media only screen and (max-width: 48em) {
    .client-slider__item {
        flex: 0 0 min(200px, calc(100vw / 3));
    }

    .team-grid {
        grid-template-columns: repeat(var(--team-cols-mobile, 2), 1fr);
        gap: 30px 16px;
    }
}

@media only screen and (max-width: 549px) {
    .project-slider__item {
        flex: 0 0 100vw;
    }
}