/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --color-primary: #004806;
  /* Derin Orman Yeşili */
  --color-secondary: #8c9e5e;
  /* Adaçayı Yeşili */
  --color-accent: #d4a373;
  /* Toprak/Ahşap */
  --color-bg: #fdfcf7;
  /* Kırık Beyaz / Kağıt */
  --color-text: #333333;
  /* Yumuşak Siyah */
  --color-white: #ffffff;
}

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

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Genel Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
header {
  background-color: var(--color-primary);
  padding: 1rem 0;
  color: var(--color-white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  /* İsim solda, menü sağda veya yanında */
  align-items: center;
}

.brand-name {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--color-white);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  color: var(--color-white);
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--color-secondary);
}

/* HERO SECTION (Index) */
.hero {
  position: relative;
  height: 400px;
  background-image: url('https://images.unsplash.com/photo-1466692476868-aef1dfb1e735?q=80&w=2070&auto=format&fit=crop');
  /* Placeholder Doğa Resmi */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  background-color: rgba(45, 74, 34, 0.6);
  /* Primary color with opacity */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  max-width: 700px;
  padding: 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
}

/* SECTION GENEL */
.section {
  padding: 4rem 0;
}

h2.page-title {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 2rem;
  font-size: 2.5rem;
  border-bottom: 2px solid var(--color-secondary);
  display: inline-block;
  padding-bottom: 10px;
}

/* FEATURES GRID */
.features-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
}

.feature-card {
  flex: 1 1 300px;
  max-width: 400px;
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #eee;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-secondary);
}

.feature-card h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* ÜRÜNLER FLEXBOX */
.product-flex-container {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: flex-start;
}

.product-card {
  /* 3 Sütun Mantığı: (100% / 3) - boşluk payı */
  flex: 0 1 calc(33.333% - 20px);
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}


.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #eee;
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.product-price {
  color: var(--color-accent);
  font-weight: bold;
  font-size: 1.1rem;
}

/* FOOTER */
.site-footer {
  margin-top: auto;
  /* Footer'ı sayfa az içerikli olsa bile alta iter */
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 3rem 0 1rem 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-column h3 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li a {
  color: var(--color-white);
  text-decoration: none;
  opacity: 0.8;
}

.footer-column ul li a:hover {
  opacity: 1;
  text-decoration: underline;
}

.copyright {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ANİMASYONLAR */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
    /* 30px aşağıdan başla */
  }

  to {
    opacity: 1;
    transform: translateY(0);
    /* Yerine otur */
  }
}

.product-card {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* MOBİL İÇİN DÜZELTME */
@media (max-width: 768px) {
  .product-card {
    flex: 0 1 100%;
    /* Mobilde tek sütun */
  }

  .header-inner {
    flex-direction: column;
    gap: 15px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}

/* --- HAKKIMIZDA SAYFASI STİLLERİ --- */
.about-container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- İLETİŞİM SAYFASI STİLLERİ --- */
.contact-wrapper {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

/* Sol Taraf: Bilgiler */
.contact-info-box {
  flex: 1;
  min-width: 300px;
  background-color: var(--color-bg);
  /* Kırık beyaz */
  padding: 20px;
  border-left: 4px solid var(--color-secondary);
}

.info-item {
  margin-bottom: 25px;
}

.info-item h4 {
  color: var(--color-primary);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Sağ Taraf: Form */
.contact-form-box {
  flex: 2;
  min-width: 300px;
  background-color: var(--color-white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(140, 158, 94, 0.2);
}

.btn-submit {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

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

/* --- HİZMETLERİMİZ SAYFASI STİLLERİ --- */

/* Hizmet Kartları Grid Yapısı */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 4rem;
}

.service-card {
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  /* Resim taşmasın diye */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 4px solid transparent;
  /* Hover'da renk gelecek */
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  border-bottom-color: var(--color-primary);
}

.service-img-wrapper {
  height: 220px;
  overflow: hidden;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrapper img {
  transform: scale(1.05);
  /* Resim hafifçe yakınlaşır */
}

.service-content {
  padding: 25px;
}

.service-content h3 {
  color: var(--color-primary);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.service-content p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CTA (Call to Action - Teklif Al) Bölümü */
.cta-section {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 60px 20px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-button {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-bg);
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: background 0.3s;
}

.cta-button:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

/* --- LOGO VE İSİM YAN YANA DÜZENİ --- */

.brand-container {
  display: flex;
  /* Yan yana diz */
  align-items: center;
  /* Dikey olarak ortala */
  text-decoration: none;
  /* Alt çizgiyi kaldır */
  gap: 15px;
  /* Resim ile yazı arasındaki boşluk */
}

.logo-img {
  height: 60px;
  /* Logo yüksekliği */
  width: 60px;
  /* Logo genişliği (kare olsun) */
  object-fit: cover;
  /* Resim sıkışmasın */
  border-radius: 50%;
  /* Resmi yuvarlak yapar (daire şeklinde keser) */
  border: 2px solid var(--color-secondary);
  /* Etrafına ince bir çerçeve (isteğe bağlı) */
  background-color: var(--color-white);
  /* Resim yüklenmezse arkası beyaz olsun */
}

.brand-text {
  font-size: 1.5rem;
  /* Yazı boyutu */
  font-weight: bold;
  letter-spacing: 1px;
  color: var(--color-white);
  line-height: 1.2;
}

/* Mobil cihazlarda logo ve yazı çok sıkışırsa düzenleme */
@media (max-width: 480px) {
  .logo-img {
    height: 40px;
    width: 40px;
  }

  .brand-text {
    font-size: 1.2rem;
  }
}

/* --- ÜRÜN DETAY SAYFASI STİLLERİ --- */

/* Ekmek Kırıntısı (Breadcrumb) */
.breadcrumb {
  padding: 20px 0;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb span {
  margin: 0 5px;
  color: #ccc;
}

/* Ürün Ana Alanı (Görsel + Bilgi) */
.product-detail-wrapper {
  display: flex;
  gap: 40px;
  margin-bottom: 4rem;
  align-items: flex-start;
}

/* Sol Taraf: Görsel */
.product-gallery {
  flex: 1;
  min-width: 300px;
}

.product-gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

/* Sağ Taraf: Bilgiler */
.product-details {
  flex: 1;
  min-width: 300px;
}

.product-details h1 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.latin-name {
  font-style: italic;
  color: #888;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  display: block;
}

.product-description {
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #444;
}

/* Butonlar Grubu */
.action-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 2rem;
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
}

/* Özellikler Grid'i (Su, Işık vb.) */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--color-secondary);
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spec-icon {
  font-size: 1.5rem;
}

.spec-info h4 {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 2px;
}

.spec-info p {
  font-weight: bold;
  color: var(--color-text);
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
  .product-detail-wrapper {
    flex-direction: column;
  }
}
a.product-card {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
}

a.product-card:hover {
    text-decoration: none !important;
    color: inherit;
}

a.product-card * {
    text-decoration: none !important;
}

.product-info p, 
.product-info span {
    color: #666;
}

.product-title {
    color: var(--color-primary);
}