/*
 * Alasun Tekstil – Modern ve kurumsal tek sayfalık web sitesi stili
 *
 * Bu CSS dosyası pastel renkler, modern tipografi ve duyarlı tasarım
 * özellikleriyle özenle hazırlanmıştır. Bölümler arasında uyum sağlamak
 * için esnek kutu ve grid düzenleri kullanılmıştır. Renk değişkenleri
 * başta tanımlanmıştır, böylece temayı kolayca uyarlayabilirsiniz.
 */

/* Renk ve yazı tipi değişkenleri */
:root {
    --primary-color: #8cc6d7;      /* Pastel mavi/yeşil ton */
    --secondary-color: #f8f9fa;    /* Çok açık gri */
    --accent-color: #f1aeb5;       /* Pastel pembe */
    --dark-color: #333333;         /* Ana metin rengi */
    --light-color: #ffffff;        /* Beyaz */
}

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

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Hero bölümü */
.hero {
    position: relative;
    height: 100vh;
    background-image: url('images/hero.png');
    background-size: cover;
    /* Arka planı sağa doğru kaydırarak görsel üzerindeki metni gizle */
    /* Görselin alt kısmını kullanarak görsel üzerindeki yazıları gizle */
    background-position: center bottom;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
    overflow: hidden;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Görseldeki istenmeyen yazıları maskelemek için daha yoğun bir karartma */
    background: rgba(0, 0, 0, 0.8);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Buton stili */
.btn {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    border-radius: 30px;
    background-color: var(--primary-color);
    color: var(--light-color);
    font-weight: 600;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn:hover,
.btn:focus {
    background-color: var(--accent-color);
}

.btn.secondary {
    background-color: var(--accent-color);
    color: var(--light-color);
}

.btn.secondary:hover,
.btn.secondary:focus {
    background-color: var(--primary-color);
}

/* Genel bölüm stili */
section {
    padding: 4rem 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hakkımızda ve Sürdürülebilirlik bölümleri */
.about,
.sustainability {
    background-color: var(--secondary-color);
}

.about .container,
.sustainability .container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-image,
.sustainability-image {
    flex: 1 1 40%;
    min-width: 280px;
}

.about-image img,
.sustainability-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* About görseli */
.about-image img {
    /* Varsayılan konumda ortalanır */
    object-position: center;
}

.about-text,
.sustainability-text {
    flex: 1 1 50%;
    min-width: 280px;
}

.about-text h2,
.sustainability-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.about-text p,
.sustainability-text p {
    font-size: 1rem;
}

/* Hizmetler/Ürünler bölümü */
.services .container h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-color);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    font-size: 1.3rem;
    margin: 1rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-color);
}

.card p {
    margin: 0 1rem 1.5rem;
    font-size: 0.95rem;
}

/* İletişim bölümü */
.contact {
    /* İletişim bölümü için sade pastel arka plan */
    background-color: var(--secondary-color);
    text-align: center;
    color: var(--dark-color);
    position: relative;
    overflow: hidden;
}

.contact::before {
    /* Arka plan katmanı kaldırıldı */
    content: none;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact p {
    margin: 0 auto 2rem;
    max-width: 600px;
    font-size: 1rem;
}

.email-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

#emailAddress {
    word-break: break-all;
}

/* Footer */
.footer {
    background-color: #f2f2f2;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #777777;
}

/* Medya sorguları */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .about .container,
    .sustainability .container {
        flex-direction: column;
        text-align: center;
    }
    .about-image,
    .sustainability-image,
    .about-text,
    .sustainability-text {
        flex: 1 1 100%;
    }
    .card img {
        height: 180px;
    }
}