/* ===================================
   MERCAN YOL YARDIM - RESPONSIVE
   Full Mobile-First Responsive Design
   =================================== */

/* ===================================
   TABLET (768px - 1023px)
   =================================== */
@media screen and (max-width: 1023px) {
    /* Container */
    .container {
        padding: 0 24px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 100px 24px 40px;
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 16px;
        font-size: 1.1rem;
    }
    
    .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Hero Grid */
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        overflow: hidden;
    }
    
    .hero-content {
        max-width: 100%;
        padding-top: 80px;
    }
    
    .hero-visual {
        padding: 20px 0;
        overflow: hidden;
    }
    
    .hero-main-image {
        max-width: 350px;
    }
    
    .hero-floating-card {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .hero-floating-card .floating-icon {
        width: 32px;
        height: 32px;
    }
    
    .hero-floating-card .floating-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .hero-floating-card .floating-number {
        font-size: 0.9rem;
    }
    
    .hero-floating-card .floating-text {
        font-size: 0.6rem;
    }
    
    .card-response { right: 5px; top: 5%; }
    .card-customers { right: 5px; bottom: 25%; }
    .card-service { left: 5px; top: 30%; }
    .card-experience { left: 5px; bottom: 5%; }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    
    /* Trust Bar */
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }
    
    /* Tow Truck Section - Tablet */
    .tow-truck-section {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }
    
    .tow-truck-illustration {
        order: -1;
    }
    
    .tow-truck-svg {
        max-width: 450px;
    }
    
    .illustration-badge {
        padding: 10px 14px;
    }
    
    .badge-icon {
        font-size: 1.2rem;
    }
    
    .badge-text {
        font-size: 0.8rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    /* Why Us */
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .why-us-image {
        order: -1;
    }
    
    .why-us-content .section-title,
    .why-us-content .section-description {
        text-align: center;
    }
    
    .experience-badge {
        bottom: auto;
        top: 20px;
        left: auto;
        right: 20px;
    }
    
    /* Service Areas */
    .areas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Services Detail */
    .service-detail-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-detail-card.reverse {
        direction: ltr;
    }
    
    .service-detail-image {
        order: -1;
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-badge {
        right: 20px;
        bottom: -15px;
    }
    
    /* Values */
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .team-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-map {
        order: -1;
    }
}

/* ===================================
   MOBILE (320px - 767px)
   =================================== */
@media screen and (max-width: 767px) {
    /* Base */
    :root {
        --section-padding: 60px;
    }
    
    /* Global Mobile Overflow Fix */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    section {
        overflow: hidden;
    }
    
    /* Container */
    .container {
        padding: 0 16px;
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Header */
    .header {
        padding: 0;
    }
    
    .nav {
        height: 70px;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo-icon {
        font-size: 1.4rem;
    }
    
    /* Hero - Critical Mobile Styles */
    .hero {
        min-height: auto;
        padding-bottom: 40px;
        overflow: hidden;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: auto;
        padding-top: 90px;
    }
    
    .hero-content {
        padding-top: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        order: 1;
        padding: 0 10px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-image-wrapper {
        display: none;
    }
    
    .hero-floating-card {
        display: none;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        margin-bottom: 16px;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 24px;
        padding: 0 10px;
    }
    
    .hero-cta {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .hero-cta .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }
    
    .hero-phone {
        margin-top: 12px;
    }
    
    .hero-phone a {
        font-size: 1.2rem;
        font-weight: 700;
    }
    
    .hero-scroll {
        display: none;
    }
    
    /* Trust Bar */
    .trust-bar {
        padding: 30px 0;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .trust-item {
        padding: 14px;
    }
    
    .trust-icon {
        width: 44px;
        height: 44px;
    }
    
    .trust-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .trust-content h3 {
        font-size: 0.95rem;
    }
    
    .trust-content p {
        font-size: 0.8rem;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
    
    /* Services */
    .services {
        padding: 50px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .service-card {
        padding: 20px 16px;
    }
    
    .service-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }
    
    .service-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
    
    .service-link {
        font-size: 0.85rem;
    }
    
    /* Services Showcase */
    .services-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
        margin-top: 32px;
    }
    
    .showcase-image img {
        height: 180px;
    }
    
    .showcase-content h3 {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }
    
    .showcase-content p {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
    
    .showcase-features {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .showcase-feature {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    /* Tow Truck Section - Mobile */
    .tow-truck-section {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px 16px;
        margin-top: 30px;
        overflow: hidden;
    }
    
    .tow-truck-content h3 {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .tow-truck-content > p {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .feature-list {
        gap: 10px;
    }
    
    .feature-item {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .feature-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    
    .feature-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .feature-text strong {
        font-size: 0.85rem;
    }
    
    .feature-text span {
        font-size: 0.75rem;
    }
    
    .tow-truck-illustration {
        order: -1;
        overflow: hidden;
    }
    
    .tow-truck-svg {
        max-width: 100%;
        height: auto;
    }
    
    .illustration-badge {
        display: none;
    }
    
    .tow-truck-content .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Stats */
    .stats {
        padding: 40px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Why Us */
    .why-us {
        padding: 50px 0;
    }
    
    .why-us-content {
        text-align: center;
    }
    
    .why-us-content .section-title {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .why-us-content .section-description {
        text-align: center;
    }
    
    .why-us-list {
        text-align: left;
    }
    
    .why-us-list li {
        font-size: 0.9rem;
        padding: 10px 0;
    }
    
    .why-us-list svg {
        width: 20px;
        height: 20px;
    }
    
    .why-us-image img {
        border-radius: 16px;
    }
    
    .experience-badge {
        padding: 14px 18px;
        top: 16px;
        right: 16px;
    }
    
    .experience-badge .number {
        font-size: 1.75rem;
    }
    
    .experience-badge .text {
        font-size: 0.75rem;
    }
    
    /* Service Areas */
    .service-areas {
        padding: 50px 0;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .area-card {
        padding: 20px;
    }
    
    .area-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .area-card h3 {
        font-size: 1.2rem;
    }
    
    .area-card p {
        font-size: 0.9rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-content h2 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .cta-content p {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Footer */
    .footer {
        padding-top: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .footer-brand .logo {
        margin-bottom: 12px;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
    }
    
    .footer h4 {
        font-size: 1rem;
        margin-bottom: 16px;
    }
    
    .footer-links ul li,
    .footer-services ul li {
        margin-bottom: 10px;
    }
    
    .footer-contact ul li {
        margin-bottom: 14px;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px 0;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
    
    /* FAB Buttons - Mobile */
    .fab-phone-container {
        bottom: 16px;
        right: 12px;
        z-index: 9999;
    }
    
    .fab-whatsapp-container {
        bottom: 16px;
        left: 12px;
        z-index: 9999;
    }
    
    .fab {
        width: 52px;
        height: 52px;
    }
    
    .fab.fab-expanded {
        width: 52px;
        padding: 0;
        border-radius: 50%;
    }
    
    .fab .fab-text {
        display: none;
    }
    
    .fab svg {
        width: 22px;
        height: 22px;
    }
    
    /* Page Header */
    .page-header {
        padding: 90px 0 32px;
    }
    
    .page-header-content h1 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .page-header-content p {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    /* Services Detail Page */
    .services-detail {
        padding: 40px 0;
    }
    
    .service-detail-card {
        padding: 32px 0;
        gap: 24px;
    }
    
    .service-detail-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 16px;
    }
    
    .service-detail-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .service-detail-text h2 {
        font-size: 1.35rem;
        margin-bottom: 12px;
    }
    
    .service-intro {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .service-features h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .service-features ul li {
        font-size: 0.9rem;
        padding: 8px 0;
    }
    
    .service-features ul li svg {
        width: 18px;
        height: 18px;
    }
    
    .service-cta {
        margin-top: 20px;
    }
    
    .service-detail-image img {
        border-radius: 12px;
    }
    
    /* About Page */
    .about-section {
        padding: 50px 0;
    }
    
    .about-content .section-badge {
        margin-bottom: 12px;
    }
    
    .about-content h2 {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    
    .about-intro {
        font-size: 0.95rem;
    }
    
    .about-content p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .about-image img {
        border-radius: 16px;
    }
    
    .about-badge {
        padding: 14px 20px;
        right: 16px;
        bottom: -12px;
    }
    
    .about-badge .number {
        font-size: 2rem;
    }
    
    .about-badge .text {
        font-size: 0.8rem;
    }
    
    /* Values Section */
    .values-section {
        padding: 50px 0;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .value-card {
        padding: 20px;
    }
    
    .value-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 14px;
    }
    
    .value-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .value-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .value-card p {
        font-size: 0.9rem;
    }
    
    /* Contact Page */
    .contact-section {
        padding: 50px 0;
    }
    
    .contact-info h2 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .contact-info > p {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    
    .contact-cards {
        gap: 12px;
        margin-bottom: 32px;
    }
    
    .contact-card {
        padding: 16px;
        gap: 14px;
    }
    
    .contact-card-icon {
        width: 46px;
        height: 46px;
    }
    
    .contact-card-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .contact-card-content h3 {
        font-size: 0.9rem;
    }
    
    .contact-card-content p {
        font-size: 0.85rem;
    }
    
    .contact-card .badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .working-hours h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .hours-grid {
        padding: 16px;
    }
    
    .hour-item {
        padding: 10px 0;
        font-size: 0.9rem;
    }
    
    .hours-note {
        font-size: 0.85rem;
    }
    
    .map-container {
        border-radius: 12px;
    }
    
    .map-container iframe {
        height: 280px;
    }
    
    .map-overlay {
        bottom: 12px;
        left: 12px;
    }
    
    /* Contact Areas */
    .contact-areas {
        padding: 40px 0;
    }
    
    .contact-areas .section-header {
        margin-bottom: 24px;
    }
    
    .contact-areas .section-title {
        font-size: 1.3rem;
    }
    
    .areas-list {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .area-item {
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Buttons Global Mobile */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    .btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ===================================
   SMALL MOBILE (320px - 374px)
   =================================== */
@media screen and (max-width: 374px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-grid {
        padding-top: 80px;
        gap: 0;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-cta .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .hero-phone a {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .section-badge {
        font-size: 0.7rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .trust-content h3 {
        font-size: 0.9rem;
    }
    
    .trust-content p {
        font-size: 0.75rem;
    }
    
    .service-card h3 {
        font-size: 1rem;
    }
    
    .fab {
        width: 50px;
        height: 50px;
    }
    
    .fab svg {
        width: 20px;
        height: 20px;
    }
}

/* ===================================
   LANDSCAPE MOBILE
   =================================== */
@media screen and (max-width: 767px) and (orientation: landscape) {
    html, body {
        overflow-x: hidden !important;
    }
    
    .hero {
        min-height: auto;
        padding: 20px 0 30px;
        overflow: hidden;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 70px;
        min-height: auto;
    }
    
    .hero-content {
        padding-top: 0;
        text-align: center;
        align-items: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .hero-cta {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .hero-cta .btn {
        width: auto;
        min-width: 130px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .hero-phone a {
        font-size: 1rem;
    }
    
    .hero-scroll {
        display: none;
    }
}

/* ===================================
   LARGE SCREENS (1400px+)
   =================================== */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-description {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .header,
    .fab-phone-container,
    .fab-whatsapp-container,
    .hero-scroll,
    .cta-section {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
        background: none !important;
        color: #000 !important;
    }
    
    .hero-content {
        padding-top: 0;
    }
    
    .hero-title,
    .hero-title .highlight {
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
    }
    
    .hero-description {
        color: #333 !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .page-header {
        background: none !important;
        padding: 20px 0;
    }
    
    .page-header-content h1,
    .page-header-content p {
        color: #000 !important;
    }
}

/* ===================================
   TOUCH DEVICE OPTIMIZATIONS
   =================================== */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .hover-lift:hover,
    .hover-scale:hover,
    .card-hover:hover,
    .service-card:hover,
    .trust-item:hover,
    .value-card:hover,
    .area-card:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 48px;
    }
    
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .fab {
        width: 56px;
        height: 56px;
    }
}

/* ===================================
   HIGH CONTRAST MODE
   =================================== */
@media (prefers-contrast: high) {
    :root {
        --primary: #0000ff;
        --danger: #ff0000;
        --success: #008000;
        --text-gray: #333;
        --border-light: #000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}
