/* =========================================================
   St.Art Mimarlık — ortak sayfa yerleşimi (iç sayfalar)
   Header · mobil menü · footer · temel tipografi
   Not: Ana sayfa (index.html) kendi stil dosyasını kullanır.
   ========================================================= */
:root {
  --yellow: #fcc10a;
  --yellow-d: #e3ab00;
  --yellow-soft: #ffe58f;
  --yellow-wash: #fff8dc;
  --anth: #353535;
  --ink: #171718;
  --grey: #86868b;
  --grey-2: #55555a;
  --paper: #f9f7f1;
  --line: #e6e1d4;
  --radius: 24px;
  --font-title: "Outfit", "Montserrat", system-ui, sans-serif;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --wrap: 1200px;
  --ease: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; margin: 0; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--yellow-d); outline-offset: 3px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 .92rem var(--font-body); letter-spacing: -.005em; text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .2s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { transition: transform .3s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #ffcd2e; }

/* =========================================================
   HEADER
   ========================================================= */
.hdr {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.hdr__in {
  width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto;
  height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  transition: height .35s var(--ease);
}
.hdr.is-scrolled {
  background: rgba(249,247,241,.86);
  border: 0;
  backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px);
  box-shadow: 0 4px 18px rgba(17,17,17,.07);
}
.hdr.is-scrolled .hdr__in { height: 84px; }
.hdr__logo { justify-self: start; display: block; position: relative; }
.hdr__logo img { transition: height .35s var(--ease), opacity .35s ease; }
.hdr__logo .logo-mono { position: absolute; left: 0; top: 50%; translate: 0 -50%; opacity: 0; }
/* sarı hero üzerindeyken logonun tek renkli hali (sarı kısımlar zeminde kaybolmasın) */
@media (min-width: 901px) {
  .on-yellow .hdr .logo-color { opacity: 0; }
  .on-yellow .hdr .logo-mono { opacity: 1; }
}
.hdr__logo img { height: 40px; width: auto; }
.hdr.is-scrolled .hdr__logo img { height: 40px; }

.hdr__nav { display: flex; gap: 6px; }
.hdr__nav a {
  position: relative; padding: 10px 16px; border-radius: 999px;
  font: 600 .86rem var(--font-head); letter-spacing: .005em; text-decoration: none;
  color: rgba(29,29,31,.66); transition: color .25s ease, background .25s ease;
}
.hdr__nav a:hover { color: var(--ink); background: rgba(252,193,10,.12); }
.hdr__nav a[aria-current="page"] { color: var(--ink); }
.hdr__nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 16px; height: 2px; margin-left: -8px;
  border-radius: 2px; background: var(--yellow-d);
}
.hdr__end { justify-self: end; display: flex; align-items: center; gap: 14px; }
/* 6 menü öğesi dar masaüstünde de tek satırda kalsın */
@media (max-width: 1240px) and (min-width: 901px) {
  .hdr__in { gap: 14px; }
  .hdr__nav { gap: 0; }
  .hdr__nav a { padding: 10px 11px; }
  .hdr__end { gap: 8px; }
  .hdr__end .btn { padding: 12px 18px; }
}

/* dil seçici (sade): seçili dil koyu + altında ince çizgi */
.lang { position: relative; display: flex; }
.lang__track { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.lang__knob {
  position: absolute; left: 0; bottom: 3px; width: 50%; height: 2px;
  display: flex; justify-content: center; pointer-events: none;
  transition: transform .45s var(--ease);
}
.lang__knob::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: currentColor; }
.lang[data-active="en"] .lang__knob { transform: translateX(100%); }
.lang__track button {
  all: unset; cursor: pointer; padding: 10px 8px; text-align: center;
  font: 600 .76rem var(--font-head); letter-spacing: .08em; color: rgba(29,29,31,.4);
  transition: color .3s ease;
}
.lang__track button:hover { color: var(--ink); }
.lang__track button[aria-checked="true"] { color: var(--ink); font-weight: 700; }
.lang__track button:focus-visible { outline: 2px solid var(--yellow-d); outline-offset: -2px; border-radius: 8px; }

/* menü butonu (mobil) */
.hmenu { display: none; }

/* =========================================================
   MOBİL MENÜ
   ========================================================= */
.mnav { display: none; }

