/* =====================================================================
   SkyRoute  -  Premium corporate stylesheet
   Theme: deep navy + corporate blue, golden-yellow CTA accents.
   System font stack only (no external fonts) for maximum speed.
   ===================================================================== */

:root {
  --navy-900: #07172f;
  --navy-800: #0a1f44;
  --navy-700: #0f2c5c;
  --blue-600: #1a4a8c;
  --blue-500: #2563b3;
  --blue-100: #e6eef8;
  --gold-500: #f4c430;
  --gold-600: #e0ad1c;
  --ink:      #16243a;
  --muted:    #5b6b82;
  --line:     #e2e8f1;
  --bg:       #ffffff;
  --bg-soft:  #f6f9fd;
  --white:    #ffffff;
  --radius:   14px;
  --radius-sm:10px;
  --shadow:   0 10px 30px rgba(10, 31, 68, .10);
  --shadow-lg:0 24px 60px rgba(10, 31, 68, .18);
  --maxw:     1140px;
  --space:    clamp(1rem, 3vw, 2rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; color: var(--navy-800); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--navy-700); }
img, svg { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .85rem 1.6rem; border: 0; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 700; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn-cta {
  background: var(--gold-500); color: var(--navy-900);
  box-shadow: 0 8px 20px rgba(244, 196, 48, .35);
}
.btn-cta:hover { background: var(--gold-600); color: var(--navy-900); transform: translateY(-1px); }
.btn-cta:active { transform: translateY(0); }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 31, 68, .96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--white); font-weight: 800; letter-spacing: .02em; }
.brand:hover { color: var(--white); }
.brand-icon { color: var(--gold-500); }
.brand-name { font-size: 1.18rem; }
.main-nav { display: flex; gap: .35rem; }
.main-nav a {
  color: #c7d6ee; padding: .5rem .9rem; border-radius: 8px; font-weight: 600; font-size: .95rem;
  transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--white); background: rgba(255, 255, 255, .08); }

/* Mobile hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center; background: transparent; border: 0;
  cursor: pointer; border-radius: 8px; padding: 0;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #e6eefb; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(37, 99, 179, .55), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #eaf1fb; padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700;
  color: var(--gold-500); margin-bottom: 1rem;
}
.hero-title { color: var(--white); font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.hero-sub { color: #c2d2ea; font-size: 1.08rem; max-width: 46ch; }
.hero-points { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .6rem; }
.hero-points li { display: flex; align-items: center; gap: .6rem; color: #d8e3f5; font-weight: 500; }
.hero-points svg { color: var(--gold-500); flex: none; }

/* ---------- Search card (landing) ---------- */
.search-card {
  background: var(--white); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg); color: var(--ink);
}
.search-card-title { font-size: 1.35rem; margin-bottom: 1.2rem; }
.search-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; color: var(--ink); background: var(--bg-soft);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue-500); background: var(--white);
  box-shadow: 0 0 0 4px rgba(37, 99, 179, .12);
}
.search-note { margin: .2rem 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.date-input { cursor: pointer; }

/* ---------- Gidiş-Dönüş / Tek Yön seçici ---------- */
.trip-toggle {
  display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: .25rem;
}
.trip-opt { position: relative; display: flex; }
.trip-opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.trip-opt span {
  display: block; padding: .5rem .95rem; border-radius: 7px; font-size: .9rem; font-weight: 700;
  color: var(--muted); cursor: pointer; transition: background .15s, color .15s; white-space: nowrap;
}
.trip-opt input:checked + span { background: var(--navy-800); color: #fff; }
.trip-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(37, 99, 179, .35); }

/* ---------- Autocomplete (havalimanı/şehir) ---------- */
.ac-wrap { position: relative; }
.ac-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 40;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg); max-height: 300px; overflow-y: auto; display: none;
  -webkit-overflow-scrolling: touch;
}
.ac-list.is-open { display: block; }
.ac-item {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "city code" "name code";
  gap: 0 .6rem; padding: .6rem .85rem; cursor: pointer; border-bottom: 1px solid var(--bg-soft);
}
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover, .ac-item.is-active { background: var(--blue-100); }
.ac-city { grid-area: city; font-weight: 700; color: var(--navy-800); font-size: .95rem; }
.ac-name { grid-area: name; color: var(--muted); font-size: .78rem; line-height: 1.3; }
.ac-code {
  grid-area: code; align-self: center; background: var(--navy-800); color: #fff;
  font-weight: 700; font-size: .72rem; letter-spacing: .04em; border-radius: 6px; padding: .25rem .5rem;
}

