/* ===========================
   CSS ARCHITECTURE: WEDO LAB
   ===========================
   1. Reset & Base Styles
   2. Typography System
   3. Button Components
   4. Layout Components
   5. Section Styles
   6. Mobile Navigation
   7. Responsive Design
   ========================== */

/* ======================
   1. RESET & BASE STYLES
   ====================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    line-height: 1.6;
    color: #333;
}

.page-wrapper {
    max-width: 1440px;
    margin: 0 auto;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================
   2. TYPOGRAPHY SYSTEM
   =================== */

/* Section Titles */
.section-title {
    align-items: center;
    font-weight: 600;
    font-size: 40px;
    line-height: 140%;
    letter-spacing: 0%;
    margin-bottom: 20px;
    color: #333;
}

.section-title--center { 
    align-items: center;
    text-align: center; 
}

.section-title--small { 
    font-size: 20px; 
    text-align: center;
    line-height: 200%;
    margin-bottom: 15px;
}

.section-title--left { 
    text-align: left; 
}

.section-title--right { 
    text-align: right; 
}

.section-title--hero {
    max-width: 900px;
    text-align: center; 
    font-size: 46px;
    line-height: 140%;
    margin: 0 auto 40px auto;
    color: white;
}

/* Section Descriptions */
.section-description {
    font-weight: 400;
    font-size: 24px;
    line-height: 140%;
    letter-spacing: 0%;
    margin-bottom: 30px;
    color: #808080;
}

.section-description--center { 
    text-align: center; 
}

.section-description--small { 
    font-size: 20px; 
    text-align: center;
}

.section-description--left { 
    text-align: left; 
}

.section-description--justify { 
    text-align: justify;
    hyphens: auto;
    overflow-wrap: anywhere;
    word-break: normal; 
}

.section-description--right { 
    text-align: right; 
}

.section-description--large {
    font-weight: 600;
    font-size: 28px;
    margin-bottom: 40px;
    color: white;
}

.section-description--white {
    color: white;
    max-width: 900px;
}

/* ====================
   3. BUTTON COMPONENTS
   ==================== */

.btn {
    border: none;
    width: 230px;
    height: 60px;
    font-weight: 700;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    padding: 16px 16px;
    gap: 10px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto;
    text-decoration: 0 auto;
    text-decoration: none;
}

/* Button Color Variants */
.btn--white {
    background: #FFFFFF;
    color: #1A7F8E;
}

.btn--white:hover {
    background: #f0f0f0;
    color: #1A7F8E;
}

.btn--white_blue {
    background: #FFFFFF;
    color: #105DB5;
}

.btn--white_blue:hover {
    background: #f0f0f0;
    color: #105DB5;
}

.btn--active {
    background: #e0e0e0;
    color: #1A7F8E;
}

.btn--active_blue {
    background: #e0e0e0;
    color: #105DB5;
}

.btn--green {
    background: #6ED278;
    color: white;
}

.btn--green:hover {
    background: #5bc063;
}

.btn--blue {
    background: #1A7F8E;
    color: white;
}

.btn--blue:hover {
    background: #0f5a66;
}

.btn--dark-blue {
    background: #006FA3;
    color: white;
}

.btn--dark-blue:hover {
    background: #004d73;
}

.btn--teal {
    background: #12697E;
    color: white;
}

.btn--teal:hover {
    background: #0d4f5e;
}

/* ====================
   4. LAYOUT COMPONENTS
   ==================== */

/* Header */
.header {
    background: #fff;
    box-shadow: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header__content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    gap: clamp(20px, 3vw, 40px);
    max-width: 1440px;
    margin: 0 auto;
}

/* Logo */
.logo {
    margin-right: clamp(40px, 15vw, 200px);
    flex-shrink: 0;
}

.logo__image {
    height: clamp(32px, 3.5vw, 40px);
    width: auto;
}

.logo__image--mobile {
    display: none;
}

/* Desktop Navigation */
.nav--desktop .nav__list {
    display: flex;
    list-style: none;
    gap: clamp(10px, 1.5vw, 20px);
    margin: 0;
    flex-wrap: nowrap;
}

.nav--desktop .nav__item {
    display: block;
    flex-shrink: 1;
    min-width: 0;
}

.nav--desktop .nav__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: clamp(120px, 13vw, 186px);
    height: 43px;
    padding: 0 clamp(8px, 1vw, 16px);
    background: transparent;
    border: none;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 5px;
    position: relative;
    white-space: nowrap;
}

.nav--desktop .nav__link--solutions {
    color: #62C574;
}

