/* ==========================================================================
   Sigorta Tower - Responsive Stil Dosyasi
   ========================================================================== */

/* ---------- TABLET (max 1024px) ---------- */
@media (max-width: 1024px) {
    .hero-modern-text h1 {
        font-size: 2.2rem;
    }

    .product-cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .teklif-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .teklif-form-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .mega-dropdown {
        min-width: 700px;
    }

    .mega-dropdown-inner {
        grid-template-columns: repeat(3, 1fr);
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-intro {
        grid-template-columns: 1fr;
    }

    .service-hero .container {
        flex-direction: column;
        text-align: center;
    }

    .service-hero-content .breadcrumb {
        justify-content: center;
    }

    .service-hero-content p {
        margin: 0 auto;
    }

    .service-hero-form {
        flex: none;
        width: 100%;
        max-width: 480px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-img {
        height: 300px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .inline-form-wrapper {
        grid-template-columns: 1fr;
    }

    .insurance-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-list {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners-track {
        grid-template-columns: repeat(4, 1fr);
    }

    .partners-track.partners-bes {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- MOBILE (max 768px) ---------- */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    /* Top Bar */
    .top-bar {
        padding: 5px 0;
    }

    .top-bar .container {
        flex-direction: row;
        gap: 8px;
        text-align: center;
    }

    .top-bar-left {
        justify-content: center;
        gap: 12px;
        font-size: 0.8rem;
    }

    .top-bar-left .address-item {
        display: none;
    }

    /* Header */
    .header .container {
        height: 60px;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 30px rgba(0,0,0,0.15);
        padding: 80px 25px 30px;
        overflow-y: auto;
        transition: right 0.3s ease;
        z-index: 1000;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-wrapper.open {
        right: 0;
    }

    .main-nav {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .main-nav > li > a {
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .header-cta {
        margin-top: 20px;
    }

    .header-cta .btn {
        display: block;
        text-align: center;
    }

    /* Mobile Dropdown */
    .dropdown,
    .sub-dropdown {
        position: static;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 15px;
        background: #f8f9fa;
        border-radius: 6px;
        margin: 5px 0;
    }

    .dropdown.mobile-open,
    .sub-dropdown.mobile-open {
        display: block;
    }

    .main-nav .has-dropdown > a::after,
    .dropdown .has-sub > a::after {
        float: right;
        transition: transform 0.3s ease;
    }

    .main-nav .has-dropdown.mobile-open > a::after,
    .main-nav .has-mega.mobile-open > a::after {
        transform: rotate(180deg);
    }

    .dropdown .has-sub.mobile-open > a::after {
        transform: rotate(90deg);
    }

    .dropdown li a {
        border-left: none;
        padding: 10px 15px;
    }

    /* Mobile Overlay */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 999;
    }

    .mobile-overlay.active {
        display: block;
    }

    /* Hero Modern */
    .hero-modern {
        padding: 40px 0 35px;
    }

    .hero-modern-text h1 {
        font-size: 1.8rem;
    }

    .hero-modern-subtitle {
        font-size: 1rem;
    }

    .product-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .product-card {
        padding: 20px 12px 16px;
    }

    .product-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .product-card h4 {
        font-size: 0.8rem;
    }

    .teklif-form-container {
        padding: 22px 20px;
    }

    .teklif-form-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Mega Dropdown Mobile */
    .mega-dropdown {
        position: static !important;
        box-shadow: none !important;
        border-top: none;
        border-radius: 6px;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none;
        padding: 10px 0;
        background: #f8f9fa;
        margin: 5px 0;
        min-width: auto !important;
        width: 100% !important;
        left: auto !important;
        right: auto !important;
    }

    .mega-dropdown.mobile-open {
        display: block;
    }

    .mega-dropdown-inner {
        grid-template-columns: 1fr !important;
        gap: 10px;
        padding: 0 5px;
    }

    .mega-col {
        padding: 0;
    }

    .mega-col h5 {
        font-size: 0.85rem;
        margin-bottom: 6px;
        padding: 8px 10px 4px;
        color: #0067b1;
        border-bottom: 1px solid #e8e8e8;
    }

    .mega-col ul {
        padding: 0;
    }

    .mega-col ul li a {
        padding: 7px 10px 7px 18px;
        font-size: 0.85rem;
        display: block;
    }

    /* Why Grid */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .why-card {
        padding: 18px 16px;
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 14px;
    }

    .why-card .icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1.1rem;
        margin-bottom: 0;
    }

    .why-card h4 {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }

    .why-card p {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    /* Solutions */
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    /* Steps */
    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    /* Blog */
    .blog-grid,
    .blog-list-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-banner h2 {
        font-size: 1.4rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    /* Page Hero */
    .page-hero {
        padding: 35px 0;
    }

    .page-hero h1 {
        font-size: 1.5rem;
    }

    /* Contact */
    .map-container {
        height: 280px;
    }

    /* Blog Detail */
    .blog-detail-img {
        height: 250px;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-item .number {
        font-size: 1.6rem;
    }

    /* Insurance Categories */
    .insurance-categories {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Partners */
    .partners-track {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .partners-track.partners-bes {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    .partner-item {
        padding: 10px 8px;
        min-height: 55px;
    }

    .partner-logo {
        height: 30px;
        max-width: 90px;
    }

    .partners-section-title {
        font-size: 1rem;
    }
}

/* ---------- SMALL MOBILE (max 480px) ---------- */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 40px 0;
    }

    .hero-modern-text h1 {
        font-size: 1.4rem;
    }

    .product-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .cta-banner .btn-group .btn {
        width: 100%;
    }

    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }

    .scroll-top {
        bottom: 75px;
        right: 18px;
        width: 40px;
        height: 40px;
    }

    .partners-track {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .partners-track.partners-bes {
        grid-template-columns: repeat(2, 1fr);
    }

    .partner-item {
        padding: 8px 6px;
        min-height: 50px;
    }

    .partner-logo {
        height: 26px;
        max-width: 80px;
    }

    .partners-section-title {
        font-size: 0.9rem;
    }
}
