/* ==========================================================================
   IGL Lojistik — tasarım güncellemesi (style.css'in üzerine yüklenir)
   ========================================================================== */

:root {
    --igl-primary: #00A8E2;
    --igl-primary-dark: #0088b8;
    --igl-navy: #2B3057;
    --igl-navy-deep: #141a3a;
    --igl-text: #5f6274;
    --igl-line: #e8eaf0;
    --igl-surface: #ffffff;
    --igl-bg: #f6f7fb;
    --igl-radius: 14px;
    --igl-radius-sm: 8px;
    --igl-shadow: 0 10px 30px -12px rgba(20, 26, 58, .18);
    --igl-shadow-lg: 0 24px 48px -18px rgba(20, 26, 58, .28);
    --igl-ease: cubic-bezier(.22, .61, .36, 1);
}

body {
    background: var(--igl-bg);
    color: var(--igl-text);
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--igl-primary); color: #fff; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    transition: box-shadow .3s var(--igl-ease);
}
.header--fixed { box-shadow: 0 8px 24px -16px rgba(20, 26, 58, .35); }
.header__top { background: var(--igl-navy); }
.header__top .container-fluid { border-bottom: 0; padding-top: 7px; padding-bottom: 7px; }
.header__top .social__link,
.header__top .top-buttons__link { color: rgba(255, 255, 255, .8); }
.header__top .social__link:hover,
.header__top .top-buttons__link:hover { color: #fff; }
.header__top .dropdown-menu { border-radius: var(--igl-radius-sm); border: 0; box-shadow: var(--igl-shadow); }
.header__bottom .container-fluid { border-bottom: 0; }

.menu__link { position: relative; }
.menu__link::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--igl-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--igl-ease);
}
.menu__item:hover > .menu__link::before { transform: scaleX(1); }

.menu__item:hover > .sub-menu {
    border: 1px solid var(--igl-line);
    border-radius: var(--igl-radius);
    box-shadow: var(--igl-shadow-lg);
    animation: igl-drop .2s var(--igl-ease);
}
.sub-menu a { border-radius: 6px; }

@keyframes igl-drop {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Butonlar & formlar
   -------------------------------------------------------------------------- */
.btn { border-radius: 10px; transition: background-color .2s, border-color .2s, transform .2s var(--igl-ease), box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary:hover { box-shadow: 0 10px 20px -10px rgba(0, 168, 226, .7); }
.btn-secondary:hover { background: var(--igl-navy-deep); border-color: var(--igl-navy-deep); }

.form-control { border-radius: 10px; border-color: var(--igl-line); transition: border-color .2s, box-shadow .2s; }
.form-control:focus { border-color: var(--igl-primary); box-shadow: 0 0 0 4px rgba(0, 168, 226, .12); outline: 0; }
.form-box { border-radius: var(--igl-radius); }

/* --------------------------------------------------------------------------
   Ana sayfa slider (hero)
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--igl-navy-deep); }
.hero__slider { position: relative; height: clamp(540px, 82vh, 820px); overflow: hidden; }
.hero__slider .swiper-wrapper,
.hero__slide { height: 100%; }
.hero__slide { position: relative; overflow: hidden; background: var(--igl-navy-deep); }

.hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center; /* görsellerde araçlar sağ tarafta */
    transform: scale(1.02);
    transition: transform 9s linear;
    will-change: transform;
}
.hero__slide.swiper-slide-active .hero__img { transform: scale(1.12); }

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(20, 26, 58, .88) 0%, rgba(20, 26, 58, .6) 38%, rgba(20, 26, 58, .1) 75%),
        linear-gradient(0deg, rgba(20, 26, 58, .85) 0%, rgba(20, 26, 58, 0) 32%);
}

.hero__content {
    position: absolute;
    inset: 0 0 120px;
    margin: 0 auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--igl-primary);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.hero__eyebrow::before { content: ""; width: 36px; height: 2px; background: currentColor; border-radius: 2px; }

.hero__title {
    max-width: 760px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2rem, 4.2vw, 3.7rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.01em;
    text-wrap: balance;
}
.hero__text { max-width: 560px; margin: 0 0 26px; color: rgba(255, 255, 255, .82); font-size: 1.08rem; line-height: 1.7; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--igl-ease), box-shadow .25s;
}
.hero-btn svg { transition: transform .25s var(--igl-ease); }
.hero-btn:hover { transform: translateY(-2px); }
.hero-btn:hover svg { transform: translateX(4px); }
.hero-btn--primary { background: var(--igl-primary); color: #fff; box-shadow: 0 14px 30px -12px rgba(0, 168, 226, .8); }
.hero-btn--primary:hover { background: var(--igl-primary-dark); color: #fff; }
.hero-btn--ghost { border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; }
.hero-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--igl-navy); }

/* Yazı animasyonları — aktif slaytta sırayla gelir */
.hero__eyebrow, .hero__title, .hero__text, .hero__actions { opacity: 0; transform: translateY(24px); }
.swiper-slide-active .hero__eyebrow,
.swiper-slide-active .hero__title,
.swiper-slide-active .hero__text,
.swiper-slide-active .hero__actions { animation: igl-rise .9s var(--igl-ease) forwards; }
.swiper-slide-active .hero__title   { animation-delay: .12s; }
.swiper-slide-active .hero__text    { animation-delay: .24s; }
.swiper-slide-active .hero__actions { animation-delay: .34s; }

@keyframes igl-rise { to { opacity: 1; transform: none; } }

