/* ============================================================================
   PROGRAMARECONSULAT.RO - IMPROVED DESKTOP ENHANCEMENTS
   Version: 2.0 - MOBILE-STYLE DESIGN FOR DESKTOP
   Date: October 21, 2025
   Purpose: Apply mobile blue-on-white style to desktop with proper dimensions
============================================================================ */

/* ============================================================================
   GLOBAL ACCORDION FIXES (ALL SCREEN SIZES)
============================================================================ */
/* Contact link styling */
.contact-link {
    color: inherit !important; /* Inherit the text color from parent */
    text-decoration: none; /* Remove underline */
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: var(--yellow) !important; /* Yellow/gold color on hover - adjust to match your theme */
    transform: translateX(5px); /* Slight movement on hover for desktop */
}

.contact-link:active {
    transform: scale(0.98); /* Slight press effect on mobile */
}

/* Optional: Make the entire paragraph clickable with better touch targets for mobile */
.footer-section p {
    margin: 15px 0;
}

/* Ensure adequate touch target size for mobile (minimum 44x44px recommended) */
@media (max-width: 768px) {
    .contact-link {
        display: block;
        padding: 10px 0;
        min-height: 44px;
        line-height: 24px;
    }
}

.despre-noi-section {
    padding: 80px 0;
    background-color: #f8f9fa; /* Light background - alternate with your other sections */
}

.despre-noi-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #002B7F; /* Match your navy blue */
    margin-bottom: 40px;
}

.despre-noi-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.despre-noi-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.accordion-item {
    overflow: hidden !important;
    position: relative;
    isolation: isolate;
}

.accordion-content {
    overflow: hidden !important;
    transition: max-height 0.4s ease, padding 0.4s ease !important;
}

.accordion-item:not(.active) .accordion-content {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
}

.services-grid {
    width: 100%;
    margin: 0;
}

/* ============================================================================
   DESKTOP LAYOUT IMPROVEMENTS (MIN-WIDTH: 769px)
   APPLY MOBILE-STYLE BLUE HEADERS WITH WHITE TEXT
============================================================================ */

