/**
 * Akkale VIP — mobil / tablet responsive katmanı
 * Sayfa <style> bloklarından sonra yüklendiği için önceliklidir.
 */

/* ------------------------------------------------------------------ */
/* Genel: taşma, görseller, güvenli alan                             */
/* ------------------------------------------------------------------ */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

img,
video,
iframe {
    max-width: 100%;
}

.detail-content img,
.detail-content table,
.haber-text img,
.haber-text table {
    max-width: 100%;
    height: auto;
}

.detail-content iframe,
.haber-text iframe {
    max-width: 100%;
    display: block;
}

.detail-content table,
.haber-text table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Grid kullanan satırlar — header’daki .row mobil kuralını geçersiz kıl */
@media (max-width: 768px) {
    .row.row-grid {
        display: grid !important;
        flex-direction: unset !important;
    }

    .row.row-grid > div {
        width: auto !important;
        min-width: 0;
    }
}

/* ------------------------------------------------------------------ */
/* Container — dar ekranlarda yatay boşluk                           */
/* ------------------------------------------------------------------ */
@media (max-width: 1199.98px) {
    body .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

@media (max-width: 399.98px) {
    body .container {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
}

/* ------------------------------------------------------------------ */
/* Üst bar / logo                                                     */
/* ------------------------------------------------------------------ */
@media (max-width: 991.98px) {
    body #main-header {
        background: rgba(24, 24, 24, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        padding: 10px 0 !important;
        box-shadow: 0 5px 25px rgba(0,0,0,0.5) !important;
        border-bottom: 1px solid rgba(197, 160, 89, 0.3) !important;
    }

    body #main-header .header-inner {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        width: 100% !important;
        gap: 20px !important;
        flex-wrap: nowrap;
    }

    body #main-header .nav-menu {
        display: none !important;
    }

    body #main-header .logo {
        order: 1 !important;
        flex: unset !important;
        min-width: 0;
        display: block !important;
    }

    body #main-header .logo img {
        height: clamp(40px, 10vw, 52px) !important;
        width: auto;
        max-height: 52px;
        object-fit: contain;
    }

    body #main-header .header-right {
        order: 2 !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        flex-shrink: 0 !important;
        z-index: 9999 !important;
    }

    body #main-header .lang-switcher {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        background: var(--primary) !important;
        color: var(--white) !important;
        border-radius: 2px !important;
        white-space: nowrap !important;
        cursor: pointer !important;
    }

    body #main-header .burger-menu {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: stretch !important;
        width: 28px !important;
        height: 20px !important;
        cursor: pointer !important;
        z-index: 10001 !important;
        padding: 10px !important;
        margin: -10px !important;
        box-sizing: content-box !important;
    }

    body #main-header .burger-menu span {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        border-radius: 1.5px !important;
        background: var(--primary) !important;
        transition: var(--transition) !important;
    }

    body #main-header .header-right .dropdown {
        left: auto !important;
        right: 0 !important;
        transform: translateX(0) translateY(10px) !important;
    }

    body #main-header .header-right .has-dropdown:hover .dropdown {
        transform: translateX(0) translateY(0) !important;
    }
}

@media (max-width: 359.98px) {
    body #main-header .lang-switcher span,
    body #main-header .lang-switcher {
        font-size: 10px;
        padding: 5px 8px;
    }
}

/* ------------------------------------------------------------------ */
/* Anasayfa: tam ekran video hero                                     */
/* ------------------------------------------------------------------ */
body .hero-video-home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    overflow: hidden;
}

body .hero-video-home video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}


/* ------------------------------------------------------------------ */
/* Anasayfa: hakkımızda + görseller                                   */
/* ------------------------------------------------------------------ */
body .about-split {
    display: flex;
    align-items: center;
    gap: clamp(24px, 5vw, 60px);
    flex-wrap: wrap;
}

body .about-split > div {
    flex: 1 1 280px;
    min-width: 0;
}

@media (max-width: 767.98px) {
    body .about-section h2 {
        font-size: clamp(26px, 7vw, 32px) !important;
    }

    body .about-section > .container > .about-split > div:first-child p {
        font-size: clamp(15px, 3.8vw, 16px);
        line-height: 1.75;
    }

    body .about-section .about-split {
        flex-direction: column;
        text-align: center;
        gap: 32px !important;
    }

    body .about-img-el {
        height: auto !important;
        min-height: 220px;
        max-height: 55vh;
        box-shadow: 12px 12px 0 var(--primary) !important;
    }

    body .about-img-wrap {
        padding-right: 0 !important;
        padding-bottom: 16px !important;
    }
}

