/* KaranFly tanıtım sitesi.
   Kurallar: sol/sağ (fiziksel) kenar boşluğu, konum ve hizalama YOK; yalnız mantıksal özellikler (margin-inline-start ...).
   Böylece /ar/ (dir="rtl") düzeni kendiliğinden aynalanır. Logo ve marka adı aynalanmaz.
   Altın (#C99745) açık zeminde METİN olarak kullanılmaz; açık zeminde altın tonlu öğe gerekirse --gold-text. */

/* ---------- Yazı tipleri (yerel woff2; tarayıcı yalnız sayfada geçen alt kümeyi indirir) ---------- */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/poppins-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/poppins-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/poppins-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/poppins-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/poppins-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/poppins-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* Poppins'te Kiril harfi yoktur: Rusça harfler için Poppins'e en yakın geometrik yazı (Montserrat, yalnız Kiril alt kümesi). */
@font-face { font-family: 'KF Cyrillic'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/montserrat-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'KF Cyrillic'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/montserrat-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'KF Cyrillic'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/montserrat-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
/* Arapça: IBM Plex Sans Arabic (Poppins'le uyumlu, sade). */
@font-face { font-family: 'KF Arabic'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'KF Arabic'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'KF Arabic'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }

/* ---------- Token'lar ---------- */
:root {
  --burgundy: #790B24;      /* ana */
  --gold: #C99745;          /* vurgu: koyu zeminde metin olabilir, açık zeminde olamaz */
  --night: #260710;         /* koyu zemin */
  --ivory: #FBF6EF;         /* açık zemin */
  --white: #FFFFFF;
  --gold-text: #8A6420;     /* açık zeminde altın tonlu öğe (5.4:1) */
  --ink: #2A1A1E;           /* açık zeminde gövde metni */
  --ink-muted: #5E4A4F;     /* ikincil metin (ivory üzerinde 7.9:1) */
  --night-text: #E9DCCB;    /* koyu zeminde ikincil metin (11:1) */
  --line: #E7DCCD;          /* açık zeminde ayırıcı */
  --night-line: rgba(251, 246, 239, .16);

  --font: 'Poppins', 'KF Cyrillic', 'KF Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-body: 1.0625rem;     /* 17 */
  --fs-small: .9375rem;     /* 15 */
  --fs-lead: 1.1875rem;     /* 19 */
  --fs-h3: 1.1875rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 2vw, 2.375rem);
  --fs-h1: clamp(2.25rem, 1.1rem + 4.6vw, 4rem);
  --lh: 1.65;
  --lh-tight: 1.15;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 10px;
  --radius-lg: 18px;
  --focus: 0 0 0 3px var(--ivory), 0 0 0 5px var(--burgundy);
  --focus-dark: 0 0 0 3px var(--gold);
}

/* Arapça: daha geniş satır aralığı ve biraz büyük gövde; harf aralığı Arapça harf bağlarını bozacağı için sıfır. */
:root:lang(ar) {
  --fs-body: 1.125rem;
  --fs-lead: 1.25rem;
  --lh: 1.95;
  --lh-tight: 1.45;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh);
  color: var(--ink);
  background: var(--ivory);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-inline-size: 100%; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: var(--lh-tight); }
p { margin: 0; }
a { color: inherit; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; }