/* Alt kontrol çubuğu: numaralı sekmeler + oklar */
.hero__controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    gap: 32px;
    padding-bottom: 34px;
}
.hero__tabs { flex: 1; display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 24px; }
.hero-tab {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: baseline;
    padding: 18px 0 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, .6);
    text-align: left;
    cursor: pointer;
    transition: color .25s;
}
.hero-tab:hover, .hero-tab.is-active { color: #fff; }
.hero-tab__num { font-size: .85rem; font-weight: 700; color: var(--igl-primary); font-variant-numeric: tabular-nums; }
.hero-tab__title { overflow: hidden; font-size: .95rem; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.hero-tab__bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.hero-tab__bar i { display: block; width: 0; height: 100%; background: var(--igl-primary); border-radius: inherit; }
.hero-tab.is-active .hero-tab__bar i { width: 100%; }
.hero__slider.is-paused .hero-tab__bar i { transition: none !important; }

.hero__arrows { display: flex; gap: 10px; }
.hero-arrow {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    cursor: pointer;
    transition: background-color .25s, border-color .25s, transform .25s var(--igl-ease);
}
.hero-arrow:hover { background: var(--igl-primary); border-color: var(--igl-primary); transform: scale(1.06); }
.hero-arrow:focus-visible, .hero-tab:focus-visible, .hero-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Bölüm başlıkları
   -------------------------------------------------------------------------- */
.title-block__small {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.title-block__small::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.title.color--secondary { letter-spacing: -.01em; }

/* --------------------------------------------------------------------------
   Hizmet kartları
   -------------------------------------------------------------------------- */
.home-services { padding: 40px 0; }
.service {
    background: var(--igl-surface);
    border: 1px solid var(--igl-line);
    border-radius: var(--igl-radius);
    transition: transform .35s var(--igl-ease), box-shadow .35s var(--igl-ease), border-color .35s;
}
.service:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--igl-shadow-lg); }
.service__icon { border-radius: 18px; transition: background-color .35s, transform .35s var(--igl-ease); }
.service:hover .service__icon { background: rgba(0, 168, 226, .18); transform: rotate(-4deg); }
.service .icon-link .bi { transition: transform .25s var(--igl-ease); }
.service:hover .icon-link .bi { transform: rotate(90deg); }

/* --------------------------------------------------------------------------
   Hakkımızda & haberler
   -------------------------------------------------------------------------- */
.home-about__img { overflow: hidden; }
.home-about__content { background: linear-gradient(160deg, #ffffff 0%, #eef2f8 100%); }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { max-width: 100%; }

.news-list__img { position: relative; overflow: hidden; border-radius: var(--igl-radius); }
.news-list__img img { transition: transform .6s var(--igl-ease); }
.news-list__item:hover .news-list__img img { transform: scale(1.05); }
.news-list__date {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 168, 226, .1);
    color: var(--igl-primary-dark);
    font-size: .78rem;
    font-weight: 600;
}
.news-list__title { transition: color .2s; }
.news-list__title:hover { color: var(--igl-primary); }

.blog__date { color: var(--igl-primary-dark); font-weight: 600; }

/* --------------------------------------------------------------------------
   İç sayfa başlık bandı
   -------------------------------------------------------------------------- */
.banner { position: relative; isolation: isolate; overflow: hidden; }
.banner:not(.banner--map)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(20, 26, 58, .15) 0%, rgba(20, 26, 58, .78) 100%);
}
.banner__title { text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.breadcrumb { background: transparent; padding-left: 0; }

/* --------------------------------------------------------------------------
   "Biz sizi arayalım" bandı & footer
   -------------------------------------------------------------------------- */
.call-you-wrapper { position: relative; isolation: isolate; padding: 28px 0; }
.call-you-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(0, 136, 184, .95) 0%, rgba(0, 168, 226, .85) 100%);
}

.footer { background: #fff; border-top: 1px solid var(--igl-line); }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--igl-primary); }
.footer__bottom { border-top: 1px solid var(--igl-line); }
.footer .social__link {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 168, 226, .1);
    transition: background-color .2s, color .2s;
}
.footer .social__link:hover { background: var(--igl-primary); color: #fff; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .hero__tabs { gap: 14px; }
    .hero-tab__title { display: none; }
    .hero__controls { gap: 18px; }
}

@media (max-width: 768px) {
    .hero__slider { height: clamp(480px, 76vh, 640px); }
    /* Mobilde görselin görünen bölümü: her slayt kendi odak noktasını --focus-mobile ile verir */
    .hero__img { object-position: var(--focus-mobile, 72%) center; }
    .hero__content { inset: 0 0 96px; padding-left: 20px; padding-right: 20px; }
    /* Hafif katman: logolar görünsün; okunabilirliği metin gölgesi ve buton zemini sağlar */
    .hero__overlay {
        background:
            linear-gradient(0deg, rgba(20, 26, 58, .8) 0%, rgba(20, 26, 58, 0) 28%),
            rgba(20, 26, 58, .22);
    }
    .hero__title { font-size: clamp(1.7rem, 7.4vw, 2.3rem); text-shadow: 0 2px 14px rgba(10, 14, 34, .75), 0 1px 3px rgba(10, 14, 34, .6); }
    .hero__eyebrow { text-shadow: 0 1px 6px rgba(10, 14, 34, .8); }
    .hero-btn--ghost { background: rgba(20, 26, 58, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
    .hero__eyebrow { margin-bottom: 12px; font-size: .72rem; }
    .hero-btn { height: 48px; padding: 0 20px; font-size: .92rem; }
    .hero__controls { padding: 0 20px 22px; }
    .hero-arrow { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__img, .hero__slide.swiper-slide-active .hero__img { transform: none; transition: none; }
    .hero__eyebrow, .hero__title, .hero__text, .hero__actions { opacity: 1; transform: none; animation: none !important; }
    .service, .service:hover { transform: none; }
}
