/* ============================================================
   Akkaya — Footer
   Verilen footer tasarımının birebir uyarlaması.
   Sınıf adları ve yapı korundu; yalnızca renkler Akkaya paletine
   çevrildi ve E-Bülten sütunu Hakkımızda ile değiştirildi.
   ============================================================ */
.footer-field {
    --theme-color: #15161b;   /* footer ana rengi (Akkaya koyu) */
    --accent-color: #e22a2a;  /* Akkaya kırmızısı */
    --accent-dark: #b81f1f;
    --white-color: #fff;
    --icon-font: "Font Awesome 6 Pro", "Font Awesome 6 Free", "FontAwesome";

    position: relative;
    z-index: 10;
    max-width: 1920px;
    margin: 90px auto 0;
    padding-top: 20px;
}

.footer-field a {
    text-decoration: none;
}

.footer-field::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: calc(100vw - 40px);
    height: 100%;
    transform: translateX(-50%);
    border-radius: 20px;
    background: var(--theme-color);
    z-index: 0;
}

.footer-top-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.footer-top-logo img {
    display: block;
    height: 100%;
    width: auto;
}

.desktop-logo {
    top: -18px;
    height: 79px;
    aspect-ratio: 22 / 5;
}

.mobile-logo {
    display: none;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    z-index: 2;
    height: 45px;
    margin: 0 auto 25px;
    aspect-ratio: 15 / 4;
}

.footer-mask {
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: -1px;
    width: 100%;
    height: 80px;
    transform: translateX(-50%);
    z-index: 1;
}

.footer-mask img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-bg {
    position: relative;
    z-index: 2;
    margin: 60px 30px 20px;
    border-radius: 12px;
    background: var(--theme-color);
}

.footer-container {
    width: 100%;
    max-width: 1640px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-top-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 100px;
    padding: 100px 0 60px;
}

/* ---------- Hakkımızda sütunu (E-Bülten'in yerine) ---------- */
.about-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 35px;
}

.about-mini {
    margin: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, .4);
}

.about-title {
    margin: 0;
    color: #fff;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 600;
    letter-spacing: -.6px;
    line-height: 1.2;
}

.about-text {
    margin: 0;
    max-width: 46ch;
    color: rgba(255, 255, 255, .68);
    font-size: 15.5px;
    line-height: 1.72;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 60px;
    padding: 0 30px;
    border-radius: 999px;
    background: var(--accent-color);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transition: .35s;
}

.about-link:hover {
    background: var(--accent-dark);
    color: #fff;
}

/* ---------- Sekmeli menü ---------- */
.footer-menu-desktop {
    display: flex;
    align-items: center;
    gap: 27px;
    height: 100%;
}

.menu-tabs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 180px;
}

.menu-tab {
    padding: 0;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 27px;
    color: rgba(255, 255, 255, .3);
    font-family: inherit;
    font-size: clamp(16px, 1.2vw, 20px);
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: .35s;
}

.menu-tab i {
    opacity: 0;
    transform: rotate(-90deg);
    transition: .35s;
}

.menu-tab.active {
    color: #fff;
}

.menu-tab.active i {
    opacity: 1;
    color: var(--accent-color);
}

/* Header'da alt menüsü olmayan maddeler (Referanslarımız, İletişim):
   sekme değil, doğrudan sayfaya giden link. */
.menu-tab-link {
    text-decoration: none;
}

.menu-tab-link i {
    transform: none;
}

.menu-tab-link:hover {
    color: #fff;
}

.menu-tab-link:hover i {
    opacity: 1;
    color: var(--accent-color);
}

.menu-panels {
    position: relative;
    flex: 1;
    min-height: 220px;
}

.menu-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: .35s;
}

.menu-panel.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.menu-panel a {
    color: rgb(255 255 255 / 68%);
    font-size: 17px;
    font-weight: 600;
    transition: .35s;
}

.menu-panel a:hover {
    color: #fff;
}

/* ---------- İletişim sütunu ---------- */
.contact-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
}

.contact-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.contact-box span {
    font-size: 16px;
    color: rgba(255, 255, 255, .4);
}

.contact-box a {
    color: #fff;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -1.1px;
    transition: .35s;
}

.contact-box a:hover {
    color: var(--accent-color);
}

