/* Ajans Portfolyo – proje detay sayfası
 * Ölçüler Elementor ile yapılmış Yamas / Lattimo sayfalarından alındı.
 * Renkler Elementor global renklerinden okunur (yoksa yedek değer). */

.aw-single {
  --aw-yellow: var(--e-global-color-primary, #fecf03);
  --aw-ink: #000;
  --aw-muted: #989898;
  --aw-chip-bg: #e5e5e5;
  --aw-line: #333;
  --aw-gap: 20px;
  --aw-radius: 10px;
  --aw-block-gap: 100px;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--aw-ink);
}
.aw-single *,
.aw-single *::before,
.aw-single *::after { box-sizing: border-box; }
.aw-single figure { margin: 0; }
.aw-single h1,
.aw-single h2,
.aw-single h3 { font-family: inherit; color: var(--aw-ink); }

.aw-wrap {
  width: min(1320px, 100% - 20px);
  margin-inline: auto;
}

/* .aw-single önekli: Elementor'un ".elementor img { border-radius: 0 }" kuralını ezmek için. */
.aw-single .aw-media {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--aw-radius);
}

.aw-prose {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.2px;
}
.aw-prose p { margin: 0 0 1em; }
.aw-prose > :last-child { margin-bottom: 0; }
.aw-prose a { color: inherit; text-decoration: underline; }

/* --- Giriş ---------------------------------------------------------- */
.aw-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 82px 10px 40px;
}
.aw-hero__text { padding-top: 40px; }
.aw-hero__title {
  margin: 0 0 20px;
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -3px;
}
.aw-hero__meta {
  display: flex;
  gap: 20px;
  margin: 36px 0 0;
}
.aw-hero__meta-item--year { flex: 0 0 100px; }
.aw-hero__meta-item--sector { flex: 0 0 200px; }
.aw-hero__meta-item--services { flex: 1 1 0; min-width: 0; }
.aw-hero__meta dt {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--aw-muted);
}
.aw-hero__meta dd {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--aw-muted);
}
/* Dikey kapaklar sayfa başını aşırı uzatmasın: yükseklik sınırı, taşan kısım ortadan kırpılır. */
.aw-single .aw-hero__media .aw-media { max-height: min(680px, 80vh); border-radius: 20px; object-fit: cover; }
.aw-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.aw-chip {
  padding: 0 12px;
  border-radius: 5px;
  background: var(--aw-chip-bg);
  line-height: 24px;
  white-space: nowrap;
}

/* --- Başlıklı iki sütun (Proje Hakkında / Neler Yapıyoruz) ----------- */
.aw-section { margin-top: 48px; padding-top: 10px; }
.aw-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  padding: 10px;
}
.aw-split__body { padding-top: 50px; }
.aw-eyebrow {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 5px;
  background: var(--aw-yellow);
  color: #000;
  font-size: 20px;
  line-height: 20px;
  font-weight: 700;
}
.aw-h2 {
  margin: 20px 0 0;
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -2px;
}

/* --- Bloklar ---------------------------------------------------------- */
.aw-blocks {
  display: flex;
  flex-direction: column;
  gap: var(--aw-block-gap);
  margin-top: 44px;
}
.aw-block__title {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}
.aw-block__text {
  max-width: 1188px;
  margin: 64px auto 0;
  text-align: center;
}
.aw-block--metin .aw-block__text { margin-top: 0; }

/* Galeri: satır düzenleri (görseller eşit yükseklikte, oranları korunur) */
.aw-gallery { display: flex; flex-direction: column; gap: var(--aw-gap); }
.aw-gallery__item { min-width: 0; }
.aw-gallery__row { display: flex; gap: var(--aw-gap); align-items: flex-start; }
.aw-gallery__row > .aw-gallery__item,
.aw-gallery__fill { flex: calc(var(--r, 1) * 100) 1 0%; } /* ×100: flex-grow toplamı 1'in altında kalırsa boşluk dolmaz */

