﻿
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

.ka-text-image.reverse {
    flex-direction: row-reverse;
}

body {
    line-height: 1.7;
    color: #333;
    overflow-x: hidden;
}

.ka-portfolio-overlay p {
    color: #fff;
    margin-bottom: 10px;
}
/* استایل‌های اختصاصی با پیشوند ka */
.ka-section {
    padding: 80px 0;
    position: relative;
}

.ka-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.ka-heading {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
    font-weight: 800;
}

.ka-portfolio-overlay h3 {
    color: #fff;
}

.ka-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 5px;
    background-color: #f97316;
    border-radius: 3px;
}

.ka-subheading {
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* رنگ‌های اصلی */
.ka-primary {
    color: #f97316;
}

.ka-secondary {
    color: #16a34a;
}

.ka-bg-primary {
    background-color: #f97316;
}

.ka-bg-secondary {
    background-color: #16a34a;
}

/* هدر */
.ka-header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.ka-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.ka-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #16a34a;
    z-index: 1002;
}

    .ka-logo span {
        color: #f97316;
    }

.ka-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

    .ka-menu a {
        text-decoration: none;
        color: #333;
        font-weight: 600;
        transition: color 0.3s;
        font-size: 1rem;
        position: relative;
        padding: 5px 0;
    }

        .ka-menu a:after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0;
            height: 3px;
            background-color: #f97316;
            transition: width 0.3s ease;
        }

        .ka-menu a:hover {
            color: #f97316;
        }

            .ka-menu a:hover:after {
                width: 100%;
            }

.ka-hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    z-index: 1002;
    background: none;
    border: none;
    padding: 5px;
}

/* هیرو */
.ka-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/kashane5.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 180px 0 100px;
    /*margin-top: 70px;*/
}

    .ka-hero h1 {
        font-size: 2.8rem;
        margin-bottom: 20px;
        font-weight: 800;
        line-height: 1.2;
        color: #fff;
    }

    .ka-hero p {
        font-size: 1.2rem;
        max-width: 800px;
        margin: 0 auto 40px;
        line-height: 1.7;
        font-weight: 300;
        padding: 0 15px;
        color: #bebebe
    }

.ka-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: #f97316;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
    margin: 5px;
}

    .ka-button:hover {
        background-color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

.ka-button-secondary {
    background-color: #16a34a;
    box-shadow: 0 5px 15px rgba(22, 163, 74, 0.3);
}

    .ka-button-secondary:hover {
        background-color: #15803d;
    }

/* درباره مالک */
.ka-about-owner {
    background-color: #f8fafc;
}

.ka-owner-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.ka-owner-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

    .ka-owner-image img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.5s ease;
    }

    .ka-owner-image:hover img {
        transform: scale(1.05);
    }

.ka-owner-content {
    flex: 1;
}

.ka-owner-name {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #1e293b;
    font-weight: 800;
}

.ka-owner-title {
    color: #f97316;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.ka-owner-description {
    line-height: 1.8;
    color: #475569;
    margin-bottom: 20px;
    font-size: 1rem;
}

.ka-advantages {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

    .ka-advantages li {
        margin-bottom: 15px;
        padding-right: 35px;
        position: relative;
        font-size: 1rem;
    }

        .ka-advantages li:before {
            content: '✓';
            position: absolute;
            right: 0;
            color: #16a34a;
            font-weight: bold;
            font-size: 1.2rem;
        }

/* بخش‌های متناوب متن و عکس */
.ka-text-image-section {
    padding: 80px 0;
}

.ka-text-image {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

    /*        .ka-text-image.reverse {
                flex-direction: row-reverse;
            }

    */ .ka-text-image .ka-content {
        flex: 1;
    }

    .ka-text-image .ka-image {
        flex: 1;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

        .ka-text-image .ka-image img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.5s ease;
        }

        .ka-text-image .ka-image:hover img {
            transform: scale(1.05);
        }

.ka-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1e293b;
    font-weight: 800;
}

.ka-content p {
    line-height: 1.8;
    color: #475569;
    font-size: 1rem;
    margin-bottom: 20px;
}

/* خدمات */
.ka-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.ka-service-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
    text-align: center;
    border: 1px solid #f1f5f9;
}

    .ka-service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        border-color: #f97316;
    }

.ka-service-icon {
    font-size: 2.5rem;
    color: #f97316;
    margin-bottom: 20px;
}

/* نمونه کارها */
.ka-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.ka-portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
}

.ka-portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.ka-portfolio-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(80px);
    transition: transform 0.4s;
}

.ka-portfolio-item:hover .ka-portfolio-overlay {
    transform: translateY(0);
}

.ka-portfolio-item:hover .ka-portfolio-img {
    transform: scale(1.1);
}

/* دستاوردهای ما */
.ka-achievements {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 80px 0;
}

.ka-achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.ka-achievement-card {
    background-color: white;
    border-radius: 10px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

    .ka-achievement-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        border-color: #f97316;
    }

    .ka-achievement-card:before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg, #f97316, #16a34a);
    }

.ka-achievement-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #f97316;
}

.ka-achievement-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1;
}

.ka-achievement-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 12px;
}

