﻿

.home-page {
    width: 100%;
    overflow-x: hidden;
}

/* SECTION BLOCKS */
.section-block {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
}

.container {
    width: 88%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========== HERO SECTION (same as intro-section) ========== */
.hero-section {
    background: var(--kcl-surface-soft);
    margin-top: 40px;
    border-radius: 90px 90px 90px 90px;
    padding: 80px 0 100px;
    position: relative;
    z-index: 4;
    box-shadow: var(--kcl-shadow-bottom);
}

.hero-content {
    max-width: 700px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--kcl-primary);
    background: rgba(42, 126, 168, 0.1);
    padding: 0.3rem 0.9rem;
    border-radius: 40px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    margin: 1.5rem 0 1.5rem;
}

.accent-text {
    color: var(--kcl-primary);
}

.hero-description {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-primary, .btn-outline {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--kcl-shadow-bottom);
}

.btn-primary {
    background: #111;
    color: #fff;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        background: #000;
    }

.btn-outline {
    background: #fff;
    color: #111;
    border: 1px solid #e2e8f0;
}

    .btn-outline:hover {
        transform: translateY(-3px);
        background: var(--kcl-primary);
        color: white;
        border-color: var(--kcl-primary);
    }

.hero-stats {
    display: flex;
    gap: 2rem;
}

    .hero-stats .stat {
        font-size: 0.85rem;
        color: #5a6874;
    }

        .hero-stats .stat span {
            font-size: 1.8rem;
            font-weight: 800;
            color: #111;
            display: block;
            line-height: 1.2;
        }

/* ========== SERVICES SECTION ========== */
.services-section {
    background: var(--kcl-surface);
    border-bottom-left-radius: 90px;
    border-bottom-right-radius: 90px;
    padding: 120px 0 100px;
    position: relative;
    z-index: 3;
    box-shadow: var(--kcl-shadow-bottom);
    margin-top: -40px;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: 54px;
    line-height: 1.2;
    letter-spacing: -1px;
    color: #111;
    margin-bottom: 15px;
}

.section-subtitle {
    color: #7a7a7a;
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.service-card {
    background: #f3f3f1;
    border-radius: 28px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.35s ease;
    box-shadow: var(--kcl-shadow-card);
}

    .service-card:hover {
        background: #dbdbdb;
        transform: translateY(-6px);
        box-shadow: var(--kcl-shadow-hover);
    }

.service-icon {
    font-size: 3rem;
    color: var(--kcl-primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #5a6874;
}

/* ========== WHY CHOOSE US (new) ========== */
.why-us-section {
    background: var(--kcl-surface-soft);
    padding: 100px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.why-card {
    background: #f3f3f1;
    border-radius: 28px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.35s ease;
    box-shadow: var(--kcl-shadow-card);
}

    .why-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--kcl-shadow-hover);
    }

.why-icon {
    font-size: 2.5rem;
    color: var(--kcl-primary);
    margin-bottom: 1rem;
}

.why-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.why-card p {
    font-size: 0.85rem;
    color: #5a6874;
}

/* ========== FEATURED PRODUCTS ========== */
.featured-products-section {
    background: var(--kcl-surface);
    border-radius: 90px;
    padding: 100px 0;
    margin: 20px 0;
    box-shadow: 0 -25px 15px -25px rgba(0, 0, 0, 0.35), /* سایه بالا */
    0 25px 15px -25px rgba(0, 0, 0, 0.35); /* سایه پایین */
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.featured-card {
    background: #f3f3f1;
    border-radius: 28px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.35s ease;
    box-shadow: var(--kcl-shadow-card);
}

    .featured-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--kcl-shadow-hover);
    }

.featured-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(42,126,168,0.15);
}

    .featured-image img {
        width: 55%;
        height: auto;
    }

.featured-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.featured-badge {
    display: inline-block;
    background: rgba(42,126,168,0.12);
    color: var(--kcl-primary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    margin-bottom: 0.75rem;
}

.featured-card p {
    font-size: 0.85rem;
    color: #5a6874;
    margin-bottom: 1rem;
}

.featured-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--kcl-primary);
    text-decoration: none;
}

    .featured-link:hover {
        text-decoration: underline;
    }

