/* =========================================================================
   sille.tr — Temel katman: reset, tipografi, düzen, başlık, altbilgi
   ========================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* sticky header payı */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-fg);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Sayfa geneli ince kağıt dokusu — Sille taşının granülasyonunu anıştırır */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--c-bg-alt); }

/* Sayfa Türkçe kaynak metinle gelir. Ziyaretçi İngilizce istiyorsa sözlük
   uygulanana dek gövdeyi gizle — yanlış dilde yanıp sönme olmasın.
   JS yoksa bu sınıf hiç eklenmez, içerik her hâlükârda görünür. */
html.i18n-pending body { opacity: 0; }
body { transition: opacity 180ms var(--e-out); }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-lg); line-height: var(--lh-snug); }

p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-primary-dark); }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
li + li { margin-top: var(--sp-2); }

strong { font-weight: 650; }

hr {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin: var(--sp-7) 0;
}

::selection { background: var(--c-primary-wash); color: var(--c-primary-dark); }

/* Odak halkası — asla kaldırma, yalnız fare tıklamasında gizle */
:focus-visible {
  outline: 3px solid var(--c-ring);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* --- Yardımcılar --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 62rem; }
.container--prose  { max-width: var(--maxw-prose); }

.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--c-bg-alt); }
.section--deep { background: var(--c-bg-deep); color: var(--c-fg-inverse); }
.section--deep h2, .section--deep h3 { color: var(--c-fg-inverse); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100%;
  z-index: var(--z-toast);
  background: var(--c-primary);
  color: #fff;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--d-base) var(--e-out);
}
.skip-link:focus { top: var(--sp-4); color: #fff; }

/* --- Bölüm başlıkları ---------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.section--deep .eyebrow { color: var(--c-primary-soft); }

.section-head { max-width: 46rem; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head p {
  font-size: var(--fs-md);
  color: var(--c-fg-muted);
  margin-top: var(--sp-4);
  line-height: var(--lh-loose);
}
.section--deep .section-head p { color: #CFC3B4; }

.lead {
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
  color: var(--c-fg-muted);
}

/* --- Üst bilgi ----------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  transition: background var(--d-base) var(--e-out),
              box-shadow var(--d-base) var(--e-out),
              border-color var(--d-base) var(--e-out);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: 4.5rem;
}
.site-header.is-stuck {
  background: var(--c-glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--c-border);
  box-shadow: 0 1px 20px rgba(70, 54, 38, .06);
}

/* Hero üstündeyken beyaz metin */
.site-header:not(.is-stuck) .brand__name,
.site-header:not(.is-stuck) .nav__link,
.site-header:not(.is-stuck) .lang-switch__btn,
.site-header:not(.is-stuck) .nav-toggle { color: var(--c-fg-inverse); }
.site-header:not(.is-stuck) .brand__mark { border-color: rgba(255,255,255,.5); color: #fff; }
.site-header:not(.is-stuck) .lang-switch { border-color: rgba(255,255,255,.35); }
.site-header:not(.is-stuck) .lang-switch__btn[aria-pressed="true"] { background: rgba(255,255,255,.22); }
.page--plain .site-header { position: sticky; background: var(--c-glass); border-bottom-color: var(--c-border); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--c-fg);
  margin-right: auto;
}
.brand__mark {
  width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center;
  border: 1.5px solid var(--c-primary);
  border-radius: var(--r-sm);
  color: var(--c-primary);
  transition: transform var(--d-base) var(--e-soft), border-color var(--d-base);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__mark svg { width: 1.25rem; height: 1.25rem; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--ff-display);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: var(--ls-snug);
}
.brand__tag {
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-fg-muted);
}
.site-header:not(.is-stuck) .brand__tag { color: rgba(247,242,234,.75); }

.nav { display: flex; align-items: center; gap: var(--sp-1); }
.nav__link {
  position: relative;
  display: inline-block;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-fg);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color var(--d-fast) var(--e-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: var(--sp-3); right: var(--sp-3);
  bottom: 0.35rem;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-base) var(--e-out);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--c-primary); font-weight: 600; }
.site-header:not(.is-stuck) .nav__link[aria-current="page"] { color: #fff; }

.header__actions { display: flex; align-items: center; gap: var(--sp-3); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-full);
  padding: 2px;
  background: transparent;
}
.lang-switch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--c-fg-muted);
  font: inherit;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  padding: 0.375rem 0.7rem;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--d-fast) var(--e-out), color var(--d-fast) var(--e-out);
}
.lang-switch__btn[aria-pressed="true"] {
  background: var(--c-primary);
  color: #fff;
}
.lang-switch__btn:hover:not([aria-pressed="true"]) { color: var(--c-fg); }

.nav-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--c-fg);
  padding: var(--sp-2);
  min-width: 44px; min-height: 44px;
  cursor: pointer;
  border-radius: var(--r-sm);
}
.nav-toggle svg { width: 1.5rem; height: 1.5rem; margin-inline: auto; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

/* Okuma ilerleme çubuğu */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent-fill));
  z-index: var(--z-toast);
  pointer-events: none;
}

/* --- Mobil menü ---------------------------------------------------------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; order: 3; }
  .nav {
    position: fixed;
    inset: 4.5rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--sh-lg);
    padding: var(--sp-3) var(--gutter) var(--sp-5);
    z-index: var(--z-drawer);
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transition: clip-path var(--d-slow) var(--e-soft), opacity var(--d-base) var(--e-out);
  }
  .nav.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav__link {
    color: var(--c-fg) !important;
    padding: var(--sp-4) var(--sp-2);
    font-size: var(--fs-md);
    border-bottom: 1px solid var(--c-border);
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--c-primary) !important; }
  .brand__tag { display: none; }
}

/* --- Alt bilgi ----------------------------------------------------------- */
.site-footer {
  background: var(--c-bg-deep);
  color: #CFC3B4;
  padding-block: var(--sp-8) var(--sp-5);
  position: relative;
  z-index: 2;
}
.site-footer a { color: #E6D9C6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sp-7) var(--sp-5);
}
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand .brand__name { color: #fff; font-size: 1.5rem; }
.footer__brand p {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
  max-width: 30ch;
}
.footer__title {
  font-family: var(--ff-body);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: #A8907A;
  margin-bottom: var(--sp-4);
}
.footer__list { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); }
.footer__list li + li { margin-top: var(--sp-3); }

.footer__bottom {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: #9A8874;
}
.footer__socials { display: flex; gap: var(--sp-2); }
.footer__socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-full);
  transition: background var(--d-fast), transform var(--d-fast) var(--e-soft);
}
.footer__socials a:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.footer__socials svg { width: 1.125rem; height: 1.125rem; }
