/*
Theme Name: Ataman Havacılık
Description: Ataman Havacılık Danışmanlık Ltd. Şti. için özel tema (TR/EN).
Version: 1.13.6
Author: Wise Digital
Text Domain: ataman
*/

:root {
  --navy: #302a5e;
  --navy-dark: #1d1940;
  --red: #e31e24;
  --red-dark: #bf1319;
  --ink: #1f1d2b;
  --muted: #5f5d72;
  --line: #e3e2ec;
  --soft: #f6f5fa;
  --radius: 12px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 3px solid var(--red); box-shadow: 0 2px 14px rgba(29,25,64,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 118px; }
.brand img { height: 98px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--navy); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--red); text-decoration: none; }
.lang-switch { border: 2px solid var(--navy); border-radius: 999px; padding: 3px 12px; font-size: .8rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--navy); font-size: 1.8rem; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; padding: 13px 28px; border-radius: 6px; font-weight: 700; border: 2px solid transparent; cursor: pointer; font-size: 1rem; }
.btn:hover { text-decoration: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #f0eef8; }

/* Hero */
.hero {
  color: #fff; padding: 110px 0 120px; position: relative; overflow: hidden;
  background:
    linear-gradient(100deg, rgba(29,25,64,.92) 0%, rgba(48,42,94,.74) 48%, rgba(48,42,94,.22) 100%),
    var(--hero-img, none) 70% 50%/cover no-repeat,
    var(--navy-dark);
}
.hero::before {
  content: ""; position: absolute; right: -120px; top: -60px; width: 520px; height: 520px;
  border-radius: 50%; border: 60px solid rgba(255,255,255,.05);
}
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.15; margin: 0 0 20px; max-width: 900px; }
.hero p { font-size: 1.12rem; max-width: 720px; color: #d6d3ea; margin: 0 0 34px; }
.hero .eyebrow { color: #ff6b70; letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; font-weight: 700; margin-bottom: 14px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Intro (preloader): gerçek dünya dokusu + yörüngede uçak */
#intro { position: fixed; inset: 0; z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(circle at 50% 42%, #1c2a66 0%, #14183f 50%, #080a1f 100%); transition: opacity .6s ease, visibility .6s ease; }
#intro.hide { opacity: 0; visibility: hidden; }
html.intro-on, html.intro-on body { overflow: hidden; }
.intro-stage { position: relative; width: 460px; height: 460px; flex: none; }
@media (max-width: 560px) { .intro-stage { transform: scale(.68); margin: -70px 0; } }
.intro-stage .layer, .intro-stage .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-stage .layer.back { z-index: 1; } .intro-stage .earth { z-index: 2; } .intro-stage .layer.front { z-index: 3; }
.intro-stage .tilt { position: absolute; inset: 0; transform: rotate(-18deg); }
.ring ellipse { fill: none; stroke: rgba(160,200,255,.4); stroke-width: 1.4; stroke-dasharray: 4 6; }
.earth { position: absolute; left: 100px; top: 100px; width: 260px; height: 260px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 2px rgba(150,200,255,.25), 0 0 40px 8px rgba(70,140,255,.45), 0 0 110px 25px rgba(60,120,255,.28); }
.earth-map { position: absolute; inset: 0; background-size: 520px 260px; background-repeat: repeat-x; background-position: -180px 0;
  filter: saturate(1.5) brightness(1.7) contrast(1.05); animation: earth-settle 1.6s cubic-bezier(.15,.6,.25,1) both; }
.earth-tint { position: absolute; inset: 0; background: radial-gradient(circle at 45% 40%, rgba(40,150,255,.75), rgba(20,90,220,.6) 70%); mix-blend-mode: screen; }
.earth-pin { position: absolute; left: 130px; top: 74px; width: 0; height: 0; opacity: 0; animation: pin-in .4s ease 1.2s forwards; }
.earth-pin i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #e31e24; box-shadow: 0 0 0 2px #fff, 0 0 12px 3px rgba(227,30,36,.9); }
.earth-pin i::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); animation: pin-pulse 1.3s ease-out infinite; }
@keyframes pin-in { to { opacity: 1; } }
@keyframes pin-pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.earth::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 38%), radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 52%, rgba(0,10,40,.55) 80%, rgba(0,5,25,.9) 100%);
  box-shadow: inset 0 0 22px 3px rgba(120,180,255,.5); }
