/* ================================================
   DOĞA — Çocuk Etkinlik ve Oyun Evi
   Base Stylesheet
   ================================================ */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #2c3e2d;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---- Design Tokens ---- */
:root {
  /* Colours — logodaki doğal yeşillerden türetilmiş */
  --color-green-dark:   #2d4a2e;
  --color-green-olive:  #3b5e3c;
  --color-green-mid:    #4a7a4b;
  --color-off-white:    #f8f7f4;
  --color-white:        #ffffff;

  /* Typography */
  --font-main: 'Poppins', sans-serif;

  /* Spacing */
  --header-px: 5vw;
  --header-py: 24px;
}

/* ================================================
   HEADER — Şeffaf, hero görseli üzerinde
   ================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

/* Scroll sonrası arka plan */
.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--header-py) var(--header-px);
  max-width: 1600px;
  margin: 0 auto;
}

/* ---- Logo ---- */
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.25s ease;
}

.logo:hover {
  opacity: 0.85;
}

.logo img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

/* ---- Navigation ---- */
.main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 1.035rem;           /* 0.9rem → ~%15 büyük */
  font-weight: 500;
  color: var(--color-green-dark);
  letter-spacing: 0.01em;
  position: relative;
  transition: opacity 0.25s ease;
  padding: 4px 0;
  white-space: nowrap;
}

/* Hover — ince underline */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background-color: var(--color-green-dark);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover {
  opacity: 0.7;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* ---- Hamburger (desktop'ta gizli) ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  z-index: 110;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-green-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger aktif hali — çarpı */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================================================
   HEADER — Sosyal Medya Butonları (orta alan)
   ================================================ */
.header-social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity 0.25s ease,
              box-shadow 0.25s ease,
              transform 0.2s ease;
}

.social-btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Instagram — sıcak krem / bej */
.social-btn--instagram {
  background: rgba(247, 239, 226, 0.90);
  color: #355b2d;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.social-btn--instagram:hover {
  opacity: 0.85;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
}

/* WhatsApp — doğal koyu yeşil */
.social-btn--whatsapp {
  background: #3f622f;
  color: #ffffff;
  box-shadow: 0 1px 6px rgba(63, 98, 47, 0.20);
}

.social-btn--whatsapp:hover {
  opacity: 0.85;
  box-shadow: 0 2px 10px rgba(63, 98, 47, 0.30);
  transform: translateY(-1px);
}

/* ================================================
   HERO — Tam ekran, net arka plan (filter yok)
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url('assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ================================================
   MOBILE NAV BACKDROP — her zaman DOM'da
   ================================================ */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 104;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Body scroll kilidi (mobil nav açıkken) */
body.nav-open {
  overflow: hidden;
}

/* ================================================
   RESPONSIVE — Tablet (≤ 900px)
   ================================================ */
@media (max-width: 900px) {
  .header-inner {
    padding: 20px 24px;
  }

  .logo img {
    width: 120px;
  }

  .main-nav .nav-list {
    gap: 24px;
  }

  .nav-link {
    font-size: 0.98rem;          /* 0.85rem → ~%15 büyük */
  }

  /* Tablette sosyal buton yazılarını gizle, sadece ikon göster */
  .social-btn span {
    display: none;
  }

  .social-btn {
    padding: 9px;
  }

  .social-btn-icon {
    width: 18px;
    height: 18px;
  }
}

/* ================================================
   RESPONSIVE — Mobile (≤ 640px)
   ================================================ */
@media (max-width: 640px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 105;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav .nav-list {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .nav-link {
    font-size: 1.15rem;          /* 1rem → ~%15 büyük */
  }

  .logo img {
    width: 110px;
  }

  /* Mobilde sosyal butonları gizle — hamburger menüye dahil edilebilir */
  .header-social {
    display: none;
  }
}

/* ================================================
   ATÖLYELERIMIZ BÖLÜMÜ (tek sayfa içi)
   ================================================ */
.workshops-section {
  background: #f7f2e9;
  max-width: 100%;
  padding: 80px 5vw;
  scroll-margin-top: 80px;
}

.workshops-section > .workshops-page-title,
.workshops-section > .workshops-grid {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.workshops-page-title {
  font-family: var(--font-main);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  color: var(--color-green-dark);
  text-transform: lowercase;
  text-align: center;
  margin-bottom: 56px;
  letter-spacing: -0.01em;
}

/* ---- Grid ---- */
.workshops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---- Kart ---- */
.workshop-card {
  display: flex;
  flex-direction: column;
}

.workshop-image-wrapper {
  overflow: hidden;
  border-radius: 16px;
}

.workshop-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  transition: transform 0.4s ease;
}

.workshop-card:hover .workshop-image {
  transform: scale(1.02);
}

/* ---- Metin ---- */
.workshop-text {
  padding: 20px 4px 0;
}

.workshop-title {
  font-family: var(--font-main);
  font-size: 1.19rem;            /* 1.05rem → ~%13 büyük */
  font-weight: 600;
  color: var(--color-green-dark);
  text-transform: lowercase;
  margin-bottom: 8px;
  line-height: 1.3;
}

.workshop-description {
  font-family: var(--font-main);
  font-size: 0.97rem;            /* 0.88rem → ~%10 büyük */
  font-weight: 400;
  color: #4a5a4b;
  text-transform: lowercase;
  line-height: 1.65;
}

/* ---- Genel section scroll offset ---- */
.content-section {
  scroll-margin-top: 80px;
}

/* ================================================
   ATÖLYELERIMIZ — Tablet (≤ 900px)
   ================================================ */
@media (max-width: 900px) {
  .workshops-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .workshop-title {
    font-size: 1.07rem;          /* 0.95rem → ~%13 büyük */
  }

  .workshop-description {
    font-size: 0.9rem;           /* 0.82rem → ~%10 büyük */
  }

  .workshops-page-title {
    margin-bottom: 40px;
  }

  .workshops-section {
    padding: 60px 24px;
  }
}

/* ================================================
   ATÖLYELERIMIZ — Mobile (≤ 640px)
   ================================================ */
@media (max-width: 640px) {
  .workshops-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .workshops-section {
    padding: 48px 20px;
    scroll-margin-top: 70px;
  }

  .workshops-page-title {
    margin-bottom: 32px;
    font-size: 26px;
  }

  .workshop-image {
    aspect-ratio: 4 / 3;
  }
}

/* ================================================
   İLETİŞİM BÖLÜMÜ
   ================================================ */
.contact-section {
  background: var(--color-off-white);
  padding: 80px 5vw;
  scroll-margin-top: 80px;
}

.contact-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ---- Sol: İletişim Bilgileri ---- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-title {
  font-family: var(--font-main);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  color: var(--color-green-dark);
  text-transform: lowercase;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 36px;           /* önceki 8px + sütun içi 28px boşluk korunur */
}

/* ---- İkon + metin satırı ---- */
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-green-olive);
  margin-top: 2px;
}