.ka-achievement-desc {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* بخش معرفی خدمات ویژه */
.ka-special-services {
    padding: 80px 0;
    background-color: #f8fafc;
}

.ka-special-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.ka-special-card {
    background: white;
    border-radius: 10px;
    padding: 35px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .ka-special-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    }

    .ka-special-card:before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg, #16a34a, #f97316);
    }

.ka-special-icon {
    font-size: 3rem;
    color: #16a34a;
    margin-bottom: 20px;
}

.ka-special-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.ka-special-desc {
    color: #64748b;
    line-height: 1.7;
    font-size: 1rem;
}

/* تماس */
.ka-contact {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    padding: 80px 0;
}

    .ka-contact .ka-heading,
    .ka-contact .ka-subheading {
        color: white;
    }

        .ka-contact .ka-heading:after {
            background-color: white;
        }

.ka-contact-wrapper {
    display: flex;
    gap: 50px;
}

.ka-contact-info {
    flex: 1;
}

.ka-contact-form {
    flex: 1;
}

.ka-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}



.ka-form-group {
    margin-bottom: 20px;
}

.ka-form-input, .ka-form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

    .ka-form-input::placeholder,
    .ka-form-textarea::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }

.ka-form-textarea {
    height: 140px;
    resize: vertical;
}

.ka-contact button.ka-button {
    background-color: white;
    color: #f97316;
    font-weight: 700;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    box-shadow: none;
}

    .ka-contact button.ka-button:hover {
        background-color: #f8fafc;
        color: #ea580c;
    }

/* رسپانسیو - تبلت */
@media (max-width: 1024px) {
    .ka-hero h1 {
        font-size: 2.5rem;
    }

    .ka-heading {
        font-size: 2.2rem;
    }

    .ka-text-image {
        gap: 40px;
    }

    .ka-achievements-grid {
        gap: 25px;
    }

    .ka-achievement-card {
        padding: 35px 20px;
    }

    .ka-special-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* رسپانسیو - تبلت کوچک */
@media (max-width: 900px) {
    .ka-owner-container,
    .ka-contact-wrapper,
    .ka-text-image {
        flex-direction: column;
        gap: 40px;
    }

    .ka-text-image {
        margin-bottom: 60px;
    }

    .ka-achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ka-services-grid,
    .ka-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /*       .ka-hero {
            padding: 150px 0 80px;
        }*/

    .ka-hero h1 {
        font-size: 2.2rem;
    }

    .ka-hero p {
        font-size: 1.1rem;
    }
}

/* رسپانسیو - موبایل */
@media (max-width: 768px) {
    .ka-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 80px 25px 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        align-items: flex-start;
    }

        .ka-menu.active {
            right: 0;
        }

    .ka-hamburger {
        display: block;
    }

    .ka-menu a {
        font-size: 1.1rem;
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }

        .ka-menu a:after {
            display: none;
        }

    .ka-hero h1 {
        font-size: 2rem;
        padding: 0 15px;
    }

    .ka-heading {
        font-size: 1.8rem;
    }

    .ka-subheading {
        font-size: 1rem;
    }

    .ka-section {
        padding: 60px 0;
    }

    .ka-text-image-section {
        padding: 60px 0;
    }

    .ka-achievements {
        padding: 60px 0;
    }

    .ka-special-services {
        padding: 60px 0;
    }

    .ka-contact {
        padding: 60px 0;
    }

    .ka-services-grid,
    .ka-portfolio-grid,
    .ka-achievements-grid,
    .ka-special-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* رسپانسیو - موبایل کوچک */
@media (max-width: 576px) {
    .ka-hero h1 {
        font-size: 1.8rem;
    }

    .ka-hero p {
        font-size: 1rem;
    }

    .ka-button {
        padding: 14px 25px;
        font-size: 0.95rem;
        display: block;
        margin: 10px 0;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .ka-heading {
        font-size: 1.6rem;
    }

        .ka-heading:after {
            width: 80px;
            height: 4px;
        }

    .ka-container {
        padding: 0 15px;
    }

    .ka-owner-name {
        font-size: 1.7rem;
    }

    .ka-content h3 {
        font-size: 1.6rem;
    }

    .ka-achievement-number {
        font-size: 2.5rem;
    }

    .ka-achievement-title {
        font-size: 1.2rem;
    }

    .ka-contact-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* رسپانسیو - موبایل بسیار کوچک */
@media (max-width: 400px) {
    .ka-logo {
        font-size: 1.5rem;
    }

    .ka-hero h1 {
        font-size: 1.6rem;
    }

    .ka-heading {
        font-size: 1.5rem;
    }

    .ka-owner-name {
        font-size: 1.5rem;
    }

    .ka-content h3 {
        font-size: 1.4rem;
    }

    .ka-menu {
        width: 100%;
    }
}

/* اضافه کردن overlay برای منوی موبایل */
.ka-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

    .ka-menu-overlay.active {
        display: block;
    }

/* دکمه ضربدر برای بستن منو */
.ka-menu-close {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.8rem;
    color: #333;
    cursor: pointer;
    z-index: 1003;
    background: none;
    border: none;
    padding: 5px;
    display: none;
}

.ka-menu.active ~ .ka-menu-close {
    display: block;
}
