/* style.css */

/* ─── Değişkenler & Reset ─── */
:root {
    --font-primary: 'Segoe UI', 'Roboto', Arial, sans-serif;
    --color-bg: #f9fbf8;
    --color-text: #204021;
    --color-primary: #23be75;
    --color-primary-dark: #188750;
    --color-secondary: #198754;
    --color-secondary-dark: #134c2c;
    --color-accent: #1bbf62;
    --color-light: #ecf7f1;
    --color-white: #fff;
    --container-max: 1240px;
    --transition-speed: 0.2s ease;
}
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}
a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-speed);
}
a:hover {
    color: var(--color-secondary-dark);
}

/* ─── Container ─── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ─── Header & Navbar ─── */
header {
    background: var(--color-white);
    box-shadow: 0 2px 16px rgba(32,60,30,0.09);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 130px;
}

/* Logo’yu tam ortala */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* gerekirse top veya padding-top ekleyin */
}

/* Logo imajı — responsive boyutlar */
header .navbar-brand img,
.logo img {
    display: block;
    width: auto;
    max-height: 100px; /* Masaüstü */
    transition: max-height var(--transition-speed);
}
@media (max-width: 768px) {
    header .navbar-brand img,
    .logo img {
        max-height: 45px; /* Tablet ve altı */
    }
}
@media (max-width: 480px) {
    header .navbar-brand img,
    .logo img {
        max-height: 35px; /* Çok küçük ekranlar */
    }
}

/* ─── Slider/Banner ─── */
.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 500px;
    background: #e8f6ec;
}
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}
.slide.active {
    opacity: 1;
    z-index: 1;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--color-primary) 70%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    width: 54px; height: 54px;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 18px rgba(60,110,70,0.17);
    transition: background var(--transition-speed), transform var(--transition-speed);
    z-index: 2;
}
.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }
.slider-btn:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 70%, var(--color-primary) 100%);
    transform: translateY(-50%) scale(1.1);
}

/* ─── Hero ─── */
.hero {
    background: linear-gradient(95deg, #e9f6eb 50%, var(--color-white) 100%);
    text-align: center;
    padding: 4rem 0 2rem;
}
.hero h2 {
    font-size: clamp(2rem, 5vw, 2.7rem);
    color: var(--color-secondary);
    margin-bottom: 1rem;
}
.hero p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #1c3e24;
}

/* ─── Ürünler ─── */
.products {
    padding: 2rem 0;
}
.products h2 {
    text-align: center;
    font-size: 2rem;
    color: #186434;
    letter-spacing: 0.01em;
    margin-bottom: 2rem;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 2rem;
}
.product-card {
    background: var(--color-white);
    border-radius: 20px;
    border: 1.5px solid #f1f7f3;
    box-shadow: 0 6px 22px rgba(60,110,60,0.13);
    padding: 1.5rem;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
}
.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 14px 36px rgba(30,80,40,0.18);
    border-color: #cffbe2;
}
.product-card img {
    width: 100%;
    max-width: 210px;
    height: 160px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--color-light);
    margin-bottom: 0.5rem;
}
.product-card h3 {
    font-size: 1.2rem;
    color: #155f33;
    margin: 0.5rem 0;
}
.product-card p {
    font-size: 1rem;
    color: #3a523c;
    min-height: 3rem;
    margin: 0.5rem 0;
}
.price {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.12rem;
    box-shadow: 0 2px 8px rgba(30,80,40,0.13);
    margin-top: 0.5rem;
}

/* ─── Hakkımızda & İletişim ─── */
.about,
.contact {
    background: var(--color-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(30,60,30,0.08);
    margin: 3rem auto;
    color: #194e2f;
}
.about h2,
.contact h2 {
    font-size: 1.4rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

/* ─── Contact Grid ─── */
.contact .contact-grid {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}
.contact .contact-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact .contact-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(30,60,30,0.08);
}
.contact .contact-card h3 {
    margin-bottom: 0.75rem;
    color: var(--color-secondary-dark);
}
.contact .contact-card p {
    line-height: 1.5;
    color: var(--color-text);
}
.contact .map-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 oran */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.contact .map-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ─── Footer ─── */
footer {
    background: #18452e;
    color: var(--color-white);
    text-align: center;
    padding: 1rem 0;
    font-size: 1rem;
    letter-spacing: 0.02em;
    border-radius: 0 0 20px 20px;
}

/* ─── Hamburger ikon & Responsive Menü ─── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px; height: 21px;
    background: none; border: none;
    cursor: pointer; padding: 0;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 100%; height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform var(--transition-speed), opacity var(--transition-speed);
}
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }
    nav {
        position: absolute;
        top: 80px;
        right: 1rem;
        background: var(--color-white);
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        border-radius: 8px;
        overflow: hidden;
        display: none;
    }
    nav.open {
        display: block;
    }
    nav ul {
        flex-direction: column;
        gap: 0;
        list-style: none;
    }
    nav ul li + li {
        border-top: 1px solid #eee;
    }
    nav ul li a {
        display: block;
        padding: 0.75rem 1.5rem;
    }
    nav ul li a:hover {
        background: var(--color-light);
    }
}

/* ─── Back To Top Butonu ─── */
#backToTop {
    display: none;
    position: fixed;
    bottom: 20px; right: 20px;
    z-index: 9999;
    width: 48px; height: 48px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 24px;
    line-height: 48px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
}
#backToTop.show {
    display: block;
}
@media (max-width: 768px) {
    #backToTop {
        bottom: 16px; right: 16px;
        width: 40px; height: 40px;
        font-size: 20px;
        line-height: 40px;
        border-radius: 20px;
    }
}

/* ─── Mobil için 768px altı ─── */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 10px 0;
        height: auto;
    }
    nav {
        display: none;
    }
    .menu-toggle {
        position: absolute;
        top: 50%;
        left: 1rem;
        transform: translateY(-50%);
    }
    .logo {
        top: 15px;
    }
    /* Ürün/galeri yatay scroll */
    #gursu .product-grid,
    #orhangazi .product-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
    }
    #gursu .product-card,
    #orhangazi .product-card {
        flex: 0 0 auto;
        width: 90%;
        margin-right: 1rem;
        scroll-snap-align: start;
        box-sizing: border-box;
    }
    #gursu .product-card:last-child,
    #orhangazi .product-card:last-child {
        margin-right: 0;
    }
}

/* ─── Diğer responsive ayarlar ─── */
@media (max-width: 850px) {
    .hero {
        padding: 2rem 0 1rem;
    }
    .slider-btn.prev,
    .slider-btn.next {
        left: 0.5rem;
        right: 0.5rem;
    }
}
@media (max-width: 600px) {
    nav ul {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .product-card img {
        height: 76px;
        max-width: 100px;
    }
}
