/* ----- Header ----- */
.site-header{
  position:sticky; top:0; z-index:50;
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled{ border-bottom-color: var(--color-line); }

/* "Takvime dön" çubuğu — site-header'ın hemen altında, JS aktif eder */
.calendar-back{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-line);
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  position: sticky;
  top: 0;
  z-index: 49;
  transition: background .15s ease, color .15s ease;
}
.calendar-back:hover{
  background: var(--color-accent);
  color: var(--color-bg);
}
.calendar-back[hidden]{ display: none; }
@media (max-width: 640px){
  .calendar-back{ padding: 8px 16px; font-size: 13px; }
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding-block: 18px;
  gap: 24px;
}
.brand{
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--color-ink);
}
.brand small{
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-muted);
  display:block;
  margin-top:-2px;
}
.nav-links{
  display:flex; align-items:center; gap: 26px;
  list-style:none; margin:0; padding:0;
}
.nav-links a{
  color: var(--color-ink);
  font-size: 14.5px;
  font-weight: 500;
  position:relative;
}
.nav-links a.is-active{ color: var(--color-accent); }
.nav-links a::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px;
  height:1px; background: currentColor; transform: scaleX(0);
  transform-origin: left; transition: transform .25s ease;
}
.nav-links a:hover::after, .nav-links a.is-active::after{ transform: scaleX(1); }
.nav-toggle{
  display:none; background:transparent; border:none; color: var(--color-ink);
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle svg{ width:24px; height:24px; }
@media (max-width: 900px){
  /* Hamburger'ı sağ marja hizala: <nav> sarmalayıcı (mobilde nav-links absolute
     olduğu için 0 genişlik) en sağ slotu kapmasın; toggle margin-left:auto ile
     sağa dayansın, gap:0 ile araya boşluk girmesin → brand solda, ☰ sağ marjda. */
  .nav{ gap: 0; }
  .nav-toggle{ display:inline-flex; margin-left: auto; }

  .nav-links{
    /* Header'ın (position:sticky = containing block) hemen ALTINA konumla.
       top:100% header yüksekliği ne olursa olsun (iki satırlı marka dahil)
       markanın üstüne binmez — eski sabit "top:64px" iki satırlı başlıkta
       alt-yazıyı örtüyordu. */
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 14px 26px rgba(60,40,20,.09);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 20px;
    gap: 0;
    /* kapalı: hafif yukarı + saydam + tıklanamaz + tab-dışı (görünmez) */
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  body.nav-open .nav-links{
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear 0s;
  }
  .nav-links a{
    padding: 14px 4px;
    border-bottom: 1px solid var(--color-line);
    font-size: 16px;
  }
  .nav-links a:last-child{ border-bottom:none; }
  .nav-links a::after{ display: none; } /* Mobil dik menüde altçizgi sonraki link üstüne biniyor */
}

/* ----- Buttons ----- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 15px; font-weight: 500;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-decoration:none;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--color-button-bg); color: var(--color-button-fg); }
.btn-ghost{
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-line);
}
.btn-ghost:hover{ border-color: var(--color-ink); }
.btn-arrow::after{ content:"→"; font-size: 1em; }

/* ----- Hero ----- */
.hero{
  position:relative;
  overflow:hidden;
  padding-block: clamp(72px, 12vw, 140px) clamp(48px, 8vw, 96px);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-content{ max-width: 640px; }
.hero-title{
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1.05;
  margin-bottom: 24px;
  font-weight: var(--weight-h1);
  letter-spacing:-.01em;
}
.hero-subtitle{
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--color-muted);
  max-width: 56ch;
  margin-bottom: 32px;
}
.hero-cta{ display:flex; flex-wrap:wrap; gap: 12px; }
.hero-image{
  position:relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow:hidden;
  background: var(--color-bg-alt);
}
.hero-image img{ width:100%; height:100%; object-fit: cover; }
.hero-meta{
  display:flex; align-items:center; gap:16px;
  margin-top: 28px; color: var(--color-muted); font-size:14px;
}
.hero-meta .dot{ width:6px; height:6px; border-radius:50%; background: var(--color-accent-3); }
@media (max-width: 800px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-image{ aspect-ratio: 1/1; max-width: 480px; margin: 0 auto; order: -1; }
}

/* ----- Section heading ----- */
.section-head{ margin-bottom: clamp(28px, 4vw, 56px); max-width: 720px; }
.section-head .eyebrow{ display:block; }
.section-head h2{ margin: 0 0 12px; }
.section-head p{ color: var(--color-muted); font-size: 18px; }

/* ----- Cards ----- */
.cards-grid{
  display:grid;
  gap: 20px;
}
.cards-grid.cols-2{ grid-template-columns: repeat(2, 1fr); }
.cards-grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
.cards-grid.cols-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px){
  .cards-grid.cols-3, .cards-grid.cols-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .cards-grid.cols-2, .cards-grid.cols-3, .cards-grid.cols-4{ grid-template-columns: 1fr; }
}
.card{
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display:flex; flex-direction:column;
  transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover{ box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3{ margin: 0 0 10px; }
.card p{ color: var(--color-muted); margin:0; font-size: 15.5px; }
.card .tag{
  display:inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-pill);
  margin-bottom: 14px;
  align-self:flex-start;
}
.card .card-link{
  margin-top: 18px;
  font-size: 14px; font-weight:500;
  color: var(--color-accent);
}

/* ----- Footer ----- */
.site-footer{
  border-top: 1px solid var(--color-line);
  padding-block: 64px 28px;
  margin-top: var(--space-section);
  font-size: 14.5px;
  color: var(--color-muted);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 980px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .footer-grid > .footer-form-col{ grid-column: 1 / -1; }
}
@media (max-width: 600px){
  .footer-grid{ grid-template-columns: 1fr; }
}
.footer-grid h4{ color: var(--color-ink); font-size:13px; margin: 0 0 14px; letter-spacing:.16em; }
.footer-grid ul{ list-style:none; padding:0; margin:0; }
.footer-grid li{ margin-bottom: 8px; }
.footer-grid a{ color: var(--color-muted); }
.footer-grid a:hover{ color: var(--color-ink); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  padding-top: 20px; border-top: 1px solid var(--color-line);
  flex-wrap:wrap;
}
.social{ display:flex; gap:12px; }
.social a{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius: var(--radius-pill);
  border: 1px solid var(--color-line);
  color: var(--color-ink);
}
.social a:hover{ background: var(--color-ink); color: var(--color-bg); }

/* ----- Footer contact form ----- */
.footer-form{ display:grid; gap:10px; }
.footer-form .row-2{
  display:grid; grid-template-columns: 1fr 1fr; gap:10px;
}
@media (max-width: 480px){ .footer-form .row-2{ grid-template-columns: 1fr; } }
.footer-form input,
.footer-form textarea{
  width:100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 14.5px;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.footer-form input::placeholder,
.footer-form textarea::placeholder{ color: var(--color-muted); }
.footer-form input:focus,
.footer-form textarea:focus{
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0,0,0,.04);
}
.footer-form textarea{ min-height: 90px; resize: vertical; }
.footer-form button{
  justify-self:start;
  margin-top: 4px;
}
.footer-legal{
  display:flex; flex-wrap:wrap; gap: 4px 16px;
  list-style:none; padding:0; margin:0;
  font-size: 13px;
}
.footer-legal a{ color: var(--color-muted); }
.footer-legal a:hover{ color: var(--color-ink); }

/* Mobil: footer dokunma hedeflerini rahat parmakla-tıklanır hale getir.
   Masaüstünde footer linkleri sıkışık text-link kalır (bilinçli). ≤600px'te
   footer tek kolona düşerken linkleri blok + dikey padding ile ~44px yap. */
@media (max-width: 600px){
  .footer-grid ul li{ margin-bottom: 0; }
  .footer-grid ul a{ display:inline-block; padding:11px 0; line-height:1.2; }
  .footer-legal{ gap: 0 18px; }
  .footer-legal a{ display:inline-block; padding:10px 0; }
  .footer-form input,
  .footer-form textarea{ padding:13px 14px; }   /* ~44px dokunma yüksekliği */
}

/* ----- Tabs (anne-baba çemberi) ----- */
.tabs{
  display:flex; flex-wrap:wrap; gap:8px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--color-line);
}
.tab{
  padding: 10px 16px;
  font-size: 14.5px; font-weight: 500;
  color: var(--color-muted);
  background: transparent; border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab.is-active{ color: var(--color-accent); border-bottom-color: var(--color-accent); }
.tab:hover{ color: var(--color-ink); }

/* ----- Forms ----- */
.form{
  display:grid; gap: 14px;
  max-width: 520px;
}
.form label{ font-size:13px; font-weight:600; letter-spacing:.06em; color: var(--color-muted); display:block; margin-bottom:6px; }
.form input, .form textarea{
  width:100%;
  padding: 12px 14px;
  font: inherit; color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}
.form input:focus, .form textarea:focus{
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}
.form textarea{ min-height: 130px; resize: vertical; }

/* ----- Generic chip / list ----- */
.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chips span{
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border:1px solid var(--color-line);
  font-size: 13.5px;
  background: var(--color-surface);
}

/* ----- Gallery ----- */
.gallery{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery a{
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  overflow:hidden;
  display:block;
}
.gallery img{ width:100%; height:100%; object-fit:cover; transition: transform .3s ease; }
.gallery a:hover img{ transform: scale(1.04); }
@media (max-width: 800px){ .gallery{ grid-template-columns: repeat(2, 1fr); } }

/* ----- Timeline ----- */
.timeline{
  position:relative;
  padding-left: 28px;
  border-left: 1px solid var(--color-line);
  display: grid; gap: 22px;
}
.timeline-item{ position:relative; }
.timeline-item::before{
  content:""; position:absolute; left:-34px; top:8px;
  width:11px; height:11px; border-radius:50%;
  background: var(--color-accent);
}
.timeline-year{
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  color: var(--color-accent-2);
  letter-spacing: .04em;
  margin-bottom: 4px;
}

/* ----- Galeri öğesi (lightbox açılış noktası) ----- */
.gallery-item{
  display: block;
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--radius-sm, 8px);
}
.gallery-item img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery-item:hover img{ transform: scale(1.04); }
.gallery-item::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background .15s ease;
  pointer-events: none;
}
.gallery-item:hover::after{ background: rgba(0,0,0,0.08); }

/* ----- Lightbox ----- */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 12, 8, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Üst/alt: kapat butonu + counter için alan; sağ/sol: prev/next için */
  padding: 80px 96px;
  opacity: 0;
  transition: opacity .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.lightbox.is-open{ opacity: 1; }
.lightbox[hidden]{ display: none; }
.lightbox-stage{
  /* static — butonların konumu .lightbox'a göre alınsın (görselin içine değil) */
  position: static;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .15s ease;
}
.lightbox-img.swap{ opacity: 0; }
.lightbox-btn{
  position: absolute;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .15s ease, transform .15s ease;
  font-family: inherit;
}
.lightbox-btn:hover{
  background: rgba(255,255,255,0.18);
  transform: scale(1.06);
}
.lightbox-btn:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 2px;
}
/* Prev/next: ekranın yan boşluklarında dikey ortalı */
.lightbox-prev{ top: 50%; left: 24px; transform: translateY(-50%); }
.lightbox-prev:hover{ transform: translateY(-50%) scale(1.06); }
.lightbox-next{ top: 50%; right: 24px; transform: translateY(-50%); }
.lightbox-next:hover{ transform: translateY(-50%) scale(1.06); }
/* Close: ekranın sağ üst köşesi */
.lightbox-close{ top: 20px; right: 24px; }
.lightbox-counter{
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px){
  .lightbox{ padding: 64px 64px; }
  .lightbox-btn{ width: 40px; height: 40px; }
  .lightbox-prev{ left: 10px; }
  .lightbox-next{ right: 10px; }
  .lightbox-close{ top: 12px; right: 12px; }
  .lightbox-counter{ bottom: 16px; }
}
@media (prefers-reduced-motion: reduce){
  .lightbox, .lightbox-img, .lightbox-btn, .gallery-item img{ transition: none; }
}

