/* =========================================================================
   Av. Muzaffer Özcan – tasarım değerleri
   Beyaz zemin, koyu lacivert başlık, tek vurgu: altın.
   Başlıklar Source Serif 4, arayüz ve gövde Inter (ikisi de fonts/ içinde).
   ========================================================================= */
:root {
  --navy: #0f2445; --navy-deep: #0a1a33; --navy-ink: #07142a;
  --gold: #a8916a;
  --gold-soft: #cdbb96;  /* koyu zemin üzerinde altın metin */
  --gold-ink: #7a6440;   /* açık zemin üzerinde altın metin (AA) */

  --bg: #ffffff; --surface: #ffffff; --surface-alt: #f6f2eb;
  --ink: #0f2445; --text: #3b3d42; --muted: #66676b; --line: #e2ddd3;
  --band-ink: #ffffff; --band-muted: #b9c1ce;

  --radius: 6px;
  --container: 1240px;
  --header-h: 80px;
  --shadow: 0 1px 2px rgba(15, 36, 69, .04), 0 18px 36px -24px rgba(15, 36, 69, .32);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Source Serif 4 Variable', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08152a; --surface: #0b1a32; --surface-alt: #10223f;
    --ink: #f2ede4; --text: #d3d6dc; --muted: #9ea5b1; --line: #23365a;
    --gold-ink: #cdbb96;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08152a; --surface: #0b1a32; --surface-alt: #10223f;
  --ink: #f2ede4; --text: #d3d6dc; --muted: #9ea5b1; --line: #23365a;
  --gold-ink: #cdbb96;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Yazı ---------- */
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 500; }
.display, .h2, .brand, .areas li, .contact p { font-family: var(--font-display); font-optical-sizing: auto; font-feature-settings: "lnum" 1; }
.display { font-size: clamp(44px, 7.2vw, 104px); line-height: 1.02; letter-spacing: -0.02em; }
.h2 { font-size: clamp(30px, 3.3vw, 44px); line-height: 1.12; letter-spacing: -0.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }

