/* Reset and Base */
:root {
    --primary-blue: #0056b3;
    --dark-blue: #0a1f35;
    --text-dark: #1a2a3a;
    --text-gray: #4a5568;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: #f7f9fa;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background-color: #ffffff;
    height: 8vh;
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    position: relative;
    z-index: 100;
}

.logo-link {
    position: relative;
    z-index: 101;
    display: flex;
    justify-content: center;
    width: 250px;
    height: 100%;
}

.main-logo {
    /* Height is set dynamically via inline style from admin panel */
    object-fit: contain;
    position: absolute;
    top: 5px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 50%, rgba(255,255,255,0.6) 80%, rgba(255,255,255,0.9) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-content {
    margin-right: 10%;
    max-width: 450px;
    padding-left: 15px;
    border-left: 2px solid var(--primary-blue);
    opacity: 1;
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.slide:not(.active) .hero-content {
    opacity: 0;
    animation: none;
}

.slide.active .hero-content {
    animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 5px;
    display: block;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-desc {
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    color: var(--text-gray);
    line-height: 1.4;
    margin-bottom: 15px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-blue);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-primary i {
    margin-left: 8px;
    font-size: 0.75rem;
}

.hero-slider-controls {
    position: absolute;
    bottom: 20px;
    right: 5%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    z-index: 10;
}

.arrows {
    display: flex;
    gap: 15px;
}

.arrow-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
}

.dot.active {
    background-color: var(--primary-blue);
    width: 8px;
    height: 8px;
}

/* Cards Section */
.cards-section {
    flex: 0 0 auto;
    height: 48vh;
    min-height: 320px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
}

.cards-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2vw;
    display: flex;
    gap: 2vw;
    height: 85%;
}

.service-card {
    flex: 1;
    height: 100%;
    background: #fff;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 52%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.6s ease;
}

.service-card:hover .card-bg {
    transform: scale(1.08);
}

.card-mask {
    display: none; /* Perdeyi tamamen kaldırdık, görsel net! */
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48%;
    background: #ffffff;
    z-index: 3;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.card-logo {
    max-height: 55px;
    max-width: 80%;
    object-fit: contain;
    object-position: center;
    margin-bottom: 8px;
}

.card-text {
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    color: var(--text-gray);
    line-height: 1.4;
    margin-bottom: 0;
    padding: 0 10px;
}

.card-circle-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f8fafc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.service-card:hover .card-circle-btn {
    background-color: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
    transform: translate(3px, -3px);
}

.card-circle-btn i {
    font-size: 0.75rem;
}

/* Footer */
.footer {
    background-color: var(--dark-blue);
    color: #fff;
    flex: 0 0 auto;
    height: 13vh;
    min-height: 92px;
    display: flex;
    align-items: center;
}

.footer-inner {
    max-width: 1400px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 2vw;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 390px) minmax(0, 1fr);
    align-items: center;
    position: relative;
}

.footer-left {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-width: 0;
    padding-right: 2vw;
}

.footer-social {
    display: flex;
    gap: 12px;
    width: auto;
    justify-content: flex-end;
    align-items: center;
    padding-right: 2vw;
}

.footer-social a {
    color: #fff;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.footer-social a:hover {
    transform: scale(1.15);
}

.footer-about-link {
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 6px 12px;
    color: #0a1f35;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s, border-color 0.2s;
}

.footer-about-link:hover {
    background-color: #e8eef5;
    border-color: #e8eef5;
}

.footer-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    align-self: stretch;
    min-width: 0;
    padding: 0 16px;
    position: relative;
}

.footer-address {
    display: block;
    max-width: 100%;
    line-height: 1.35;
}

.footer-address-item > i {
    flex: 0 0 auto;
    margin-top: 2px;
}

.company-name {
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2px;
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    color: #cbd5e1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-address-item {
    align-items: flex-start;
}

.contact-item i {
    font-size: 0.75rem;
    color: #fff;
}

.divider {
    width: 1px;
    height: 10px;
    background-color: #4a5568;
}

.footer-right {
    width: auto;
    display: flex;
    justify-content: flex-start;
    padding-left: 2vw;
    align-items: center;
    height: 40px;
    position: relative;
    overflow: hidden;
}

.footer-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.fs-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    animation: fs-cycle 9s infinite;
}

.fs-slide img {
    max-height: 25px;
    object-fit: contain;
}

.fs-slide span {
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    font-weight: 600;
    color: #cbd5e1;
}

/* Masaüstü - Footer slider yazı boyutu */
@media (min-width: 1025px) {
    .fs-slide span {
        font-size: clamp(0.85rem, 1.2vw, 1.0rem);
    }
}

.fs-slide-1 { animation-delay: 0s; }
.fs-slide-2 { animation-delay: 3s; }
.fs-slide-3 { animation-delay: 6s; }