@keyframes earth-settle { from { background-position: -420px 0; } to { background-position: -180px 0; } }
.ij { position: absolute; left: 0; top: 0; width: 118px; color: #fff; offset-path: path("M440 230 A210 64 0 0 1 20 230 A210 64 0 0 1 440 230"); offset-rotate: auto; offset-anchor: 50% 50%;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.6)); animation: ij-orbit 1.9s linear infinite; }
.ij svg { width: 100%; height: auto; display: block; }
.ij-front { animation: ij-orbit 1.9s linear infinite, ij-front 1.9s steps(1) infinite; }
.ij-back { animation: ij-orbit 1.9s linear infinite, ij-back 1.9s steps(1) infinite; opacity: .6; }
@keyframes ij-orbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes ij-front { 0% { visibility: visible; } 50% { visibility: hidden; } }
@keyframes ij-back { 0% { visibility: hidden; } 50% { visibility: visible; } }
.intro-logo { height: 70px; width: auto; background: #fff; border-radius: 10px; padding: 6px 12px; animation: intro-pop .8s ease both; }
@keyframes intro-pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.intro-bar { width: min(220px, 55vw); height: 3px; background: rgba(255,255,255,.18); border-radius: 3px; overflow: hidden; }
.intro-bar i { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; animation: intro-load 2s ease-out forwards; }
@keyframes intro-load { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Hero jet animation */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.jet { position: absolute; left: 0; color: #fff; opacity: 0; will-change: transform, opacity; }
.jet svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.jet .trail { position: absolute; right: 94%; top: 50%; height: 4px; width: 420px; transform: translateY(-50%); border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.75)); filter: blur(1.5px); }
.jet-main { width: 120px; top: 62%; animation: fly-main 7s cubic-bezier(.3,.1,.3,1) .4s 1 forwards; }
.jet-second { width: 64px; top: 22%; animation: fly-far 26s linear 9s infinite; }
.jet-third { width: 44px; top: 40%; animation: fly-far 34s linear 19s infinite; }
.jet-second .trail, .jet-third .trail { width: 220px; opacity: .6; }
@keyframes fly-main {
  0%   { transform: translate(-260px, 90px) rotate(-8deg); opacity: 0; }
  8%   { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translate(calc(100vw + 80px), -200px) rotate(-12deg); opacity: 0; }
}
@keyframes fly-far {
  0%   { transform: translate(-200px, 20px) rotate(-3deg); opacity: 0; }
  6%   { opacity: .55; }
  94%  { opacity: .55; }
  100% { transform: translate(calc(100vw + 60px), -60px) rotate(-5deg); opacity: 0; }
}
.hero .wrap { z-index: 2; }
@media (max-width: 900px) { .jet-main { width: 80px; } .jet .trail { width: 220px; } .jet-third { display: none; } }
@media (prefers-reduced-motion: reduce) { .sky { display: none; } }

.hero-photo { display: none; }

/* Trust badges */
.badges { margin-top: -50px; position: relative; z-index: 2; padding-bottom: 20px; }
.badge { background: #fff; border-radius: var(--radius); padding: 24px 26px; box-shadow: 0 10px 30px rgba(29,25,64,.14); border-top: 4px solid var(--red); }
.badge strong { display: block; color: var(--navy); font-size: 1.15rem; margin-bottom: 6px; }
.badge span { color: var(--muted); font-size: .94rem; display: block; }

/* Sections */
section { padding: 76px 0; }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-title h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; color: var(--navy); }
.section-title p { color: var(--muted); margin: 0 0 10px; }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: #fff; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(29,25,64,.1); }
.card .num { font-size: 2rem; font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 12px; }
.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.18rem; }
.card p { margin: 0; color: var(--muted); }
.bg-soft { background: var(--soft); }

.why { display: flex; gap: 16px; align-items: flex-start; }
.why span { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.why p { margin: 0; }

.segment { max-width: 820px; text-align: center; }
.segment h2 { color: var(--navy); margin: 0 0 14px; }
.segment p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Photo band */
.photo-band { position: relative; color: #fff; padding: 120px 0; background: var(--navy-dark) center/cover no-repeat; text-align: center; }
.photo-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,25,64,.55), rgba(29,25,64,.8)); }
.photo-band .wrap { position: relative; }
.photo-band h2 { margin: 0 0 14px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.photo-band p { margin: 0 auto; max-width: 640px; font-size: 1.12rem; color: #e6e4f3; }

/* Stats */
.stats { background: var(--navy); color: #fff; padding: 46px 0; }
.stats .grid { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats strong { display: block; font-size: 2.2rem; color: #fff; border-bottom: 3px solid var(--red); width: max-content; margin: 0 auto 8px; padding: 0 6px 4px; }
.stats span { color: #c9c6e2; font-size: .92rem; }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partner { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 16px; text-align: center; font-weight: 700; color: var(--navy); letter-spacing: .02em; background: #fff; min-height: 88px; display: grid; place-items: center; transition: border-color .2s, box-shadow .2s; }
.partner:hover { border-color: var(--red); box-shadow: 0 8px 22px rgba(29,25,64,.09); }
.partners-more { text-align: center; max-width: 780px; margin: 34px auto 0; color: var(--muted); font-size: 1.05rem; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--red), var(--navy)); color: #fff; text-align: center; }
.cta h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta p { margin: 0 auto 28px; max-width: 620px; opacity: .95; }

/* Page */
.page-head { background: linear-gradient(160deg, var(--navy-dark), var(--navy)); color: #fff; padding: 60px 0; border-bottom: 4px solid var(--red); }
.page-head.has-img { padding: 90px 0; background: linear-gradient(100deg, rgba(29,25,64,.93), rgba(48,42,94,.7)), var(--head-img) center/cover no-repeat, var(--navy-dark); border-bottom: 4px solid var(--red); }
.page-head.has-img.lite { background: linear-gradient(100deg, rgba(29,25,64,.7) 0%, rgba(48,42,94,.22) 50%, rgba(48,42,94,0) 100%), var(--head-img) center/cover no-repeat, var(--navy-dark); }
.page-head.lite h1, .page-head.lite p { text-shadow: 0 2px 10px rgba(0,0,0,.65); }
.page-head h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.page-head p { margin: 10px 0 0; color: #d6d3ea; font-size: 1.1rem; }
.content { padding: 64px 0; }
.about-text { max-width: 860px; font-size: 1.08rem; }
.about-text p { margin: 0 0 20px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-info p { margin: 0 0 18px; }
.contact-info b { display: block; color: var(--navy); }
form.contact label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
form.contact input, form.contact textarea, form.contact select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; margin-bottom: 18px; background: #fff; }
form.contact input:focus, form.contact textarea:focus, form.contact select:focus { outline: 2px solid var(--navy); border-color: transparent; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 8px; margin-bottom: 22px; }
.notice.ok { background: #e6f6ec; color: #17623a; }
.notice.err { background: #fdeaea; color: #8f1d1d; }

/* News / announcements */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(29,25,64,.1); }
.pc-img { display: block; aspect-ratio: 16/10; background: var(--navy) center/cover no-repeat; }
.pc-img.no-img { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); position: relative; }
.pc-img.no-img::after { content: "✈"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: rgba(255,255,255,.35); }
.pc-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.pc-body time { font-size: .82rem; color: var(--red); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pc-body h3 { margin: 8px 0 10px; font-size: 1.15rem; line-height: 1.3; }
.pc-body h3 a { color: var(--navy); }
.pc-body p { margin: 0 0 14px; color: var(--muted); font-size: .95rem; flex: 1; }
.pc-more { font-weight: 700; font-size: .92rem; }
.news-all { text-align: center; margin: 36px 0 0; }
.news-empty { text-align: center; color: var(--muted); font-size: 1.1rem; padding: 40px 0; }
.pager { margin-top: 40px; text-align: center; }
.pager .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; border: 1px solid var(--line); border-radius: 8px; color: var(--navy); font-weight: 600; }
.pager .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager a.page-numbers:hover { border-color: var(--red); text-decoration: none; }
.wrap.narrow { max-width: 840px; }
.post-meta { margin: 0 0 8px !important; color: #ff9fa2 !important; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: .85rem; }
.post-hero { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; }
.post-hero img { display: block; width: 100%; height: auto; }
.back-news { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 600; }

/* Yazı içeriği (WordPress blokları) */
.entry-content { font-size: 1.08rem; }
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content h2, .entry-content h3 { color: var(--navy); margin-top: 1.6em; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; text-align: center; }
.entry-content blockquote { border-left: 4px solid var(--red); margin-left: 0; padding: 4px 0 4px 20px; color: var(--muted); font-style: italic; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--soft); }
.entry-content .wp-block-file { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 8px; background: var(--soft); }
.entry-content .wp-block-file a:not(.wp-block-file__button) { font-weight: 700; color: var(--navy); }
.entry-content .wp-block-file__button { background: var(--red); color: #fff !important; padding: 9px 18px; border-radius: 6px; font-weight: 700; font-size: .9rem; text-decoration: none !important; }
.entry-content .wp-block-gallery { gap: 12px; }
.entry-content .wp-block-embed iframe, .entry-content iframe { max-width: 100%; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #b9b6d3; padding: 56px 0 24px; font-size: .94rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; }
.site-footer a { color: #b9b6d3; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.foot-logo { height: 90px; width: auto; background: #fff; border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; }
.credits { margin-top: 8px; font-size: .78rem; opacity: .7; }
.credits a { text-decoration: underline; }
.copy {border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; text-align: center; font-size: .85rem; }

@media (max-width: 900px) {
  .hero { background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%); }
  .hero .wrap { display: flex; flex-direction: column; }
  .hero-photo { display: block; order: -1; position: relative; margin: 0 -20px 28px; aspect-ratio: 1139 / 641; background-size: cover; background-position: center; background-repeat: no-repeat; }
  .hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,25,64,0) 62%, var(--navy-dark) 100%); }
  .news-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .contact-grid, .site-footer .cols { grid-template-columns: 1fr; }
  .brand img { height: 74px; }
  .site-header .wrap { height: 92px; }
  .partners, .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .photo-band { padding: 80px 0; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 95px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; gap: 16px; border-bottom: 3px solid var(--red); }
  .nav.open { display: flex; }
  section { padding: 54px 0; }
  .hero { padding: 0 0 70px; }
}
