/* CSS/clients.css */

/* =========================================
   IMPORT HOMEPAGE STYLES
   ========================================= */
@import url("home.css");

/* =========================================
   GLOBAL BODY - SUBTLE BACKGROUND
   ========================================= */
body {
    background-color: #fafdfa;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(67, 177, 67, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(67, 177, 67, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
}

/* =========================================
   CLIENTS HERO
   ========================================= */
.clients-hero {
    position: relative;
    padding: 100px 0 80px;
    background-color: #1a5f2a;
    overflow: hidden;
    min-height: 380px;
    text-align: center;
}

.clients-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../MetroPlogo/SSC.png');
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 0;
}

.clients-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.clients-hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
}

.clients-hero-subtitle {
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: bold;
    color: var(--light-green);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.clients-hero-subtitle::before,
.clients-hero-subtitle::after {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--light-green);
    display: inline-block;
}

.clients-hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.clients-hero-content .highlight-green {
    color: var(--light-green);
}

.clients-hero-desc {
    font-size: 17px;
    line-height: 1.9;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* =========================================
   SECTION TITLE (Shared)
   ========================================= */
.section-title-wrap {
    text-align: center;
    margin-bottom: 45px;
}

.section-title-wrap h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a4a1a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.sparkle-inline {
    color: var(--award-green);
    font-size: 32px;
    display: inline-block;
    animation: sparkle 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(67, 177, 67, 0.3);
}

.section-title-wrap p {
    font-size: 15px;
    color: var(--text-light);
}

.section-title-wrap p strong {
    color: var(--primary-green);
    font-weight: 700;
}

/* =========================================
   PREMIUM CONTAINER (Shared Base)
   ========================================= */
.premium-container {
    width: 92%;
    max-width: 1350px;
    margin: 40px auto;
    padding: 55px 45px;
    border-radius: 36px;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s;
    box-shadow: 
        0 0 0 1px rgba(67, 177, 67, 0.15),
        0 0 0 3px rgba(255, 255, 255, 0.4),
        0 40px 80px rgba(67, 177, 67, 0.14),
        0 20px 40px rgba(67, 177, 67, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.premium-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--award-green), var(--light-green), var(--award-green), transparent);
    border-radius: 0 0 6px 6px;
    z-index: 3;
}

.premium-container > * {
    position: relative;
    z-index: 1;
}

.premium-container:hover {
    transform: translateY(-4px);
}

/* =========================================
   DIFFERENT BACKGROUNDS FOR EACH CATEGORY
   ========================================= */

.client-bg-1 {
    background: 
        linear-gradient(135deg, #f6fbf6 0%, #e8f5e9 100%),
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.3) 0px,
            rgba(255, 255, 255, 0.3) 2px,
            transparent 2px,
            transparent 20px
        );
}

