/* Bereket website. Tokens mirror src/theme (design system v2). */
:root {
  --bg: #F5F1E8;
  --surface: #FFFFFF;
  --ink: #16130E;
  --muted: #6B655B;
  --line: #E6E0D4;
  --accent: #E0300F;
  --accent-dark: #C42709;
  --accent-tint: #FBE3D8;
  --neutral-tint: #EFE9DD;
  --soon: #B86E00;
  --fresh: #2E7D4F;
  --on-ink-muted: #B5AC9E;
  --ink-line: #312B23;
  --photo-red: #D8230B;

  --shadow: 0 1px 2px rgba(60, 40, 20, 0.06), 0 6px 20px rgba(60, 40, 20, 0.08);
  --shadow-lift: 0 2px 4px rgba(60, 40, 20, 0.06), 0 16px 40px rgba(60, 40, 20, 0.14);

  --r-row: 16px; --r-card: 20px; --r-big: 28px; --r-pill: 999px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 96px;

  --font-display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1160px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: var(--r-pill); }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 720px) { .wrap { padding: 0 var(--s6); } }

.display { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; line-height: 0.92; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: var(--s3); }
.eyebrow-dark { color: var(--on-ink-muted); }
.eyebrow-light { color: rgba(255, 255, 255, 0.8); }
.h2 { font-size: clamp(52px, 9vw, 112px); margin-bottom: var(--s6); }
.lead { font-size: 19px; line-height: 1.5; }

.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; padding: 0 var(--s5);
  border-radius: var(--r-pill); font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); transition-duration: 80ms; }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 8px 24px rgba(22, 19, 14, 0.22); }