@media (max-width: 575.98px) {
    body .about-img-el {
        box-shadow: 8px 8px 0 var(--primary) !important;
    }
}

/* ------------------------------------------------------------------ */
/* Hizmet kartları grid                                               */
/* ------------------------------------------------------------------ */
body .services-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
}

@media (min-width: 576px) {
    body .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 992px) {
    body .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
        gap: 30px !important;
    }
}

body .service-card {
    padding: clamp(28px, 6vw, 50px) clamp(22px, 5vw, 40px) !important;
}

/* ------------------------------------------------------------------ */
/* Parallax — mobilde fixed kapat (performans / iOS)                  */
/* ------------------------------------------------------------------ */
@media (max-width: 991.98px) {
    body .parallax-section {
        height: auto !important;
        min-height: 280px;
        padding: clamp(48px, 12vw, 72px) 0;
        background-attachment: scroll !important;
    }

    body .parallax-section h2 {
        font-size: clamp(22px, 6vw, 32px) !important;
    }

    body .parallax-section p {
        font-size: clamp(14px, 3.5vw, 17px) !important;
        padding: 0 8px;
    }
}

/* ------------------------------------------------------------------ */
/* Haber özet grid (anasayfa + liste)                                 */
/* ------------------------------------------------------------------ */
body .news-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
}

@media (min-width: 576px) {
    body .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1200px) {
    body .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 30px !important;
    }
}

body .news-section .section-title {
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 575.98px) {
    body .news-section .section-title > div {
        width: 100%;
        text-align: center;
    }

    body .news-section .section-title a {
        align-self: center;
    }
}

/* ------------------------------------------------------------------ */
/* Sayfa başlığı (ortak)                                              */
/* ------------------------------------------------------------------ */
@media (max-width: 991.98px) {
    body .page-header {
        height: auto !important;
        min-height: 260px;
        max-height: none;
        padding-top: clamp(88px, 22vw, 120px) !important;
        padding-bottom: clamp(28px, 8vw, 48px);
        align-items: flex-end;
    }

    body .page-header h1 {
        font-size: clamp(24px, 6.5vw, 36px) !important;
        line-height: 1.15;
        word-break: break-word;
    }

    body .page-header .breadcrumb {
        font-size: 13px;
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    body .page-header {
        min-height: 220px;
        padding-bottom: 24px;
    }

    body .page-header h1 {
        font-size: clamp(22px, 7vw, 30px) !important;
    }
}

/* detail.php başlık */
@media (max-width: 991.98px) {
    body .page-header.page-header-detail h1 {
        font-size: clamp(22px, 6vw, 34px) !important;
    }
}

/* ------------------------------------------------------------------ */
/* İletişim                                                           */
/* ------------------------------------------------------------------ */
body .contact-cards-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px !important;
    margin-bottom: clamp(40px, 10vw, 80px) !important;
}

@media (min-width: 576px) {
    body .contact-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    body .contact-cards-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px !important;
    }
}

body .contact-info-card {
    padding: clamp(24px, 5vw, 40px) !important;
}

body .contact-split-row {
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 6vw, 50px) !important;
    align-items: stretch !important;
}

@media (min-width: 992px) {
    body .contact-split-row {
        flex-direction: row;
        align-items: flex-start !important;
    }

    body .contact-split-row > div {
        flex: 1;
        min-width: 0;
    }
}

body .contact-form-wrapper {
    padding: clamp(24px, 6vw, 60px) !important;
}

body .contact-form-two-col {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 0 16px !important;
}

@media (min-width: 576px) {
    body .contact-form-two-col {
        grid-template-columns: 1fr 1fr !important;
    }
}

body .map-wrapper {
    min-height: 280px !important;
    height: auto !important;
    border-radius: 4px;
    overflow: hidden;
}

@media (min-width: 992px) {
    body .map-wrapper {
        min-height: 450px !important;
    }
}

body .map-wrapper iframe {
    width: 100% !important;
    min-height: 280px;
    height: clamp(280px, 45vh, 520px);
    display: block;
}

body .contact-section {
    padding: clamp(48px, 12vw, 100px) 0 !important;
}