/* ---------- Üst bar ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: background-color .35s, border-color .35s, box-shadow .35s; }
.site-header.scrolled { box-shadow: 0 10px 30px -22px rgba(7, 20, 42, .45); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 5px; padding: 10px 12px; font-size: 14.5px; color: var(--ink); text-decoration: none; position: relative; transition: color .2s; }
.nav-link .ic { width: 14px; height: 14px; transition: transform .2s; }
.nav-link::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-item:hover > .nav-link::after, .nav-item:focus-within > .nav-link::after { transform: scaleX(1); }
.nav-item:hover > .nav-link .ic, .nav-item:focus-within > .nav-link .ic { transform: rotate(180deg); }

/* Açılır menü: üzerine gelince aşağı açılan kart */
.submenu { position: absolute; top: 100%; left: 50%; min-width: 250px; padding: 18px 20px 14px; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.submenu.wide { min-width: 400px; }
.submenu.end { left: auto; right: 0; transform: translate(0, 8px); }
.nav-item:hover > .submenu, .nav-item:focus-within > .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-item:hover > .submenu.end, .nav-item:focus-within > .submenu.end { transform: none; }
.submenu .grp { margin: 0 0 10px; font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.submenu ul { list-style: none; margin: 0; padding: 0; }
.submenu a { display: block; padding: 8px 10px; margin: 0 -10px; border-radius: var(--radius); font-size: 14.5px; color: var(--ink); text-decoration: none; transition: background-color .15s, color .15s; }
.submenu a:hover { background: var(--surface-alt); color: var(--gold-ink); }

/* Hero üzerindeyken şeffaf (JS .clear ekler; JS yoksa dolu kalır) */
.site-header.clear { background: transparent; backdrop-filter: none; border-bottom-color: transparent; }
.site-header.clear::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 90px); z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(7, 20, 42, .7) 0%, rgba(7, 20, 42, .45) 45%, rgba(7, 20, 42, .16) 75%, rgba(7, 20, 42, 0) 100%); }
.site-header.clear .brand, .site-header.clear .nav-link { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.site-header.clear .burger { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff; }

/* Telefon: menü düğmesi ve çekmece */
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.burger .ic { width: 22px; height: 22px; }
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer-bg { position: absolute; inset: 0; background: rgba(7, 20, 42, .5); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: var(--surface); overflow-y: auto; padding: calc(env(safe-area-inset-top, 0px) + 16px) 22px 28px; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer .burger { display: inline-flex; }
.drawer details, .drawer .d-link { border-bottom: 1px solid var(--line); }
.drawer .d-link { display: block; text-decoration: none; }
.drawer summary, .drawer .d-link { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; font-family: var(--font-display); font-size: 20px; color: var(--ink); cursor: pointer; }
.drawer summary { display: flex; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary .ic { width: 16px; height: 16px; transition: transform .2s; }
.drawer details[open] summary .ic { transform: rotate(180deg); }
.d-sub { display: grid; padding: 0 4px 14px 12px; }
.d-sub a { padding: 9px 0; color: var(--muted); text-decoration: none; font-size: 15px; }
@media (max-width: 760px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  :root { --header-h: 68px; }
}

/* ---------- Hero: tam ekran, sabit; sonraki bölümler üzerine kayar ---------- */
/* Video: video/istanbul.mp4 · kapak: img/hero.jpg · ikisi de yoksa lacivert zemin. */
.hero { --p: 0; position: sticky; top: 0; z-index: 0; min-height: 100vh; min-height: 100svh; display: flex; color: #fff; background: var(--navy-deep) url(img/hero.jpg) center / cover no-repeat; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.02 + var(--p) * .12)); transform-origin: 50% 45%; will-change: transform; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 20, 42, 0) 35%, rgba(7, 20, 42, .82) 100%), linear-gradient(90deg, rgba(10, 26, 51, .55) 0%, rgba(10, 26, 51, .2) 55%, rgba(10, 26, 51, 0) 100%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(7, 20, 42, calc(var(--p) * .6)); }
.hero-in { display: flex; align-items: flex-end; padding-block: calc(var(--header-h) + 40px) clamp(96px, 16vh, 160px); }
.hero-copy { transform: translate3d(0, calc(var(--p) * -110px), 0); opacity: calc(1 - var(--p) * 1.7); filter: blur(calc(var(--p) * 8px)); }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--gold-soft); margin-bottom: 22px; }
main > .hero ~ * { position: relative; z-index: 1; }
main > .hero + * { box-shadow: 0 -28px 60px -20px rgba(7, 20, 42, .5); }

.scroll-cue { position: absolute; left: 50%; bottom: 30px; z-index: 1; transform: translateX(-50%); color: #fff; text-decoration: none; opacity: calc(1 - var(--p) * 3); }
.scroll-cue b { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .75); background: rgba(7, 20, 42, .4); backdrop-filter: blur(6px); display: grid; place-items: center; transition: background-color .25s, border-color .25s, color .25s; }
.scroll-cue .ic { width: 22px; height: 22px; animation: cue 2s cubic-bezier(.45, 0, .25, 1) infinite; }
.scroll-cue:hover b { background: var(--gold); border-color: var(--gold); color: var(--navy-ink); }
@keyframes cue { 0%, 100% { transform: translateY(-3px); opacity: .75; } 50% { transform: translateY(4px); opacity: 1; } }
.hero-toggle { position: absolute; right: clamp(16px, 3vw, 32px); bottom: 30px; z-index: 1; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(10, 26, 51, .55); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .2s; }
.hero-toggle[hidden] { display: none; }
.hero-toggle:hover { background: rgba(10, 26, 51, .85); }
.hero-toggle .ic { width: 18px; height: 18px; }

/* Başlık kelime kelime, bulanıktan nete belirir */
.rv-words .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translate3d(0, .32em, 0); transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
.rv-words.in .w { opacity: 1; filter: none; transform: none; }
/* Bloklar aşağıdan, kardeşler arasında kademeli belirir */
.rv { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Bölümler ---------- */
.section { padding-block: clamp(64px, 9vw, 128px); background: var(--bg); }
.section.alt { background: var(--surface-alt); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.sec-head { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .sec-head { position: static; }
}

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px clamp(24px, 4vw, 56px); margin: 0; font-style: normal; }
.fact { border-top: 1px solid var(--gold); padding-top: 16px; scroll-margin-top: calc(var(--header-h) + 24px); }
.fact dt, .fact .lbl { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.fact dd, .contact p { margin: 0; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.35; color: var(--ink); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact a { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.contact a:hover { background-size: 100% 1px; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 28px; } }

.areas { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.areas li { position: relative; display: grid; grid-template-columns: clamp(64px, 8vw, 112px) 1fr; align-items: baseline; padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--line); font-size: clamp(22px, 2.5vw, 34px); line-height: 1.22; color: var(--ink); letter-spacing: -0.012em; scroll-margin-top: calc(var(--header-h) + 8px); transition: padding-left .45s var(--ease); }
.areas .num { font-size: clamp(30px, 3.6vw, 52px); font-style: italic; font-weight: 300; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums; }
/* Satırın üstünde soldan sağa çizilen altın çizgi */
.areas li::before { content: ''; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.areas li:hover::before { transform: scaleX(1); }
.areas li:hover { padding-left: 10px; }

/* Bölüm başlığının altındaki görsel pano: ince altın çerçeveli */
.panel { position: relative; margin: clamp(28px, 4vw, 48px) 0 0; }
.panel img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.panel::after { content: ''; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--gold); border-radius: 2px; z-index: -1; }
@media (max-width: 900px) {
  .panel img { aspect-ratio: 16 / 10; }
  .panel::after { inset: 10px -8px -10px 8px; }
}

.sec-head:has(.panel) { position: static; }

/* ---------- Koyu kapanış bandı: İletişim ---------- */
.section.band { color: #fff; background: var(--navy-deep) url(img/galata.jpg) center 60% / cover no-repeat; isolation: isolate; padding-block: clamp(88px, 12vw, 176px); }
.section.band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 20, 42, .9) 0%, rgba(7, 20, 42, .74) 55%, rgba(7, 20, 42, .58) 100%); }
.band .h2 { color: #fff; }
.band .eyebrow { color: var(--gold-soft); }
.band .fact .lbl { color: var(--gold-soft); }
.band .contact p { color: #fff; font-size: clamp(22px, 2.3vw, 32px); }
.fact.wide { grid-column: 1 / -1; }


/* ---------- Alt bilgi ---------- */
.site-footer { position: relative; z-index: 1; background: var(--navy-deep); color: var(--band-ink); border-top: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); }
.site-footer a { text-decoration: none; color: var(--band-muted); transition: color .2s; }
.site-footer a:hover { color: #fff; }
.foot-bot { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-block: 22px 28px; font-size: 13.5px; color: var(--band-muted); }

/* ---------- Hareketi azalt ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero-video, .hero-copy { transform: none; filter: none; opacity: 1; }
  .rv, .rv-words .w { opacity: 1; transform: none; filter: none; }
}
