/* CHAIOLA v5.9 STYLESHEET
   - Footer düzeni iyileştirildi.
   - Form stilleri sol taraf ile eşitlendi.
*/

:root {
    --bg-light: #f0f4f0; 
    --bg-soft: #ffffff; 
    --text-main: #2e4d3a; 
    --text-soft: #5a7063; 
    --brand-primary: #4a7c59; 
    --brand-primary-dark: #3a6347; 
    --accent-secondary: #a3b8a1; 
    --border-color: #d8e0d9; 
    --hero-bg-light: #E5F7F8; 
    --color-success-bg: #d4edda;
    --color-success-text: #155724;
    --color-error-bg: #f8d7da;
    --color-error-text: #721c24;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(216, 224, 217, 0.8);
    --input-bg: rgba(255, 255, 255, 0.9);
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 8px 25px rgba(74, 124, 89, 0.12); 
    --radius-md: 8px;
    --radius-lg: 12px;
    --max-width: 1200px;
    --transition-fast: 0.3s ease;
    --bg-footer: #2e4d3a; 
    --text-footer: #f0f4f0; 
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.center { text-align: center; }
.max800 { max-width: 800px; margin-left: auto; margin-right: auto; }

/* Butonlar */
.btn-primary {
    text-decoration: none;
    padding: 12px 25px;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: all var(--transition-fast);
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 16px;
    background-color: var(--brand-primary);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background-color: var(--brand-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.btn-secondary {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
    display: inline-block;
    cursor: pointer;
    border: 1px solid var(--brand-primary); 
    font-size: 15px;
    background-color: #ffffff;
    color: var(--brand-primary); 
}

.btn-secondary:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff; 
}

.inline-link {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--brand-primary);
}
.inline-link:hover {
    color: var(--brand-primary-dark);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .8rem;
    font-weight: 700;
    color: var(--brand-primary); 
    margin-bottom: 0.75rem;
    display: inline-block;
}

/* Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.85); 
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo { height: 45px; }
.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-nav li { margin-left: 15px; }

.main-nav a {
    text-decoration: none;
    color: var(--text-soft);
    font-weight: 500;
    font-size: 15px;
    transition: color var(--transition-fast);
    padding: 8px 10px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
}

.main-nav a:hover, .main-nav a:focus {
    color: var(--brand-primary);
    background-color: var(--bg-light);
}

.main-nav a.btn-outline {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}
.main-nav a.btn-outline:hover {
    background-color: var(--brand-primary);
    color: #fff;
}

/* Hero Section */
.hero-section {
    height: 85vh;
    min-height: 500px;
    background-color: var(--hero-bg-light); 
    background-size: cover;
    background-position: center 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    padding: 40px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin: 0 0 20px 0;
    color: var(--text-main); 
    text-shadow: none; 
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-soft); 
    text-shadow: none; 
}

/* Sections */
.section {
    padding-top: 80px;
    padding-bottom: 80px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}
.section-title.center {
    text-align: center;
    margin-bottom: 30px;
}
.section-body {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-soft);
}
.section-body.center {
    text-align: center;
    margin-bottom: 40px;
}

/* About */
#about { background-color: var(--bg-soft); }
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.about-image-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}
.about-image-card img {
    width: 100%;
    display: block;
    object-fit: cover;
}
.about-image-caption {
    background: var(--bg-light); 
    padding: 25px;
    border-top: 1px solid var(--border-color);
}
.about-image-caption h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: var(--text-main);
}
.about-image-caption p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
}

/* Products */
.product-grid-section {
    padding: 80px 0;
    background-color: var(--bg-light); 
}
.all-products-section {
    background-color: var(--hero-bg-light); 
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.featured-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Product Card */
.product-card {
    background-color: #ffffff; 
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
}
.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}
.product-card h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin: 20px 20px 10px 20px;
}
.product-card p {
    font-size: 0.95rem;
    padding: 0 20px;
    color: var(--text-soft);
    flex-grow: 1;
    margin-bottom: 20px;
}
.product-card .btn-secondary {
    margin: 0 20px 20px 20px;
    text-align: center;
}

.all-products-section .section-title,
.all-products-section .section-body {
    color: var(--text-main); 
}