@media (min-width: 769px) {

    /* ========================================
       CONTAINER AND SPACING FIXES
    ======================================== */

    .container {
        max-width: 1400px;
        padding: 0 40px;
    }

    .services,
    .hero,
    #how-it-works {
        padding: 80px 0;
    }

    /* ========================================
       HEADER AND NAVIGATION
    ======================================== */

    .navbar {
        padding: 20px 0;
    }

    .logo-img {
        width: 60px;
        height: 60px;
    }

    .brand-name {
        font-size: 1.75rem;
    }

    .nav-menu {
        gap: 35px;
    }

    .nav-menu a {
        font-size: 16px;
        padding: 8px 0;
        position: relative;
    }

    .nav-menu a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: width 0.3s ease;
    }

    .nav-menu a:hover::after {
        width: 100%;
    }

    /* ========================================
       HERO SECTION
    ======================================== */

    .hero {
        min-height: 650px;
        padding: 100px 0;
    }

    .hero-title {
        font-size: 3.5rem;
        line-height: 1.2;
        margin-bottom: 30px;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        max-width: 800px;
        margin: 0 auto 40px;
    }

    /* ========================================
       SPECIAL OFFERS - DESKTOP OPTIMIZATION
    ======================================== */

    .special-offers-banner {
        max-width: 1200px;
        margin: 40px auto;
        padding: 40px;
    }

    .special-offers-banner h2 {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }

    .special-offers-grid,
    .offers-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: 30px;
        max-width: 1000px;
        margin: 0 auto;
    }

    .special-offer-card,
    .offer-card {
        padding: 35px;
        min-height: 450px;
        display: flex;
        flex-direction: column;
    }

    /* ========================================
       SERVICES SECTION - ACCORDION IMPROVEMENTS
       MOBILE STYLE: WHITE TEXT ON BLUE BACKGROUND
    ======================================== */

    .services-accordion {
        max-width: 1100px;
        margin: 0 auto;
    }

    .accordion-item {
        margin-bottom: 20px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        position: relative;
        z-index: 1;
    }

    .accordion-item:hover {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
        z-index: 2;
    }

    .accordion-item.active {
        z-index: 3;
    }

    /* CRITICAL: Blue background with white text like mobile */
    .accordion-header {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
        color: white !important;
        padding: 20px 25px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 70px;
        position: relative;
        z-index: 10;
        transition: all 0.3s ease;
    }

    .accordion-header:hover {
        background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
    }

    .accordion-title {
        display: flex;
        align-items: center;
        gap: 15px;
        flex: 1;
        font-size: 1.2rem;
        font-weight: 600;
        color: white !important;
    }

    /* Category Icons - Properly styled */
    .accordion-title i {
        font-size: 24px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        flex-shrink: 0;
        color: white !important;
    }

    /* Service Count Badge */
    .service-count {
        background: rgba(255, 255, 255, 0.25);
        color: white !important;
        padding: 4px 12px;
        border-radius: 15px;
        font-size: 13px;
        font-weight: 600;
        margin-left: auto;
        margin-right: 10px;
    }

    /* Accordion Toggle Button */
    .accordion-toggle {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transition: all 0.3s ease;
        flex-shrink: 0;
        margin-left: 15px;
    }

    .accordion-toggle i {
        font-size: 16px;
        color: white !important;
        transition: transform 0.3s ease;
    }

    .accordion-item.active .accordion-toggle {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

    .accordion-item.active .accordion-toggle i {
        transform: rotate(180deg);
    }

    /* Accordion Content */
    .accordion-content {
        padding: 0 25px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        background: #f9f9f9;
    }

    .accordion-item.active .accordion-content {
        padding: 25px;
        max-height: 5000px;
        overflow: visible;
    }

    /* ========================================
       SERVICE CARDS - GRID LAYOUT
    ======================================== */

    .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
        gap: 25px;
        width: 100%;
    }

    .service-card {
        padding: 25px;
        border-radius: 12px;
        transition: all 0.3s ease;
        position: relative;
        z-index: 1;
        background: white;
        border: 1px solid #e0e0e0;
        overflow: hidden;
    }

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
        z-index: 5;
        border-color: var(--primary);
    }

    .service-header h4 {
        font-size: 1.15rem;
        margin-bottom: 12px;
        color: var(--gray-900);
    }

    .service-code {
        padding: 5px 12px;
        font-size: 12px;
        background: var(--primary);
        color: white;
        border-radius: 4px;
        font-weight: 600;
    }

    .service-option {
        padding: 16px;
        margin-bottom: 10px;
        min-height: auto;
        border: 1px solid #ddd;
        border-radius: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .service-option:hover {
        transform: translateX(5px);
        border-color: var(--primary);
        background: linear-gradient(135deg, rgba(0, 43, 127, 0.05), rgba(0, 43, 127, 0.1));
        box-shadow: 0 2px 10px rgba(0, 43, 127, 0.1);
    }

    .service-option.recommended {
        border-color: var(--primary);
        border-width: 2px;
        background: linear-gradient(135deg, rgba(0, 43, 127, 0.05), rgba(0, 43, 127, 0.1));
    }

    .option-name {
        font-size: 15px;
        font-weight: 600;
        color: var(--gray-900);
        flex: 0 1 auto;
        margin-right: auto;
    }

    .option-price {
        font-size: 18px;
        font-weight: 700;
        color: var(--primary);
        flex-shrink: 0;
        white-space: nowrap;
    }

    .btn-add-service {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 16px;
        border-radius: 50%;
        border: none;
        background: var(--primary);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        flex-shrink: 0;
        margin-left: 12px;
    }

    .btn-add-service:hover {
        transform: scale(1.1);
        background: var(--primary-dark);
        box-shadow: 0 4px 12px rgba(0, 43, 127, 0.3);
    }

    /* ========================================
       TRANSLATION SERVICES - DESKTOP LAYOUT
    ======================================== */

    .translation-services {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin-top: 25px;
    }

    .translation-card {
        padding: 25px;
        border-radius: 12px;
    }

    .translation-card .service-header h4 {
        font-size: 1.2rem;
        color: #007acc;
    }

    .translation-card .service-description {
        font-size: 15px;
        line-height: 1.6;
        margin: 15px 0;
        color: var(--gray-700);
    }

    /* WhatsApp Card */
    .whatsapp-card {
        padding: 30px;
        margin: 20px 0;
        border-radius: 15px;
        background: linear-gradient(135deg, #25D366, #128C7E);
    }

    .whatsapp-header {
        margin-bottom: 20px;
    }

    .whatsapp-header i {
        font-size: 32px;
    }

    .whatsapp-header h3 {
        font-size: 1.6rem;
        color: white;
    }

    .whatsapp-content p {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 20px;
        color: white;
    }

    .whatsapp-content ul {
        max-width: 600px;
        margin: 0 auto 25px;
    }

    .whatsapp-content li {
        padding: 8px 0;
        font-size: 15px;
        color: white;
    }

    .btn-whatsapp {
        padding: 14px 28px;
        font-size: 15px;
        min-height: auto;
        background: #25D366;
        color: white;
        border: none;
        border-radius: 25px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .btn-whatsapp:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
        background: #f0f0f0;
        color: black;
    }

    /* ========================================
       HOW IT WORKS SECTION
    ======================================== */

    #how-it-works {
        padding: 80px 0;
    }

    #how-it-works .section-title {
        font-size: 2.5rem;
        margin-bottom: 50px;
    }

    #how-it-works > div > div {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
    }

    #how-it-works > div > div > div {
        padding: 30px 20px;
    }

    #how-it-works .step-number {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin-bottom: 25px;
    }

    #how-it-works h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    #how-it-works p {
        font-size: 16px;
        line-height: 1.6;
    }

    /* ========================================
       FOOTER - DESKTOP LAYOUT
    ======================================== */

    .footer {
        padding: 60px 0 30px;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
        max-width: 1200px;
        margin: 0 auto 40px;
    }

    .footer-section h4 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 16px;
        padding: 8px 0;
    }

    .social-links {
        gap: 20px;
    }

    .social-links a {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .footer-bottom {
        padding-top: 30px;
        font-size: 15px;
    }

    /* ========================================
       NOTIFICATION SYSTEM
    ======================================== */

    .notification {
        min-width: 400px;
        padding: 18px 22px;
    }

    .notification-content {
        gap: 12px;
    }

    .notification-content i {
        font-size: 22px;
    }

    .notification-content span {
        font-size: 15px;
    }

    /* ========================================
       BUTTONS AND INTERACTIONS
    ======================================== */

    .btn {
        padding: 14px 32px;
        font-size: 16px;
        transition: all 0.3s ease;
    }

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    }

    .btn-primary:hover {
        box-shadow: 0 6px 18px rgba(0, 43, 127, 0.3);
    }

    /* ========================================
       WHATSAPP FLOATING BUTTON
    ======================================== */

    .whatsapp-float {
        width: 65px;
        height: 65px;
        font-size: 32px;
        bottom: 30px;
        right: 30px;
    }

    .whatsapp-float:hover {
        transform: scale(1.12);
    }

}

/* ============================================================================
   LARGE DESKTOP OPTIMIZATION (MIN-WIDTH: 1400px)
============================================================================ */

@media (min-width: 1400px) {

    .container {
        max-width: 1600px;
        padding: 0 60px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .translation-services {
        gap: 35px;
    }

    #how-it-works > div > div {
        gap: 50px;
    }

}

/* ============================================================================
   ULTRA-WIDE DESKTOP (MIN-WIDTH: 1920px)
============================================================================ */

@media (min-width: 1920px) {

    .container {
        max-width: 1800px;
    }

    .special-offers-banner {
        max-width: 1400px;
    }

    .services-accordion {
        max-width: 1300px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }

}