.btn-light:hover { box-shadow: 0 12px 32px rgba(22, 19, 14, 0.28); }
.btn-glass { background: rgba(255, 255, 255, 0.16); color: #fff; }
.btn-glass:hover { background: rgba(255, 255, 255, 0.26); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s3) var(--s4);
  background: var(--accent); color: #fff;
  transition: background-color 240ms var(--ease-out), color 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.nav.scrolled { background: rgba(245, 241, 232, 0.9); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
@media (min-width: 720px) { .nav { padding: var(--s3) var(--s6); } }
.brand { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; }
/* The mark alone, never in a tile: white on tomato and ink, tomato on light. */
.mark { width: 24px; height: 38px; color: #fff; transition: transform 300ms var(--spring), color 240ms var(--ease-out); }
.nav.scrolled .mark { color: var(--accent); }
.brand:hover .mark { transform: rotate(-8deg) scale(1.06); }
.wordmark { font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.nav-links { display: none; gap: var(--s5); margin-left: auto; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; opacity: 0.8; position: relative; padding: 4px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease-out); }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }
@media (min-width: 860px) { .nav-links { display: flex; } }

.lang { position: relative; display: flex; margin-left: auto; background: rgba(22, 19, 14, 0.22); border-radius: var(--r-pill); padding: 4px; }
.nav.scrolled .lang { background: var(--neutral-tint); }
@media (min-width: 860px) { .lang { margin-left: var(--s5); } }
.lang-thumb { position: absolute; top: 4px; left: 4px; width: 80px; height: 36px; border-radius: var(--r-pill); background: #fff; box-shadow: 0 2px 6px rgba(22, 19, 14, 0.18); transition: transform 320ms var(--spring); }
.lang[data-active="en"] .lang-thumb { transform: translateX(80px); }
.lang button { position: relative; z-index: 1; width: 80px; height: 36px; border: 0; background: transparent; color: inherit; font: 600 14px var(--font-text); cursor: pointer; border-radius: var(--r-pill); transition: color 200ms; }
.lang button[aria-pressed="true"] { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: var(--accent); color: #fff; overflow: hidden; padding: var(--s6) 0 var(--s8); }
.hero-inner { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.15fr 0.85fr; padding-top: var(--s6); } }
.hero .eyebrow { color: rgba(255, 255, 255, 0.82); }
.hero-title { font-size: clamp(64px, 17vw, 128px); margin-bottom: var(--s5); }
@media (min-width: 900px) { .hero-title { font-size: clamp(88px, 9.4vw, 136px); } }
/* Room above and below for Turkish marks (Ğ, İ, Ç, Ş) inside the reveal mask. */
.hero-title .line { display: block; overflow: hidden; padding: 0.14em 0 0.08em; margin: -0.14em 0 -0.08em; }
.hero-title .line > span { display: inline-block; white-space: nowrap; }
.hero-text { max-width: 34ch; font-size: 19px; line-height: 1.5; color: rgba(255, 255, 255, 0.92); margin-bottom: var(--s6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

.hero-art { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-photo { aspect-ratio: 2 / 3; border-radius: var(--r-big); overflow: hidden; background: var(--photo-red); box-shadow: 0 30px 60px rgba(60, 10, 0, 0.35); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; animation: drift 18s ease-in-out infinite alternate; }
.float { position: absolute; width: 112px; height: 112px; filter: drop-shadow(0 14px 18px rgba(60, 10, 0, 0.3)); animation: bob 6s ease-in-out infinite; }
.f1 { left: -40px; top: 18%; }
.f2 { right: -36px; top: 48%; width: 128px; height: 128px; animation-delay: -2s; }
.f3 { left: 8%; bottom: -36px; width: 96px; height: 96px; animation-delay: -4s; }
@media (max-width: 520px) { .f1 { left: -16px; } .f2 { right: -12px; } }

/* Hero entrance: each part rises in, one after the other */
.hero-in { opacity: 0; transform: translateY(28px); animation: rise 760ms var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
.hero-title .hero-in { transform: translateY(105%); }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -3%); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }

/* ---------- Sections ---------- */
.section { padding: var(--s8) 0; }
.section-tight { padding-bottom: var(--s6); }
.section-ink { background: var(--ink); color: #fff; }
.section-tint { background: var(--accent-tint); }
.section-accent { background: var(--accent); color: #fff; }

/* Scroll reveals (staggered with --i) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Problem ---------- */
.stats { display: grid; gap: var(--s4); }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.stat-num { font-size: clamp(84px, 11vw, 128px); color: var(--accent); }
.unit { font-size: 0.34em; margin-left: 8px; color: var(--ink); }
.stat-text { font-size: 18px; font-weight: 500; }
.source { font-size: 13px; color: var(--muted); margin-top: auto; }

/* ---------- Features ---------- */
.feature { padding: var(--s7) 0; }
.feature-inner { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 860px) {
  .feature-inner { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .feature:nth-child(even) .feature-copy { order: 2; }
}
.feature-copy { display: flex; flex-direction: column; gap: var(--s4); max-width: 460px; }
.feature-head { display: flex; align-items: center; gap: var(--s4); }
.feature-food { width: 64px; height: 64px; padding: 6px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.feature-num { font-size: 28px; color: var(--accent); }
.feature-title { font-size: clamp(56px, 7vw, 88px); }
.feature-text { font-size: 19px; line-height: 1.5; }
.feature-tag { align-self: flex-start; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: var(--r-pill); background: var(--accent-tint); color: var(--accent-dark); }

.panel { position: relative; display: flex; justify-content: center; padding: var(--s6) 0; }
.panel::before { content: ''; position: absolute; inset: 8% 4%; border-radius: var(--r-big); background: var(--accent); opacity: 0.12; }
.feature:nth-child(3n+2) .panel::before { background: var(--soon); }
.feature:nth-child(3n+3) .panel::before { background: var(--fresh); }
.phone {
  position: relative; width: min(290px, 72vw); aspect-ratio: 390 / 844;
  border-radius: 44px; padding: 10px; background: var(--ink);
  box-shadow: 0 40px 80px rgba(22, 19, 14, 0.25);
  transform: translateY(var(--drift, 0px)); will-change: transform;
}
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: var(--r-pill); background: var(--ink); z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; background: var(--bg); }

/* ---------- Askıda ---------- */
.askida { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 900px) { .askida { grid-template-columns: 0.9fr 1.1fr; } }
.askida-photo { border-radius: var(--r-big); overflow: hidden; aspect-ratio: 1; background: var(--photo-red); }
.askida-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.askida-photo:hover img { transform: scale(1.04); }
.askida-copy .h2 { margin-bottom: var(--s5); }
.askida-copy .lead { color: rgba(255, 255, 255, 0.9); margin-bottom: var(--s5); }
.checks { display: grid; gap: var(--s3); margin-bottom: var(--s6); }
.checks li { position: relative; padding-left: 36px; font-weight: 500; }
.checks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: var(--r-pill); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat; }
.donate { background: var(--ink-line); border-radius: var(--r-card); padding: var(--s5); }
.donate-title { font-size: 20px; font-weight: 600; margin-bottom: var(--s2); }
.donate-text { color: var(--on-ink-muted); margin-bottom: var(--s4); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s3); }
.chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 10px 16px; border-radius: var(--r-pill); background: #fff; color: var(--ink); font-size: 15px; transition: transform 200ms var(--spring); }
.chip:hover { transform: translateY(-2px) scale(1.03); }
.chip strong { color: var(--accent); }
.donate-note { font-size: 13px; color: var(--on-ink-muted); }

/* ---------- How ---------- */
.steps { display: grid; gap: var(--s4); counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.step img { width: 72px; height: 72px; margin-bottom: var(--s2); transition: transform 400ms var(--spring); }
.step:hover img { transform: rotate(-8deg) scale(1.08); }
.step-num { position: absolute; top: var(--s5); right: var(--s5); font-size: 40px; color: var(--line); }
.step h3 { font-size: 22px; font-weight: 600; padding-right: 56px; }
.step p { color: var(--muted); }

/* ---------- Goals ---------- */
.goals { display: grid; gap: var(--s4); }
@media (min-width: 700px) { .goals { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .goals { grid-template-columns: repeat(4, 1fr); } }
.goal { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); }
.goal-num { font-size: 72px; color: var(--accent); }
.goal h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.goal p { color: var(--muted); font-size: 15px; }

/* ---------- Next ---------- */
.next-list { display: grid; gap: var(--s3); max-width: 760px; }
.next-list li { padding: var(--s4) var(--s5); font-size: 18px; font-weight: 500; display: flex; gap: var(--s3); align-items: center; }
.next-list li::before { content: ''; flex: 0 0 10px; height: 10px; border-radius: var(--r-pill); background: var(--accent); }

/* ---------- Team ---------- */
.team { display: grid; gap: var(--s4); }
@media (min-width: 700px) { .team { grid-template-columns: repeat(2, 1fr); } }
.member { background: rgba(255, 255, 255, 0.12); border-radius: var(--r-card); padding: var(--s5); }
.member-name { font-family: var(--font-display); font-size: 48px; line-height: 1; }
.member-role { color: rgba(255, 255, 255, 0.85); margin-top: var(--s2); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding: var(--s7) 0; }
.footer-inner { display: grid; gap: var(--s4); }
.brand-footer .mark { width: 28px; height: 44px; }
.footer-sources { font-size: 13px; color: var(--on-ink-muted); max-width: 760px; }

/* ---------- Reduced motion: movement becomes a short fade ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-in, .hero-title .hero-in { transform: none; animation: fade 150ms linear forwards; animation-delay: 0ms; }
  .reveal { transform: none; transition: opacity 150ms linear; transition-delay: 0ms; }
  .float, .hero-photo img { animation: none; }
  .phone { transform: none; }
  .btn, .chip, .stat, .step, .step img, .mark, .askida-photo img, .lang-thumb { transition: none; }
  .btn:hover, .chip:hover, .stat:hover, .step:hover, .step:hover img, .brand:hover .mark { transform: none; }
}
@keyframes fade { to { opacity: 1; } }