@media (max-width: 900px) {
  .hdr { top: calc(12px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; padding: 0; }
  .hdr__in {
    width: 100%; height: auto; display: flex; justify-content: space-between;
    padding: 8px 8px 8px 18px; border-radius: 999px; background: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,.08), 0 18px 40px rgba(0,0,0,.1);
  }
  .hdr.is-scrolled { background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hdr.is-scrolled .hdr__in { height: auto; }
  .hdr__logo img, .hdr.is-scrolled .hdr__logo img { height: 30px; }
  .hdr__nav, .hdr__end { display: none; }

  .hmenu {
    display: grid; place-items: center; width: 42px; height: 42px;
    border: 0; border-radius: 50%; background: #f1efe9; color: var(--ink); cursor: pointer;
    transition: background .3s ease;
  }
  .hmenu__lines { display: grid; gap: 4px; width: 16px; }
  .hmenu__lines i { display: block; height: 1.8px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease), opacity .25s ease; }
  body.menu-open .hmenu { background: var(--yellow); }
  body.menu-open .hmenu__lines i:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
  body.menu-open .hmenu__lines i:nth-child(2) { opacity: 0; transform: scaleX(.2); }
  body.menu-open .hmenu__lines i:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

  .mnav {
    display: block; position: fixed; inset: 0; z-index: 48; background: #f5f4f0;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .6s var(--ease), visibility 0s linear .6s;
    overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  }
  body.menu-open .mnav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease), visibility 0s; }
  body.menu-open { overflow: hidden; }
  .mnav__inner {
    min-height: 100%; display: flex; flex-direction: column;
    padding: calc(100px + env(safe-area-inset-top, 0px)) 28px calc(32px + env(safe-area-inset-bottom, 0px));
  }
  .mnav__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .mnav__links a {
    display: block; padding: 8px 0; text-decoration: none; color: var(--ink);
    font: 600 2rem/1.15 var(--font-title); letter-spacing: -.03em;
  }
  .mnav__links a[aria-current="page"] { color: var(--grey); }
  .mnav__foot { margin-top: auto; padding-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .mnav__links li, .mnav__foot { opacity: 0; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease; }
  body.menu-open .mnav__links li, body.menu-open .mnav__foot {
    opacity: 1; transform: none;
    transition: opacity .5s ease, transform .55s cubic-bezier(.2, .8, .2, 1);
    transition-delay: calc(.22s + var(--i, 0) * .05s);
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
.ftr { position: relative; background: #0b0b0c; color: rgba(255,255,255,.55); overflow: hidden; }
.ftr::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(620px, 80vw); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(252,193,10,.6), transparent);
}
.ftr__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding: clamp(64px, 7vw, 88px) 0 56px;
}
.ftr__brand img { height: 40px; width: auto; margin-bottom: 18px; }
.ftr__brand p { font-size: .9rem; line-height: 1.7; max-width: 30ch; }
.ftr h3 {
  font: 600 .72rem var(--font-head); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 18px;
}
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr ul a, .ftr__contact li { font-size: .92rem; color: rgba(255,255,255,.72); text-decoration: none; transition: color .25s ease; }
.ftr ul a:hover { color: #fff; }
.ftr__contact li span { display: block; margin-bottom: 2px; font: 600 .68rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.35); }
.ftr__contact { gap: 16px !important; }
.ftr__contact a { display: block; width: max-content; max-width: 100%; color: rgba(255,255,255,.72); text-decoration: none; overflow-wrap: anywhere; transition: color .25s ease; }
.ftr__contact a:hover { color: var(--yellow); }
.ftr__contact address { font-style: normal; line-height: 1.6; }
.ftr__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ftr__social a {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 999px;
  font: 600 .82rem var(--font-head); color: rgba(255,255,255,.75); text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: color .25s ease, box-shadow .25s ease, background .25s ease;
}
.ftr__social svg { box-sizing: content-box; padding: 5px; border-radius: 50%; background: rgba(255,255,255,.08); transition: background .25s ease, color .25s ease; }
.ftr__social a:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(252,193,10,.5); }
.ftr__social a:hover svg { background: var(--yellow); color: var(--ink); }

.ftr__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding: 22px 0 calc(26px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,.08);
  font: 500 .78rem var(--font-head);
}