/* ----- Bilgi Al modal (atölye detay sayfaları) ----- */
.info-modal{
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.info-modal[hidden]{ display: none; }
.info-modal-overlay{
  position: absolute; inset: 0;
  background: rgba(15, 12, 8, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.info-modal-card{
  position: relative;
  width: 100%; max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  box-shadow: 0 24px 60px rgba(40,28,16,.30);
  padding: 28px 28px 24px;
  animation: infoModalIn .25s ease-out;
}
@keyframes infoModalIn{
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.info-modal-close{
  position: absolute; top: 12px; right: 12px;
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--color-muted);
}
.info-modal-close:hover{ color: var(--color-ink); }
.info-modal h3{ margin: 0 0 6px; font-family: var(--font-display); }
.info-modal-sub{ margin: 0 0 20px; color: var(--color-muted); font-size: 14.5px; }
.info-modal-field{ display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.info-modal-field span{ font-size: 13.5px; color: var(--color-muted); }
.info-modal-field em{ color: var(--color-accent); font-style: normal; }
.info-modal-field input,
.info-modal-field textarea{
  font: inherit; color: var(--color-ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-line);
  padding: 8px 2px;
  outline: none;
  transition: border-color .15s ease;
}
.info-modal-field textarea{ resize: vertical; min-height: 72px; }
.info-modal-field input:focus,
.info-modal-field textarea:focus{ border-bottom-color: var(--color-accent); }
.info-modal-field input[readonly]{ color: var(--color-muted); cursor: default; }
.info-modal-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-modal-actions{
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 18px;
}
@media (max-width: 540px){
  .info-modal-card{ padding: 24px 20px 20px; }
  .info-modal-row{ grid-template-columns: 1fr; }
  .info-modal-actions{ flex-direction: column-reverse; }
  .info-modal-actions .btn{ width: 100%; }
}
body.modal-open{ overflow: hidden; }

/* --- Footer yasal linkler --- */
.footer-legal{ display:inline-flex; gap:18px; flex-wrap:wrap; }
.footer-legal a{ color:var(--color-muted); border-bottom:1px solid var(--color-line); padding-bottom:1px; }
.footer-legal a:hover{ color:var(--color-ink); }

/* --- Legal (KVKK / Gizlilik) sayfa prose --- */
.legal-prose{ max-width:760px; }
.legal-prose h2{ font-size:20px; margin:1.7em 0 .45em; }
.legal-prose h2:first-child{ margin-top:0; }
.legal-prose p{ margin:.5em 0; }

/* --- Çerez onay bandı (kabul / reddet) --- */
.cookie-consent{
  position:fixed; left:0; right:0; bottom:0; z-index:200;
  padding:14px clamp(14px,4vw,28px);
  background:var(--color-surface); border-top:1px solid var(--color-line);
  box-shadow:0 -8px 30px rgba(60,40,20,.12);
}
.cookie-consent-inner{
  max-width:1100px; margin:0 auto; display:flex; align-items:center;
  gap:14px 26px; flex-wrap:wrap; justify-content:space-between;
}
.cookie-consent-text{ margin:0; font-size:13.5px; line-height:1.5; color:var(--color-muted); max-width:70ch; flex:1 1 320px; }
.cookie-consent-text a{ color:var(--color-link); border-bottom:1px solid currentColor; }
.cookie-consent-actions{ display:flex; gap:10px; flex-shrink:0; }
.cookie-consent-actions .btn{ padding:9px 20px; font-size:14px; }
@media (max-width:560px){
  .cookie-consent-actions{ width:100%; }
  .cookie-consent-actions .btn{ flex:1 1 auto; }
}