.nav--desktop .nav__link--technologies {
    color: #54B77D;
}

.nav--desktop .nav__link--services {
    color: #339B85;
}

.nav--desktop .nav__link--about {
    color: #167B90;
}

.nav--desktop .nav__link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav--desktop .nav__link:hover::after {
    width: calc(100% - 40px);
}

.nav--desktop .nav__link:hover {
    opacity: 0.8;
}

/* Active page underline - always visible */
.page-solutions .nav__link--solutions::after {
    width: calc(100% - 40px);
}

.page-technologies .nav__link--technologies::after {
    width: calc(100% - 40px);
}

.page-services .nav__link--services::after {
    width: calc(100% - 40px);
}

.page-about .nav__link--about::after {
    width: calc(100% - 40px);
}

.line {
    width: 176px;
    height: 0px;
    border: 2px solid currentColor;
    margin: 0 auto 30px auto;
}

.line--hex-1a7f8e { color: #1A7F8E; }
.line--hex-079cb0 { color: #079CB0; }
.line--hex-006fa3 { color: #006FA3; }
.line--hex-12697e { color: #12697E; }
.line--hex-105db5 { color: #105DB5; }
.line--hex-288d8c { color: #288D8C; }
.line--hex-02578b { color: #02578B; }

.line--left {
    margin-left: 0;
    margin-right: auto;
    align-self: flex-start; /* works when parent is flex */
    text-align: left;
}

.line--right {
    margin-left: auto;
    margin-right: 0;
    align-self: flex-end; /* works when parent is flex */
    text-align: right;
}

/* =================
   5. SECTION STYLES
   ================= */

/* Hero Section */
.hero {
    background: url('Images/Fitconnect_hero_green.svg') center/cover no-repeat;
    color: white;
    min-height: 250px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center; 
    padding: 60px 20px; 
    position: relative;
    margin: 15px auto;
    max-width: 100%;
}

.hero--solutions {
    background: url('Images/Fitconnect_hero_blue.svg') center/cover no-repeat;
}

.hero--tech {
    background: url('Images/Fitconnect_hero_sea.svg') center/cover no-repeat;
}

.hero__content {
    width: 100%;
    padding: 60px 20px 30px 20px; /* Reduced padding for better centering */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures proper spacing between elements */
    align-items: center; /* Ensures horizontal centering */
}

/* Services Section */
.services {
    padding: 30px 0 60px;
    background: #ffffff;
    text-align: center;
}

/* Modifier: gray background for selected services sections (Server, DevOps) */
.services--gray {
    background: #f8f9fa;
}

/* services__line removed: use .line + .line--hex-* modifiers */

.services__grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.services__grid > .service-card {
    display: block;
}

/* Services Carousel (Mobile) */
.services__carousel {
    display: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 0 20px;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services__carousel::-webkit-scrollbar {
    display: none;
}

    .services__carousel {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        padding: 0;
        gap: 0;
        -webkit-overflow-scrolling: touch;
    }

    .services__carousel .service-card {
        scroll-snap-align: start;
        flex: 0 0 100vw;
        width: 100vw;
        box-sizing: border-box;
        padding: 20px 20px;
        overflow: hidden;
    }

.services__dots {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.services__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.services__dot--active {
    background: #1A7F8E;
}

/* Homepage: override active dot color to match green CTA in hero/services block */
.page-home .services__dot--active {
    background: #6ED278; /* same as .btn--green */
}

/* Service Cards */
.service-card {
    padding: 20px 20px;
    text-align: center;
    width: 300px;
    flex-shrink: 0;
}

.service-card__icon {
    margin-bottom: 20px;
}

.service-card__icon img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

/* Fitconnect Section */
.fitconnect {
    background: #F5F7FA;
    padding: 0;
    color: #333;
}

.fitconnect .container {
    padding: 0;
    max-width: 1440px;
}

.fitconnect__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 500px;
}

.fitconnect__image {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    position: relative;
}

.fitconnect__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    min-height: 100%;
}

.fitconnect__text {
    flex: 1;
    padding: clamp(40px, 6vw, 80px) clamp(20px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* fitconnect__line removed: use .line + .line--hex-* modifiers */

/* Values Section */
.values {
    padding: 40px 0;
    background: #F5F7FA;
    text-align: center;
}

.values__description {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 24px;
    line-height: 160%;
}

/* values__line removed: use .line + .line--hex-* modifiers */

.values__grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.values__grid > .service-card {
    display: block;
}

/* Why Choose Section */
.why-choose {
    max-width: 1100px;
    margin: 0 auto 0 auto;
    padding: 40px 0;
    background: white;
    text-align: center;
    align-items: center;
}

/* why-choose__line removed: use .line + .line--hex-* modifiers */

/* Partner Section */
.partner {
    background: #f8f9fa;
    padding: 40px 0;
    text-align: center;
}

.partner .container {
    max-width: 1100px;
    margin: 0 auto;
}

.partner--plain {
    background: transparent;
}

.partner__description {
    max-width: 1100px;
    margin: 0 auto 40px auto;
    font-size: 24px;
    line-height: 160%;
}

/* partner__line removed: use .line + .line--hex-* modifiers */

.team-section {
    background: white;
    padding: 40px 0;
    text-align: center;
    position: relative;
}

.team-section__grid {
    display: block;
}

.team-section__card {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.team-section__card:nth-child(odd) {
    justify-content: flex-start;
}
.team-section__card:nth-child(odd) .team-section__photo {
    margin-left: -20px;
}

.team-section__card:nth-child(even) {
    justify-content: flex-end;
    flex-direction: row-reverse;
}
.team-section__card:nth-child(even) .team-section__photo {
    margin-right: -20px; 
}
.team-section__card:nth-child(even) .team-section__info {
    text-align: right;
}
.team-section__card:nth-child(even) .team-section__info .line {
    margin-left: auto;
    margin-right: 0;
}
.team-section__card:nth-child(odd) .team-section__info {
    text-align: left; 
}

.team-section__photo {
    flex: 0 0 520px;
    width: 520px;
    height: auto;
    overflow: hidden;
}

.team-section__photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.team-section__info {
    flex: 1 1 auto;
    max-width: 720px;
    text-align: left;
}

.team-section > .container > .line {
    margin: 0 auto 30px auto;
}

.team-section__name {
    align-items: center;
    font-weight: 600;
    font-size: 40px;
    line-height: 140%;
    letter-spacing: 0%;
    margin-bottom: 20px;
    color: #333;
}

.team-section__description {
    font-weight: 400;
    font-size: 24px;
    line-height: 160%;
    letter-spacing: 0%;
    margin-bottom: 40px;
    color: #808080;
}

@media (max-width: 768px) {
    .team-section__card {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        max-width: none;
        margin-bottom: 40px;
    }
    .team-section__card .team-section__photo {
        margin: 0;
        width: 100%;
        max-width: 360px;
    }
    .team-section__photo img {
        width: 100%;
        height: auto;
        object-position: center;
    }
    .team-section__info { text-align: center; }
    .team-section__description { font-size: 16px; }
}

/* Footer */
.footer {
    background: #E5E8ED;
    color: #333;
    padding: 30px 0;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    font-size: 16px;
    text-align: center;
}

.footer__contact p,
.footer__company p,
.footer__address p {
    margin-bottom: 5px;
}

.footer__contact a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__contact a:hover {
    color: #1A7F8E;
}

/* Footer social icons (simple sizing + spacing) */
.footer__social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px; /* larger spacing between icons */
    margin-top: 8px;
}

.footer__social a img {
    width: 32px; /* make icons larger */
    height: 32px;
    display: block;
}

@media (max-width: 768px) {
    .footer__social {
        gap: 12px;
    }

    .footer__social a img {
        width: 28px;
        height: 28px;
    }
}

/* ====================
   6. MOBILE NAVIGATION
   ==================== */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 3px;
    position: relative;
}

.mobile-menu-toggle__line {
    width: 24px;
    height: 3px;
    background: #808080;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Burger to X animation */
.mobile-menu-toggle.active .mobile-menu-toggle__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .mobile-menu-toggle__line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .mobile-menu-toggle__line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Panel */
.nav--mobile {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background: white;
    z-index: 2000;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.nav--mobile.active {
    right: 0;
}

.nav__content {
    padding: 20px;
}

.nav__section {
    margin-bottom: 20px;
}

.nav__section-title {
    font-weight: 700;
    font-size: 22px;
    color: #000;
    margin-bottom: 10px;
    padding: 0;
    border: none;
}

.nav__submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav__submenu li {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.nav__submenu li:before {
    content: '';
    width: 6px;
    height: 6px;
    background: #1A7F8E;
    margin-right: 10px;
    flex-shrink: 0;
}

.nav__submenu-link {
    color: #000;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    display: block;
    padding: 1px 0;
    transition: color 0.3s ease;
    text-align: left;
}

    /* Tighter mobile menu spacing */
    .nav--mobile .nav__content {
        /* add left padding so menu items don't sit flush to the viewport edge */
        padding: 12px 16px 12px 20px; /* top/right/bottom/left */
    }

    .nav--mobile .nav__section {
        margin-bottom: 10px; /* closer sections */
    }

    .nav--mobile .nav__section-title {
        /* restore original mobile title size but keep slightly reduced gap */
        font-size: 22px;
        margin-bottom: 6px;
        line-height: 1.1;
    }

    .nav--mobile .nav__submenu li {
        margin-bottom: 6px; /* reduce gap between items */
    }

    .nav--mobile .nav__submenu-link {
        /* restore original mobile submenu size but remove extra padding */
        font-size: 20px;
        padding: 0;
    }

    .nav--mobile .nav__submenu li:before {
        width: 5px;
        height: 5px;
        margin-right: 10px; /* slightly larger gap between bullet and text on mobile */
    }

.nav__submenu-link:hover {
    color: #0f5a66;
}

    
/* About page minimal overrides */
.about-hero__buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.fitconnect {
    margin-bottom: 0;
    background: #F5F7FA;
}

.team__carousel {
    display: none;
}

.team__dots {
    display: none;
}

/* ==================
   7. RESPONSIVE DESIGN
   ================== */

/* Tablet (iPad) - Progressive scaling */
@media (max-width: 1024px) and (min-width: 769px) {
    .header__content {
        padding: 15px 20px;
        gap: clamp(15px, 2vw, 30px);
    }
    
    .logo {
        margin-right: clamp(30px, 8vw, 100px);
    }
    
    .nav--desktop .nav__list {
        gap: clamp(8px, 1.2vw, 15px);
    }
    
    .nav--desktop .nav__link {
        min-width: clamp(110px, 12vw, 160px);
        font-size: clamp(15px, 1.3vw, 18px);
        padding: 0 clamp(6px, 0.8vw, 12px);
    }
    
    /* Fitconnect tablet adjustments */
    .fitconnect__content {
        min-height: 400px;
    }
    
    .fitconnect__image img {
        object-position: center left;
    }
    
    .fitconnect__text {
        padding: clamp(30px, 5vw, 60px) clamp(20px, 2.5vw, 35px);
    }
}

/* Small tablets and large phones */
@media (max-width: 768px) and (min-width: 601px) {
    .fitconnect__content {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .fitconnect__image {
        order: 1;
        justify-content: center;
        min-height: 300px;
        max-height: 400px;
    }
    
    .fitconnect__image img {
        width: 100%;
        height: 100%;
        object-position: center;
    }
    
    .fitconnect__text {
        order: 2;
        padding: 40px 30px;
        text-align: left;
    }
}

@media (max-width: 768px) {
    /* Header Mobile */
    .header__content {
        justify-content: space-between;
        padding: 15px 20px;
    }
    
    .logo {
        margin-right: 0;
    }
    
    .logo__image--desktop {
        display: none;
    }
    
    .logo__image--mobile {
        display: block;
        width: 32px;
        height: 32px;
    }
    
    .nav--desktop {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero Mobile */
    .hero {
        height: auto;
        min-height: 400px;
        padding: 80px 0 40px 0;
    }
    
    .hero__content {
        padding: 30px 0;
    }

    /* Mobile: reduce button sizes and text by 25% */
    .btn {
        width: 173px;      /* 230 * 0.75 */
        height: 45px;      /* 60 * 0.75 */
        font-size: 15px;   /* 20 * 0.75 */
        padding: 12px 12px;/* 16 * 0.75 */
    }
    
    /* On mobile, center any alignment-override lines so layout remains consistent */
    .line--left,
    .line--right {
        margin-left: auto;
        margin-right: auto;
        align-self: center;
        text-align: center;
    }
    
    /* Services Mobile */
    .services {
        padding: 40px 0;
    }
    
    .services__grid {
        flex-direction: column;
        gap: 0;
        margin-bottom: 10px;
    }
    
    /* On mobile, hide the desktop grid cards and show the carousel version */
    .services__grid > .service-card {
        display: none;
    }

    /* Also hide the values grid cards specifically on mobile (about.html values block) */
    .values__grid > .service-card {
        display: none;
    }
    
    .services__carousel {
        display: flex;
    }
    
    .services__dots {
        display: flex;
        margin-bottom: 20px;
        /* center under the full-bleed carousel: make dots full-viewport width and center contents */
        width: 100vw;
        margin-left: calc(50% - 50vw);
        justify-content: center;
        padding: 0;
    }
    /* If carousel is used inside a constrained .values block (About page), keep dots container-based */
    .values .services__dots {
        width: auto;
        margin-left: 0;
        justify-content: center;
        padding: 0;
    }
    
    /* Service Cards Mobile */
    .service-card {
        padding: 20px 20px;
    }
    
    .service-card__icon {
        margin-bottom: 15px;
    }
    
    .service-card__icon img {
        width: 160px;
        height: 160px;
    }
    
    /* Fitconnect Mobile */
    .fitconnect__content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: auto;
        gap: 0;
    }
    
    .fitconnect__image {
        order: 1;
        justify-content: center;
        padding: 0;
        min-height: 250px;
        max-height: 350px;
    }
    
    .fitconnect__image img {
        width: 100%;
        height: 100%;
        object-position: center;
        object-fit: cover;
    }
    
    .fitconnect__text {
        order: 2;
        padding: 30px 20px;
        text-align: center;
    }
    
    /* Other Sections Mobile */
    .why-choose {
        padding: 40px 0;
    }
    
    .partner {
        padding: 40px 0;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer__company {
        order: 1;
    }
    
    .footer__contact {
        order: 2;
    }
    
    .footer__address {
        order: 3;
    }
    
    /* Mobile Typography */
    .section-title {
        font-size: 24px;
    }
    
    .section-title--hero {
        font-size: 24px;
    }
    
    .section-title--small {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .section-description {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .section-description--small {
        margin-bottom: 0;
    }
    
    .section-description--large {
        font-size: 18px;
        font-weight: 400;
    }
    
    /* About page mobile hide buttons */
    .about-hero__buttons {
        display: none;
    }
    
    .team__grid {
        display: none;
    }
    
    .team__carousel {
        display: flex;
    }
    
    .team__dots {
        display: flex;
    }

    /* Mobile team carousel overrides: hide desktop grid and make team slides full-width */
    .team-section__grid {
        display: none;
    }

    /* Ensure the team carousel reuses the services carousel layout but without horizontal padding */
    /* Make the team carousel full-bleed without causing horizontal overflow */
    .team__carousel.services__carousel {
        /* center a full-viewport-width carousel inside the .container */
        width: 100vw;
        margin-left: calc(50% - 50vw);
        padding: 0;
        gap: 0;
        -webkit-overflow-scrolling: touch;
    }

    .team__carousel .service-card {
        flex: 0 0 100vw; /* each slide equals viewport width */
        width: 100vw;
        padding: 0 0 24px 0;
        box-sizing: border-box;
        overflow: hidden; /* hide any inner overflow so images don't create extra width */
    }

    /* Make team photos fit the slide and not exceed viewport */
    .team__carousel .service-card__icon img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
        margin: 0;
    }

    /* Center the name and description within each slide (uses existing typography classes) */
    .team__carousel .section-title { margin-top: 16px; }
    .team__carousel .section-description { margin: 12px 20px 0 20px; }
}

/* Solutions page specific navigation colors */
.page-solutions .nav__link--solutions { color: #75ABE5; }
.page-solutions .nav__link--technologies { color: #3075C9; }
.page-solutions .nav__link--services { color: #105DB5; }
.page-solutions .nav__link--about { color: #05489A; }

/* Feature block (icon left, subtitle + text) */
.feature {
    max-width: 1100px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 0 auto 28px; /* центрируем блок по горизонтали */
}

.feature__icon {
    flex: 0 0 60px;
    width: 60px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature__icon img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.feature__content {
    flex: 1 1 auto;
    text-align: left; /* выравниваем подзаголовок и текст по левому краю */
}

.feature__subtitle {
    font-weight: 600;
    font-size: 24px;
    color: #333;
    margin-bottom: 8px;
}

.feature__text {
    font-size: 24px;
    line-height: 1.6;
    color: #666;
}

/* Mobile: subtitle starts to the right of the icon, text under full-width */
@media (max-width: 768px) {
    .feature {
        align-items: flex-start;
        gap: 12px;
        /* keep single-row layout: icon left, content right */
        flex-wrap: nowrap;
    }

    .feature__icon {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }

    /* Content column stays to the right of the icon and stacks subtitle above text */
    .feature__content {
        display: block;
        flex: 1 1 auto;
        min-width: 0; /* allow flex child to shrink properly */
    }

    .feature__subtitle {
        display: block;
        margin: 0 0 8px 0;
        font-size: 18px;
    }

    .feature__text {
        display: block;
        margin: 0;
        font-size: 16px;
        line-height: 1.6;
    }
}


