/**
 * Kılıç İnşaat - Components CSS
 * Proje kartları, istatistikler, testimonials, WhatsApp vs.
 */

/* ============================================================
   STATISTICS / KPI CARDS (Damac Style)
   ============================================================ */
.statistics-section {
    position: relative;
    background: var(--color-background-dark);
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    transition: all 0.3s ease;
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 40px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 15px;
}

.stat-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.stat-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   PROJECTS GRID (NEF Style)
   ============================================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.project-card {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--color-secondary);
    box-shadow: var(--box-shadow);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
}

.project-status {
    padding: 8px 20px;
    background: var(--color-accent);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-status.status-completed {
    background: #27ae60;
    color: var(--color-secondary);
}

.project-status.status-ongoing {
    background: var(--color-accent);
    color: var(--color-primary);
}

.project-status.status-planning {
    background: #3498db;
    color: var(--color-secondary);
}

.project-content {
    padding: 30px;
}

.project-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

.project-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--color-accent);
}

.project-subtitle {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.project-link-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-link-text i {
    transition: transform 0.3s ease;
}

.project-card:hover .project-link-text i {
    transform: translateX(5px);
}

/* ============================================================
   TESTIMONIALS (Konfay Style - Carousel)
   ============================================================ */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

.testimonial-card {
    background: var(--color-secondary);
    padding: 50px;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--color-accent);
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    color: var(--color-accent);
    font-size: 18px;
}

.testimonial-text {
    font-size: 20px;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 30px;
    font-family: var(--font-heading);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-primary);
}

.author-title {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* ============================================================
   SERVICES
   ============================================================ */
.service-card {
    padding: 40px;
    background: var(--color-secondary);
    box-shadow: var(--box-shadow);
    transition: all 0.4s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--color-accent);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.service-description {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-card {
    display: block;
    background: var(--color-secondary);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.news-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

.news-content {
    padding: 30px;
}

.news-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: var(--color-accent);
}

.news-excerpt {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.news-link-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-link-text i {
    transition: transform 0.3s ease;
}

.news-card:hover .news-link-text i {
    transform: translateX(5px);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: var(--color-background-dark);
    color: var(--color-secondary);
}

.cta-title {
    font-size: clamp(28px, 5vw, 48px);
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.cta-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.7);
    }
}

/* ============================================================
   ABOUT IMAGE GRID
   ============================================================ */
.about-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    position: relative;
}

.grid-img-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-img-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: 60px;
}


/* ============================================================
   Home News Showcase
   ============================================================ */
.home-news-section {
    padding: 120px 0;
    background: #ffffff;
}

.home-news__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
}

.home-news__title {
    font-size: clamp(40px, 5vw, 64px);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    margin: 12px 0 0;
}

.home-news__explore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-primary);
}

.home-news__explore i {
    transition: transform 0.3s ease;
}

.home-news__explore:hover i {
    transform: translateX(6px);
}

.home-news__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 48px;
}

.home-news__list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.home-news__item {
    display: grid;
    grid-template-columns: 80px 1fr 32px;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.home-news__item:last-child {
    border-bottom: none;
}

.home-news__item-index {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(0, 0, 0, 0.25);
}

.home-news__item-title {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 500;
}

.home-news__item i {
    font-size: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
    color: rgba(0, 0, 0, 0.4);
}

.home-news__item:hover,
.home-news__item.is-active {
    color: var(--color-accent);
}

.home-news__item:hover i,
.home-news__item.is-active i {
    color: var(--color-accent);
    transform: translateX(6px);
}

.home-news__preview {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

.home-news__preview-link,
.home-news__preview-link img {
    display: block;
    width: 100%;
    height: 100%;
}

.home-news__preview-link img {
    object-fit: cover;
    transition: transform 0.5s ease;
    min-height: 320px;
}

.home-news__preview-link:hover img {
    transform: scale(1.05);
}

.home-news__preview-cta {
    position: absolute;
    bottom: 28px;
    left: 28px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    border-radius: 999px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

@media (max-width: 992px) {
    .home-news__body {
        grid-template-columns: 1fr;
    }

    .home-news__preview {
        order: -1;
        min-height: 320px;
    }

    .home-news__list {
        border-top: none;
    }
}

@media (max-width: 576px) {
    .home-news__item {
        grid-template-columns: 50px 1fr 24px;
        padding: 18px 0;
    }

    .home-news__item-title {
        font-size: 18px;
    }

    .home-news__preview-cta {
        bottom: 16px;
        left: 16px;
    }
}

/* ============================================================
   Home Featured Projects (Premium Cards)
   ============================================================ */
.home-featured-projects {
    padding: 120px 0 100px;
    background: linear-gradient(135deg, #ffffff 0%, #f7f4ed 100%);
}

.home-featured {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.home-featured__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 56px;
}

.home-featured__header h2 {
    font-size: clamp(40px, 5vw, 64px);
    margin-top: 12px;
    color: var(--color-primary);
}

.home-featured__view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 30px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 16px;
    font-weight: 600;
    color: var(--color-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-featured__view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

.home-featured__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.home-featured__card {
    position: relative;
    display: block;
    border-radius: 32px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-decoration: none;
    color: inherit;
}

.home-featured__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 70px rgba(0, 0, 0, 0.16);
}

.home-featured__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.home-featured__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.home-featured__card:hover .home-featured__media img {
    transform: scale(1.08);
}

.home-featured__badge {
    position: absolute;
    top: 24px;
    left: 24px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
}

.home-featured__badge.status-ongoing {
    background: rgba(212, 175, 55, 0.92);
    color: #1a1a1a;
}

.home-featured__badge.status-planning {
    background: rgba(52, 152, 219, 0.92);
    color: #ffffff;
}

.home-featured__badge.status-completed {
    background: rgba(39, 174, 96, 0.92);
    color: #ffffff;
}

.home-featured__content {
    padding: 28px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-featured__location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(0,0,0,0.55);
}

.home-featured__content h3 {
    font-size: clamp(26px, 3vw, 34px);
    color: var(--color-primary);
    margin: 0;
}

.home-featured__content p {
    margin: 0;
    color: rgba(0,0,0,0.6);
    line-height: 1.6;
}

.home-featured__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-primary);
}

.home-featured__card:hover .home-featured__cta {
    color: var(--color-accent);
}

.home-featured__card:hover .home-featured__cta i {
    transform: translateX(6px);
}

@media (max-width: 768px) {
    .home-featured__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-featured__view-all {
        align-self: flex-end;
    }
}