/* Kuaför Ali Durmuş — iki dilin ortak görsel sistemi.
   Renkler dükkan fotoğraflarından: cephe, tezgah, sıva, raf ahşabı, deri koltuk. */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --cephe: #2f3133;
  --tezgah: #fafaf8;
  --siva: #ddd8d0;
  --ceviz: #8a6440;
  --konyak: #7a3e22;
  --levha: #ffffff;
  --soluk: #5b5751;
  --cizgi: #d6d0c6;

  --kenar: clamp(16px, 5vw, 40px);
  --icerik: 1080px;
  --govde: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--tezgah);
  color: var(--cephe);
  font-family: var(--govde);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, blockquote, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--konyak); outline-offset: 3px; }

.kap { max-width: var(--icerik); margin-inline: auto; padding-inline: var(--kenar); }

.gizli {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Üst başlık ─────────────────────────────── */
.ust {
  position: sticky; top: 0; z-index: 20;
  background: var(--tezgah);
  border-bottom: 1px solid var(--cizgi);
}
.ust .kap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.ust .kap { gap: 1rem; }
.ust-logo { display: block; flex: none; padding-block: 6px; }
.ust-logo img { width: 56px; height: 53px; }
.dil { flex: none; }

/* Logo ile dil seçici arasında kayan kısa bilgiler. Üzerine gelince durur; hareket azaltma tercihinde hiç kaymaz. */
.akis {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.akis-serit { display: flex; width: max-content; animation: akis 42s linear infinite; }
.akis ul { display: flex; flex: none; }
.akis li {
  display: flex; align-items: center; white-space: nowrap;
  padding-right: 2.25rem; font-size: .875rem; font-weight: 500;
}
.akis li::before { content: ""; flex: none; width: 14px; height: 2px; margin-right: .7rem; background: var(--ceviz); }
.akis:hover .akis-serit, .akis:focus-within .akis-serit { animation-play-state: paused; }
@keyframes akis { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .akis-serit { animation: none; }
}

.dil { display: flex; border: 1px solid var(--cephe); border-radius: 2px; }
.dil a {
  display: grid; place-items: center;
  min-width: 34px; min-height: 28px; padding-inline: 7px;
  font-weight: 500; font-size: .75rem; letter-spacing: .06em; text-decoration: none;
}
.dil a[aria-current="page"] { background: var(--cephe); color: var(--tezgah); }
.dil a:not([aria-current]):hover { background: var(--siva); }

/* ── Giriş ──────────────────────────────────── */
.giris-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; }

/* İmza unsur: cephedeki tabelanın yorumu */
.tabela {
  background: var(--cephe); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: .7em;
  padding: .8em var(--kenar);
  font-size: clamp(1.05rem, 5.1vw, 2.1rem); font-weight: 600;
  line-height: 1; letter-spacing: .04em; text-transform: uppercase;
  text-align: center; white-space: nowrap;
}
.tabela::before, .tabela::after {
  content: ""; flex: 0 0 1em; height: .2em;
  background: #fff; border-radius: 1px;
}

.giris-metin { padding: 2.25rem var(--kenar) 2.5rem; }
.soz { font-size: clamp(2.6rem, 12vw, 4.6rem); font-weight: 500; line-height: 1.02; letter-spacing: -.02em; }
.soz-sahibi { margin-top: .6rem; font-size: 1rem; font-weight: 500; color: var(--soluk); }
.giris-alt { margin-top: 1.5rem; font-size: 1.25rem; line-height: 1.4; max-width: 30ch; }

.puan {
  display: inline-flex; align-items: baseline; gap: .4em; margin-top: 1rem;
  font-size: 1rem; text-decoration-color: var(--ceviz); text-underline-offset: .25em;
  min-height: 44px; align-items: center;
}
.puan .yildiz { color: var(--konyak); }

.dugmeler { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.25rem; }
.dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.4em;
  border: 1.5px solid var(--cephe); border-radius: 2px;
  font-size: 1.0625rem; font-weight: 500; text-decoration: none;
  background: transparent; color: var(--cephe);
}
.dugme:hover { background: var(--cephe); color: var(--tezgah); }
.dugme svg { width: 20px; height: 20px; flex: none; }
.dugme-randevu { background: var(--konyak); border-color: var(--konyak); color: #fff; }
.dugme-randevu:hover { background: #5f2f19; border-color: #5f2f19; color: #fff; }
.dugme-dolu { background: var(--cephe); color: #fff; }

/* Girişte üç düğme: mobilde randevu tam genişlik, Ara ve Instagram altta yan yana. */
.giris .dugmeler { display: grid; grid-template-columns: 1fr 1fr; }
.giris .dugme-randevu { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .giris .dugmeler { display: flex; }
}

/* ── Bölümler ───────────────────────────────── */
.bolum { padding-block: clamp(3.5rem, 9vw, 6rem); }
.bolum + .bolum { border-top: 1px solid var(--cizgi); }
/* Ekran dışındaki bölümler ekrana yaklaşana kadar çizilmez; içlerindeki lazy görseller de o zaman iner. */
.bolum { content-visibility: auto; contain-intrinsic-size: auto 1100px; }
.bolum h2 { font-size: clamp(1.9rem, 6.5vw, 2.6rem); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; margin-bottom: 1.5rem; }
.bolum h3 { font-size: 1.3rem; font-weight: 500; line-height: 1.25; margin-bottom: .9rem; }
.metin { max-width: 62ch; }
.metin p + p { margin-top: 1em; }
.not { color: var(--soluk); font-size: .9375rem; }

/* Ali Bey */
.alibey { display: grid; gap: 1.75rem; }
.alibey-portre { width: min(220px, 60%); }
.alibey-portre img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 72% 12%; width: 100%; }
.alibey .metin { font-size: 1.1875rem; line-height: 1.6; }
.imza { margin-top: 1.1rem; font-weight: 500; }
.egitim {
  margin-top: 1.75rem; padding-left: 14px; border-left: 2px solid var(--ceviz);
  font-size: .9375rem; color: var(--soluk);
}

/* Hizmetler: kapıdaki emaye levhalar */
.hizmetler { background: var(--siva); }
.bolum.hizmetler + .bolum { border-top: 0; }
.levhalar { display: grid; gap: 14px; }
.levha {
  position: relative; background: var(--levha); padding: 7px;
  border-radius: 3px; box-shadow: 0 1px 0 #c8c1b5;
}
.levha-ic { border: 1.5px solid #1b1b1b; padding: 1.35rem 1.25rem 1.4rem; height: 100%; text-align: center; }
.levha h3 { font-weight: 600; margin-bottom: .7rem; }
.levha li { padding-block: .2rem; }
.levha::before, .levha::after {
  content: ""; position: absolute; top: 3px; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f3f3f1, #9a9892);
}
.levha::before { left: 3px; }
.levha::after { right: 3px; }

.levha-koyu { background: var(--cephe); color: #fff; margin-top: 14px; box-shadow: none; }
.levha-koyu .levha-ic { border-color: rgba(255, 255, 255, .85); text-align: left; padding: 1.6rem 1.35rem 1.5rem; }
.levha-koyu::before, .levha-koyu::after { background: radial-gradient(circle at 35% 35%, #d9d9d6, #6d6c69); }
.levha-koyu h3 { font-size: 1.5rem; }
.levha-koyu p { max-width: 52ch; }
.levha-koyu .dugme { margin-top: 1.1rem; border-color: #fff; color: #fff; }
.levha-koyu .dugme:hover { background: #fff; color: var(--cephe); }
.hizmetler .not { margin-top: 1.25rem; color: #4a4740; }
.hizmetler .not a { font-weight: 500; }

/* Fotoğraf şeritleri: mobilde doğal kaydırma, masaüstünde oran koruyan sütunlar */
.serit-baslik { margin-top: 2.5rem; }
.serit {
  display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--kenar);
  margin-inline: calc(var(--kenar) * -1); padding: 2px var(--kenar) 14px;
  scrollbar-width: thin; scrollbar-color: var(--ceviz) transparent;
}
/* Satır sarmalayıcıları mobilde yok sayılır; kareler doğrudan şeridin öğesi olur. */
.serit-satir { display: contents; }
.serit figure { flex: none; scroll-snap-align: start; }
.serit img { height: clamp(260px, 72vw, 340px); width: auto; background: var(--siva); }
.serit-kucuk img { height: clamp(220px, 60vw, 280px); }

.ekip { margin-top: 2.75rem; font-size: 1.1875rem; max-width: 46ch; }
.ekip b { font-weight: 500; }

/* Yorumlar */
.yorumlar { display: grid; gap: 2rem; }
.yorum { border-left: 2px solid var(--ceviz); padding-left: 1.1rem; }
.yorum p { font-size: 1.1875rem; line-height: 1.5; }
.yorum figcaption { margin-top: .6rem; font-size: .9375rem; color: var(--soluk); }
.yorum figcaption b { color: var(--cephe); font-weight: 500; }
.yorum-google { display: flex; align-items: center; gap: 1.1rem; margin-top: 2.5rem; }
.yorum-google figure { flex: none; width: 104px; }
.yorum-google a { font-weight: 500; font-size: 1.125rem; text-underline-offset: .25em; text-decoration-color: var(--ceviz); }

/* Saatler */
.saatler { border-collapse: separate; border-spacing: 0; width: 100%; max-width: 440px; font-variant-numeric: tabular-nums; }
.saatler th, .saatler td { padding: .7rem .9rem; border-bottom: 1px solid var(--cizgi); font-size: 1.0625rem; }
.saatler th { text-align: left; font-weight: 400; }
.saatler td { text-align: right; }
.saatler tr.bugun > * { background: var(--cephe); color: #fff; }
/* Hücreler arasındaki alt piksel boşluğunu kapatır. */
.saatler tr.bugun th { box-shadow: 1px 0 0 var(--cephe); }
.saatler tr.bugun th { font-weight: 500; }
.pazar-notu { margin-top: 1rem; font-weight: 500; }

/* Saatler + kedi, Adres + harita */
.kedi { margin: 2.5rem calc(var(--kenar) * -1) 0; }
.kedi img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 70%; }
.kedi figcaption { padding: .6rem var(--kenar) 0; font-size: .9375rem; color: var(--soluk); }
.harita-blok { margin-top: 2.5rem; }
.harita { display: block; color: inherit; text-decoration: none; }
.harita svg { display: block; width: 100%; height: auto; border: 1px solid var(--cizgi); }
.harita:hover svg { border-color: var(--ceviz); }
.harita .h-yol { font-family: var(--govde); font-size: 13px; fill: #6b665e; paint-order: stroke; stroke: #fbfaf7; stroke-width: 4px; }
.harita .h-yer { font-family: var(--govde); font-size: 14px; font-weight: 500; fill: #5b5751; paint-order: stroke; stroke: #ebe7e0; stroke-width: 4px; }
.harita .h-dukkan text { font-family: var(--govde); font-size: 15px; font-weight: 600; }
.harita-alt {
  display: inline-block; margin-top: .7rem; font-weight: 500; font-size: 1.0625rem;
  text-decoration: underline; text-decoration-color: var(--ceviz); text-underline-offset: .25em;
}
.harita-kaynak { margin-top: .3rem; font-size: .8125rem; color: var(--soluk); }
.adres-blok address { font-style: normal; font-size: 1.25rem; line-height: 1.45; }
.adres-blok .tarif { margin-top: .5rem; color: var(--soluk); }
.adres-blok .tel { display: inline-block; margin-top: .9rem; font-size: 1.125rem; font-weight: 500; padding-block: .5rem; }

/* Alt bilgi */
.alt { background: var(--cephe); color: #e9e7e3; padding-block: 3rem 2rem; font-size: .9375rem; }
.alt-logo { width: 104px; height: 98px; margin-bottom: 1.5rem; }
.alt address { font-style: normal; line-height: 1.7; }
.alt a { color: #fff; }
.alt-baglantilar { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-top: 1rem; }
.alt-baglantilar a { display: inline-block; padding-block: .6rem; }
.imza-site { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .8125rem; color: #bdbab4; }

/* Mobil sabit alt çubuk */
.cubuk {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: flex; gap: 8px;
  padding: 10px var(--kenar) calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 250, 248, .97); border-top: 1px solid var(--cizgi);
}
.cubuk .dugme { flex: 1; min-height: 50px; padding-inline: .8em; }
/* JavaScript varsa: çubuk, girişteki düğmeler ekranda göründüğü sürece gizlenir (aynı düğmeler üst üste gelmesin).
   Gizliyken visibility ile odak dışı kalır; JavaScript yoksa çubuk hep görünür. */
.js .cubuk { transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.js .cubuk.gorunur { transform: none; visibility: visible; transition: transform .25s ease; }
@media (prefers-reduced-motion: reduce) {
  .js .cubuk, .js .cubuk.gorunur { transition: none; }
}

/* ── Masaüstü ───────────────────────────────── */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .cubuk { display: none; }
  .ust .kap { min-height: 76px; }
  .ust-logo img { width: 66px; height: 62px; }

  .giris { max-width: var(--icerik); margin-inline: auto; padding: 2.5rem var(--kenar) 0; display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: center; }
  .giris-foto img { aspect-ratio: 3 / 4; max-height: 760px; object-position: 50% 55%; }
  .giris-sag { align-self: center; }
  .tabela { font-size: 1.85rem; padding-block: .8em; }
  .giris-metin { padding: 2.5rem 0 0; }

  .alibey { grid-template-columns: 240px 1fr; gap: 3.5rem; align-items: start; }
  .alibey-portre { width: 240px; }

  .levhalar { grid-template-columns: 1.25fr 1fr 1fr; }
  .levha-koyu .levha-ic { display: grid; grid-template-columns: 1fr auto; gap: .5rem 2rem; align-items: end; padding: 1.9rem 2rem; }
  .levha-koyu .dugme { margin-top: 0; grid-column: 2; grid-row: 1 / span 2; }

  /* Satır içindeki her kare, en-boy oranı kadar pay alır: satırdaki tüm kareler aynı yüksekliğe gelir. */
  .serit { display: grid; gap: 14px; overflow: visible; margin-inline: 0; padding: 0; }
  .serit-satir { display: flex; gap: 14px; }
  .serit-satir figure { flex: var(--oran) 1 0; min-width: 0; }
  .serit img, .serit-kucuk img { height: auto; width: 100%; }

  .yorumlar { grid-template-columns: 1fr 1fr; gap: 2.5rem 3.5rem; align-items: start; }

  /* Saatlerin yanında kedi, adresin yanında harita: sağ taraf boş kalmaz. */
  .saat-yer, .adres-yer { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
  .adres-yer { grid-template-columns: 1fr 1.4fr; }
  .kedi { margin: 0; }
  .kedi img { max-height: 620px; }
  .kedi figcaption { padding-inline: 0; }
  .harita-blok { margin-top: 0; }

  /* Alt bilgi ortada */
  .alt .kap { text-align: center; }
  .alt-logo { margin-inline: auto; }
  .alt-baglantilar { justify-content: center; }
}
