/* =========================================================
   Karalar Güney Tarımsal Kalkınma Kooperatifi
   Site Stil Dosyası
   ========================================================= */

/* -------- 1. Değişkenler / Renk Paleti -------- */
:root {
    --brand-dark:      #1f4d2b;   /* Koyu yeşil - ana marka */
    --brand-primary:   #2c6b3f;   /* Yeşil - buton/başlık */
    --brand-hover:     #163820;   /* Koyu yeşil hover */
    --brand-accent:    #b08a5b;   /* Toprak tonu */
    --brand-cream:     #f6f2ea;   /* Krem arka plan */
    --brand-whatsapp:  #25d366;

    --color-text:      #1e2a24;
    --color-muted:     #566266;
    --color-border:    #e2e5e2;
    --color-bg:        #ffffff;
    --color-bg-alt:    #f5f6f4;

    --shadow-sm: 0 2px 6px rgba(30, 42, 36, 0.06);
    --shadow-md: 0 6px 20px rgba(30, 42, 36, 0.10);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    --font-body:    'Inter', 'Segoe UI', Tahoma, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;

    --transition: 0.25s ease;
}

/* -------- 2. Genel Reset ve Tipografi -------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    padding-top: 82px; /* fixed header yüksekliği */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--brand-dark);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--brand-hover);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    scroll-margin-top: 90px;
}

/* -------- 3. Butonlar -------- */
.btn-primary-brand {
    background-color: var(--brand-primary);
    color: #fff;
    border: 2px solid var(--brand-primary);
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    letter-spacing: 0.2px;
}

.btn-primary-brand:hover,
.btn-primary-brand:focus {
    background-color: var(--brand-hover);
    border-color: var(--brand-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-brand {
    background-color: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    background-color: var(--brand-primary);
    color: #fff;
}

.btn-whatsapp {
    background-color: var(--brand-whatsapp);
    color: #fff;
    border: 2px solid var(--brand-whatsapp);
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background-color: #1eb457;
    border-color: #1eb457;
    color: #fff;
}

/* -------- 4. Header / Navbar -------- */
.site-header {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(6px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition);
    z-index: 1030;
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.navbar {
    padding-top: 12px;
    padding-bottom: 12px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--brand-dark);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    border-radius: 8px;
    flex-shrink: 0;
}

.brand-logo--dark {
    background-color: #fff;
    color: var(--brand-dark);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: var(--brand-dark);
    letter-spacing: 0.3px;
}

.brand-subtitle {
    font-size: 11.5px;
    color: var(--color-muted);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-top: 2px;
}

.navbar-nav .nav-link {
    color: var(--color-text);
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-size: 15px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--brand-dark);
    background-color: var(--color-bg-alt);
}

.navbar-toggler {
    border: 1px solid var(--color-border);
    padding: 6px 10px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(44, 107, 63, 0.2);
}

/* -------- 5. Hero -------- */
.hero-section {
    position: relative;
    background:
        linear-gradient(135deg, rgba(31, 77, 43, 0.85), rgba(22, 56, 32, 0.92)),
        url('../img/kooperatif-bina-1.jpg') center/cover no-repeat;
    color: #fff;
    padding: 110px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    text-transform: uppercase;
    color: #fff;
}

.hero-title {
    font-size: clamp(1.9rem, 4.2vw, 3.2rem);
    color: #fff;
    margin-bottom: 18px;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: rgba(255, 255, 255, 0.92);
    max-width: 780px;
    margin: 0 auto 34px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn-outline-brand {
    color: #fff;
    border-color: #fff;
}

.hero-actions .btn-outline-brand:hover {
    background-color: #fff;
    color: var(--brand-dark);
}

/* -------- 6. Bölüm (Section) Genel -------- */
.section {
    padding: 90px 0;
}

.section-light {
    background-color: var(--color-bg);
}

.section-muted {
    background-color: var(--color-bg-alt);
}

.section-heading {
    margin-bottom: 50px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-bottom: 18px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--brand-accent);
    margin: 0 auto 20px;
    border-radius: 3px;
}

.section-lead {
    max-width: 820px;
    margin: 0 auto;
    color: var(--color-muted);
    font-size: 1.05rem;
}

/* -------- 7. Hakkımızda -------- */
.about-image {
    width: 100%;
    object-fit: cover;
    max-height: 460px;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 16px;
}

.about-facts {
    list-style: none;
    padding: 0;
    margin-top: 26px;
}

.about-facts li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--color-border);
}