.contact-text {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 400;
  color: #4a5a4b;
  text-transform: lowercase;
  line-height: 1.6;
}

.contact-link {
  color: var(--color-green-dark);
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.contact-link:hover {
  opacity: 0.7;
}

/* ---- Çalışma Saatleri ---- */
.contact-row--hours {
  align-items: flex-start;
}

.contact-hours {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hours-row {
  display: grid;
  grid-template-columns: 180px 120px;
  align-items: baseline;
}

.hours-day {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 400;
  color: #4a5a4b;
  text-transform: lowercase;
}

.hours-time {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 400;
  color: #4a5a4b;
  white-space: nowrap;
}

/* ---- Sağ: Harita ---- */
.contact-map {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-map-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-directions-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 11px 24px;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.01em;
  color: var(--color-white);
  background: var(--color-green-dark);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(45, 74, 46, 0.20);
  transition: opacity 0.25s ease,
              box-shadow 0.25s ease,
              transform 0.2s ease;
}

.contact-directions-btn:hover {
  opacity: 0.85;
  box-shadow: 0 4px 16px rgba(45, 74, 46, 0.30);
  transform: translateY(-1px);
}

/* ================================================
   İLETİŞİM — Tablet (≤ 900px)
   ================================================ */
@media (max-width: 900px) {
  .contact-inner {
    gap: 36px;
  }

  .contact-section {
    padding: 60px 24px;
  }

  .contact-title {
    font-size: 28px;
  }
}

/* ================================================
   İLETİŞİM — Mobile (≤ 640px)
   ================================================ */
@media (max-width: 640px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-section {
    padding: 48px 20px;
    scroll-margin-top: 70px;
  }

  .contact-title {
    font-size: 26px;
  }

  .contact-map-wrapper {
    aspect-ratio: 16 / 10;
  }

  .contact-directions-btn {
    align-self: stretch;
    text-align: center;
  }
}

/* ================================================
   GALERİ — Yatay kaydırmalı fotoğraf şeridi
   ================================================ */
.gallery-section {
  background: #f7f2e9;
  padding: 80px 0;
  scroll-margin-top: 80px;
  overflow: hidden;
}

.gallery-header {
  position: relative;
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: center;       /* başlık tam ortada */
}

.gallery-title {
  text-align: center;
  font-family: var(--font-main);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  color: var(--color-green-dark);
  text-transform: lowercase;
  letter-spacing: -0.01em;
}

/* ---- Oklar (başlığı kaydırmasın diye sağa sabitlenir) ---- */
.gallery-arrows {
  position: absolute;
  right: 5vw;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;
}

.gallery-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(45, 74, 46, 0.25);
  background: transparent;
  color: var(--color-green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, opacity 0.25s ease;
}

.gallery-arrow svg {
  width: 18px;
  height: 18px;
}

.gallery-arrow:hover {
  background: rgba(45, 74, 46, 0.08);
}

.gallery-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ---- Sahne (coverflow carousel) ---- */
.gallery-stage {
  --card-w: clamp(260px, 28vw, 380px);
  position: relative;
  width: 100%;
  height: calc(var(--card-w) * 4 / 3 + 48px);
  touch-action: pan-y;          /* yatay sürükleme JS'te, dikey sayfa kaydırma serbest */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.gallery-stage.is-dragging {
  cursor: grabbing;
}

/* ---- Kart ---- */
.gallery-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--card-w);
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #efe7da;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 30px rgba(45, 74, 46, 0.10);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* ================================================
   GALERİ — Tablet (≤ 900px)
   ================================================ */
@media (max-width: 900px) {
  .gallery-section {
    padding: 60px 0;
  }

  .gallery-header {
    padding: 0 24px;
    margin-bottom: 24px;
  }

  .gallery-arrows {
    right: 24px;
  }

  .gallery-stage {
    --card-w: clamp(230px, 40vw, 320px);
  }
}

/* ================================================
   GALERİ — Mobile (≤ 640px)
   ================================================ */
@media (max-width: 640px) {
  .gallery-section {
    padding: 48px 0;
    scroll-margin-top: 70px;
  }

  .gallery-header {
    padding: 0 20px;
    margin-bottom: 16px;
  }

  .gallery-title {
    font-size: 26px;
  }

  .gallery-arrows {
    display: none;
  }

  .gallery-stage {
    --card-w: 58vw;
    cursor: auto;
  }
}


/* ================================================
   FOOTER — sol: MEB QR onayı · sağ: HAZAL HIZAL
   ================================================ */
.site-footer {
  background: var(--color-off-white);
  border-top: 1px solid rgba(45, 74, 46, 0.10);
  padding: 28px 5vw;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* ---- Sol: QR + yazı ---- */
.meb-badge {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* QR'ın etrafında düz beyaz sessiz alan (quiet zone) — çerçeve/gölge yok */
.meb-qr-wrap {
  background: #ffffff;
  padding: 8px;
  line-height: 0;
  flex-shrink: 0;
}

.meb-qr {
  width: 88px;
  height: 88px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

/* Ortak yazı stili: MEB yazısı ve isim aynı boyut/ağırlıkta */
.meb-text,
.footer-name {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: var(--color-green-dark);
  text-transform: none;          /* yazılar HTML'de BÜYÜK harfle */
  margin: 0;
}

/* ---- Sağ: isim ---- */
.footer-name {
  font-size: 0.94rem;            /* MEB yazısından ~%18 büyük */
  text-align: right;
  white-space: nowrap;
}

/* ---- Mobil: alt alta, ortalı ---- */
@media (max-width: 640px) {
  .site-footer {
    padding: 28px 20px;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    text-align: center;
  }

  .meb-badge {
    gap: 12px;
  }

  .meb-text {
    text-align: left;
  }

  .meb-text,
  .footer-name {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .footer-name {
    font-size: 0.87rem;          /* mobilde de ~%18 büyük */
    text-align: center;
  }
}

/* ================================================
   ORTAK BÖLÜM BAŞLIKLARI — atölyelerimiz · galeri · iletişim
   Referans: atölyelerimiz başlığı. Üçü aynı boyut, ağırlık ve
   hizada olsun diye tek kuralda toplandı (boşluklar bölümlerde kalır).
   ================================================ */
.workshops-page-title,
.gallery-title,
.contact-title {
  font-family: var(--font-main);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.6;
  color: var(--color-green-dark);
  text-transform: lowercase;
  text-align: center;
}

@media (max-width: 900px) {
  .workshops-page-title,
  .gallery-title,
  .contact-title {
    font-size: clamp(28px, 3vw, 42px);
  }
}

@media (max-width: 640px) {
  .workshops-page-title,
  .gallery-title,
  .contact-title {
    font-size: 26px;
  }
}