/* ------------------------------------------------------------------ */
/* Araçlar                                                            */
/* ------------------------------------------------------------------ */
body .cars-grid-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
}

@media (min-width: 768px) {
    body .cars-grid-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
}

body .cars-section {
    padding: clamp(48px, 12vw, 100px) 0 !important;
}

body .car-img {
    height: clamp(200px, 42vw, 250px) !important;
}

body .car-info {
    padding: clamp(20px, 4vw, 30px) !important;
}

body .car-features {
    flex-wrap: wrap;
    gap: 10px 16px !important;
    font-size: 13px !important;
}

/* ------------------------------------------------------------------ */
/* Kurumsal / hizmet detay (iki sütun)                                */
/* ------------------------------------------------------------------ */
body .detail-layout-row {
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 6vw, 50px) !important;
}

@media (min-width: 992px) {
    body .detail-layout-row {
        flex-direction: row;
        align-items: flex-start;
    }

    body .detail-layout-row > .col-main {
        flex: 2;
        min-width: 0;
    }

    body .detail-layout-row > .col-side {
        flex: 1;
        max-width: 360px;
    }
}

body .page-content {
    padding: clamp(48px, 12vw, 100px) 0 !important;
}

body .detail-content {
    font-size: clamp(15px, 3.5vw, 16px) !important;
    line-height: 1.75 !important;
    overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ */
/* Haberler liste                                                     */
/* ------------------------------------------------------------------ */
body .news-list-section {
    padding: clamp(48px, 12vw, 100px) 0 !important;
}

body .news-list-section .news-grid {
    grid-template-columns: 1fr !important;
}

@media (min-width: 576px) {
    body .news-list-section .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1200px) {
    body .news-list-section .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    }
}

/* ------------------------------------------------------------------ */
/* Haber detay                                                        */
/* ------------------------------------------------------------------ */
body .haber-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 992px) {
    body .haber-detail-layout {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 50px;
        align-items: flex-start;
    }

    body .haber-detail-layout .col-main {
        flex: 1;
        min-width: 0;
    }

    body .haber-detail-layout .col-sidebar {
        width: 320px !important;
        flex-shrink: 0;
    }
}

@media (max-width: 991.98px) {
    body .haber-detail-layout .col-sidebar {
        width: 100% !important;
        max-width: 100%;
    }

    body .sidebar-sticky {
        position: static !important;
    }
}

body .haber-meta {
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 12px;
}

@media (max-width: 575.98px) {
    body .haber-text {
        font-size: 16px !important;
    }

    body .other-haber-card {
        gap: 12px;
    }

    body .other-haber-img {
        width: 88px !important;
        height: 72px !important;
    }
}

body .content-section {
    padding: clamp(48px, 12vw, 100px) 0 !important;
}

body .share-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */
@media (max-width: 991.98px) {
    body #main-footer {
        padding: clamp(56px, 14vw, 100px) 0 28px !important;
    }

    body #main-footer .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 36px !important;
    }

    body #main-footer .footer-col:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    body #main-footer .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 40px !important;
    }

    body #main-footer .footer-col h4::after,
    body #main-footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    body #main-footer .footer-logo img {
        height: clamp(64px, 18vw, 80px) !important;
    }
}

/* ------------------------------------------------------------------ */
/* Sabit WhatsApp / yukarı çık — küçük ekran                          */
/* ------------------------------------------------------------------ */
@media (max-width: 575.98px) {
    body .whatsapp-btn {
        width: 52px !important;
        height: 52px !important;
        font-size: 28px !important;
        bottom: max(16px, env(safe-area-inset-bottom)) !important;
        right: max(14px, env(safe-area-inset-right)) !important;
    }

    body #back-to-top {
        width: 44px !important;
        height: 44px !important;
        bottom: max(16px, env(safe-area-inset-bottom)) !important;
        right: calc(max(14px, env(safe-area-inset-right)) + 58px) !important;
    }
}

@media (max-width: 380px) {
    body #back-to-top {
        right: calc(max(12px, env(safe-area-inset-right)) + 54px) !important;
    }
}

/* ------------------------------------------------------------------ */
/* Bölüm aralıkları (genel)                                           */
/* ------------------------------------------------------------------ */
@media (max-width: 767.98px) {
    body section.py-5,
    body .about-section,
    body .services-brief,
    body .news-section {
        padding-top: clamp(44px, 10vw, 60px) !important;
        padding-bottom: clamp(44px, 10vw, 60px) !important;
    }
}

