/* Çiro Börek — link & şube sayfaları */
:root {
  --bg: #121110;
  --bg-2: #1b1917;
  --card: #201e1b;
  --card-hi: #2a2723;
  --line: rgba(255, 255, 255, .09);
  --ink: #fbf7f0;
  --muted: #b9b0a4;
  --yellow: #ffd21f;
  --yellow-ink: #1a1400;
  --orange: #f0772a;
  --red: #d8341f;
  --radius: 18px;
  --wrap: 520px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* Logodaki Kolezyum gün batımından gelen sıcak ışık */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -20vw auto;
  height: 70vh;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(240, 119, 42, .32), transparent 70%),
    radial-gradient(40% 45% at 30% 30%, rgba(216, 52, 31, .22), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--yellow); color: var(--yellow-ink); padding: 10px 14px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 12px; }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Hub (link sayfası) ---------- */
.hub { padding: 44px 0 40px; }
.profile { text-align: center; margin-bottom: 28px; }
.logo {
  width: 136px; height: 136px; margin: 0 auto 18px;
  border-radius: 50%;
  filter: drop-shadow(0 16px 34px rgba(240, 119, 42, .45));
  animation: logo-in .7s var(--ease) both;
}
.profile h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.profile h1 span { color: var(--yellow); }
.profile p { margin: 8px 0 0; color: var(--muted); font-size: 15px; text-wrap: balance; }
.pill-row { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pill {
  font-size: 13px; font-weight: 500; color: var(--ink);
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
}

.group { margin-top: 26px; }
.group h2 {
  margin: 0 0 10px 4px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.link {
  display: flex; align-items: center; gap: 14px;
  min-height: 64px;
  padding: 10px 16px 10px 10px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.link:hover { transform: translateY(-2px); background: var(--card-hi); border-color: rgba(255, 210, 31, .35); box-shadow: 0 10px 30px -14px rgba(0,0,0,.8); }
.link:active { transform: translateY(0) scale(.985); }
.link .ico {
  flex: none; width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(255, 210, 31, .12); color: var(--yellow);
}
.link .ico svg { width: 22px; height: 22px; }
.link .txt { flex: 1; min-width: 0; }
.link strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.25; }
.link small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link .chev { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform .25s var(--ease), color .25s; }
.link:hover .chev { transform: translateX(3px); color: var(--yellow); }

.link.primary { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }
.link.primary .ico { background: rgba(0,0,0,.1); color: var(--yellow-ink); }
.link.primary small, .link.primary .chev { color: rgba(26, 20, 0, .7); }
.link.primary:hover { background: #ffdb4d; border-color: #ffdb4d; }
.link.primary:hover .chev { color: var(--yellow-ink); }

.link.franchise {
  background: linear-gradient(120deg, #2b1a10, #3a1c12 55%, #2b1a10);
  border-color: rgba(240, 119, 42, .45);
}
.link.franchise .ico { background: rgba(240, 119, 42, .2); color: #ffb37a; }

.foot {
  margin-top: 36px; text-align: center; color: var(--muted); font-size: 13px;
}
.foot a { color: var(--muted); text-underline-offset: 3px; }

/* Giriş animasyonu: kartlar sırayla bir kez gelir */
.links > li { animation: rise .55s var(--ease) both; }
.links > li:nth-child(2) { animation-delay: .05s; }
.links > li:nth-child(3) { animation-delay: .1s; }
.links > li:nth-child(4) { animation-delay: .15s; }
.links > li:nth-child(5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes logo-in { from { opacity: 0; transform: scale(.85) rotate(-8deg); } }

/* ---------- Üst bar (şube & franchise) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(18, 17, 16, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
}
.back svg { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.back:hover svg { transform: translateX(-3px); }
.topbar .mini { width: 38px; height: 38px; border-radius: 50%; }

/* ---------- Şube sayfası ---------- */
.branch { padding: 18px 0 48px; }
.gallery {
  display: flex; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 0 16px 4px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure {
  margin: 0; flex: 0 0 100%; scroll-snap-align: center;
  aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--card);
}
.gallery.multi figure { flex-basis: 88%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.025); }
.gallery .cover {
  display: grid; place-items: center;
  background:
    radial-gradient(70% 80% at 50% 35%, #f28a2e 0%, #d8401f 45%, #5a160c 80%, #2a0d07 100%);
}
.gallery .cover img { width: 46%; height: auto; border-radius: 50%; box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.25); transition: background .2s, width .2s; }
.dots span.on { background: var(--yellow); width: 18px; border-radius: 3px; }

.b-head { margin-top: 22px; }
.eyebrow { color: var(--yellow); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.b-head h1 { margin: 6px 0 0; font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.addr {
  display: flex; gap: 10px; margin: 14px 0 0; color: var(--muted); font-size: 15px; font-style: normal;
}
.addr svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--orange); }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 18px; border-radius: 16px;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-yellow { background: var(--yellow); color: var(--yellow-ink); box-shadow: 0 10px 26px -12px rgba(255, 210, 31, .7); }
.btn-yellow:hover { background: #ffdb4d; }
.btn-light { background: var(--ink); color: #161412; }
.btn-light:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: rgba(255, 210, 31, .45); }
.btn-wide { grid-column: 1 / -1; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.map {
  margin-top: 22px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 16 / 11; background: var(--card);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.9); }

.others { margin-top: 34px; }

/* ---------- Franchise ---------- */
.fr { padding: 26px 0 48px; }
.fr h1 { margin: 6px 0 0; font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.fr .lead { color: var(--muted); margin: 12px 0 0; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px; }
.facts b { display: block; font-size: 24px; font-weight: 800; color: var(--yellow); line-height: 1.1; }
.facts span { font-size: 13px; color: var(--muted); }
form.apply { margin-top: 26px; display: grid; gap: 14px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 14px; min-height: 52px;
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); background: var(--card-hi); }
.field .err { display: none; color: #ff8a73; font-size: 13px; margin-top: 6px; }
.field.bad .err { display: block; }
.field.bad input, .field.bad select { border-color: #ff8a73; }
.note { font-size: 13px; color: var(--muted); margin: 0; }

@media (min-width: 720px) {
  .hub { padding-top: 64px; }
  .logo { width: 156px; height: 156px; }
  .profile h1, .b-head h1, .fr h1 { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Bakım modu (kök adres) ---------- */
.maint { min-height: 100dvh; display: grid; place-items: center; padding: 40px 0; text-align: center; }
.maint-logo {
  width: min(240px, 62vw); height: auto; margin: 0 auto 22px;
  filter: drop-shadow(0 20px 44px rgba(240, 119, 42, .5));
  animation: logo-in .8s var(--ease) both, float 5s ease-in-out .8s infinite;
}
.maint h1 { margin: 8px 0 0; font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.maint .lead { color: var(--muted); margin: 12px auto 0; max-width: 400px; text-wrap: balance; }
.maint-actions { display: grid; gap: 10px; margin: 26px auto 0; max-width: 360px; }
.bar { width: 120px; height: 4px; margin: 30px auto 0; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar span { display: block; width: 40%; height: 100%; border-radius: 4px; background: var(--yellow); animation: slide 1.8s ease-in-out infinite; }
.maint .foot { margin-top: 26px; }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (min-width: 720px) { .maint h1 { font-size: 42px; } }
@media (prefers-reduced-motion: reduce) { .bar { display: none; } }
.addr + .addr { margin-top: 8px; }
.addr a { color: var(--ink); text-decoration: none; font-weight: 500; }
.addr a:hover { color: var(--yellow); }
.foot { line-height: 1.9; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.profile { margin-bottom: 8px; }
.profile .logo { margin-bottom: 0; }