/* imza (Digicat) */
.credit {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 12px 10px 20px; margin-right: -12px; border-radius: 999px;
  background: rgba(255,255,255,0);
  box-shadow: inset 0 0 0 1px rgba(252,193,10,0), 0 0 40px rgba(252,193,10,0);
  color: rgba(255,255,255,.55); text-decoration: none;
  transition: background .35s ease, box-shadow .35s ease, color .35s ease;
}
.credit__label { font: 600 .66rem var(--font-head); letter-spacing: .18em; text-transform: uppercase; }
.credit__sep { width: 1px; height: 16px; background: rgba(255,255,255,.14); }
.credit img { height: 22px; width: auto; opacity: .85; transition: opacity .35s ease; }
.credit__arrow {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.7);
  transition: background .35s ease, color .35s ease, transform .35s cubic-bezier(.3, 1.3, .5, 1);
}
.credit:hover { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(252,193,10,.45), 0 0 40px rgba(252,193,10,.08); color: #fff; }
.credit:hover img { opacity: 1; }
.credit:hover .credit__arrow { background: var(--yellow); color: var(--ink); transform: rotate(45deg); }

@media (max-width: 900px) {
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ftr__grid > :last-child { grid-column: 1 / -1; }
  .ftr__bar { flex-direction: column; text-align: center; }
  .credit { margin-right: 0; flex-wrap: wrap; justify-content: center; }
}

/* =========================================================
   SAYFA BAŞLIĞI (sarı zemin, yumuşak kavisle biter) · DEKOR · BÖLÜM
   ========================================================= */
.phero { position: relative; padding-top: calc(150px + env(safe-area-inset-top, 0px)); text-align: center; isolation: isolate; }
.phero::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: calc(100% - 150px);
  background: var(--yellow);
  border-radius: 0 0 50% 50% / 0 0 56px 56px;
}
.phero__kicker { font: 600 .82rem var(--font-head); letter-spacing: .02em; color: rgba(29,29,31,.6); margin-bottom: 14px; }
.phero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); color: var(--ink); }
.phero__lead { max-width: 560px; margin: 20px auto 0; font-size: clamp(1rem, 1.3vw, 1.1rem); color: rgba(29,29,31,.72); }

/* logodan türetilmiş dekor: yalnızca çember ve üçgen */
.deco { position: absolute; color: var(--ink); pointer-events: none; animation: float 7s ease-in-out infinite; }
.phero .deco--a { top: 128px; right: 23%; width: 22px; animation-delay: -2s; }
.phero .deco--b { top: 172px; right: 18%; width: 16px; }
.phero .deco--c { top: 230px; left: 19%; width: 20px; animation-delay: -4s; }
.phero .deco--d { top: 300px; right: 14%; width: 12px; animation-delay: -1s; }
@keyframes float { 50% { transform: translateY(-8px) rotate(6deg); } }

/* görsel şeridi olmayan başlık: sarı zemin içeriğin tamamını kaplar */
.phero--plain { padding-bottom: clamp(72px, 8vw, 104px); }
.phero--plain::before { height: 100%; }

.sec { padding: clamp(80px, 10vw, 140px) 0 0; }
.sec h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.sec p { color: var(--grey-2); font-size: 1rem; line-height: 1.75; }

@media (max-width: 900px) {
  .phero { padding-top: calc(118px + env(safe-area-inset-top, 0px)); }
  .phero::before { height: calc(100% - 90px); border-radius: 0 0 50% 50% / 0 0 32px 32px; }
  .phero--plain::before { height: 100%; }
  .phero--plain { padding-bottom: 64px; }
  .phero .deco--a { top: 104px; right: 10%; } .phero .deco--b { top: 140px; right: 6%; }
  .phero .deco--c { top: 190px; left: 6%; } .phero .deco--d { display: none; }
}

/* ---------- Görsel büyütme (lightbox) — ortak ---------- */
.lb {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(11,11,12,.94); color: #fff;
}
.lb[open] { display: grid; place-items: center; animation: lb-in .35s ease; }
@keyframes lb-in { from { opacity: 0; } }
.lb::backdrop { background: transparent; }
.lb img { max-width: min(1200px, 100vw - 160px); max-height: calc(100dvh - 140px); border-radius: 14px; object-fit: contain; }
.lb button {
  all: unset; position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; background: rgba(255,255,255,.1); color: #fff; transition: background .25s ease, color .25s ease;
}
.lb button:hover { background: var(--yellow); color: var(--ink); }
.lb button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.lb .lb__close { top: 24px; right: 24px; }
.lb .lb__prev { left: 24px; top: 50%; translate: 0 -50%; }
.lb .lb__next { right: 24px; top: 50%; translate: 0 -50%; }
.lb__count { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; font: 600 .8rem var(--font-head); letter-spacing: .1em; color: rgba(255,255,255,.6); }

@media (max-width: 900px) {
  .lb img { max-width: calc(100vw - 32px); }
  .lb .lb__prev, .lb .lb__next { top: auto; bottom: 18px; translate: none; }
  .lb__count { bottom: 34px; }
}

/* ---------- Kaydırınca beliren içerik ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mnav, body.menu-open .mnav { transition: none; }
  * { animation: none !important; }
}