/* ---------- Alerts ---------- */
.alert { padding: .85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .95rem; border: 1px solid transparent; }
.alert-error   { background: #fdecec; color: #9b1c1c; border-color: #f6c9c9; }
.alert-success { background: #e9f8ef; color: #146c3a; border-color: #bce8cd; }

/* ---------- Features ---------- */
.features { padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--bg-soft); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-500); margin-bottom: 1rem;
}
.feature h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Results bar (compact search) ---------- */
.results-bar-wrap { background: var(--navy-800); padding: 1rem 0; }
.results-bar {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: end;
  background: var(--white); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow);
}
.rb-trip { flex: 1 1 100%; margin-bottom: 0; }
.rb-field { display: grid; gap: .3rem; flex: 1 1 150px; }
.rb-field.rb-date { flex: 0 1 160px; }
.rb-field label { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rb-field input {
  width: 100%; padding: .6rem .7rem; border: 1.5px solid var(--line); border-radius: 8px; font-size: .95rem;
  font-family: inherit; background: var(--bg-soft);
}
.rb-field input:focus { outline: none; border-color: var(--blue-500); background: var(--white); box-shadow: 0 0 0 3px rgba(37,99,179,.12); }
.rb-swap { color: var(--muted); padding-bottom: .55rem; }
.rb-date { min-width: 150px; }
.rb-submit { padding: .7rem 1.3rem; align-self: end; }

/* ---------- Results / iframe ---------- */
.results-frame-wrap { background: var(--bg-soft); padding-bottom: 2.5rem; }
.results-summary { padding: 1.5rem 0 1rem; }
.results-title { font-size: 1.5rem; display: flex; align-items: center; gap: .6rem; margin: 0; }
.results-title .arrow { color: var(--gold-600); }
.results-meta { color: var(--muted); margin: .25rem 0 0; }
.iframe-shell {
  position: relative; width: 100%; min-height: 78vh; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  margin-inline: auto; max-width: calc(var(--maxw) + 2 * var(--space));
}
.results-iframe { width: 100%; height: 80vh; min-height: 620px; border: 0; display: block; }
.iframe-loader {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .8rem; color: var(--muted); background: var(--white); transition: opacity .3s; z-index: 2;
}
.iframe-loader.is-hidden { opacity: 0; pointer-events: none; }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--blue-100); border-top-color: var(--blue-500); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Generic page sections ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #eaf1fb; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3rem); }
.page-lead { color: #c2d2ea; font-size: 1.1rem; max-width: 60ch; }
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.two-col h2 { font-size: 1.4rem; }
.two-col p { color: var(--muted); }

/* ---------- Stats band ---------- */
.stats-band { background: var(--bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1rem; box-shadow: var(--shadow); }
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--navy-800); }
.stat-label { color: var(--muted); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: var(--white); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: .25rem; }
.cta-band p { color: #c2d2ea; margin: 0; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: center; }
.ci-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-500); flex: none; }
.ci-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.ci-value { font-weight: 600; color: var(--ink); }
.contact-hours { color: var(--muted); font-size: .9rem; }
.contact-form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow); }
.contact-form { display: grid; gap: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #aebfd8; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; padding: 2.5rem 0; flex-wrap: wrap; }
.footer-brand .brand-name { color: var(--white); font-size: 1.2rem; font-weight: 800; }
.footer-tag { color: #8fa3c4; margin: .4rem 0 0; font-size: .92rem; }
.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-nav a { color: #aebfd8; font-weight: 600; }
.footer-nav a:hover { color: var(--gold-500); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1rem 0; font-size: .85rem; color: #7e93b6; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .rb-submit { flex: 1 1 100%; }
}

/* Tablet / phone: collapse nav into a hamburger menu */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: .4rem;
    background: var(--navy-800); border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 14px 30px rgba(0,0,0,.3); display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: .85rem 1rem; border-radius: 8px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .results-bar { gap: .65rem; }
  .rb-field, .rb-field.rb-date { flex: 1 1 100%; }
  .rb-swap { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding: 2rem 0 2.5rem; }
  .search-card { padding: 1.25rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-band .btn { width: 100%; }
  .footer-inner { flex-direction: column; gap: 1.2rem; padding: 2rem 0; }
  .results-iframe { height: 76vh; min-height: 520px; }
  .results-title { font-size: 1.25rem; }
  .btn { padding: .85rem 1.3rem; } /* dokunma hedefi */
}

/* Erişilebilirlik: hareketi azalt */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
