/* ============================================================
   Bilim Kurumsal — kurumsal çatı web sitesi
   Onaylanan ANA_TASARIM'a sadık, responsive, üretime uygun.
   Renkler: Fildişi #F8F5EF · Antrasit #171717 · Mat altın #A68A50 · Kırmızı #B5121B
   ============================================================ */

:root {
  --ivory:   #F8F5EF;
  --ivory-2: #F2ECE1;
  --ink:     #171717;
  --ink-700: #2b2b2b;
  --ink-500: #5c574e;
  --ink-300: #8a8375;
  --gold:    #A68A50;
  --gold-600:#8e7440;
  --red:     #B5121B;
  --line:    #e4ddcf;
  --line-2:  #d8cfbb;
  --white:   #ffffff;

  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans:  "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23,23,23,.04), 0 10px 30px rgba(23,23,23,.05);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -.01em; }

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

.eyebrow {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  color: var(--gold-600); font-size: 1.05rem;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.lead { color: var(--ink-500); font-size: 1.05rem; max-width: 62ch; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Brand / BK logosu (resmî vektör) ---------- */
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand__mark { height: 44px; width: auto; display: block; }
.footer-brand .brand__mark { height: 42px; }
[hidden] { display: none !important; }
.brand__word {
  font-family: var(--sans); font-weight: 500; font-size: 1.12rem;
  letter-spacing: .24em; color: var(--ink); white-space: nowrap; padding-left: 1px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,245,239,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 80px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-block; padding: 10px 14px; font-size: .95rem; font-weight: 500;
  color: var(--ink-700); border-radius: 8px; transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--ink); background: var(--ivory-2); }

/* dropdown */
.has-drop { position: relative; }
.drop-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font: inherit; }
.drop-toggle .caret { width: 10px; height: 10px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.has-drop[aria-expanded="true"] .caret { transform: rotate(225deg) translateY(-1px); }
.drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .18s var(--ease);
}
.has-drop[aria-expanded="true"] .drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.drop-menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: .92rem; }
.drop-menu a:hover { background: var(--ivory-2); }
.drop-menu small { display: block; color: var(--ink-300); font-size: .78rem; }

/* lang switch */
.lang { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; font-weight: 600; font-size: .9rem; }
.lang button { background: none; border: 0; cursor: pointer; color: var(--ink-300); padding: 6px 7px; border-radius: 6px; font: inherit; }
.lang button[aria-pressed="true"] { color: var(--red); }
.lang .sep { color: var(--line-2); }

/* mobile toggle */
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: .98; }
.hero__title .row2 { display: block; }
.hero__sub { margin-top: 22px; color: var(--ink-500); font-size: 1.12rem; max-width: 48ch; }
.hero__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 11; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,23,23,.14), transparent 40%); }

/* ---------- Company cards ---------- */
.companies { padding: clamp(20px, 3vw, 36px) 0 clamp(36px, 5vw, 60px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ivory-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
/* Logo alanı: üç kartta da SABİT yükseklik — logolar aynı taban çizgisinde, görsel ağırlık dengeli */
.card__logo { height: 48px; min-height: 48px; margin-bottom: 2px; display: flex; align-items: center; justify-content: flex-start; }
.card__logo img { max-height: 100%; width: auto; object-fit: contain; object-position: left center; }
.card__logo--osgb img { height: 28px; }
.card__logo--veom img { height: 38px; }
.card__logo--umbrella img { height: 48px; }
.card__eyebrow { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--ink-700); font-size: 1.12rem; margin: 12px 0 8px; min-height: 1.4em; }
.card__desc { color: var(--ink-500); font-size: .95rem; margin: 0 0 18px; }
.card__features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 16px; margin-top: auto; border-top: 1px solid var(--line); }
.feature { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.feature .ic { width: 26px; height: 26px; color: var(--gold-600); }
.feature .ic svg { width: 100%; height: 100%; }
.feature span { font-size: .72rem; line-height: 1.25; color: var(--ink-700); font-weight: 500; }
.card__link { margin-top: 20px; font-weight: 600; color: var(--red); font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; }
.card__link .arr { transition: transform .2s; }
.card__link:hover .arr { transform: translateX(4px); }

.section-head { margin-bottom: clamp(22px, 3vw, 36px); }
.section-head .section-title { margin-top: 6px; }

/* ---------- Network / maps ---------- */
.network { padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--ivory), var(--ivory-2)); }
.maps { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
.map-card { position: relative; }
.map-wrap { position: relative; }
.turkey-map svg { width: 100%; height: auto; }
.turkey-map .il { fill: #e9e1d2; stroke: var(--ivory); stroke-width: .6; transition: fill .2s; }
.turkey-map .il-active path { fill: var(--gold); cursor: pointer; }
.turkey-map .il-active:hover path { fill: var(--red); }
.map-badge {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%,-50%);
  background: var(--red); color: var(--white); border-radius: 50%;
  width: clamp(96px, 13vw, 130px); aspect-ratio: 1; display: grid; place-content: center; text-align: center;
  box-shadow: 0 12px 30px rgba(181,18,27,.3); pointer-events: none;
}
.map-badge b { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); display: block; line-height: 1; }
.map-badge span { font-size: .72rem; letter-spacing: .04em; margin-top: 4px; display: block; }
.map-tooltip {
  position: absolute; z-index: 5; background: var(--ink); color: var(--white);
  font-size: .78rem; padding: 4px 9px; border-radius: 6px; pointer-events: none;
  transform: translate(-50%, -140%); opacity: 0; transition: opacity .12s; white-space: nowrap;
}
.map-tooltip.is-visible { opacity: 1; }