.btn-outline-dark {
    background: transparent;
    border: 1px solid var(--kcl-primary);
    color: var(--kcl-primary);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

    .btn-outline-dark:hover {
        background: var(--kcl-primary);
        color: white;
        transform: translateY(-2px);
    }

/* ========== TEAM HIGHLIGHTS ========== */
.team-highlight-section {
    background: var(--kcl-surface-soft);
    padding: 100px 0;
}

.team-highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.team-highlight-card {
    text-align: center;
    transition: transform 0.2s;
}

    .team-highlight-card:hover {
        transform: translateY(-4px);
    }

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    background: #fff;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(42,126,168,0.15);
    transition: 0.2s;
}

    .team-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.team-highlight-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.team-highlight-card span {
    font-size: 0.8rem;
    color: #5a6874;
}

.team-highlight-card:hover .team-avatar {
    border-color: var(--kcl-primary);
    transform: scale(1.02);
}

/* ========== LATEST INSIGHTS (with both top and bottom shadows) ========== */
.insights-section {
    background: var(--kcl-surface);
    border-radius: 90px;
    padding: 100px 0;
    margin: 20px 0;
    box-shadow: 0 -25px 15px -25px rgba(0, 0, 0, 0.35), /* سایه بالا */
    0 25px 15px -25px rgba(0, 0, 0, 0.35); /* سایه پایین */
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.insight-card {
    background: #f3f3f1;
    border-radius: 28px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.35s ease;
    box-shadow: var(--kcl-shadow-card);
}

    .insight-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--kcl-shadow-hover);
    }

.insight-icon {
    font-size: 2.5rem;
    color: var(--kcl-primary);
    margin-bottom: 1rem;
}

.insight-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.insight-card p {
    font-size: 0.85rem;
    color: #5a6874;
    margin-bottom: 1rem;
}

.insight-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--kcl-primary);
    text-decoration: none;
}

    .insight-link:hover {
        text-decoration: underline;
    }

/* ========== STATS + TESTIMONIAL ========== */
.stats-testimonial-section {
    background: var(--kcl-surface-soft);
    padding: 80px 0;
}

.stats-testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}

.stats-box {
    background: var(--kcl-primary);
    border-radius: 48px;
    padding: 50px 40px;
    text-align: center;
    color: white;
}

    .stats-box .stats-number {
        font-size: 3rem;
        font-weight: 800;
        margin-bottom: 0.25rem;
    }

    .stats-box .stats-label {
        font-size: 0.9rem;
        opacity: 0.9;
    }

    .stats-box .mt-4 {
        margin-top: 2rem;
    }

.testimonial-box {
    background: #f3f3f1;
    border-radius: 48px;
    padding: 50px 40px;
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--kcl-primary);
    opacity: 0.3;
    margin-bottom: 1rem;
    display: block;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--kcl-primary);
}

/* ========== CTA SECTION (smaller, with spacing) ========== */
.cta-home-section {
    background: var(--kcl-surface);
    border-radius: 90px;
    padding: 80px 0 60px; /* reduced from 140px 0 110px */
    margin-top: 60px; /* positive margin to create space from previous section */
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    box-shadow: 0 -25px 15px -25px rgba(0, 0, 0, 0.35), /* top shadow */
    0 25px 15px -25px rgba(0, 0, 0, 0.35); /* bottom shadow */
}

.cta-icon-wrap {
    width: 80px; /* slightly smaller */
    height: 80px;
    background: #fff;
    border-radius: 50%;
    margin: 0 auto 20px; /* reduced margin */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px; /* slightly smaller icon */
    color: var(--kcl-primary);
    box-shadow: var(--kcl-shadow-bottom);
}

.cta-home-section h2 {
    font-size: 48px; /* reduced from 68px for better proportion */
    line-height: 1.2;
    letter-spacing: -1px;
    color: #111;
    margin-bottom: 15px;
}

.cta-home-section p {
    color: #777;
    font-size: 16px;
    margin-bottom: 30px; /* reduced */
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons-group {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.btn-outline-light {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #111;
    padding: 14px 28px; /* slightly smaller buttons */
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .btn-outline-light:hover {
        transform: translateY(-3px);
        background: var(--kcl-primary);
        color: white;
        border-color: var(--kcl-primary);
    }

.cta-note {
    margin-top: 1.5rem; /* reduced */
    font-size: 0.85rem;
    color: #7c7f82;
}
/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
    .services-grid, .why-grid, .featured-grid, .team-highlight-grid, .insights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stats-testimonial-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .services-grid, .why-grid, .featured-grid, .team-highlight-grid, .insights-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 34px;
    }

    .cta-home-section h2 {
        font-size: 38px;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .stats-box, .testimonial-box {
        padding: 30px 20px;
    }
}
