/* ============================================
   FATİH SULTAN MEHMED — Osmanlı dokulu, antik site temalı
   ============================================ */

:root {
  --ink: #15100c;
  --ink-2: #1f1710;
  --maroon: #6e1423;
  --maroon-deep: #420d16;
  --gold: #c9a227;
  --gold-light: #e8c766;
  --gold-dim: #8a721f;
  --parchment: #f4ead0;
  --parchment-deep: #e8d7a8;
  --cream: #f4ecd8;
  --text-dark: #2b2118;
  --text-muted: #5c4b36;
  --border-gold: rgba(201, 162, 39, 0.45);
  --shadow-deep: 0 20px 50px rgba(0, 0, 0, 0.35);

  --font-display: 'Cinzel Decorative', 'Cinzel', serif;
  --font-head: 'Cinzel', serif;
  --font-body: 'EB Garamond', Georgia, serif;
  --font-quote: 'Cormorant Garamond', Georgia, serif;

  /* ornate geometric Ottoman star pattern, inline SVG, gold stroke on transparent */
  --pattern-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23c9a227' stroke-width='1'%3E%3Cpath d='M32 2 L39 25 L62 32 L39 39 L32 62 L25 39 L2 32 L25 25 Z'/%3E%3Ccircle cx='32' cy='32' r='4'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

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

body {
  margin: 0;
  background: var(--parchment);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-head); letter-spacing: 0.02em; margin: 0; }

/* Content is visible by default (no-JS / slow-JS safe). Only once JS confirms the
   reveal observer is running does it hide elements to animate them in. */
html.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
html.js-reveal .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--maroon), var(--gold));
  z-index: 1000; transition: width 0.1s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(21, 16, 12, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-gold);
  transition: background 0.3s ease;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand-tugra { width: 30px; height: 30px; filter: invert(78%) sepia(44%) saturate(500%) hue-rotate(2deg) brightness(95%); }
.brand-text { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: 0.08em; }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  color: var(--cream); text-decoration: none; font-size: 0.92rem; letter-spacing: 0.04em;
  padding-bottom: 4px; border-bottom: 1px solid transparent; transition: border-color 0.25s ease, color 0.25s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--gold-light); border-color: var(--gold); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 1px solid var(--border-gold); border-radius: 4px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--gold); margin: 0 auto; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--ink); isolation: isolate; border-bottom: 1px solid var(--border-gold);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .site-nav.is-open { max-height: 400px; }
  .site-nav a { padding: 16px 24px; border-bottom: 1px solid rgba(201,162,39,0.15); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(180deg, rgba(21,16,12,0.55), rgba(21,16,12,0.86)),
    radial-gradient(ellipse at 70% 20%, rgba(110,20,35,0.45), transparent 60%),
    var(--ink);
  overflow: hidden; padding: 140px 24px 80px;
}
.hero-pattern {
  position: absolute; inset: 0; background-image: var(--pattern-gold); background-size: 64px 64px; opacity: 0.16; pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 820px; text-align: center; color: var(--cream); }
.eyebrow { font-family: var(--font-head); color: var(--gold-light); letter-spacing: 0.22em; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 18px; }
.hero-title {
  font-family: var(--font-display); font-weight: 700; color: var(--gold-light);
  font-size: clamp(2.6rem, 8vw, 5.2rem); line-height: 1.05; margin-bottom: 16px;
  text-shadow: 0 2px 24px rgba(201,162,39,0.25);
}
.hero-sub { font-family: var(--font-quote); font-style: italic; font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--cream); opacity: 0.92; margin-bottom: 6px; }
.hero-dates { font-size: 0.95rem; letter-spacing: 0.05em; color: var(--gold-light); opacity: 0.85; margin-bottom: 28px; }
.hero-divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 28px; max-width: 320px; }
.hero-divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.divider-tugra { width: 26px; height: 26px; filter: invert(78%) sepia(44%) saturate(500%) hue-rotate(2deg) brightness(95%); }
.hero-lede { font-size: 1.1rem; line-height: 1.7; color: var(--cream); opacity: 0.88; max-width: 620px; margin: 0 auto; }

.scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 46px; border: 2px solid var(--gold); border-radius: 20px;
  background: none; cursor: pointer; z-index: 2;
}
.scroll-cue span { display: block; width: 4px; height: 8px; background: var(--gold); border-radius: 2px; margin: 8px auto; animation: cueMove 1.8s ease-in-out infinite; }
@keyframes cueMove { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(10px); opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }

/* ---------- Sections (generic) ---------- */
.section { position: relative; padding: 96px 24px; overflow: hidden; }
.section-inner { max-width: 1120px; margin: 0 auto; position: relative; z-index: 2; }
.section-inner.narrow { max-width: 760px; text-align: center; }

.section-parchment { background: var(--parchment); background-image: var(--pattern-noise); background-blend-mode: multiply; }
.section-parchment-deep { background: var(--parchment-deep); background-image: var(--pattern-noise); background-blend-mode: multiply; }
.section-ink { background: var(--ink); color: var(--cream); }
.section-pattern { position: absolute; inset: 0; background-image: var(--pattern-gold); background-size: 64px 64px; opacity: 0.08; pointer-events: none; }

