/*
Theme Name:   Agro Fresh Child
Template:     astra
Version:      1.0.0
Description:  Agro Fresh - Sera & Meyve Üretimi | Berry Farm Greenhouse
Author:       Agro Fresh
Text Domain:  agro-fresh-child
*/

/* ===== AGRO FRESH - CSS VARIABLES ===== */
:root {
    --af-green-dark:   #1B5E20;
    --af-green:        #2E7D32;
    --af-green-light:  #43A047;
    --af-green-pale:   #E8F5E9;
    --af-red:          #C62828;
    --af-red-light:    #EF5350;
    --af-berry:        #6A1B9A;
    --af-berry-light:  #9C27B0;
    --af-cream:        #F9F6F0;
    --af-white:        #FFFFFF;
    --af-dark:         #1A1A1A;
    --af-gray:         #757575;
    --af-shadow:       0 4px 24px rgba(0,0,0,0.12);
    --af-radius:       12px;
    --af-transition:   all 0.35s ease;
}

/* ===== ASTRA OVERRIDE — Flex/Grid sıfırlama ===== */
/* Astra'nın içerik alanı flex yatay layout yapmasını engelle */
.af-primary-override {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    float: none !important;
}
.af-primary-override #main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}
/* Astra'nın sidebar'ı tamamen gizle bu sayfada */
.af-primary-override ~ #secondary,
.af-primary-override ~ .widget-area {
    display: none !important;
}
/* Site-content flex row'u sütun yap */
.site-content {
    display: block !important;
}

/* ===== GLOBAL RESET & BASE ===== */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--af-dark);
    background: var(--af-white);
    overflow-x: hidden;
}

/* ===== HERO SLIDER ===== */
.af-hero {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 90vh !important;
    min-height: 550px !important;
    max-height: 800px !important;
    overflow: hidden !important;
    clear: both;
}

.af-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.8s ease, transform 0.8s ease;
    background-size: cover;
    background-position: center;
}

.af-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27,94,32,0.72) 0%, rgba(0,0,0,0.45) 60%, transparent 100%);
}

.af-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* Gradient fallback slides when no image is set */
.af-slide-1 { background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 40%, #388E3C 100%); }
.af-slide-2 { background: linear-gradient(135deg, #B71C1C 0%, #C62828 40%, #E53935 100%); }
.af-slide-3 { background: linear-gradient(135deg, #4A148C 0%, #6A1B9A 40%, #8E24AA 100%); }

.af-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    max-width: 800px;
}

.af-slide-badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.af-slide-title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 18px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.af-slide-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    opacity: 0.92;
    margin: 0 0 32px;
    line-height: 1.6;
}

.af-slide-btn {
    display: inline-block;
    background: var(--af-white);
    color: var(--af-green-dark);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--af-transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.af-slide-btn:hover {
    background: var(--af-green-pale);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

/* Slider navigation dots */
.af-slider-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.af-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: var(--af-transition);
    padding: 0;
}

.af-dot.active,
.af-dot:hover {
    background: #fff;
    transform: scale(1.3);
}

/* Slider arrows */
.af-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--af-transition);
    backdrop-filter: blur(4px);
}

.af-slider-arrow:hover {
    background: rgba(255,255,255,0.35);
}

.af-arrow-prev { left: 24px; }
.af-arrow-next { right: 24px; }

/* ===== SECTION BASE ===== */
.af-section {
    padding: 80px 20px;
}

.af-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.af-section-label {
    display: inline-block;
    color: var(--af-green);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.af-section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--af-dark);
    margin: 0 0 16px;
    line-height: 1.2;
}

.af-section-desc {
    font-size: 1.05rem;
    color: var(--af-gray);
    max-width: 580px;
    line-height: 1.7;
    margin: 0 0 48px;
}

/* ===== STATS BAR ===== */
.af-stats {
    background: var(--af-green);
    padding: 36px 20px;
}

.af-stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    text-align: center;
}

.af-stat-item {
    color: #fff;
}

.af-stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.af-stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.4;
}

/* ===== PRODUCTS GRID ===== */
.af-products {
    background: var(--af-cream);
}

.af-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.af-product-card {
    background: #fff;
    border-radius: var(--af-radius);
    overflow: hidden;
    box-shadow: var(--af-shadow);
    transition: var(--af-transition);
}

.af-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

.af-product-img {
    height: 220px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.af-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.af-product-card:hover .af-product-img img {
    transform: scale(1.08);
}

.af-product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
}

.af-product-body {
    padding: 24px;
}

.af-product-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.af-product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--af-dark);
    margin: 0 0 10px;
}

.af-product-desc {
    font-size: 0.9rem;
    color: var(--af-gray);
    line-height: 1.6;
    margin: 0 0 18px;
}

.af-product-info {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--af-gray);
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
    flex-wrap: wrap;
}

.af-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== ABOUT STRIP ===== */
.af-about {
    background: var(--af-white);
}

.af-about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.af-about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--af-shadow);
    aspect-ratio: 4/3;
    background: var(--af-green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}

.af-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.af-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.af-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--af-dark);
    line-height: 1.5;
}

.af-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--af-green-pale);
    color: var(--af-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.af-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--af-transition);
}

.af-btn-primary {
    background: var(--af-green);
    color: #fff;
    box-shadow: 0 4px 16px rgba(46,125,50,0.35);
}

.af-btn-primary:hover {
    background: var(--af-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46,125,50,0.45);
}

.af-btn-outline {
    border: 2px solid var(--af-green);
    color: var(--af-green);
}

.af-btn-outline:hover {
    background: var(--af-green);
    color: #fff;
}

/* ===== WHY US ===== */
.af-why {
    background: var(--af-green-dark);
    color: #fff;
}

.af-why .af-section-title { color: #fff; }
.af-why .af-section-label { color: rgba(255,255,255,0.7); }

.af-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.af-why-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--af-radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--af-transition);
}

.af-why-card:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-4px);
}

.af-why-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.af-why-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.af-why-text {
    font-size: 0.88rem;
    opacity: 0.78;
    line-height: 1.6;
    margin: 0;
}

/* ===== CTA BANNER ===== */
.af-cta {
    background: linear-gradient(135deg, var(--af-red) 0%, #B71C1C 100%);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.af-cta-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800;
    margin: 0 0 16px;
}

.af-cta-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.af-btn-white {
    background: #fff;
    color: var(--af-red);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.af-btn-white:hover {
    background: var(--af-cream);
    transform: translateY(-2px);
}

/* ===== LANGUAGE SWITCHER ===== */
.polylang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.polylang-switcher a {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    transition: var(--af-transition);
}

.polylang-switcher a:hover,
.polylang-switcher a.lang-active {
    background: #fff;
    color: var(--af-green-dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .af-hero {
        height: 70vh;
        min-height: 420px;
    }

    .af-about-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .af-about-image {
        font-size: 4rem;
        aspect-ratio: 16/9;
    }

    .af-slider-arrow {
        display: none;
    }

    .af-section {
        padding: 56px 16px;
    }

    .af-stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .af-products-grid {
        grid-template-columns: 1fr;
    }

    .af-stats-inner {
        grid-template-columns: 1fr 1fr;
    }
}
