/* --- PREMIUM COLOR PALETTE (GREEN EDITION) --- */
:root {
    --primary-green: #1B4D3E;   /* Derin Zümrüt / Baklava Yeşili */
    --secondary-green: #3A6B52; /* Doğal Yaprak Yeşili */
    --antique-gold: #C5A059;    /* Antik Altın / Varak */
    --gold-light: #F0E6D2;      /* Çok Açık Krem/Altın */
    --pistachio-bright: #8EB544;/* Canlı Fıstık İçi */
    --cream-bg: #F9FAF6;        /* Yeşil Alt tonlu Beyaz */
    --text-color: #2C3330;      /* Koyu Gri/Yeşil */
    --white: #FFFFFF;
}

/* --- GLOBAL SMOOTH SCROLL --- */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--cream-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-green);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* --- ANIMATION CLASSES (Reveal on Scroll) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth easing */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for grid items */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- HEADER & NAV --- */
header {
    background-color: rgba(249, 250, 246, 0.98);
    padding: 0 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(27, 77, 62, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--antique-gold);
    height: 90px;
    transition: padding 0.3s ease, height 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 65px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: height 0.3s ease;
}

.logo div {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1.2;
}

.logo span {
    font-size: 13px;
    display: block;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--antique-gold);
    text-transform: uppercase;
}

nav ul {
    display: flex;
    gap: 40px;
}

nav a {
    color: var(--secondary-green);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--antique-gold);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary-green);
}

nav a:hover::after {
    width: 100%;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid var(--primary-green);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(27, 77, 62, 0.3);
}

.cta-button:hover {
    background: var(--white);
    color: var(--primary-green);
    border-color: var(--antique-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 77, 62, 0.2);
}

/* --- HERO SECTION --- */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(27, 77, 62, 0.4), rgba(11, 31, 25, 0.5)), url('/slider.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax Effect (Masaüstü) */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 90px;
}

.hero-content {
    max-width: 900px;
    padding: 40px;
    border: 1px solid rgba(197, 160, 89, 0.6);
    background: rgba(27, 77, 62, 0.5);
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fadeInUp 1.2s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--gold-light);
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 35px;
    font-weight: 300;
    color: #F0F0F0;
    letter-spacing: 0.5px;
}

.btn-hero {
    background-color: var(--antique-gold);
    color: var(--white);
    padding: 15px 45px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}

.btn-hero:hover {
    background-color: var(--white);
    color: var(--primary-green);
    transform: translateY(-3px);
}

/* --- FEATURES STRIP (PREMIUM BANNER) --- */
.features-strip {
    background-color: var(--primary-green);
    color: var(--gold-light);
    padding: 40px 5%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    border-bottom: 4px solid var(--antique-gold);
}

.strip-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 220px;
    justify-content: center;
}

.strip-item i {
    font-size: 32px;
    color: var(--antique-gold);
    transition: transform 0.3s ease;
}

.strip-item:hover i {
    transform: scale(1.2);
}

.strip-text h3 {
    font-size: 1rem;
    color: var(--gold-light);
    margin-bottom: 2px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.strip-text p {
    font-size: 0.85rem;
    color: #d1dcd7;
    margin: 0;
    line-height: 1.2;
}

/* --- PRODUCTS SHOWCASE --- */
.products {
    padding: 100px 10%;
    background: linear-gradient(to bottom, var(--cream-bg), #fff);
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title span {
    color: var(--antique-gold);
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 3.5rem;
    color: var(--primary-green);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
}

.product-card {
    background: var(--white);
    box-shadow: 0 15px 35px rgba(27, 77, 62, 0.08);
    transition: all 0.5s ease;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #eee;
    position: relative;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(27, 77, 62, 0.15);
    border-color: var(--antique-gold);
}

.product-img {
    height: 300px;
    overflow: hidden;
    position: relative;
}

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

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

.product-info {
    padding: 30px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--primary-green);
}

.product-info p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.price {
    display: block;
    color: var(--antique-gold);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.btn-add {
    border: 1px solid var(--primary-green);
    background: transparent;
    color: var(--primary-green);
    padding: 10px 25px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.btn-add:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* --- HISTORY / ABOUT --- */
.history-section {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--cream-bg);
    border-top: 1px solid #eee;
}

.history-img {
    flex: 1;
    min-width: 400px;
    background-image: url('/about.webp');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    position: relative;
}

.history-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(27, 77, 62, 0.25);
}

.history-text {
    flex: 1;
    min-width: 400px;
    padding: 100px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--cream-bg);
}

.history-text h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--primary-green);
    position: relative;
    padding-bottom: 20px;
}

.history-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--antique-gold);
}

/* --- CONTACT & MAP SECTION --- */
.contact-map-section {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--white);
    padding: 100px 10%;
    align-items: flex-start;
    gap: 60px;
}

.contact-details {
    flex: 1;
    min-width: 300px;
    padding-top: 20px;
}

.contact-details h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: var(--primary-green);
}

.contact-details p {
    margin-bottom: 25px;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #555;
}

.contact-details i {
    color: var(--antique-gold);
    font-size: 1.4rem;
    width: 30px;
    text-align: center;
}

.map-container {
    flex: 1.5;
    min-width: 300px;
    height: 450px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--antique-gold);
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(20%);
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-green);
    color: var(--cream-bg);
    padding: 60px 10% 20px;
    border-top: 5px solid var(--antique-gold);
    text-align: center;
}

