/* ---------------------------------------------------------------------------
   Doç. Dr. Erkan Kayıkçıoğlu — site styles (buildless, no dependencies)
   Palette: deep navy + red accent + soft blue-grey (medical / corporate)
   --------------------------------------------------------------------------- */

:root {
  --navy-900: #12293f;
  --navy-800: #1a3a5a;
  --navy-700: #204a72;
  --navy-600: #2b5c8a;
  --navy-100: #e7eef6;
  --navy-050: #f2f6fb;

  --red: #d62f26;
  --red-dark: #b1241d;

  --ink: #101a26;
  --body: #3d4a58;
  --muted: #6a7684;
  --bg: #ffffff;
  --bg-alt: #eef4fa;
  --line: #d7e1ec;
  --card: #ffffff;

  --shadow: 0 1px 2px rgba(18, 41, 63, .06), 0 14px 34px rgba(18, 41, 63, .10);
  --radius: 14px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy-100: #17304a;
    --navy-050: #14273c;
    --ink: #eef3f9;
    --body: #c6d2df;
    --muted: #8b98a6;
    --bg: #0c151f;
    --bg-alt: #101d2b;
    --line: #24384c;
    --card: #12212f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 36px rgba(0,0,0,.45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.15rem); letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.2rem); letter-spacing: -.01em; font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--navy-600); }
a:hover { color: var(--navy-700); }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-800); color: #fff; padding: 10px 16px; z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--navy-600); outline-offset: 2px; border-radius: 6px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center;
  background: #fff; color: var(--navy-800);
  border-radius: 10px; font-weight: 800; letter-spacing: .04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: #fff; font-size: .98rem; }
.brand-text small { color: #b9cbe0; font-size: .78rem; }

.nav-wrap { display: flex; align-items: center; gap: 10px; }

.primary-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.primary-nav a {
  display: block; padding: 9px 12px; border-radius: 999px;
  text-decoration: none; color: #e4ecf5; font-size: .9rem; font-weight: 500; white-space: nowrap;
}
.primary-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.primary-nav a.is-active { color: #fff; background: rgba(255,255,255,.16); }
.primary-nav .nav-cta { background: var(--red); color: #fff; font-weight: 700; padding-inline: 18px; }
.primary-nav .nav-cta:hover { background: var(--red-dark); color: #fff; }

/* Language switch */
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: .82rem; font-weight: 700; }
.lang-switch a { color: #9fb6cd; text-decoration: none; padding: 4px 6px; border-radius: 6px; }
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current="true"] { color: #fff; background: rgba(255,255,255,.16); }
.lang-switch .sep { color: #5f7791; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px; background: transparent; cursor: pointer;
  padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy-800); border-bottom: 1px solid rgba(255,255,255,.1);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .primary-nav.open { max-height: 460px; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 4px; }
  .primary-nav a { padding: 12px; font-size: 1rem; }
  .primary-nav .nav-cta { text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: .95rem; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(214, 47, 38, .28); }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: var(--navy-800); color: #fff; }
.btn-secondary:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-ghost:hover { background: var(--navy-800); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
@media (prefers-color-scheme: dark) {
  .btn-ghost { border-color: var(--navy-600); color: var(--ink); }
  .btn-ghost:hover { background: var(--navy-600); color: #fff; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(44px, 8vw, 92px) 0; background: linear-gradient(180deg, var(--navy-100), var(--bg)); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .74rem;
  font-weight: 800; color: var(--red); margin: 0 0 .6rem;
}
.lede { font-size: 1.08rem; max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 28px; }
.hero-facts {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 560px;
}
.hero-facts li { display: flex; flex-direction: column; border-left: 3px solid var(--red); padding-left: 12px; }
.hero-facts strong { font-size: 1.15rem; color: var(--ink); }
.hero-facts span { font-size: .82rem; color: var(--muted); }

.hero-photo img {
  width: 100%; margin-left: auto;
  border-radius: 18px; object-fit: cover; aspect-ratio: 3 / 2;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card);
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { margin: 0 auto; max-width: 560px; aspect-ratio: 16 / 10; }
  .hero-facts { max-width: none; }
}
@media (max-width: 480px) { .hero-facts { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 8vw, 88px) 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head .eyebrow { color: var(--red); }
.prose { max-width: 70ch; }
.prose h3 { margin-top: 1.6em; color: var(--navy-700); }
.muted { color: var(--muted); }
.small { font-size: .84rem; }

/* ---------- Timeline ---------- */
.timeline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 48px); }
.timeline h3 { margin-bottom: 1rem; color: var(--navy-700); }
.timeline-list { list-style: none; margin: 0; padding: 0; }
.timeline-list li {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.timeline-list li:last-child { border-bottom: 0; }
.t-year { font-weight: 800; color: var(--red); font-size: .9rem; padding-top: 2px; }
.timeline-list strong { color: var(--ink); display: block; }
.timeline-list p { margin: 2px 0 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 760px) { .timeline-grid { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip {
  background: var(--card); border: 1px solid var(--line); color: var(--body);
  padding: 8px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600;
}

/* ---------- Card grid ---------- */
.card-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); border-top: 3px solid var(--navy-600);
}
.card h3 { color: var(--navy-700); }
.card p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- Stats ---------- */
.stat-row {
  list-style: none; margin: 0 0 28px; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat-row li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.stat-row strong { display: block; font-size: 1.8rem; color: var(--red); font-weight: 800; }
.stat-row span { font-size: .82rem; color: var(--muted); }
@media (max-width: 620px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

.pub-list { padding-left: 1.1rem; }
.pub-list li { margin-bottom: .5rem; }
.pub-list em { color: var(--muted); font-style: italic; }

/* ---------- Feature callout ---------- */
.feature {
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--red);
  border-radius: var(--radius); padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.feature.feature-alt { border-left-color: var(--navy-600); }
.feature h3 { color: var(--navy-700); }
.feature p { margin: 0; }
.feature + .card-grid { margin-top: 24px; }

/* ---------- Clinical trials ---------- */
.trial-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.trial-list > li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.trial-list h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.trial-list p { margin: 0; font-size: .92rem; color: var(--muted); }
.trial-head { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .03em;
  padding: 3px 10px; border-radius: 999px; text-transform: uppercase;
}
.badge-3 { background: var(--navy-800); color: #fff; }
.badge-2 { background: var(--navy-100); color: var(--navy-700); }
.badge-organ { background: transparent; border: 1px solid var(--line); color: var(--body); }
.badge-soon { background: var(--red); color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.contact-card h3 { color: var(--navy-700); margin-bottom: .5rem; }
.contact-card p { margin: 0 0 .6rem; font-size: .95rem; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card-primary { border-color: var(--red); border-top: 3px solid var(--red); }
.contact-strong { font-size: 1.2rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.contact-strong:hover { color: var(--red); }
.contact-line { margin-bottom: .8rem; }

/* ---------- Floating WhatsApp button ---------- */
.wa-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .15s ease;
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 480px) { .wa-fab { width: 52px; height: 52px; right: 14px; bottom: 14px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c4d4e5; padding: 44px 0; }
.site-footer .container { max-width: var(--maxw); }
.footer-inner p { margin: 0 0 .6rem; }
.footer-inner strong { color: #fff; }
.disclaimer { font-size: .88rem; color: #9fb6cd; max-width: 72ch; }
.site-footer .muted { color: #8095ac; }
.site-footer a { color: #cfe0f1; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .wa-fab:hover { transform: none; }
}
