/* ==========================================================================
   Natura Ahşap - Modern Web Tasarım CSS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@400;600;700&display=swap');

/* Değişkenler */
:root {
  --primary-color: #5c3a21;
  /* Koyu Ahşap */
  --secondary-color: #dcb38b;
  /* Açık Ahşap */
  --text-color: #333333;
  --bg-color: #fcfbf9;
  /* Çok açık krem */
  --header-bg: rgba(252, 251, 249, 0.95);
  --footer-bg: #1a1512;
  --white: #ffffff;
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --transition: all 0.3s ease;
}

/* Sıfırlama (Reset) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: #531e07;
  transition: var(--transition);
}

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

/* ==========================================================================
   Genel Sınıflar
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
  color: #666;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: #452b18;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ==========================================================================
   Header (Navigasyon)
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo span {
  font-size: 0.9rem;
  color: #941f1f;
  font-weight: 400;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links li a {
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* ==========================================================================
   Hero Section & Slider
   ========================================================================== */
.hero-slider-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-color: var(--primary-color);
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

/* Slide içerik animasyonu */
.hero-content {
  position: relative;
  z-index: 10;
  color: var(--white);
  max-width: 800px;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.8s ease 0.3s, opacity 0.8s ease 0.3s;
}

.hero-slide.active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--primary-color);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active,
.dot:hover {
  background: #fff;
  transform: scale(1.2);
}

/* ==========================================================================
   Hakkımızda Kısaltması
   ========================================================================== */
.about-snippet {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  color: #555;
}

.about-image {
  flex: 1;
  position: relative;
  align-self: start;
}

.about-image img {
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Öne Çıkan Ürünler / Ürünler Sayfası
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-img-wrapper {
  height: 300px;
  overflow: hidden;
  position: relative;
}

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

.product-card:hover .product-img-wrapper img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
  text-align: center;
}

.product-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.product-info p {
  color: #666;
  font-size: 0.95rem;
}

/* ==========================================================================
   İletişim Sayfası / Section
   ========================================================================== */
.contact-wrapper {
  display: flex;
  gap: 50px;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-info,
.contact-form {
  flex: 1;
  padding: 20px;
}

.contact-info {
  background-color: var(--primary-color);
  color: var(--white);
}

.contact-info h3,
.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-form h3 {
  color: var(--primary-color);
}

.contact-info .desc {
  margin-bottom: 40px;
  color: #ddd;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 30px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.contact-item h4 {
  font-family: var(--font-heading);
  margin-bottom: 5px;
}

.contact-item p {
  color: #ddd;
}

.contact-map-container {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background-color: var(--footer-bg);
  color: var(--white);
  padding: 60px 0 20px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.footer-desc {
  color: #aaa;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #aaa;
}

.footer-links ul li a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
  font-size: 0.9rem;
}

/* ==========================================================================
   Page Headers (Hakkımızda, Ürünler vs)
   ========================================================================== */
.page-header {
  padding: 150px 0 80px 0;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin-bottom: 15px;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ==========================================================================
   Animasyonlar (Scroll Reveal)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Tasarım
   ========================================================================== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--header-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }

  .nav-links.nav-active {
    right: 0;
  }

  .menu-toggle {
    display: block;
  }

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

  .about-snippet {
    flex-direction: column;
  }

  .contact-wrapper {
    flex-direction: column;
  }

  .contact-info,
  .contact-form {
    padding: 10px;
  }
}

/* ==========================================================================
   Lightbox / Image Modal
   ========================================================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.lightbox-modal.show {
  display: flex;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  animation-name: zoom;
  animation-duration: 0.6s;
  border-radius: 8px;
}

@keyframes zoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.lightbox-title {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  z-index: 2010;
  text-align: center;
  max-width: 80%;
  margin: 0;
  font-family: 'Playfair Display', serif;
}

.product-img-wrapper img {
  cursor: pointer;
}