/* ==========================================================================
   FONTS (self-hosted — Google Fonts CDN kaldırıldı: ekstra origin/round-trip
   yok, KVKK/Gizlilik metnindeki "üçüncü taraf araç kullanılmıyor" ifadesiyle
   tutarlı. Değişken font dosyaları, latin + latin-ext (Türkçe ş/ğ/İ için).
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../assets/fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../assets/fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}

/* ==========================================================================
   RESET
   ========================================================================== */

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* ==========================================================================
   TOKENS
   ========================================================================== */

:root {
  /* Brand colors */
  --brand-forest: #1b5e20;
  --brand-green: #2e7d32;
  --brand-lime: #8bc34a;
  --brand-leaf: #a4c93a;
  --brand-cream: #fafaf7;
  --brand-ink: #14210f;
  --brand-muted: #5a6b52;
  --brand-white: #ffffff;

  /* Surfaces & borders */
  --surface-cream: var(--brand-cream);
  --surface-white: var(--brand-white);
  --border-soft: #dbe4d5;
  --border-strong: #b9c9ae;

  /* Gradient (limited palette, see design directives) */
  --gradient-forest: linear-gradient(135deg, var(--brand-forest), var(--brand-green));

  /* Spacing scale (1 unit = 0.25rem) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-9: 2.25rem;
  --space-10: 2.5rem;
  --space-11: 2.75rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.75rem;
  --radius-full: 999px;

  /* Typography */
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --text-xs: 0.8rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-lg: 1.15rem;
  --text-xl: 1.4rem;
  --text-2xl: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  --text-3xl: clamp(2rem, 3vw + 1rem, 3rem);
  --text-4xl: clamp(2.4rem, 4vw + 1rem, 3.5rem);
  --text-hero: clamp(3rem, 8vw, 7rem);

  /* Motion */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-width: 1240px;
  --header-height: 100px;
}

/* ==========================================================================
   BASE TYPOGRAPHY
   ========================================================================== */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--brand-ink);
  background:
    radial-gradient(rgba(27, 94, 32, 0.1) 1.4px, transparent 1.4px) 0 0 / 27px 27px,
    var(--surface-cream);
  background-attachment: fixed;
}

/*
 * Sitewide color wash. Uses position:fixed (not a tall body background-image)
 * so the four blooms stay anchored to the VIEWPORT's corners at any scroll
 * depth, instead of clustering near the top/bottom of the full document.
 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(620px 620px at 3% -6%, rgba(139, 195, 74, 0.26), transparent 68%),
    radial-gradient(560px 560px at 103% 10%, rgba(46, 125, 50, 0.2), transparent 64%),
    radial-gradient(600px 600px at -4% 98%, rgba(139, 195, 74, 0.22), transparent 66%),
    radial-gradient(540px 540px at 101% 103%, rgba(27, 94, 32, 0.18), transparent 62%);
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--brand-ink);
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
}

p {
  max-width: 68ch;
  color: var(--brand-muted);
}

strong {
  color: var(--brand-ink);
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

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

:focus-visible {
  outline: 3px solid var(--brand-lime);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* Büyük monitörlerde (≥1600px) yanlardaki boşluk aşırı fazla duruyordu —
   container'ı sadece geniş ekranlarda kademeli büyütüyoruz, laptop/normal
   monitör boyutları (1600px altı) hiç etkilenmiyor. */
@media (min-width: 1600px) {
  :root {
    --container-width: 1400px;
  }
}

@media (min-width: 2200px) {
  :root {
    --container-width: 1560px;
  }
}

.mt-4 {
  margin-top: var(--space-4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-green);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--brand-lime);
  border-radius: var(--radius-full);
}

.section-tone-forest {
  background: var(--gradient-forest);
  color: var(--brand-cream);
}

.section-tone-forest h1,
.section-tone-forest h2,
.section-tone-forest h3,
.section-tone-forest p,
.section-tone-forest strong {
  color: var(--brand-cream);
}

.section-tone-forest .eyebrow {
  color: var(--brand-leaf);
}

.section-tone-forest .eyebrow::before {
  background: var(--brand-cream);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: transform var(--transition), border-color var(--transition),
    background var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--brand-ink);
  color: var(--brand-cream);
}

.btn--primary:hover {
  background: var(--brand-forest);
}

.btn--lime {
  background: var(--brand-lime);
  color: var(--brand-ink);
}

.btn--lime:hover {
  background: var(--brand-leaf);
}

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn--outline:hover {
  border-color: var(--brand-lime);
  color: var(--brand-lime);
}

/* Outline button on a light/cream surface: neutral border, no currentColor bleed */
.btn--outline-forest {
  color: var(--brand-forest);
  border-color: var(--border-strong);
}

