/* ==================================== */
/* 00. ROOT & TEMEL AYARLAR             */
/* ==================================== */

:root {
  --green: #52675E;
  --cream: #E2E2DC;
  --ink: #0f1412;
  --white: #ffffff;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

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

.container {
  width: min(1100px, 92vw);
  margin-inline: auto
}

/* ==================================== */
/* 01. HEADER & NAVİGASYON              */
/* ==================================== */

header {
  background: var(--green);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 9
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 50px;
  width: auto;
}

nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0
}

nav a {
  opacity: .9;
  color: var(--cream);
  position: relative;
  font-weight: 600;
}

nav a:hover {
  opacity: 1;
  text-decoration: none;
}

/* Nav Link Hover Efekti */
nav a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--cream);
  bottom: -4px;
  left: 0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

nav a:hover::after {
  transform-origin: bottom left;
  transform: scaleX(1);
}

/* ==================================== */
/* 02. HERO SECTION                     */
/* ==================================== */

.hero {
  background: var(--green);
  color: var(--cream);
  padding: 36px 0 42px;
  text-align: center
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 12px
}

.hero p {
  max-width: 880px;
  line-height: 1.6;
  font-size: clamp(15px, 2.1vw, 18px);
  opacity: .95;
  margin: 0 auto
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap
}

/* ==================================== */
/* 03. BUTTONS                          */
/* ==================================== */

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .35);
  transition: all .2s ease
}

.btn.primary {
  background: var(--cream);
  color: var(--green);
  border-color: transparent;
  font-weight: 600
}

.btn.secondary {
  background: transparent;
  color: var(--cream)
}

.btn:hover {
  transform: translateY(-1px)
}

/* ==================================== */
/* 04. GENEL SECTION STİLLERİ           */
/* ==================================== */

section {
  padding: 40px 0
}

h2 {
  font-size: clamp(22px, 3.2vw, 30px);
  margin: 0 0 14px
}

.lead {
  opacity: .85;
  max-width: 820px;
  line-height: 1.6
}

.muted {
  opacity: .7
}

/* ==================================== */
/* 05. GRID & CARD STİLLERİ             */
/* ==================================== */

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, 1fr)
}

.card {
  grid-column: span 6;
  background: var(--white);
  border-radius: 18px;
  padding: 18px 18px 14px;
  border: 1px solid #e7e7e2
}

.card h3 {
  margin: 6px 0 8px;
  font-size: 18px
}

.card p {
  margin: 0;
  opacity: .9;
  line-height: 1.6
}

/* ==================================== */
/* 06. ÖZEL BÖLÜMLER                    */
/* ==================================== */

.catalog {
  background: var(--white);
  border: 1px solid #e7e7e2;
  border-radius: 18px;
  padding: 18px
}

.catalog .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.contact {
  background: var(--green);
  color: var(--cream)
}

.contact .card {
  background: transparent;
  border-color: rgba(226, 226, 220, .25)
}

.contact a {
  color: var(--cream)
}

/* ==================================== */
/* 07. PDF BELGELERİ STİLLERİ           */
/* ==================================== */

/* Grid İçindeki Kartların Sütun Ayarı: 3 kart yan yana (12 / 4 = 3) */
.document-grid .document-card {
  grid-column: span 4;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

.document-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.thumbnail-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;
  margin-bottom: 15px;
  background-color: var(--cream);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
}

.thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

/* ==================================== */
/* 08. FOOTER                           */
/* ==================================== */

footer {
  padding: 28px 0;
  background: var(--green);
  color: var(--cream);
  font-size: 14px;
  text-align: center
}

/* ==================================== */
/* 09. RESPONSIVE STİLLER               */
/* ==================================== */

/* Tablet & Küçük Laptop (max-width: 900px) */
@media (max-width: 900px) {

  /* Belgeler (Document Grid) 3'ten 2'ye düşer (12 / 6 = 2) */
  .document-grid .document-card {
    grid-column: span 6;
  }

  .hamburger {
    display: block !important;
    /* !important eklemek, olası diğer çakışmaları engeller */
  }
}

/* Telefon (max-width: 550px) */
@media (max-width: 550px) {

  /* GENEL KARTLARIN DÜZELTİLMESİ: Tüm .card'lar tek sütuna iner (12 / 12 = 1) */
  .grid .card {
    grid-column: span 12;
  }

  /* document-grid zaten yukarıdaki kuralı kullanacak, ancak netlik için tekrar yazılabilir: */
  /* .document-grid .document-card { grid-column: span 12; } */
}


/* ==================================== */
/* 10. MOBİL MENÜ STİLLERİ (SIDEBAR)    */
/* ==================================== */

/* Hamburger Butonu Stilleri */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--cream);
  margin-bottom: 5px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

#mobile-menu {
  transition: transform 0.4s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

/* Sidebar Görünümü (max-width: 820px'te devreye girer) */
@media (max-width: 820px) {

  /* Geniş ekran nav'ı gizle, mobil sidebar'ı oluştur */
  .nav nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--green);
    padding-top: 80px;
    z-index: 99;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    /* Başlangıçta gizle */
  }

  .nav nav ul {
    flex-direction: column;
    gap: 0;
  }

  .nav nav li {
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav nav li:last-child {
    border-bottom: none;
  }

  .nav nav a {
    font-size: 18px;
    display: block;
  }

  /* Mobil menüde underline istemiyoruz */
  .nav nav a::after,
  .nav nav a:hover::after {
    content: none !important;
  }

  .nav {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  /* Menü Açıkken Animasyonlar */
  .menu-open #mobile-menu {
    transform: translateX(0);
  }

  .menu-open .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-open .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .menu-open body {
    overflow: hidden;
  }
}