.world-map svg { width: 100%; height: auto; }
.world-map .land { fill: #e3dbcb; }
.world-map .route { fill: none; stroke: var(--red); stroke-width: .8; stroke-opacity: .55; stroke-dasharray: 2.4 2.4; }
.world-map .hub { fill: var(--red); }
.world-map .node { fill: var(--gold-600); }
.world-map .node-label { font-family: var(--sans); font-size: 4.4px; font-weight: 600; fill: var(--ink-700); }
.world-map .hub-label { font-family: var(--sans); font-size: 4.6px; font-weight: 700; fill: var(--red); }
.map-note { margin: 12px 2px 0; font-size: .78rem; line-height: 1.45; color: var(--ink-300); }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(28px, 4vw, 48px); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.metric { background: var(--ivory); padding: 22px clamp(14px,2vw,24px); display: flex; flex-direction: column; gap: 4px; }
.metric .ic { width: 24px; height: 24px; color: var(--gold-600); margin-bottom: 6px; }
.metric b { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.metric small { color: var(--ink-500); font-size: .82rem; line-height: 1.3; }
.metric .countries { color: var(--ink-300); font-size: .72rem; margin-top: 2px; }

/* ---------- References ---------- */
.refs { padding: clamp(40px, 5vw, 64px) 0; }
.refs__note { color: var(--ink-500); font-size: .92rem; display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.refs__note::before { content: ""; width: 40px; height: 2px; background: var(--red); flex: none; }
.refs__grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(14px, 2vw, 30px); align-items: center; }
.refs__grid img { height: 34px; width: 100%; object-fit: contain; filter: grayscale(1); opacity: .62; transition: filter .25s, opacity .25s; }
.refs__grid a:hover img, .refs__grid .ref-item:hover img { filter: grayscale(0); opacity: 1; }
.ref-missing { display: flex; align-items: center; justify-content: center; height: 34px; border: 1px dashed var(--line-2); border-radius: 6px; color: var(--ink-300); font-size: .7rem; letter-spacing: .08em; }

/* ---------- Founder ---------- */
.founder { padding: clamp(40px, 5vw, 70px) 0; border-top: 1px solid var(--line); }
.founder__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.founder__media { position: relative; max-width: 340px; }
.founder__media img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: center top; display: block; border-radius: var(--radius); box-shadow: var(--shadow); }
.founder__content { position: relative; padding-left: 28px; }
.founder__content::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--red); border-radius: 4px; }
.founder__name { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 6px 0 8px; }
.founder__role { font-family: var(--serif); font-style: italic; color: var(--gold-600); font-size: 1.12rem; margin-bottom: 18px; }
.founder__bio { color: var(--ink-500); margin-bottom: 22px; }
.founder__link { font-weight: 600; color: var(--red); display: inline-flex; gap: 8px; align-items: center; }
.founder__link:hover .arr { transform: translateX(4px); }
.arr { transition: transform .2s; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ivory-2); border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 60px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: clamp(24px, 3vw, 48px); padding-bottom: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-tagline { font-family: var(--serif); font-style: italic; color: var(--ink-500); max-width: 30ch; }
.footer-col h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-300); margin: 0 0 14px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { color: var(--ink-700); font-size: .92rem; }
.footer-col a:hover { color: var(--red); }
.contact-item { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-700); margin-bottom: 12px; }
.contact-item .ic { width: 18px; height: 18px; color: var(--gold-600); flex: none; margin-top: 3px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 9px; display: grid; place-content: center; color: var(--ink-700); transition: .2s; }
.socials a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.socials .ic { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-300); }
.footer-bottom a { color: var(--ink-500); }
.footer-bottom a:hover { color: var(--red); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .refs__grid { grid-template-columns: repeat(4, 1fr); row-gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero__grid { gap: 32px; }
}
@media (max-width: 860px) {
  .nav { position: fixed; inset: 80px 0 auto 0; margin: 0; background: var(--ivory); border-bottom: 1px solid var(--line);
         flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 20px; gap: 6px;
         transform: translateY(-120%); transition: transform .28s var(--ease); box-shadow: var(--shadow); }
  .nav.open { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link, .drop-toggle { width: 100%; padding: 13px 10px; font-size: 1rem; }
  .drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 12px; min-width: 0; }
  .has-drop:not([aria-expanded="true"]) .drop-menu { display: none; }
  .lang { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .maps { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .founder__grid { grid-template-columns: 1fr; }
  .founder__media { max-width: 300px; }
}
@media (max-width: 520px) {
  body { font-size: 15px; }
  .refs__grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .brand__mark { height: 34px; }
  .brand__word { letter-spacing: .18em; font-size: 1rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