.footer-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.footer-desc {
    max-width: 600px;
    font-size: 1.1rem;
    color: #d1dcd7;
    line-height: 1.6;
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    color: var(--primary-green);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.instagram-btn:hover {
    background-color: var(--antique-gold);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.instagram-btn i {
    font-size: 1.3rem;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding-top: 30px;
    font-size: 0.85rem;
    color: #8daaa0;
}

/* --- MODAL (ORDER FORM) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(27, 77, 62, 0.9);
    backdrop-filter: blur(6px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 50px;
    border: 1px solid var(--antique-gold);
    width: 90%;
    max-width: 700px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

.close {
    color: var(--primary-green);
    float: right;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    position: absolute;
    right: 25px;
    top: 20px;
    transition: color 0.3s;
}

.close:hover {
    color: var(--antique-gold);
}

.modal h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    color: var(--primary-green);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--secondary-green);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    background-color: #fafafa;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--antique-gold);
    background-color: #fff;
    box-shadow: 0 0 8px rgba(197, 160, 89, 0.2);
}

/* --- ORDER LIST ITEMS STYLING --- */
.order-items-container {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    padding: 0;
    max-height: 350px; /* Masaüstünde max yükseklik */
    overflow-y: auto;  /* Kaydırma */
    min-height: 150px;
}

.order-item-row {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-item-row:hover {
    background-color: #fafbf9;
}

/* Sol Taraf Checkbox */
.check-container {
    padding-right: 15px;
    padding-top: 2px;
}

.item-check {
    width: 22px;
    height: 22px;
    accent-color: var(--primary-green);
    cursor: pointer;
}

/* Sağ Taraf Bilgi Kolonu */
.item-details-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Ürün Adı (Üst) */
.item-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-green);
    margin-bottom: 8px;
    display: block;
    cursor: pointer;
    line-height: 1.3;
}

/* Alt Satır (Fiyat ve Adet) */
.item-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.item-price {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.item-qty {
    width: 60px;
    padding: 6px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: bold;
    color: var(--primary-green);
}

.item-qty:disabled {
    background-color: #f0f0f0;
    color: #aaa;
    border-color: #e0e0e0;
}

.total-price-area {
    text-align: right;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--primary-green);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--antique-gold);
    font-weight: bold;
}

.modal-btn {
    background-color: var(--primary-green);
    color: var(--white);
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: 20px;
    transition: background 0.3s;
}

.modal-btn:hover {
    background-color: var(--secondary-green);
}

/* --- RESPONSIVE / MOBILE OPTIMIZATIONS (Consolidated) --- */
@media (max-width: 768px) {
    
    /* 1. HERO FIX */
    .hero {
        background-attachment: scroll; /* Mobilde parallax kapalı */
        background-position: center center;
        min-height: 500px;
        height: auto;
        padding-bottom: 60px;
    }

    .hero h1 { 
        font-size: 2.5rem; 
        line-height: 1.2;
    }

    /* 2. NAVBAR & HEADER */
    nav { display: none; } 
    header { 
        padding: 0 20px; 
        height: 70px;
    }
    .logo img { height: 45px; }
    .logo div { font-size: 16px; }
    .logo span { display: none; } 
    .cta-button {
        padding: 8px 15px;
        font-size: 11px;
    }

    /* 3. LAYOUT FIXES */
    .history-section, 
    .contact-map-section,
    .features-strip { 
        flex-direction: column; 
    }
    
    .history-text, .history-img, .contact-details, .map-container { 
        min-width: 100%; 
        width: 100%;
    }

    .strip-item { 
        justify-content: flex-start; 
        border-bottom: 1px solid rgba(197, 160, 89, 0.2);
        padding-bottom: 15px;
        width: 100%;
    }
    
    .features-strip {
        align-items: flex-start;
    }

    /* 4. MODAL MOBILE DESIGN */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 20px;
        max-height: 85vh;
        overflow-y: auto;
        border-radius: 8px;
    }

    .modal h2 {
        font-size: 1.5rem;
        text-align: left;
        margin-bottom: 15px;
    }

    .close {
        top: 10px;
        right: 15px;
        font-size: 36px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group {
        margin-bottom: 15px;
    }

    /* Parmak dostu inputlar */
    .form-group input, 
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* iOS zoom engelleme */
    }

    /* Sipariş Listesi Mobil */
    .order-items-container {
        max-height: 200px; /* Mobilde daha kısa */
        min-height: auto;
    }

    .order-item-row {
        padding: 12px 0;
    }

    .item-check {
        width: 24px; 
        height: 24px;
        margin-right: 15px;
    }

    .item-name {
        font-size: 0.95rem;
    }

    .item-bottom-row {
        margin-top: 5px;
    }

    .item-qty {
        width: 50px;
        height: 40px;
        font-size: 16px;
    }

    /* Sticky Footer Toplam Tutar */
    .total-price-area {
        position: sticky;
        bottom: -1px;
        background: #fff;
        padding-top: 15px;
        padding-bottom: 5px;
        border-top: 2px solid var(--antique-gold);
        z-index: 10;
        text-align: center;
    }

    .modal-btn {
        padding: 16px;
        font-size: 1.1rem;
        margin-top: 10px;
        border-radius: 4px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
}