/* Galeri: bento (üst üste iki görsel + yanında tek büyük görsel) */
.aw-gallery__bento { display: grid; gap: var(--aw-gap); }
.aw-gallery__bento.is-reverse .aw-gallery__tall { order: -1; }
.aw-gallery__stack { display: flex; flex-direction: column; gap: var(--aw-gap); min-height: 0; }
.aw-gallery__stack .aw-gallery__item { position: relative; flex: calc(var(--h, 1) * 100) 1 0px; min-height: 0; }
.aw-gallery__stack .aw-media { position: absolute; inset: 0; height: 100%; object-fit: cover; }

/* Galeri: masonry */
.aw-gallery__masonry { columns: 3; column-gap: var(--aw-gap); }
.aw-gallery__masonry .aw-gallery__item { break-inside: avoid; margin-bottom: var(--aw-gap); }

/* Video carousel */
.aw-vcar { --aw-vcar-gap: 10px; --per: 5; --ar: 9 / 16; }
.aw-vcar--yatay { --per: 2; --ar: 16 / 9; }
.aw-vcar--kare { --per: 3; --ar: 1 / 1; }
.aw-vcar__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--aw-vcar-gap) * (var(--per) - 1)) / var(--per));
  gap: var(--aw-vcar-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.aw-vcar__track::-webkit-scrollbar { display: none; }
.aw-vcar__slide { scroll-snap-align: start; }
.aw-vcar__slide .aw-media { aspect-ratio: var(--ar); object-fit: cover; background: #000; }
.aw-vcar__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.aw-vcar.is-static .aw-vcar__nav { display: none; }
/* Elementor kit'in genel buton stilini (.elementor-kit-6 button) ezmek için .aw-single önekli. */
.aw-single .aw-nav-btn,
.aw-single .aw-nav-btn:focus { padding: 0; border: 1px solid var(--aw-card-border, #eaeaea); border-radius: 50%; background: #fff; color: #111; }
.aw-single .aw-nav-btn:hover,
.aw-single .aw-nav-btn:focus-visible { border-color: var(--aw-yellow); background: var(--aw-yellow); }
.aw-single .aw-nav-btn:disabled { opacity: 0.35; cursor: default; transform: none; border-color: var(--aw-card-border, #eaeaea); background: #fff; }

/* Tek video: dosya kendi oranında (width/height niteliklerinden), YouTube/Vimeo seçilen formatta. */
.aw-video .aw-media,
.aw-video iframe { display: block; width: 100%; height: auto; border: 0; border-radius: var(--aw-radius); background: #000; }
.aw-video iframe { aspect-ratio: 16 / 9; }
.aw-video--dikey { max-width: 420px; margin-inline: auto; }
.aw-video--dikey iframe { aspect-ratio: 9 / 16; }
.aw-video--kare { max-width: 720px; margin-inline: auto; }
.aw-video--kare iframe { aspect-ratio: 1 / 1; }

/* --- Sayfa başı web sitesi / QR menü linkleri -------------------------- */
.aw-hero__sites { display: flex; flex-wrap: wrap; gap: 20px 48px; margin-top: 28px; }
.aw-single .aw-hero__site {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: var(--aw-ink);
  text-decoration: none;
}
.aw-hero__site-label { font-size: 16px; line-height: 1.2; font-weight: 700; color: var(--aw-muted); }
.aw-hero__site-host {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.3px;
  border-bottom: 2px solid var(--aw-yellow);
}
.aw-hero__site-host .aw-icon { width: 18px; height: 18px; transition: transform 0.2s ease; }
.aw-single .aw-hero__site:hover .aw-icon { transform: translate(2px, -2px); }

/* --- Web Sitesi / QR Menü blokları: bilgi + tarayıcı/telefon mockup'ı --- */
.aw-web {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
  padding: 64px;
  border-radius: 20px;
  background: #f3f3f1;
}
.aw-web__domain {
  margin: 0;
  font-size: min(40px, calc(720px / var(--len, 12)));
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.aw-web__text { margin-top: 16px; color: #333; }
.aw-single .aw-web__btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.aw-web__btn-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--aw-yellow);
  color: #000;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.aw-web__btn-icon .aw-icon { width: 18px; height: 18px; transition: transform 0.2s ease; }
.aw-single .aw-web__btn:hover,
.aw-single .aw-web__btn:focus-visible { background: var(--aw-yellow); color: #000; }
.aw-single .aw-web__btn:hover .aw-web__btn-icon,
.aw-single .aw-web__btn:focus-visible .aw-web__btn-icon { background: #000; color: var(--aw-yellow); }
.aw-single .aw-web__btn:hover .aw-icon { transform: translate(2px, -2px); }
.aw-single .aw-web__btn:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

.aw-web__stage { position: relative; display: block; color: inherit; text-decoration: none; }
.has-mobile .aw-web__stage { padding: 0 9% 7% 0; }
.aw-browser {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 30px 60px -24px rgba(0, 0, 0, 0.3);
}
.aw-browser__bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid #ececec;
  background: #fafafa;
}
.aw-browser__dots { display: flex; gap: 6px; }
.aw-browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.aw-browser__dots i:nth-child(2) { background: #febc2e; }
.aw-browser__dots i:nth-child(3) { background: #28c840; }
.aw-browser__url {
  position: absolute;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 56%;
  padding: 0 14px;
  border-radius: 6px;
  background: #efefef;
  color: #555;
  font-size: 12px;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateX(-50%);
}
.aw-browser__url svg { flex: none; width: 11px; height: 11px; }
.aw-browser__screen { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.aw-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 25%;
  padding: 6px;
  border-radius: 30px;
  background: #111;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.45);
}
.aw-phone__screen { display: block; aspect-ratio: 390 / 844; overflow: hidden; border-radius: 24px; background: #fff; }

/* Tam sayfa görüntü kutunun üstünden başlar, üzerine gelince sayfa sonuna kayar (dönüşü hızlı). */
.aw-single .aw-web__shot {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  object-fit: cover;
  object-position: 50% 0;
  transition: object-position 1.2s ease;
}
.aw-web__stage:hover .aw-web__shot { object-position: 50% 100%; transition-duration: var(--dur, 6s); transition-timing-function: linear; }
/* QR Menü: telefon sahnenin ortasında. Sahne yüksekliği, yanındaki Web Sitesi mockup'ıyla
   (%91 genişlikte 16:10 ekran + 36 px adres çubuğu + %7 alt pay) aynı olacak şekilde ayarlı. */
.aw-qr__stage { position: relative; }
.aw-qr__stage::before { content: ''; display: block; padding-top: calc(63.9% + 36px); }
/* Web Sitesi olmadan tek başına: kart fazla yer kaplamasın diye sahne daha alçak. */
.aw-web--qr:not(.is-compact) { padding-block: 48px; }
.aw-web--qr:not(.is-compact) .aw-qr__stage::before { padding-top: 52%; }
.aw-web--qr .aw-phone {
  position: absolute;
  top: 0;
  right: auto;
  bottom: 0;
  left: 50%;
  width: auto;
  height: 100%;
  aspect-ratio: 402 / 856;
  transform: translateX(-50%);
}
.aw-web--qr .aw-phone__screen { height: 100%; aspect-ratio: auto; }

/* Web Sitesi + QR Menü art arda ise yan yana iki kart: mockup üstte, bilgi altta, butonlar aynı hizada. */
.aw-block-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--aw-gap); }
.aw-block-pair > .aw-block { display: flex; flex-direction: column; min-width: 0; }
.aw-web.is-compact {
  flex: 1;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: stretch;
  gap: 36px;
  padding: 40px;
}
.aw-web.is-compact .aw-web__stage { order: -1; }
.aw-web.is-compact .aw-web__info { display: flex; flex-direction: column; align-items: flex-start; }
.aw-web.is-compact .aw-web__domain { font-size: min(30px, calc(600px / var(--len, 12))); }
.aw-web.is-compact .aw-web__text { margin-bottom: 28px; }
.aw-single .aw-web.is-compact .aw-web__btn { margin-top: auto; }

@media (prefers-reduced-motion: reduce) {
  .aw-single .aw-web__shot { transition: none; }
}

/* --- Neler Yapıyoruz ------------------------------------------------- */
.aw-services { padding-bottom: 20px; }
.aw-services__body { display: grid; gap: 30px; margin-top: 50px; }
.aw-services__body.has-video { grid-template-columns: minmax(0, 715fr) minmax(0, 565fr); align-items: start; }
.aw-services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.has-video .aw-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aw-service {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 30px 20px;
  border: 1px solid var(--aw-line);
  border-radius: 16px;
  background: #fff;
}
.aw-service__icon { flex: 0 0 48px; width: 48px; height: 48px; color: var(--aw-ink); }
.aw-service__icon img,
.aw-service__icon svg { display: block; width: 48px; height: 48px; object-fit: contain; }
.aw-service__title {
  margin: 0 0 15px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -1px;
}
.aw-service__desc { margin: 0; font-size: 14px; line-height: 16px; }
.aw-services__video .aw-media { aspect-ratio: 9 / 16; object-fit: cover; background: #000; }

/* --- Tablet ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .aw-single { --aw-block-gap: 80px; }
  .aw-hero { grid-template-columns: minmax(0, 1fr); }
  .aw-hero__text { padding-top: 20px; }
  .aw-gallery__masonry { columns: 2; }
  .aw-vcar { --per: 3; }
  .aw-vcar--yatay { --per: 1.15; }
  .aw-vcar--kare { --per: 2.2; }
  .aw-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .has-video .aw-services__grid { grid-template-columns: minmax(0, 1fr); }
  .aw-web { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 40px; }
  .aw-web__domain { font-size: min(40px, calc(1200px / var(--len, 12))); }
}
@media (max-width: 900px) {
  .aw-block-pair { grid-template-columns: minmax(0, 1fr); gap: var(--aw-block-gap); }
}

/* --- Mobil ------------------------------------------------------------- */
@media (max-width: 767px) {
  .aw-single { --aw-block-gap: 64px; }
  .aw-hero { padding-bottom: 20px; }
  .aw-hero__title { font-size: 48px; letter-spacing: -3px; }
  .aw-hero__meta { flex-direction: column; gap: 20px; }
  .aw-hero__meta .aw-hero__meta-item { flex: none; }
  .aw-split { grid-template-columns: minmax(0, 1fr); }
  .aw-split__body { padding-top: 0; }
  .aw-eyebrow { font-size: 14px; line-height: 14px; }
  .aw-h2 { font-size: 32px; letter-spacing: -1px; }
  .aw-block__text { margin-top: 32px; }

  .aw-gallery__row { flex-wrap: wrap; }
  .aw-gallery__row > .aw-gallery__item { flex: 1 1 100%; }
  .aw-gallery__row--4 > .aw-gallery__item { flex: 1 1 calc(50% - var(--aw-gap) / 2); }
  .aw-gallery__fill { display: none; }
  .aw-gallery__bento { grid-template-columns: minmax(0, 1fr) !important; }
  .aw-gallery__bento.is-reverse .aw-gallery__tall { order: 0; }
  .aw-gallery__stack .aw-gallery__item { flex: none; }
  .aw-gallery__stack .aw-media { position: static; height: auto; }
  .aw-gallery__masonry { columns: 1; }

  .aw-vcar { --per: 1.25; }
  .aw-vcar--yatay { --per: 1.08; }
  .aw-vcar--kare { --per: 1.2; }

  .aw-services__body.has-video { grid-template-columns: minmax(0, 1fr); }
  .aw-services__grid,
  .has-video .aw-services__grid { grid-template-columns: minmax(0, 1fr); }

  .aw-web { gap: 32px; padding: 28px 16px 20px; border-radius: 16px; }
  .aw-web__domain { font-size: min(30px, calc(560px / var(--len, 12))); }
  .aw-single .aw-web__btn { margin-top: 24px; }
  .aw-browser { border-radius: 8px; }
  .aw-browser__bar { height: 26px; padding: 0 10px; }
  .aw-browser__dots { gap: 4px; }
  .aw-browser__dots i { width: 7px; height: 7px; }
  .aw-browser__url { font-size: 10px; line-height: 16px; padding: 0 8px; }
  .aw-phone { width: 28%; padding: 4px; border-radius: 18px; }
  .aw-qr__stage::before,
  .aw-web--qr:not(.is-compact) .aw-qr__stage::before { padding-top: 110%; }
  .aw-web.is-compact { gap: 28px; padding: 28px 16px 20px; }
  .aw-phone__screen { border-radius: 14px; }
}