/* ---------- Alt şerit ---------- */
.footer-bottom {
    position: relative;
    z-index: 2;
    padding: 10px 0 30px;
}

.footer-bottom-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer-brand-line {
    display: flex;
    align-items: center;
    gap: 20px;
}

.socials {
    display: flex;
    align-items: center;
    gap: 18px;
}

.socials a {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    transition: .35s;
}

.socials a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.footer-bottom-left p {
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: clamp(14px, 1vw, 16px);
    font-weight: 500;
}

.footer-signature a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: .5;
    transition: .35s;
}

.footer-signature a:hover {
    opacity: 1;
}

.footer-signature span {
    font-size: 18px;
    color: #ffffff;
    white-space: nowrap;
}

.footer-signature img {
    height: 25px;
    width: auto;
    /* stick.svg koyu renkli; koyu zeminde okunmuyordu */
    filter: brightness(0) invert(1);
}

/* ---------- Akordiyon menü ---------- */
.footer-menu-mobile {
    display: none;
}

.mobile-item {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.mobile-trigger {
    width: 100%;
    padding: 18px 0;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
}

.mobile-trigger i {
    transition: .3s;
}

.mobile-item.active .mobile-trigger i {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.mobile-trigger-link {
    text-decoration: none;
}

.mobile-trigger-link i {
    font-size: 14px;
    opacity: .45;
}

.mobile-trigger-link:hover i {
    opacity: 1;
    color: var(--accent-color);
}

.mobile-content {
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: max-height .35s ease;
}

.mobile-content a {
    color: rgba(255, 255, 255, .7);
    font-size: 15px;
    padding-bottom: 4px;
}

.mobile-content a:last-child {
    padding-bottom: 18px;
}

@media (max-width: 1200px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-menu-desktop { display: none; }
    .footer-menu-mobile { display: block; }
    .contact-col {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
    }
    .contact-box { width: auto; }
}

@media (max-width: 768px) {
    .footer-field::before {
        width: calc(100vw - 20px);
    }
    .desktop-logo { display: none; }
    .mobile-logo { display: block; }
    .footer-mask { display: none; }
    .footer-bg { margin: 0 10px 15px; }
    .footer-container { padding: 0 20px; }
    .footer-top-grid { padding: 0 0 40px; }
    .contact-col {
        flex-direction: column;
        align-items: center;
    }
    .contact-box {
        align-items: center;
        text-align: center;
    }
    .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        text-align: center;
        padding: 20px 0;
    }
    .footer-bottom-left { align-items: center; }
    .footer-brand-line {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .mobile-logo {
        height: 38px;
        margin-bottom: 25px;
    }
    .about-link {
        height: 52px;
        padding: 0 24px;
    }
}

/* ========== SCROLL TOP ========== */
/* Temanın kendi .backtotop-wrap butonu DOM'da kalıyor (main.js ona
   null kontrolü olmadan eriştiği için silinemez), yalnızca gizleniyor. */
.backtotop-wrap {
    display: none !important;
}

.scroll-top {
    /* Bu buton .footer-field'in kardeşi, içinde değil; değişkenler oradan
       miras alınmıyordu. Bu yüzden burada yeniden tanımlanıyor. */
    --accent-color: #e22a2a;
    --white-color: #fff;
    --icon-font: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "FontAwesome";

    position: fixed;
    right: 30px;
    bottom: 30px;
    height: 50px;
    width: 50px;
    cursor: pointer;
    display: block;
    border-radius: 50px;
    z-index: 10000;
    opacity: 1;
    visibility: hidden;
    transform: translateY(45px);
    transition: all 300ms linear;
}

.scroll-top:after {
    content: "\f062";
    font-family: var(--icon-font);
    font-weight: 900;
    position: absolute;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    color: var(--accent-color);
    left: 0;
    top: 0;
    height: 50px;
    width: 50px;
    z-index: 1;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
}

.scroll-top svg {
    color: var(--accent-color);
    border-radius: 50%;
    background: var(--white-color);
}

.scroll-top svg path { fill: none; }

.scroll-top .progress-circle path {
    stroke: var(--accent-color);
    stroke-width: 20px;
    box-sizing: border-box;
    transition: all 400ms linear;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .footer-field *,
    .footer-field *::before,
    .footer-field *::after,
    .scroll-top {
        transition-duration: 0.01ms !important;
    }
}