.btn--outline-ink {
  color: var(--brand-ink);
  border-color: var(--border-strong);
}

/* Tags / badges */

.badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: var(--space-1);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  color: var(--brand-muted);
}

.badge--open {
  color: var(--brand-forest);
  border-color: var(--brand-lime);
  background: rgba(139, 195, 74, 0.14);
}

.badge--closed {
  color: #8a3b2b;
  border-color: #e3b6a8;
  background: rgba(200, 90, 60, 0.1);
}

/* Cards (bordered, per design directive — shadow-free) */

.card {
  background: var(--surface-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: transform var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-lime);
}

/* Reveal-on-scroll (see js/main.js) */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Leaf motif (inline SVG sprite, used via <use>) */

.leaf-decor {
  --leaf-size: 200px;
  --leaf-rotate: 0deg;
  position: absolute;
  width: var(--leaf-size);
  height: var(--leaf-size);
  pointer-events: none;
  color: var(--brand-forest);
  opacity: 0.13;
  transform: rotate(var(--leaf-rotate));
  z-index: 0;
}

.leaf-decor--top-left {
  top: -5%;
  left: -4%;
}

.leaf-decor--top-right {
  top: -6%;
  right: -4%;
}

.leaf-decor--bottom-left {
  bottom: -6%;
  left: -5%;
}

.leaf-decor--bottom-right {
  bottom: -5%;
  right: -3%;
}

.leaf-decor--on-dark {
  color: var(--brand-cream);
  opacity: 0.08;
}


/* Skip link */

.skip-link {
  position: absolute;
  top: -48px;
  left: var(--space-4);
  z-index: 1000;
  background: var(--brand-ink);
  color: var(--brand-cream);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--transition);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ==========================================================================
   LEGAL MODAL (KVKK Aydınlatma Metni / Gizlilik Politikası)
   ========================================================================== */

.legal-modal {
  width: min(680px, calc(100% - var(--space-8)));
  max-height: min(82vh, 720px);
  margin: auto;
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--surface-white);
  color: var(--brand-ink);
  box-shadow: 0 24px 60px rgba(20, 33, 15, 0.35);
}

.legal-modal::backdrop {
  background: rgba(20, 33, 15, 0.6);
  backdrop-filter: blur(2px);
}

.legal-modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-cream);
  border: 1px solid var(--border-soft);
  color: var(--brand-muted);
  transition: background var(--transition), color var(--transition);
}

.legal-modal__close:hover {
  background: var(--brand-lime);
  color: var(--brand-ink);
  border-color: var(--brand-lime);
}

.legal-modal__close svg {
  width: 16px;
  height: 16px;
}

.legal-modal__panel {
  max-height: min(82vh, 720px);
  overflow-y: auto;
  padding: var(--space-10) var(--space-8) var(--space-8);
}

.legal-modal__body h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-5);
  padding-right: var(--space-10);
}

.legal-modal__body h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.legal-modal__body p {
  color: var(--brand-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: none;
}

.legal-modal__body ul {
  list-style: disc;
  padding-left: 1.3em;
  margin: var(--space-3) 0;
}

.legal-modal__body li {
  color: var(--brand-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

.legal-modal__body strong {
  color: var(--brand-ink);
}

.legal-modal__body .legal-note {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-soft);
  font-size: var(--text-xs);
  font-style: italic;
}

@media (max-width: 640px) {
  .legal-modal {
    width: calc(100% - var(--space-6));
  }

  .legal-modal__panel {
    padding: var(--space-8) var(--space-5) var(--space-6);
  }
}

/* ==========================================================================
   SUCCESS MODAL (kariyer.html — başvuru gönderildikten sonra)
   ========================================================================== */

.success-modal {
  width: min(440px, calc(100% - var(--space-8)));
  margin: auto;
  padding: var(--space-10) var(--space-8) var(--space-8);
  border: none;
  border-radius: var(--radius-lg);
  background: var(--surface-white);
  color: var(--brand-ink);
  box-shadow: 0 24px 60px rgba(20, 33, 15, 0.35);
  text-align: center;
}

.success-modal::backdrop {
  background: rgba(20, 33, 15, 0.6);
  backdrop-filter: blur(2px);
}

.success-modal__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto var(--space-5);
  border-radius: 50%;
  background: var(--gradient-forest);
  color: var(--brand-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-modal__icon svg {
  width: 32px;
  height: 32px;
}

.success-modal h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.success-modal p {
  color: var(--brand-muted);
  margin-bottom: var(--space-7);
}

.success-modal .btn {
  width: 100%;
}

@media (max-width: 480px) {
  .success-modal {
    width: calc(100% - var(--space-6));
    padding: var(--space-8) var(--space-5) var(--space-6);
  }
}
