/* Mobile-specific styles for EtaSigorta-Website */

/* Mobile video fixes */
#hero {
    color: var(--white);
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70vh;
    min-height: 400px;
    max-height: 800px;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 135%;
    height: 100%;
    transform: translate(-50%, -50%);
    min-height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================================
   Language Dropdown Fixes
   ========================================================================== */
   
/* Commenting out these styles as navigation-fixes.css handles language dropdown within mobile nav */
/*
.lang-dropdown.active .dropdown-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 100;
    pointer-events: all !important; 
}

.lang-dropdown-content a span {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.flag-icon {
    width: 20px;
    height: auto;
    vertical-align: middle;
}


@media (max-width: 768px) {
    .lang-dropdown-content a {
        padding: 1.5rem 2rem;
        font-size: 1.6rem;
    }
    
    .lang-dropdown .dropdown-content {
        position: absolute;
        right: 0;
        left: auto;
        width: 180px;
    }
    
    .lang-dropdown.active {
        position: relative;
        z-index: 1000;
    }
}
*/

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet devices */
@media (min-width: 769px) and (max-width: 1024px) {
    html {
        font-size: 9px;
    }
    
        .hero-content h1 {
        font-size: 5.2rem;
    }
    
    .hero-content p {
        font-size: 2rem;
    }
    
    .services-title {
        font-size: 4.2rem;
        margin-bottom: var(--spacing-lg);
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    html {
        font-size: 8px; /* Reduced base font size for mobile */
    }
    
    #hero {
        height: 60vh; /* Reduced height for mobile */
        min-height: 350px;
    }
    
    .hero-video-wrapper iframe {
        width: 180%; /* Make video wider to better fill vertical space */
    }

    .section-padding {
        padding: var(--section-padding-mobile) 0;
    }

    h1 { font-size: 3.8rem; } /* Reduced heading sizes for mobile */
    h2 { font-size: 3.2rem; }
    h3 { font-size: 2.6rem; }

    .btn {
        padding: 1rem 2.5rem;
        font-size: 1.6rem;
    }

    .hero-content h1 {
        font-size: 4.6rem;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content p {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .hero-actions .btn {
        width: 100%;
        margin: 0;
    }
    
    #services-overview h2[data-lang="servicesOverviewTitle"] {
        font-size: 3.6rem;
        margin-bottom: var(--spacing-lg);
    }
    
    /* Partners section mobile optimizations */
    #partners h2 {
        font-size: 3.2rem;
        margin-bottom: var(--spacing-md);
    }
    
    .slide {
        height: 8rem;
        width: 12rem;
    }
    
    .logo-slider-track {
        width: calc(8 * (12rem + 2.5rem) * 2);
    }
    
    /* Service cards mobile optimizations */
    .service-item-detailed {
        flex-direction: column !important;
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }
    
    .service-content-wrapper,
    .service-image-wrapper {
        width: 100% !important;
        transform: none !important;
        order: unset !important;
    }
    
    .service-item-detailed .service-image-wrapper {
        max-width: 70%;
        margin: 0 auto;
    }
    
    .service-item-detailed:nth-child(even) .service-content-wrapper,
    .service-item-detailed:nth-child(odd) .service-content-wrapper {
        text-align: center;
    }
    
    .service-content-wrapper .learn-more-btn {
        margin: 0 auto;
        display: inline-block;
    }

    /* General mobile fixes */
    /* Reduce section padding for mobile */
    .section-padding {
        padding: var(--section-padding-mobile) 0;
    }
    
    /* Reduce container padding */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Hero action buttons styling for mobile */
    .hero-actions {
        margin-top: var(--spacing-md);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 85%;
        max-width: 22rem;
        font-size: 1.4rem;
        padding: 0.8rem 1.2rem;
        min-height: 3.8rem;
    }
    
    .hero-actions .btn-large {
        font-size: 1.4rem;
        padding: 0.8rem 1.4rem;
        letter-spacing: 0.02em;
    }
    
    /* Adjust lower headings */
    h3, h4 {
        font-size: 2rem;
    }

    /* Header and navigation mobile fixes */
    header .logo img {
        max-height: 5rem;  /* Reduce logo size on mobile */
    }
    
    header .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    /* Footer mobile optimizations */
    footer {
        text-align: center;
    }
    
    .footer-top {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .footer-top > div {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .footer-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    #hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .hero-video-wrapper iframe {
        width: 220%;
    }
    
    #partners h2 {
        font-size: 2.8rem;
    }
    
    .slide {
        height: 6.5rem;
        width: 10rem;
        margin-right: 2rem;
    }
    
    .logo-slider-track {
        width: calc(8 * (10rem + 2rem) * 2);
    }

    .service-item-detailed {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }
    
    .service-item-detailed .service-image-wrapper {
        max-width: 85%;
    }
    
    .service-content-wrapper p {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .learn-more-btn {
        padding: 0.7rem 1.5rem;
        font-size: 1.4rem;
    }

    /* Enhanced touch targets for mobile */
    .btn {
        min-height: 4.4rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-nav a,
    .footer-nav a,
    .dropdown-content a {
        padding: 1.2rem 0.8rem;  /* Larger tap target */
    }
    
    /* Add more breathing space in mobile */
    :root {
        --spacing-lg: 3rem;  /* Reduced from 4rem */
        --spacing-xl: 5rem;  /* Reduced from 8rem */
    }

    header .logo img {
        max-height: 4rem;  /* Further reduce logo size on small devices */
    }
    
    /* Better dropdown behavior on small screens */
    .dropdown-content {
        width: 90vw;
        left: 5vw;
        right: 5vw;
    }

    footer h4 {
        font-size: 1.8rem;
    }
    
    footer p, 
    footer li,
    .copyright {
        font-size: 1.4rem;
    }
    
    .footer-nav ul li {
        padding: 0 0.8rem;
    }
    
    .social-links {
        margin-top: var(--spacing-sm);
    }

    /* Smaller hero buttons for small mobile */
    .hero-content p {
        font-size: 1.6rem;
        text-align: center;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        margin-top: 1.2rem;
        gap: 0.8rem;
    }
    
    .hero-actions .btn {
        width: 80%;
        max-width: 20rem;
        font-size: 1.2rem;
        padding: 0.6rem 1rem;
        min-height: 3.4rem;
    }
    
    .hero-actions .btn-large {
        font-size: 1.2rem;
        letter-spacing: 0.01em;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    #hero {
        height: 45vh;
        min-height: 280px;
    }
    
    .hero-video-wrapper iframe {
        width: 250%;
    }
    
    #partners h2 {
        font-size: 2.2rem;
    }
    
    .slide {
        height: 5.5rem;
        width: 8.5rem;
        margin-right: 1.5rem;
    }

    /* Ultra small hero buttons */
    .hero-actions {
        margin-top: 1rem;
        gap: 0.6rem;
    }
    
    .hero-actions .btn {
        width: 78%;
        max-width: 16rem;
        font-size: 1.1rem;
        padding: 0.5rem 0.8rem;
        min-height: 3rem;
    }
    
    .hero-actions .btn-large {
        letter-spacing: 0;
    }

    /* Tiny hero buttons for smallest screens */
    .hero-actions {
        margin-top: 0.8rem;
        gap: 0.5rem;
    }
    
    .hero-actions .btn {
        width: 75%;
        max-width: 14rem;
        font-size: 1rem;
        padding: 0.4rem 0.6rem;
        min-height: 2.8rem;
    }
}

/* Optimizations for really small screens */
@media (max-width: 320px) {
    html {
        font-size: 9px;  /* Slightly reduce the base font size on very small screens */
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    #services-overview h2[data-lang="servicesOverviewTitle"] {
        font-size: 2rem;
    }
    
    .service-content-wrapper h3 {
        font-size: 1.9rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Heading size adjustments */
/* Desktop and large screens */
@media (min-width: 1025px) {
    .hero-content h1 {
        font-size: 6.4rem;
    }
    
    .services-title {
        font-size: 4.8rem;
    }
}

/* Tablet devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 5.2rem;
    }
    
    .services-title {
        font-size: 4.2rem;
        margin-bottom: var(--spacing-lg);
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 4.6rem;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
    
    #services-overview h2[data-lang="servicesOverviewTitle"] {
        font-size: 3.6rem;
        margin-bottom: var(--spacing-lg);
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 3rem;
        line-height: 1.2;
        max-width: 100%;
    }
    
    #services-overview h2[data-lang="servicesOverviewTitle"] {
        font-size: 2.8rem;
        margin-bottom: var(--spacing-md);
    }
    
    .service-content-wrapper h3 {
        font-size: 2.4rem;
    }
    
    .hero-content p {
        font-size: 1.6rem;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1.5rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 2.4rem;
        line-height: 1.2;
    }
    
    #services-overview h2[data-lang="servicesOverviewTitle"] {
        font-size: 2.2rem;
    }
    
    .service-content-wrapper h3 {
        font-size: 2.1rem;
    }
    
    .hero-content p {
        font-size: 1.4rem;
    }
    
    .btn-large {
        padding: 0.8rem 1.6rem;
        font-size: 1.4rem;
    }
}
