/* =========================
   GLOBAL: LAYOUT (Header / Fullmenu / Footer)
   Anasayfaya özgü stiller Anasayfa.css içine taşındı.
   ========================= */

/* Sabit üst menü — scroll'da tepede kalır (--tp-header-height GlobalJs ile ölçülür) */
body > header {
    background: #fff;
    isolation: isolate;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 1050;
}

html {
    scroll-padding-top: var(--tp-header-height, 4.5rem);
}

main[role="main"] {
    padding-top: var(--tp-header-height, 4.5rem);
    position: relative;
    z-index: 0;
}

/* Logo */
.tp-logo {
    display: block;
    width: 250px;
    height: auto;
}

.tp-logo-light {
    filter: brightness(0) invert(1);
}

/* Dil seçici — intl-tel-input sprite (16×12); genişlik değiştirilmez */
.tp-lang-dropdown .iti__flag {
    flex-shrink: 0;
    overflow: hidden;
}

.tp-fullmenu .offcanvas-body {
    min-height: 0;
}

.tp-fullmenu-lang {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.tp-lang-dropdown--menu .btn-link {
    color: #fff;
}

.tp-lang-dropdown--menu .btn-link:hover,
.tp-lang-dropdown--menu .btn-link:focus,
.tp-lang-dropdown--menu .btn-link.show {
    color: #fff;
    opacity: .85;
}

.tp-lang-dropdown--menu .dropdown-toggle::after {
    border-top-color: #fff;
}

/* Tam ekran menü (Bootstrap offcanvas üzerinde sadece marka tipografisi/renk) */
.tp-fullmenu {
    background: #002348;
    width: 100%;
    z-index: 1070;
}

/* Fixed header (1050) üstünde — tam ekran menü ve karartma */
.offcanvas-backdrop {
    z-index: 1065;
}

.tp-fullmenu-header {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

/* Kapat ikonu: &times; yerine CSS çizgileri — dönüş tam merkez eksenden olur */
.tp-close-icon {
    display: inline-block;
    flex: 0 0 32px;
    height: 32px;
    position: relative;
    transform-origin: center center;
    transition: transform .35s ease, background-color .25s ease, color .25s ease;
    vertical-align: middle;
    width: 32px;
}

.tp-close-icon::before,
.tp-close-icon::after {
    background-color: currentColor;
    border-radius: 1px;
    content: "";
    height: 2px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform-origin: center center;
    width: 14px;
}

.tp-close-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.tp-close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.btn-link:hover .tp-close-icon {
    background-color: #fff;
    color: #004a98;
    transform: rotate(180deg);
}

.tp-menu-list li a {
    color: #fff;
    display: inline-block;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.25;
    padding: 8px 0;
    text-decoration: none;
    transition: color .25s ease, padding-left .25s ease, opacity .25s ease;
}

.tp-menu-list li a:hover {
    color: #fff;
    padding-left: 10px;
}

.tp-menu-list:hover li a {
    opacity: .35;
}

.tp-menu-list:hover li a:hover {
    opacity: 1;
}

/* =========================
   GLOBAL: İç sayfa hero + subnav
   ========================= */

.tp-page-hero,
.tp-about-hero {
    background: linear-gradient(135deg, #002348 0%, #004a98 55%, #00356f 100%);
    color: #fff;
    overflow: hidden;
    padding: clamp(56px, 10vh, 96px) 0 clamp(48px, 8vh, 72px);
    position: relative;
}

.tp-page-hero-bg,
.tp-about-hero-bg {
    background: url("/images/bg-lines.svg") center center / cover no-repeat;
    inset: 0;
    opacity: .1;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.tp-page-hero-inner,
.tp-about-hero-inner {
    position: relative;
    z-index: 1;
}

.tp-page-hero-eyebrow,
.tp-about-hero-eyebrow {
    color: rgba(255, 255, 255, .72);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .22em;
    margin: 0 0 .75rem;
    text-transform: uppercase;
}

.tp-page-hero-title,
.tp-about-hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin: 0;
}

.tp-page-subnav {
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px -14px rgba(0, 35, 72, .28);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.tp-page-subnav-inner {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 16px 0 18px;
    text-align: center;
}

.tp-page-anchor-nav {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    max-width: 100%;
}

.tp-page-anchor-nav-link {
    color: #5c6370;
    font-size: .9375rem;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 6px 4px;
    position: relative;
    text-decoration: none;
    transition: color .2s ease;
    white-space: nowrap;
}

.tp-page-anchor-nav-link::after {
    background: #004a98;
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
    transform: scaleX(0);
    transform-origin: center center;
    transition: transform .25s ease;
}

.tp-page-anchor-nav-link:hover,
.tp-page-anchor-nav-link:focus-visible {
    color: #004a98;
}

.tp-page-anchor-nav-link.is-active,
.tp-page-anchor-nav-link[aria-current="location"] {
    color: #004a98;
}

.tp-page-anchor-nav-link:hover::after,
.tp-page-anchor-nav-link:focus-visible::after {
    transform: scaleX(1);
}

.tp-page-anchor-nav-link.is-active::after,
.tp-page-anchor-nav-link[aria-current="location"]::after {
    transform: scaleX(1);
}

.tp-page-anchor-nav-divider {
    align-self: center;
    background: #d5dde8;
    flex-shrink: 0;
    height: 14px;
    margin: 0 clamp(10px, 2vw, 18px);
    width: 1px;
}

@media (max-width: 575.98px) {
    .tp-page-subnav-inner {
        padding: 14px 0 16px;
    }

    .tp-page-anchor-nav-link {
        font-size: .8125rem;
    }

    .tp-page-anchor-nav-divider {
        margin: 0 8px;
    }
}

/* Header içi sayfa anchor navigasyonu (Servisler, Hakkımızda, Uzmanlık) */
body.tp-header-anchor-page main {
    position: relative;
    z-index: 0;
}

/* AOS transform katmanları sticky header üstüne çıkmasın */
body.tp-header-anchor-page main [data-aos] {
    position: relative;
    z-index: 0;
}

body.tp-header-anchor-page .tp-navbar-wrap--with-anchor {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

body.tp-header-anchor-page .tp-navbar-wrap--with-anchor .navbar-brand {
    flex-shrink: 0;
    margin-right: 0;
}

body.tp-header-anchor-page .tp-navbar-wrap--with-anchor .tp-navbar-actions {
    flex-shrink: 0;
    margin-left: auto;
}

body.tp-header-anchor-page .tp-logo {
    width: clamp(160px, 22vw, 220px);
}

.tp-header-anchor-nav.tp-page-subnav {
    background: transparent;
    border: 0;
    box-shadow: none;
    flex: 1 1 auto;
    margin: 0;
    min-width: 0;
    position: static;
}

.tp-header-anchor-nav .tp-page-subnav-inner {
    justify-content: center;
    padding: 0;
}

.tp-header-anchor-nav-links {
    flex-wrap: wrap;
    gap: 2px 0;
    justify-content: center;
    max-width: 100%;
}

.tp-header-anchor-nav-links .tp-page-anchor-nav-link {
    font-size: .8125rem;
    padding: 4px 2px;
}

.tp-header-anchor-nav-links .tp-page-anchor-nav-divider {
    margin: 0 8px;
}

body.tp-header-anchor-page section[id] {
    scroll-margin-top: var(--tp-page-scroll-offset, 5rem);
}

@media (min-width: 992px) {
    body.tp-header-anchor-page .tp-navbar-wrap--with-anchor {
        flex-wrap: nowrap;
    }

    body.tp-header-anchor-page .tp-navbar-wrap--with-anchor .tp-header-anchor-nav {
        order: 0;
        width: auto;
    }

    .tp-header-anchor-nav-links .tp-page-anchor-nav-link {
        font-size: .875rem;
    }

    .tp-header-anchor-nav-links .tp-page-anchor-nav-divider {
        margin: 0 12px;
    }
}

@media (max-width: 991.98px) {
    body.tp-header-anchor-page .tp-navbar-wrap--with-anchor .tp-header-anchor-nav {
        flex: 1 1 100%;
        order: 3;
        width: 100%;
    }

    .tp-header-anchor-nav-links {
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }

    .tp-header-anchor-nav-links .tp-page-anchor-nav-link,
    .tp-header-anchor-nav-links .tp-page-anchor-nav-divider {
        flex-shrink: 0;
    }
}

@media (max-width: 575.98px) {
    .tp-header-anchor-nav-links .tp-page-anchor-nav-link {
        font-size: .75rem;
    }

    .tp-header-anchor-nav-links .tp-page-anchor-nav-divider {
        margin: 0 6px;
    }
}

/* Footer */
.tp-footer-title {
    color: #5f6064;
    position: relative;
    text-transform: capitalize;
}

.tp-footer-title:after {
    background: #004a98;
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transition: width .4s ease;
    width: 40px;
}

.col-lg-3:hover .tp-footer-title:after {
    width: 100px;
}

/* md (2x2) görünümünde başlık alt çizgisini ortala */
@media (min-width: 768px) and (max-width: 991.98px) {
    .text-md-center .tp-footer-title:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.tp-social {
    width: 38px;
    height: 38px;
    font-size: 16px;
    transition: color .25s ease, border-color .25s ease, background-color .25s ease;
}

.tp-footer-qr-wrap {
    justify-content: flex-start;
    width: 100%;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .tp-footer-qr-wrap {
        justify-content: center;
    }
}

.tp-footer-qr {
    display: block;
    height: auto;
    max-width: 160px;
    width: 160px;
}

.tp-social:hover {
    background: #004a98 !important;
    border-color: #004a98 !important;
    color: #fff !important;
}

/* =========================
   GLOBAL: YUKARI ÇIK (scroll-to-top)
   Kaynak: httpdocs/_assets/css/ozel_kod.css
   ========================= */

.tp-scroll-top.scroll-to-top {
    align-items: center;
    background: #d7d7d7;
    border: 1px solid #fff;
    border-radius: 50%;
    bottom: 58px;
    box-sizing: border-box;
    color: #000;
    display: flex;
    flex-shrink: 0;
    height: 50px;
    justify-content: center;
    opacity: 0;
    padding: 0;
    pointer-events: none;
    position: fixed;
    right: 20px;
    text-decoration: none;
    transition:
        opacity .35s ease,
        visibility 0s linear .35s,
        color .3s ease,
        border-color .3s ease,
        background-color .3s ease;
    visibility: hidden;
    width: 50px;
    z-index: 1040;
}

.tp-scroll-top.scroll-to-top .zmdi {
    display: block;
    font-size: 24px;
    line-height: 1;
    margin: 0;
    padding: 0;
    /* İkon fontu optik olarak biraz aşağıda durur */
    transform: translateY(-1px);
}

.tp-scroll-top.scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transition:
        opacity .35s ease,
        visibility 0s linear 0s,
        color .3s ease,
        border-color .3s ease,
        background-color .3s ease;
    visibility: visible;
}

/* Görünürken mavi halka — butonun tam ortasında, her yandan eşit */
.tp-scroll-top.scroll-to-top.visible::before {
    border: 1px solid #004a98;
    border-radius: 50%;
    box-sizing: border-box;
    content: "";
    inset: -4px;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.tp-scroll-top.scroll-to-top:hover,
.tp-scroll-top.scroll-to-top:focus {
    border-color: #666;
    color: #004a98;
    outline: none;
}

/* PHP: hidden-mobile — küçük ekranda gizle */
@media (max-width: 767.98px) {
    .tp-scroll-top.hidden-mobile {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-scroll-top.scroll-to-top {
        transition: opacity .15s ease, visibility 0s linear .15s;
    }

    .tp-scroll-top.scroll-to-top.visible {
        transition: opacity .15s ease, visibility 0s linear 0s;
    }
}

/* =========================
   GLOBAL: CTA (footer üstü)
   ========================= */

.tp-cta {
    background: linear-gradient(135deg, #004a98 0%, #002a5c 100%);
    color: #fff;
    overflow: hidden;
    padding: 36px 0;
    position: relative;
}

.tp-cta:before {
    background: url("/images/bg-lines.svg") center center / auto;
    content: "";
    inset: 0;
    opacity: .08;
    position: absolute;
    z-index: 0;
}

.tp-cta > .container {
    position: relative;
    z-index: 1;
}

.tp-cta-title {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: .5px;
    line-height: 1.15;
    margin: 0 0 8px;
}

.tp-cta-lead {
    color: rgba(255, 255, 255, .85);
    font-size: 1rem;
    font-weight: 400;
}

.tp-word-rotate {
    display: inline-block;
    height: 1.4em;
    line-height: 1.4;
    overflow: hidden;
    vertical-align: top;
}

.tp-word-rotate-items {
    animation: tpWordRotate 12s ease-in-out infinite;
    display: flex;
    flex-direction: column;
}

.tp-word-rotate-items > span {
    align-items: center;
    display: flex;
    height: 1.4em;
    line-height: 1.2;
}

@keyframes tpWordRotate {
    0%,    13.33% { transform: translateY(0); }
    16.66%, 30%   { transform: translateY(-1.4em); }
    33.33%, 46.66%{ transform: translateY(-2.8em); }
    50%,   63.33% { transform: translateY(-4.2em); }
    66.66%, 80%   { transform: translateY(-5.6em); }
    83.33%, 96.66%{ transform: translateY(-7em); }
    100%          { transform: translateY(-8.4em); }
}

@media (prefers-reduced-motion: reduce) {
    .tp-word-rotate-items {
        animation: none;
        transform: translateY(0);
    }
}

.tp-cta-row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    gap: 0;
}

.tp-cta-col-text,
.tp-cta-col-btn {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .tp-cta-row {
        gap: 1rem;
    }

    .tp-cta-col-btn {
        align-items: flex-start;
        display: flex;
        justify-content: flex-start;
    }
}

@media (min-width: 768px) {
    .tp-cta-col-btn {
        align-items: center;
        display: flex;
        justify-content: flex-end;
    }
}

.tp-cta-btn {
    align-items: center;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .85);
    border-radius: 999px;
    box-sizing: border-box;
    color: #fff;
    display: inline-flex;
    font-size: clamp(0.8125rem, 1.1vw, 1rem);
    font-weight: 700;
    gap: 0.4rem;
    justify-content: center;
    letter-spacing: 0.02em;
    max-width: 100%;
    padding: clamp(10px, 1.2vw, 14px) clamp(14px, 2vw, 28px);
    text-decoration: none;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
    white-space: nowrap;
}

.tp-cta-btn-text {
    flex-shrink: 0;
    line-height: 1.2;
}

.tp-cta-btn .zmdi {
    flex-shrink: 0;
    font-size: 1.15em;
    line-height: 1;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .tp-cta-lead {
        font-size: 0.9375rem;
    }

    .tp-cta-btn {
        font-size: 0.8125rem;
        letter-spacing: 0;
        padding: 11px 14px;
    }
}

.tp-cta-btn:hover {
    background: #fff;
    border-color: #fff;
    color: #004a98;
}