/* ------------------------------------------------------------------ */
/* Swiper hero (şablonda kullanıldığında)                             */
/* ------------------------------------------------------------------ */
@media (max-width: 991.98px) {
    body .hero-slider {
        min-height: 100vh;
        min-height: 100dvh;
        height: auto;
    }

    body .hero-content {
        padding-left: max(16px, env(safe-area-inset-left)) !important;
        padding-right: max(16px, env(safe-area-inset-right));
    }

    body .hero-content h1 {
        font-size: clamp(28px, 9vw, 45px) !important;
    }

    body .hero-nav-wrapper {
        left: max(16px, env(safe-area-inset-left)) !important;
        bottom: max(20px, env(safe-area-inset-bottom)) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .parallax-section {
        background-attachment: scroll !important;
    }
}

/* Footer — veritabanı sayfa menüsü (en dip şerit) */
body .footer-dip-nav {
    margin-top: 8px;
    padding: 18px 0 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

body .footer-dip-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 14px;
    row-gap: 10px;
}

body .footer-dip-nav-list li {
    margin: 0;
}

body .footer-dip-nav-list a {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #7a7a7a;
    padding: 6px 4px;
}

body .footer-dip-nav-list a:hover {
    color: var(--primary);
}

@media (max-width: 575.98px) {
    body .footer-dip-nav-list {
        flex-direction: column;
        gap: 6px;
    }

    body .footer-dip-nav-list a {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* ================================================================== */
/* Tamamlama: sayfa başlığı katmanı, anasayfa, orta genişlik header   */
/* ================================================================== */

body .page-header .container,
body .page-header .page-header-content {
    position: relative;
    z-index: 2;
}

@media (max-width: 1199.98px) and (min-width: 993px) {
    body #main-header .nav-menu {
        gap: 14px;
    }

    body #main-header .nav-link {
        font-size: 11px;
        letter-spacing: 0.4px;
    }

    body #main-header .logo img {
        height: clamp(72px, 8vw, 100px) !important;
    }
}

body #main-header .has-dropdown .dropdown {
    max-height: min(380px, 70vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body .parallax-section > .container {
    min-height: 12rem;
}

@media (max-width: 1199.98px) {
    body .news-section .container {
        max-width: 100% !important;
    }
}

@supports selector(:has(*)) {
    body:has(.hero-video-home) .hero-video-home {
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
    }

    body:has(.hero-video-home) .about-section > .container > .about-split > div:first-child p {
        font-size: clamp(15px, 3.8vw, 16px);
        line-height: 1.75;
    }

    body:has(.hero-video-home) .services-brief .section-title h2 {
        font-size: clamp(22px, 5.5vw, 32px) !important;
    }
}

@media (max-width: 480px) {
    body .about-section .btn-primary {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    body .btn-primary {
        min-height: 48px;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding-left: max(18px, 4vw);
        padding-right: max(18px, 4vw);
    }

    body .services-brief .section-title {
        margin-bottom: clamp(28px, 8vw, 48px) !important;
    }

    body .services-brief .section-title h2 {
        font-size: clamp(22px, 5.5vw, 30px) !important;
    }

    body .contact-section .form-control,
    body .contact-section textarea.form-control {
        font-size: 16px !important;
    }
}

body .cf-turnstile,
body .cf-turnstile iframe {
    max-width: 100%;
}

@media (max-width: 991.98px) {
    body .sidebar-widget {
        padding: clamp(20px, 5vw, 30px) !important;
    }
}

body .news-list-section .news-content {
    padding: clamp(20px, 4vw, 30px) !important;
}

@media (max-width: 575.98px) {
    body .contact-info-card h3 {
        font-size: clamp(17px, 4.5vw, 20px);
    }

    body .contact-form-wrapper h2 {
        font-size: clamp(20px, 5vw, 26px) !important;
    }

    body .haber-detail-layout .sidebar-banner {
        padding: clamp(22px, 5vw, 40px) !important;
    }

    body #main-footer .footer-links a {
        word-break: break-word;
    }

    body .footer-bottom .copyright {
        max-width: 100%;
        padding: 0 8px;
    }
}

@media (max-width: 991.98px) {
    body .mobile-nav-links a {
        min-height: 44px;
        align-items: center;
    }
}