.client-bg-2 {
    background: 
        radial-gradient(circle at 0% 0%, rgba(163, 217, 119, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(67, 177, 67, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #f5faf5 100%);
}

.client-bg-3 {
    background: 
        radial-gradient(circle at 100% 0%, rgba(67, 177, 67, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(163, 217, 119, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, #f8fcf8 0%, #eef8ef 100%);
}

.client-bg-3::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(67, 177, 67, 0.09) 1px, transparent 1px);
    background-size: 22px 22px;
    border-radius: 36px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.client-bg-4 {
    background: 
        linear-gradient(90deg, rgba(67, 177, 67, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, #f5faf5 0%, #ffffff 100%);
    background-size: 60px 60px, 100% 100%;
}

/* =========================================
   CLIENTS MAIN LAYOUT
   ========================================= */
.clients-main {
    padding: 20px 0 40px;
}

.client-category-section {
    padding: 10px 0;
}

/* =========================================
   CLIENTS GRID & CARDS
   ========================================= */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.client-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
    border: 2px solid rgba(224, 224, 224, 0.6);
    box-shadow: 
        0 4px 15px rgba(67, 177, 67, 0.05),
        0 1px 3px rgba(67, 177, 67, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-green), var(--light-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.client-card:hover::before {
    transform: scaleX(1);
}

.client-card:hover {
    transform: translateY(-8px);
    border-color: var(--award-green);
    box-shadow: 
        0 25px 45px rgba(67, 177, 67, 0.18),
        0 10px 20px rgba(67, 177, 67, 0.08);
}

.client-logo-wrap {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 5px;
    transition: height 0.4s ease;
    overflow: visible;
}

.client-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-card:hover .client-logo-wrap img {
    filter: grayscale(0);
}

/* =========================================
   LOGO SIZE VARIANTS
   ========================================= */

/* Default */
.client-logo-wrap img {
    transform: scale(1);
}

/* Large */
.client-logo-wrap img.logo-lg {
    transform: scale(1.35);
}

/* Medium-Large - for logos that need a middle size */
.client-logo-wrap img.logo-md {
    transform: scale(1.45);
}

/* Extra Large - Eton, Ecoplaza, Peninsula, Streetscape */
.client-logo-wrap img.logo-xl {
    transform: scale(1.85);
}

/* Small */
.client-logo-wrap img.logo-sm {
    transform: scale(0.85);
}

/* Bigger wrapper for bigger logos */
.client-logo-wrap.logo-wrap-lg {
    height: 110px;
}

/* Hover states */
.client-card:hover .client-logo-wrap img {
    transform: scale(1.05);
}

.client-card:hover .client-logo-wrap img.logo-lg {
    transform: scale(1.4);
}

.client-card:hover .client-logo-wrap img.logo-md {
    transform: scale(1.6);
}

.client-card:hover .client-logo-wrap img.logo-xl {
    transform: scale(1.9);
}

.client-card:hover .client-logo-wrap img.logo-sm {
    transform: scale(0.9);
}

.client-card h3 {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.2px;
    margin: 0;
    text-transform: uppercase;
    transition: color 0.3s;
}

.client-card:hover h3 {
    color: var(--primary-green);
}

/* =========================================
   CLIENTS CTA SECTION
   ========================================= */
.clients-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    position: relative;
    overflow: hidden;
}

.clients-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 30%, rgba(163, 217, 119, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.clients-cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 700px;
    margin: 0 auto;
}

.clients-cta-content h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.clients-cta-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 35px;
    opacity: 0.9;
}

.clients-cta-content .btn-primary {
    background: var(--light-green);
    color: var(--primary-green);
    padding: 16px 35px;
    font-size: 15px;
    box-shadow: 0 15px 35px rgba(163, 217, 119, 0.3);
}

.clients-cta-content .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(163, 217, 119, 0.4);
}

/* =========================================
   SCROLL REVEAL
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE - TABLET (max 1024px)
   ========================================= */
@media (max-width: 1024px) {
    .clients-hero-content h1 {
        font-size: 38px;
    }

    .clients-hero-desc {
        font-size: 15px;
    }

    .premium-container {
        padding: 45px 35px;
        border-radius: 28px;
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .section-title-wrap h2 {
        font-size: 26px;
    }

    .clients-cta-content h2 {
        font-size: 32px;
    }

    .client-logo-wrap img.logo-lg {
        transform: scale(1.25);
    }

    .client-card:hover .client-logo-wrap img.logo-lg {
        transform: scale(1.3);
    }

    .client-logo-wrap img.logo-md {
        transform: scale(1.4);
    }

    .client-card:hover .client-logo-wrap img.logo-md {
        transform: scale(1.45);
    }

    .client-logo-wrap img.logo-xl {
        transform: scale(1.6);
    }

    .client-card:hover .client-logo-wrap img.logo-xl {
        transform: scale(1.65);
    }

    .client-logo-wrap.logo-wrap-lg {
        height: 105px;
    }
}

/* =========================================
   RESPONSIVE - MOBILE (max 768px)
   ========================================= */
@media (max-width: 768px) {
    .clients-hero {
        padding: 60px 0 50px;
        min-height: auto;
    }

    .clients-hero-content h1 {
        font-size: 30px;
    }

    .clients-hero-desc {
        font-size: 14px;
        line-height: 1.8;
    }

    .premium-container {
        width: 94%;
        padding: 35px 22px;
        border-radius: 24px;
        margin: 25px auto;
    }

    .section-title-wrap {
        margin-bottom: 30px;
    }

    .section-title-wrap h2 {
        font-size: 22px;
        gap: 10px;
    }

    .sparkle-inline {
        font-size: 20px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .client-card {
        padding: 18px 14px;
        border-radius: 14px;
    }

    .client-logo-wrap {
        height: 70px;
    }

    .client-card h3 {
        font-size: 11px;
    }

    .client-logo-wrap.logo-wrap-lg {
        height: 90px;
    }

    .client-logo-wrap img.logo-lg {
        transform: scale(1.2);
    }

    .client-card:hover .client-logo-wrap img.logo-lg {
        transform: scale(1.25);
    }

    .client-logo-wrap img.logo-md {
        transform: scale(1.3);
    }

    .client-card:hover .client-logo-wrap img.logo-md {
        transform: scale(1.35);
    }

    .client-logo-wrap img.logo-xl {
        transform: scale(1.4);
    }

    .client-card:hover .client-logo-wrap img.logo-xl {
        transform: scale(1.45);
    }

    .clients-cta {
        padding: 50px 0;
    }

    .clients-cta-content h2 {
        font-size: 24px;
    }

    .clients-cta-content p {
        font-size: 14px;
        line-height: 1.7;
    }

    .clients-cta-content .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   SMALL MOBILE (max 480px)
   ========================================= */
@media (max-width: 480px) {
    
    .clients-hero-content h1 {
        font-size: 24px;
    }

    .clients-hero-subtitle {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .clients-hero-subtitle::before,
    .clients-hero-subtitle::after {
        width: 25px;
    }

    .section-title-wrap h2 {
        font-size: 19px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .client-logo-wrap {
        height: 60px;
    }

    .client-card {
        padding: 15px 10px;
    }

    .client-card h3 {
        font-size: 10px;
    }

    .premium-container {
        padding: 25px 16px;
    }

    .client-logo-wrap.logo-wrap-lg {
        height: 75px;
    }

    .client-logo-wrap img.logo-lg {
        transform: scale(1.1);
    }

    .client-card:hover .client-logo-wrap img.logo-lg {
        transform: scale(1.15);
    }

    .client-logo-wrap img.logo-md {
        transform: scale(1.2);
    }

    .client-card:hover .client-logo-wrap img.logo-md {
        transform: scale(1.25);
    }

    .client-logo-wrap img.logo-xl {
        transform: scale(1.25);
    }

    .client-card:hover .client-logo-wrap img.logo-xl {
        transform: scale(1.3);
    }
}