.section-head { margin-bottom: 48px; text-align: center; }
.kicker { display: inline-block; font-family: var(--font-head); color: var(--maroon); letter-spacing: 0.2em; font-size: 0.82rem; text-transform: uppercase; margin-bottom: 10px; }
.kicker-light { color: var(--gold-light); }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--maroon-deep); }
.section-head h2.light { color: var(--gold-light); }
.section-intro { max-width: 640px; margin: 14px auto 0; color: var(--text-muted); font-size: 1.1rem; }
.section-head-light .section-intro { color: rgba(244,236,216,0.78); }

.content-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.content-grid-reverse { grid-template-columns: 1fr 1.4fr; }
.content-grid-reverse .fetih-image { order: 1; }
.content-grid-reverse .content-text { order: 2; }
@media (max-width: 860px) {
  .content-grid, .content-grid-reverse { grid-template-columns: 1fr; }
  .content-grid-reverse .fetih-image, .content-grid-reverse .content-text { order: initial; }
}

.content-text p { margin: 0 0 1.2em; }
.content-text-light { color: rgba(244,236,216,0.9); }
.content-text-light p { margin: 0 0 1.2em; }

.pull-card {
  background: var(--cream); border: 1px solid var(--border-gold); border-radius: 2px;
  padding: 32px 28px; position: relative; box-shadow: var(--shadow-deep);
}
.pull-card::before, .pull-card::after { content: ''; position: absolute; width: 14px; height: 14px; border: 2px solid var(--gold); }
.pull-card::before { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.pull-card::after { bottom: 8px; right: 8px; border-left: none; border-top: none; }
.pull-quote { font-family: var(--font-quote); font-style: italic; font-size: 1.3rem; color: var(--maroon-deep); margin: 0 0 12px; }
.pull-attrib { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.03em; }

/* ---------- Fetih section ---------- */
.fetih-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 64px; }
@media (max-width: 860px) { .fetih-grid { grid-template-columns: 1fr; } }

figure { margin: 0; }
figure img { border: 1px solid var(--border-gold); box-shadow: var(--shadow-deep); }
figcaption { font-size: 0.86rem; color: rgba(244,236,216,0.68); margin-top: 10px; line-height: 1.5; }
.section-parchment figcaption, .section-parchment-deep figcaption { color: var(--text-muted); }
.credit { opacity: 0.75; }

.fetih-text p { margin: 0 0 1.2em; color: rgba(244,236,216,0.92); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 64px; }
.stat {
  text-align: center; padding: 24px 12px; border: 1px solid var(--border-gold); border-radius: 3px;
  background: rgba(244, 236, 216, 0.04);
}
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--gold-light); }
.stat-num small { font-size: 0.5em; }
.stat-label { display: block; margin-top: 8px; font-size: 0.85rem; letter-spacing: 0.03em; color: rgba(244,236,216,0.75); }
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

.twin-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .twin-figures { grid-template-columns: 1fr; } }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 120px; width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}
.timeline li { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 32px; padding: 0 0 44px; }
.timeline li::after {
  content: ''; position: absolute; left: 114px; top: 6px; width: 14px; height: 14px;
  background: var(--parchment); border: 2px solid var(--gold); border-radius: 50%;
}
.tl-year { font-family: var(--font-head); font-weight: 600; color: var(--maroon); text-align: right; padding-top: 2px; font-size: 0.95rem; }
.tl-body h3 { font-size: 1.2rem; color: var(--maroon-deep); margin-bottom: 8px; }
.tl-body p { margin: 0; color: var(--text-muted); }
@media (max-width: 700px) {
  .timeline::before { left: 52px; }
  .timeline li { grid-template-columns: 52px 1fr; gap: 18px; }
  .timeline li::after { left: 46px; }
  .tl-year { font-size: 0.78rem; text-align: left; }
}

/* ---------- Final quote ---------- */
.final-quote {
  font-family: var(--font-quote); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold-light); text-align: center; margin: 48px 0 0; padding-top: 32px;
  border-top: 1px solid var(--border-gold);
}

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gallery-grid figcaption { color: var(--text-muted); }
.gallery-tugra-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; background: var(--ink); border: 1px solid var(--border-gold); }
.gallery-tugra-card img { width: 70%; filter: invert(78%) sepia(44%) saturate(500%) hue-rotate(2deg) brightness(95%); border: none; box-shadow: none; }
.gallery-tugra-card figcaption { color: rgba(244,236,216,0.75); text-align: center; }
.gallery-credit { text-align: center; margin-top: 36px; font-size: 0.85rem; color: var(--text-muted); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(244,236,216,0.7); padding: 56px 24px; text-align: center; }
.footer-tugra { width: 40px; height: 40px; margin: 0 auto 16px; filter: invert(78%) sepia(44%) saturate(500%) hue-rotate(2deg) brightness(95%); }
.footer-title { font-family: var(--font-head); letter-spacing: 0.15em; color: var(--gold-light); margin-bottom: 14px; }
.footer-note { max-width: 640px; margin: 0 auto 10px; font-size: 0.88rem; line-height: 1.6; }
.footer-sources { font-size: 0.8rem; opacity: 0.7; }