/* Filter Buttons */
.filter-controls {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.filter-btn {
    background-color: #fff;
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: all var(--transition-fast);
}
.filter-btn:hover {
    background-color: var(--bg-light);
    border-color: var(--brand-primary);
}
.filter-btn.active {
    background-color: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}
.all-products-section .filter-btn {
    background-color: #ffffff;
    color: var(--text-main); 
    border-color: var(--border-color);
}
.all-products-section .filter-btn:hover {
    background-color: var(--bg-light); 
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}
.all-products-section .filter-btn.active {
    background-color: var(--brand-primary); 
    color: #ffffff; 
    border-color: var(--brand-primary);
}

/* Sustainability */
.sustain-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: #fff;
    text-align: left;
}
.sustain-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(46, 77, 58, 0.75); 
}
.sustain-section .split {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.sustain-section .text-col { max-width: 600px; }
.sustain-section .section-title { color: #fff; }
.sustain-section .eyebrow { color: var(--accent-secondary); }
.sustain-section .section-body { color: rgba(255, 255, 255, 0.9); }
.sustain-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}
.sustain-list li {
    padding-left: 1.5rem;
    position: relative;
}
.sustain-list li::before {
    content: "✓"; 
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-secondary); 
    font-weight: 700;
}
.sustain-card.glass {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.sustain-card-title {
    margin: 0 0 .5rem;
    font-size: 1.2rem;
    color: var(--text-main);
}
.sustain-card-desc {
    color: var(--text-soft);
    margin: 0 0 .75rem;
    line-height: 1.5;
    font-size: .95rem;
}
.sustain-card-foot {
    margin: 0;
    font-size: .9rem;
    font-weight: 600;
    color: var(--brand-primary);
}

/* Contact */
.contact-section { background-color: var(--bg-light); }
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
    background: var(--bg-soft); 
    box-shadow: var(--shadow-card);
    align-items: stretch; 
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem; 
    margin-top: 1rem;
}
.info-block {
    background: var(--bg-light); 
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    flex-grow: 1; 
}
.info-label {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand-primary); 
    margin: 0 0 .25rem;
}
.info-value {
    margin: 0;
    color: var(--text-soft);
    font-size: .95rem;
    line-height: 1.5;
}
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem; 
    height: 100%;
    justify-content: space-between; 
}
.form-field {
    display: grid;
    gap: .4rem;
}
.form-field label {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-main);
}
.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 15px; 
    font-family: 'Montserrat', sans-serif;
    font-size: .95rem;
    background: var(--input-bg); 
    color: var(--text-main);
    transition: all var(--transition-fast);
}
.contact-form-card input:focus,
.contact-form-card textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.2); 
}
.contact-form-card textarea {
    resize: vertical;
    min-height: 120px;
}
.btn-primary.full-btn {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    margin-top: auto; 
}
.form-status-message {
    font-size: 0.9rem;
    padding: 12px;
    border-radius: var(--radius-md);
    margin-top: 10px;
    text-align: center;
    display: none; 
}
.form-status-message.success {
    display: block;
    background-color: var(--color-success-bg);
    color: var(--color-success-text);
    border: 1px solid var(--color-success-text);
}
.form-status-message.error {
    display: block;
    background-color: var(--color-error-bg);
    color: var(--color-error-text);
    border: 1px solid var(--color-error-text);
}

/* Footer Section (GÜNCELLENDİ) */
.footer {
    background-color: var(--bg-footer);
    color: var(--text-footer);
    padding: 60px 0 40px;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start; /* İçerikleri üstten hizala */
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
}

.footer-logo {
    height: 45px;
    width: auto;
    align-self: flex-start; /* Logoyu sola yasla */
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
}

.footer-brand {
    margin: 0;
    line-height: 1.6;
    opacity: 0.8;
    font-size: 0.85rem;
}

.footer-brand .inline-link {
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    text-decoration: none;
}

.footer-brand .inline-link:hover {
    border-bottom-color: #fff;
}

.footer-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 eşit sütun */
    gap: 20px 40px; /* Satır ve sütun boşlukları */
}

.footer-link {
    color: var(--text-footer);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    white-space: nowrap; /* Linklerin alt satıra kaymasını engelle */
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(46, 77, 58, 0.6); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 30px;
    border-radius: var(--radius-lg);
    width: 80%;
    max-width: 900px;
    position: relative;
    animation: fadeIn 0.4s ease-out;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-body {
    display: flex;
    gap: 30px;
}
.modal-product-image {
    width: 40%;
    max-width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}
.modal-product-details {
    width: 60%;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 15px; 
}
.modal-product-details h2 {
    font-size: 2.2rem;
    color: var(--brand-primary); 
    margin-top: 0;
    margin-bottom: 15px;
}
.modal-product-details h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    border-bottom: 2px solid var(--brand-primary); 
    padding-bottom: 5px;
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 10px;
}
.modal-product-details p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 10px;
    color: var(--text-soft);
}
.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    transition: color 0.3s ease;
}
.close-btn:hover,
.close-btn:focus {
    color: var(--text-main); 
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(0, -20px); }
    to { opacity: 1; transform: translate(0, 0); }
}

/* Responsive */
@media (max-width: 900px) {
    .about-container, .sustain-section .split, .contact-card { grid-template-columns: 1fr; }
    .card-col { margin-top: 30px; }
    .footer-inner { flex-direction: column; gap: 40px; }
    .footer-right { grid-template-columns: auto auto; }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-header .container { flex-direction: column; gap: 15px; padding-bottom: 15px; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 5px; margin-left: 0; }
    .main-nav li { margin-left: 0; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    .hero-section { height: auto; min-height: 70vh; padding: 60px 20px; }
    .product-grid, .featured-grid { grid-template-columns: 1fr; }
    .modal-body { flex-direction: column; align-items: center; }
    .modal-product-image { width: 100%; max-width: 300px; height: 300px; }
    .modal-product-details { width: 100%; max-height: 50vh; }
    .modal-content { width: 90%; margin: 10% auto; padding: 20px; }

    /* Footer Mobile */
    .footer-inner {
        align-items: center;
        text-align: center;
    }
    .footer-left {
        align-items: center;
    }
    .footer-logo {
        align-self: center;
    }
    .footer-right {
        grid-template-columns: repeat(2, 1fr); /* Mobilde 2 sütun */
        gap: 15px;
        width: 100%;
    }
}