/* YE-YE | Ortak temel stiller: sıfırlama, tipografi, butonlar, üst menü, footer */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--color-porcelain);
  color: var(--color-authority);
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: var(--fw-black);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h4 { font-weight: var(--fw-bold); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.small { font-weight: var(--fw-regular); font-size: 0.9375rem; line-height: 1.6; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* Odak: koyu zeminlerde yeşil, açık ve ahududu zeminlerde vişne */
:focus-visible {
  outline: 3px solid var(--focus, var(--color-authority));
  outline-offset: 3px;
}
.on-dark { --focus: var(--color-growth); }

.skip-link {
  position: absolute; left: 0.75rem; top: -5rem; z-index: 100;
  background: var(--color-growth); color: var(--color-authority);
  padding: 0.75rem 1.1rem; font-weight: var(--fw-black); text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; --focus: var(--color-authority); }

/* Küçük üst başlık */
.eyebrow {
  font-size: 0.8125rem;
  font-weight: var(--fw-black);
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-wrap: balance;
}

/* Butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.85rem 1.6rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; font-weight: var(--fw-black);
  line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--growth  { background: var(--color-growth);    color: var(--color-authority); }
.btn--courage { background: var(--color-courage);   color: var(--color-authority); }
.btn--dark    { background: var(--color-authority); color: var(--color-porcelain); }
.btn--growth:hover, .btn--courage:hover { background: var(--color-porcelain); }
.btn--dark:hover { background: transparent; color: var(--color-authority); border-color: var(--color-authority); }

.link-underline {
  font-weight: var(--fw-black);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.link-underline:hover { text-decoration-color: var(--color-courage); }

/* ===== Üst menü ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-authority); color: var(--color-porcelain);
  border-bottom: 1px solid var(--line-on-dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.brand {
  font-size: 1.625rem; font-weight: var(--fw-black); letter-spacing: -0.03em;
  text-decoration: none; line-height: 1;
}
.brand span { color: var(--color-courage); }

.nav-toggle { display: none; }
html.js .nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; padding: 0; cursor: pointer;
  background: transparent; color: var(--color-porcelain);
  border: 2px solid var(--line-on-dark); border-radius: var(--radius);
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 1.375rem; height: 2px; background: currentColor;
  transition: transform 0.2s, background-color 0.2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after  { top: 7px; }
.nav-toggle.is-open .nav-toggle__bars { background: transparent; }
.nav-toggle.is-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bars::after  { transform: translateY(-7px) rotate(-45deg); }

/* Mobil menü paneli */
.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--color-authority);
  border-bottom: 1px solid var(--line-on-dark);
  padding: 0.5rem var(--gutter) 1.75rem;
}
html.js .site-nav { display: none; }
html.js .site-nav.is-open { display: block; }
.site-nav ul { display: flex; flex-direction: column; }
.site-nav li + li { border-top: 1px solid var(--line-on-dark); }
.site-nav a:not(.btn) {
  display: block; padding: 1rem 0;
  font-size: 1.375rem; font-weight: var(--fw-black); letter-spacing: -0.02em;
  text-decoration: none;
}
.site-nav a[aria-current="true"]:not(.btn) { color: var(--color-growth); }
.site-nav .nav-cta { display: flex; margin-top: 1.25rem; width: 100%; }

@media (min-width: 68rem) {
  html.js .nav-toggle { display: none; }
  .site-nav, html.js .site-nav, html.js .site-nav.is-open {
    position: static; display: flex; align-items: center; gap: 2rem;
    padding: 0; border: 0; background: transparent;
  }
  .site-nav ul { flex-direction: row; gap: 1.5rem; }
  .site-nav li + li { border: 0; }
  .site-nav a:not(.btn) {
    padding: 0.5rem 0; font-size: 0.9375rem; font-weight: var(--fw-bold); letter-spacing: 0;
    text-decoration: underline; text-decoration-color: transparent;
    text-decoration-thickness: 2px; text-underline-offset: 0.4em;
  }
  .site-nav a:not(.btn):hover { text-decoration-color: var(--color-courage); }
  .site-nav a[aria-current="true"]:not(.btn) { color: var(--color-porcelain); text-decoration-color: var(--color-growth); }
  .site-nav .nav-cta { margin: 0; width: auto; min-height: 2.75rem; padding: 0.6rem 1.25rem; font-size: 0.9375rem; }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-authority); color: var(--color-porcelain);
  border-top: 1px solid var(--line-on-dark);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer__grid { display: grid; gap: 2.5rem; }
.footer__word {
  font-size: clamp(3.25rem, 9vw, 5.5rem); font-weight: var(--fw-black);
  letter-spacing: -0.05em; line-height: 0.9;
}
.footer__word span { color: var(--color-courage); }
.footer__tag { margin-top: 1rem; font-size: 1.25rem; font-weight: var(--fw-bold); }
.footer__owner { margin-top: 0.25rem; }
.footer__nav ul { display: grid; gap: 0.35rem 3rem; }
.footer__nav a { display: inline-block; padding: 0.3rem 0; font-weight: var(--fw-bold); text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; text-decoration-color: var(--color-courage); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-on-dark);
  font-weight: var(--fw-regular); font-size: 0.875rem;
}
@media (min-width: 48rem) {
  .footer__grid { grid-template-columns: 1fr auto; align-items: end; }
  .footer__nav ul { grid-template-columns: repeat(2, auto); }
}