@keyframes fs-cycle {
    0%, 25% { opacity: 1; transform: translateY(0); }
    33.33%, 100% { opacity: 0; transform: translateY(-20px); }
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Footer phone button */
.footer-phone-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s;
}
.footer-phone-btn:hover { background: rgba(255,255,255,0.04); color: #fff; }

/* Phone modal */
.phone-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 6px; }
.phone-modal-backdrop { position: absolute; inset: 0; background: rgba(2, 12, 27, 0.82); }
.phone-modal-panel { position: relative; width: min(576px, 100%); max-height: calc(100vh - 12px); overflow-y: auto; background: #fff; color: #17243a; border-radius: 24px; box-shadow: 0 20px 60px rgba(2,6,23,0.5); z-index: 2; }
.phone-modal-header { position: relative; padding: 20px 24px 18px; color: #fff; background: linear-gradient(110deg, #2350df, #0ea5e9); }
.phone-modal-icon { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; margin-bottom: 10px; border-radius: 10px; background: rgba(255,255,255,0.2); font-size: 1.1rem; }
.phone-modal-header h3 { margin: 0 0 4px; font-size: 1.2rem; }
.phone-modal-header p { margin: 0; color: rgba(255,255,255,0.9); font-size: 0.9rem; }
.phone-modal-close { position: absolute; top: 16px; right: 20px; border: none; background: transparent; font-size: 1.35rem; cursor: pointer; color: #fff; }
.phone-list { list-style: none; margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.phone-list-item { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:82px; padding: 14px 16px 14px 20px; border: 1px solid #dbe4f0; border-radius: 16px; background: #fff; }
.phone-number { font-size: 1rem; font-weight: 700; white-space: nowrap; }
.phone-actions { display: flex; align-items: center; gap: 8px; }
.phone-list-item .phone-link,
.phone-list-item .whatsapp-link { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 9px; color: #fff; text-decoration: none; font-size: 0.9rem; font-weight: 700; white-space: nowrap; }
.phone-list-item .phone-link { background: #2450df; }
.phone-list-item .whatsapp-link { background: #0fba82; }
.phone-list-item .phone-link:hover { background: #173ec0; }
.phone-list-item .whatsapp-link:hover { background: #099b6c; }

/* ─── MOBILE RESPONSIVE ─── */

/* Tablet */
@media (max-width: 1024px) {
    .hero-content { margin-right: 5%; }
    .cards-container { gap: 1.5vw; }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    /* ── Header: sabit yükseklik, gölge ── */
    .header {
        height: 65px;
        min-height: 65px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Mobilde ayrışması için gölge */
    }
    .logo-link {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .main-logo {
        position: static !important;  /* taşmayı kaldır */
        height: var(--mobile-logo-height) !important;
        filter: none;
        margin: 0;
    }

    /* ── Hero: tamamen gizle ── */
    .hero {
        display: none !important;
    }

    /* ── Kartlar: masaüstü görünümü, alt alta ── */
    .cards-section {
        flex: 1 1 auto;
        height: auto;
        min-height: auto;
        padding: 20px 0 30px;
        background: #f7f9fa;
    }
    .cards-container {
        flex-direction: column;
        height: auto;
        gap: 20px;
        padding: 0 16px;
        max-width: 520px;
        margin: 0 auto;
    }
    /* Kartları sıfırdan mobil için yeniden düzenliyoruz */
    .service-card {
        flex: none;
        height: auto !important;       /* içeriğe göre uzasın */
        overflow: visible;
        border-radius: 16px;
        box-shadow: 0 6px 15px rgba(0,0,0,0.06);
        border: 1px solid #eef2f6;
        display: flex;
        flex-direction: column;
    }
    .service-card:active {
        transform: scale(0.98);
    }
    /* Görsel: normal blok, sabit yükseklik */
    .card-bg {
        position: relative !important;
        width: 100% !important;
        height: 220px !important;
        border-radius: 16px 16px 0 0;
    }
    /* Maske kaldırıldı zaten, burada da kapatalım */
    .card-mask {
        display: none !important;
    }
    /* İçerik: normal akışta, auto yükseklik */
    .card-content {
        position: relative !important;
        bottom: auto !important;
        height: auto !important;
        padding: 20px 15px;
        padding-bottom: 60px; /* ok butonu için boşluk */
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        background: #fff;
        border-radius: 0 0 16px 16px;
    }
    .card-logo {
        max-height: 55px;
        max-width: 80%;
        margin-bottom: 10px;
        object-position: center;
    }
    .card-text {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0;
        padding: 0 10px;
        white-space: normal;
        overflow: visible;
    }
    .card-circle-btn {
        bottom: 18px;
        right: 18px;
        width: 34px;
        height: 34px;
    }

    /* ── Footer ── */
    .footer {
        height: auto;
        padding: 30px 20px;
    }
    .footer-inner {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 25px;
        align-items: center;
        text-align: center;
    }
    .footer-left {
        flex-direction: column;
        gap: 18px;
        width: 100%;
        padding-right: 0;
    }
    .footer-social {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px;
        padding-right: 0;
    }
    .footer-about-link {
        align-self: center;
        margin-top: -18px;
        padding: 5px 10px;
        font-size: 0.65rem;
    }
    .footer-social a { 
        font-size: 1.3rem; 
        background: transparent;
        width: auto;
        height: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 0;
    }
    .footer-right { 
        width: 100%; 
        justify-content: center; 
        margin-top: 5px;
        height: 32px;
        overflow: hidden;
        position: relative;
    }
    .fs-slide {
        justify-content: center;
    }
    .fs-slide img {
        max-height: 20px;
    }
    .fs-slide span {
        font-size: 0.75rem;
    }
    
    .footer-center {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .company-name { 
        font-size: 1.1rem; 
        margin-bottom: 5px;
        color: #fff;
    }
    
    .contact-row {
        flex-direction: column;
        gap: 15px;
        font-size: 0.95rem;
        width: 100%;
    }
    
    .contact-item {
        justify-content: center;
        width: 100%;
    }
    
    .contact-item i {
        font-size: 1rem;
        margin-right: 5px;
    }
    
    .divider { display: none; }
}

/* Küçük telefonlar */
@media (max-width: 480px) {
    .cards-container { padding: 0 12px; gap: 12px; }
    .phone-modal-panel { border-radius: 20px; }
    .phone-modal-header { padding: 18px 20px 16px; }
    .phone-list { padding: 14px; gap: 10px; }
    .phone-list-item { flex-wrap: wrap; gap: 10px; padding: 12px; }
    .phone-actions { width: 100%; }
    .phone-list-item .phone-link,
    .phone-list-item .whatsapp-link { flex: 1; padding: 0 8px; }
}