.about-facts li:last-child {
    border-bottom: 1px solid var(--color-border);
}

.about-facts i {
    font-size: 1.4rem;
    color: var(--brand-primary);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-cream);
    border-radius: 50%;
    flex-shrink: 0;
}

.fact-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-muted);
}

.fact-value {
    display: block;
    font-weight: 600;
    color: var(--brand-dark);
    font-size: 1.02rem;
}

/* -------- 8. Faaliyet Kartları -------- */
.service-card {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    height: 100%;
    text-align: center;
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: var(--brand-cream);
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.7rem;
    margin-bottom: 18px;
}

.service-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--brand-dark);
}

.service-card p {
    color: var(--color-muted);
    font-size: 0.96rem;
    margin: 0;
}

/* -------- 9. Yönetim / Denetim Kurulu -------- */
.person-card {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px 20px;
    text-align: center;
    transition: all var(--transition);
    height: 100%;
}

.person-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}

.person-card--muted {
    background-color: var(--color-bg-alt);
}

.person-avatar {
    width: 82px;
    height: 82px;
    margin: 0 auto 18px;
    background-color: var(--brand-cream);
    color: var(--brand-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}

.person-name {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--brand-dark);
}

.person-role {
    display: block;
    color: var(--color-muted);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* -------- 10. Galeri -------- */
.gallery-grid .gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 4 / 3;
    background-color: var(--color-bg-alt);
    cursor: zoom-in;
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-grid .gallery-item::after {
    content: '\F52A';
    font-family: 'bootstrap-icons';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(31, 77, 43, 0.55);
    font-size: 1.6rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-grid .gallery-item:hover::after {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 30px;
    flex-direction: column;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-image {
    max-width: 92vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #fff;
    margin-top: 14px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 26px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 4px;
    transition: background-color var(--transition);
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* -------- 11. İletişim -------- */
.contact-box {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
    height: 100%;
}

.contact-title {
    font-size: 1.35rem;
    margin-bottom: 22px;
    color: var(--brand-dark);
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.contact-item:last-of-type {
    border-bottom: none;
    margin-bottom: 10px;
}

.contact-icon {
    width: 42px;
    height: 42px;
    background-color: var(--brand-cream);
    color: var(--brand-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-muted);
    margin-bottom: 2px;
}

.contact-value {
    margin: 0;
    font-weight: 600;
    color: var(--brand-dark);
    font-size: 1.02rem;
}

.contact-value a {
    color: var(--brand-dark);
}

.contact-actions {
    margin-top: 24px;
}

.map-wrapper {
    height: 100%;
    min-height: 420px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    display: block;
}

/* -------- 12. Footer -------- */
.site-footer {
    background-color: var(--brand-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 24px;
    margin-top: 0;
}

.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4 {
    color: #fff;
}

.footer-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.footer-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    letter-spacing: 0.4px;
}

.footer-subtitle {
    display: block;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

.footer-legal {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-founded {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-heading {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
    font-size: 0.94rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact li i {
    color: var(--brand-accent);
    margin-right: 8px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact a:hover {
    color: #fff;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.12);
    margin: 40px 0 20px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-bottom p {
    margin: 0;
}

/* -------- 13. Back to Top -------- */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    background-color: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 1020;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--brand-hover);
}

/* -------- 14. Responsive -------- */
@media (max-width: 991.98px) {
    body {
        padding-top: 74px;
    }

    .navbar-collapse {
        padding-top: 16px;
        padding-bottom: 8px;
        border-top: 1px solid var(--color-border);
        margin-top: 12px;
    }

    .navbar-nav .nav-link {
        padding: 12px 8px !important;
        border-radius: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .hero-section {
        padding: 80px 0 70px;
    }

    .section {
        padding: 70px 0;
    }

    .about-image {
        margin-bottom: 24px;
    }
}

@media (max-width: 575.98px) {
    .brand-subtitle {
        display: none;
    }

    .brand-title {
        font-size: 14.5px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .hero-badge {
        font-size: 11.5px;
    }

    .section {
        padding: 56px 0;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .contact-box {
        padding: 24px 20px;
    }

    .service-card,
    .person-card {
        padding: 24px 18px;
    }

    .hero-actions .btn-primary-brand,
    .hero-actions .btn-outline-brand {
        width: 100%;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 40px;
        height: 40px;
    }
}