.wrap { inline-size: 100%; max-inline-size: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; inset-inline-start: 1rem; inset-block-start: -4rem;
  padding: .6rem 1rem; background: var(--gold); color: var(--night); border-radius: var(--radius);
  font-weight: 600; z-index: 10; text-decoration: none;
}
.skip-link:focus { inset-block-start: 1rem; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.topbar :focus-visible, .hero :focus-visible, .footer :focus-visible, .contact__box :focus-visible { box-shadow: var(--focus-dark); }

.icon { inline-size: 1.25em; block-size: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* Yön bildiren öğeler RTL'de ters döner (logo, marka adı ve WhatsApp ikonu bu sınıfı ALMAZ). */
[dir="rtl"] .dir-flip { transform: scaleX(-1); }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-block-size: 48px; padding-block: .7rem; padding-inline: 1.35rem;
  border-radius: var(--radius); border: 1.5px solid transparent;
  font: inherit; font-weight: 500; font-size: 1rem; line-height: 1.25; text-decoration: none; text-align: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--gold { background: var(--gold); color: var(--night); }
.btn--gold:hover { background: #D6A85A; }
.btn--ghost { color: var(--ivory); border-color: var(--night-line); }
.btn--ghost:hover { border-color: var(--ivory); }
.btn--line { min-block-size: 44px; padding-inline: 1rem; color: var(--ivory); border-color: var(--gold); font-size: var(--fs-small); }
.btn--line:hover { background: var(--gold); color: var(--night); }
.btn--light { background: var(--white); color: var(--burgundy); }
.btn--light:hover { background: var(--ivory); }
.btn--outline-light { color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

/* ---------- Üst bar ---------- */
.topbar { background: var(--night); color: var(--ivory); border-block-end: 1px solid var(--night-line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-block-size: 76px; }
.brand { display: inline-flex; flex: none; }
.brand img { block-size: 48px; inline-size: auto; }
.topbar__nav { display: flex; align-items: center; gap: .5rem; }

.lang { position: relative; }
.lang__toggle {
  display: inline-flex; align-items: center; gap: .4rem; min-block-size: 44px; padding-inline: .75rem;
  border-radius: var(--radius); cursor: pointer; list-style: none; font-size: var(--fs-small); font-weight: 500;
  color: var(--ivory);
}
.lang__toggle::-webkit-details-marker { display: none; }
.lang__toggle:hover, .lang[open] .lang__toggle { background: rgba(251, 246, 239, .08); }
.lang__menu {
  position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + .4rem); z-index: 5;
  min-inline-size: 11rem; margin: 0; padding: .4rem; list-style: none;
  background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(38, 7, 16, .28);
}
.lang__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-block-size: 44px;
  padding-inline: .75rem; border-radius: 6px; text-decoration: none; font-size: var(--fs-small);
}
.lang__menu a:hover { background: var(--ivory); }
.lang__menu a[aria-current="page"] { color: var(--burgundy); font-weight: 600; }
.lang__menu .lang__code { color: var(--ink-muted); font-size: .8125rem; font-weight: 500; }

/* ---------- Hero ---------- */
.hero { background: var(--night); color: var(--ivory); padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.hero__title { font-size: var(--fs-h1); max-inline-size: 15ch; letter-spacing: -0.015em; }
:lang(ar) .hero__title { max-inline-size: 14ch; letter-spacing: 0; }
:lang(de) .hero__title, :lang(ru) .hero__title { max-inline-size: 18ch; }
.hero__lead { margin-block-start: 1.5rem; max-inline-size: 38rem; font-size: var(--fs-lead); color: var(--night-text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block-start: 2.25rem; }

/* İmza öğesi: logodaki altın kavisten türeyen güzergâh çizgisi (otel -> havalimanı). Sayfa açılışında bir kez çizilir. */
.route { margin-block: clamp(2.5rem, 7vw, 4.5rem) 0; }
/* Oran korunarak ölçeklenir (çizgi kalınlığı genişlikle orantılı); uç noktalar SVG'nin alt kenarındadır. */
.route__line { inline-size: 100%; block-size: auto; overflow: visible; }
.route__path { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.route__stops { display: flex; justify-content: space-between; gap: 1rem; margin-block-start: -8px; }
.route__stop {
  display: flex; flex-direction: column; align-items: flex-start; gap: .75rem;
  font-size: var(--fs-small); font-weight: 500; color: var(--ivory); white-space: nowrap;
}
.route__stop--to { align-items: flex-end; }
.route__stop i { inline-size: 16px; block-size: 16px; border-radius: 50%; flex: none; }
.route__stop--from i { border: 2px solid var(--ivory); background: var(--night); }
.route__stop--to i { background: var(--gold); box-shadow: 0 0 0 6px rgba(201, 151, 69, .22); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .route__path { stroke-dashoffset: 1; animation: kf-draw 1.8s cubic-bezier(.6, .05, .25, 1) .35s forwards; }
  .route__stop--to i { opacity: 0; animation: kf-arrive .4s ease-out 2s forwards; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@keyframes kf-draw { to { stroke-dashoffset: 0; } }
@keyframes kf-arrive { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

/* ---------- Bölüm başlıkları ---------- */
.section-head { max-inline-size: 40rem; margin-block-end: clamp(2rem, 5vw, 3.25rem); }
.section-head h2 { font-size: var(--fs-h2); color: var(--night); }
.section-head p { margin-block-start: .85rem; font-size: var(--fs-lead); color: var(--ink-muted); }

/* ---------- Neden KaranFly ---------- */
.why { padding-block: clamp(4rem, 9vw, 6.5rem); }
.why__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none;
  border-block-start: 1px solid var(--line); }
.why__item { padding-block: 2rem 0; padding-inline: 0 2rem; }
.why__item + .why__item { padding-inline-start: 2rem; border-inline-start: 1px solid var(--line); }
.why__icon { inline-size: 36px; block-size: 36px; fill: none; stroke: var(--gold-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.why__item h3 { margin-block-start: 1.25rem; font-size: var(--fs-h3); color: var(--night); }
.why__item p { margin-block-start: .6rem; color: var(--ink-muted); }

/* ---------- Nasıl çalışır (gerçek bir sıra: numaralı duraklar, aynı güzergâh çizgisi üzerinde) ---------- */
.how { background: var(--white); padding-block: clamp(4rem, 9vw, 6.5rem); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
.steps::before {
  content: ""; position: absolute; inset-block-start: 23px; inset-inline: 24px calc((100% - 5rem) / 3 - 24px);
  border-block-start: 2px dashed var(--line);
}
.step { position: relative; }
.step__num {
  position: relative; display: grid; place-items: center; inline-size: 48px; block-size: 48px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--burgundy); color: var(--burgundy); font-weight: 600; font-size: 1.0625rem;
}
.step:last-child .step__num { background: var(--burgundy); color: var(--white); }
.step h3 { margin-block-start: 1.25rem; font-size: var(--fs-h3); color: var(--night); }
.step p { margin-block-start: .6rem; color: var(--ink-muted); max-inline-size: 22rem; }

/* ---------- İletişim ---------- */
.contact { padding-block: clamp(4rem, 9vw, 6.5rem); }
.contact__box {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius-lg); background: var(--burgundy); color: var(--white);
  border-block-start: 3px solid var(--gold);
}
.contact__text h2 { font-size: var(--fs-h2); }
.contact__text p { margin-block-start: .85rem; font-size: var(--fs-lead); color: #F6E9EC; }
.contact__actions { display: flex; flex-direction: column; gap: .75rem; }
.contact__actions .btn { inline-size: 100%; }
.contact__address { font-size: var(--fs-small); color: #F6E9EC; text-align: center; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--night-text); padding-block: 3rem; font-size: var(--fs-small); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: center; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.footer__brand img { block-size: 40px; inline-size: auto; max-inline-size: none; }
.footer__login { color: var(--ivory); font-weight: 500; text-underline-offset: 4px; min-block-size: 44px; display: inline-flex; align-items: center; }
.footer__login:hover { color: var(--gold); }
.footer__copy { grid-column: 1 / -1; padding-block-start: 1.5rem; border-block-start: 1px solid var(--night-line); }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(4rem, 12vw, 8rem); }
.notfound h1 { font-size: var(--fs-h2); color: var(--night); }
.notfound p { margin-block: 1rem 2rem; color: var(--ink-muted); }
.notfound ul { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.notfound .btn { background: var(--burgundy); color: var(--white); }
.notfound section + section { margin-block-start: 3rem; padding-block-start: 3rem; border-block-start: 1px solid var(--line); }

/* ---------- Duyarlı düzen ---------- */
@media (max-width: 900px) {
  .why__list { grid-template-columns: minmax(0, 1fr); }
  .why__item, .why__item + .why__item { padding-block: 1.75rem; padding-inline: 0; border-inline-start: 0; }
  .why__item + .why__item { border-block-start: 1px solid var(--line); }
  .why__item { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 1.25rem; }
  .why__icon { grid-row: span 2; }
  .why__item h3 { margin-block-start: .2rem; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .steps::before { inset-block: 24px 24px; inset-inline: 23px auto; border-block-start: 0; border-inline-start: 2px dashed var(--line); }
  .step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 1.25rem; }
  .step__num { grid-row: span 2; }
  .step h3 { margin-block-start: .6rem; }

  .contact__box { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .topbar__inner { min-block-size: 64px; }
  .brand img { block-size: 38px; }
  .btn--line { padding-inline: .75rem; }
  .lang__toggle { padding-inline: .5rem; }
  .hero__actions .btn { inline-size: 100%; }
  .route__stop { font-size: .8125rem; }
  .footer__inner { grid-template-columns: minmax(0, 1fr); }
}
