/**
 * Responsive Styles
 * 
 * @package ServiciiAuto
 */

/* ========================================
   DESKTOP / TABLET (min 768px)
   ======================================== */
@media (min-width: 768px) {
    .phone-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .contact-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    /* Hide mobile gallery on desktop */
    .mobile-gallery-section {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* ========================================
   TABLET SCREENS (768px - 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .servicii-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .servicii-gallery {
        max-width: 600px;
        margin: 0 auto;
        margin-bottom: 3rem !important;
    }
    
    /* Servicii Section - Tablet */
    .servicii-container {
        padding-bottom: 3rem !important;
        margin-bottom: 3rem !important;
    }
    
    .despre-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .despre-image {
        height: 400px;
    }
    
    /* Despre Page Template - Tablet Specific */
    .despre-main-section {
        overflow-x: hidden !important;
    }
    
    .despre-main-title {
        margin-top: 0 !important;
    }
    
    /* Despre Reasons Grid - Tablet (2x2 layout) */
    .despre-reasons {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .reason-item {
        min-height: 320px !important;
        padding: 1.2rem !important;
    }
    
    /* Hero Section - Tablet */
    .vulcanizare-section:first-child {
        padding-top: 6rem !important;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 4vw, 2.4rem) !important;
        margin-bottom: 0.3rem !important;
        margin-top: 0 !important;
    }
    
    .hero-description {
        font-size: clamp(0.85rem, 1.8vw, 1rem) !important;
        margin-bottom: 0.8rem !important;
    }
    
    .hero-services {
        margin-bottom: 0.8rem !important;
        gap: 0.5rem !important;
    }
    
    .phone-buttons {
        gap: 0.5rem !important;
    }
    
    .btn-phone {
        padding: 0.6rem 1rem 0.6rem 1.8rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Contact Section - Tablet */
    .contact-section {
        padding: 1.5rem 1rem !important;
        min-height: auto !important;
        height: auto !important;
        margin-bottom: 0 !important;
        display: block !important;
    }
    
    .vulcanizare-section:last-child {
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Footer - Tablet */
    .site-footer {
        position: relative !important;
        display: block !important;
        transition: none !important;
        transform: none !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
    }
}

/* ========================================
   MOBILE SCREENS (max 767px)
   ======================================== */
@media (max-width: 767px) {
    /* Prevent horizontal overflow on mobile */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    /* Disable push transition effects on mobile/tablet - allow normal scrolling */
    html, body {
        overflow: auto !important;
    }
    
    .vulcanizare-container {
        position: relative !important;
        height: auto !important;
        width: 100% !important;
        transition: none !important;
        transform: none !important;
    }
    
    .vulcanizare-section {
        position: relative !important;
        height: auto !important;
        min-height: 100vh !important;
        display: block !important;
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
        top: auto !important;
        left: auto !important;
    }
    
    .vulcanizare-section:first-child {
        position: relative !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .vulcanizare-section.active {
        position: relative !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .vulcanizare-section.leaving-up {
        position: relative !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Hide dots navigation on mobile/tablet */
    .dots-navigation {
        display: none !important;
    }
}

@media (max-width: 767px) {
    /* General */
    .vulcanizare-section {
        padding: 1.5rem;
    }
    
    /* Despre main section - no top padding */
    .despre-main-section {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* HERO SECTION */
    .hero-section {
        justify-content: flex-start;
        padding-top: 2rem;
    }
    
    .hero-content {
        text-align: center;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-text-wrapper {
        text-align: center;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        margin: 1rem 0;
        font-size: 0.9rem;
    }
    
    .hero-description p {
        line-height: 1.6;
    }
    
    .hero-image-wrapper {
        margin: 1rem auto;
        max-width: 100%;
        flex: 1 1 100%;
        border-radius: 10px;
    }
    
    .hero-services {
        margin: 1rem 0;
    }
    
    .service-item {
        font-size: 0.9rem;
        margin: 0.5rem 0;
    }
    
    .hero-cta {
        margin-top: 1.5rem;
    }
    
    .cta-text {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    
    .phone-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn-phone {
        min-width: 100%;
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
    
    .btn-phone-hero {
        margin-bottom: 1rem;
    }
    
    .cta-badge {
        font-size: 0.85rem;
        margin-top: 0.8rem;
    }
    
    /* Servicii Section */
    .servicii-section {
        padding: 2rem 1.5rem !important;
    }
    
    .servicii-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .servicii-gallery {
        gap: 1rem;
        padding: 0.5rem;
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 100% !important;
        max-height: none !important;
    }
    
    .gallery-item {
        height: 180px !important;
    }
    
    .servicii-text {
        padding: 1rem;
    }
    
    .servicii-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .servicii-list {
        gap: 0.8rem;
    }
    
    .servicii-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .servicii-icon {
        font-size: 1.5rem;
        min-width: 30px;
    }
    
    .servicii-desc {
        font-size: 0.9rem;
    }
    
    .servicii-footer {
        font-size: 0.9rem;
        margin-top: 1rem;
    }
    
    /* Contact Section */
    .contact-section {
        padding: 1.5rem 1.5rem 1.5rem 1.5rem !important;
        min-height: auto !important;
    }
    
    .contact-container {
        text-align: center;
    }
    
    .contact-title {
        font-size: clamp(1.3rem, 3vw, 1.8rem);
        margin-bottom: 1rem;
    }
    
    .contact-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .contact-message {
        margin-top: 1.5rem;
    }
    
    .message-title {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .btn-message {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .message-icon {
        margin-right: 0.5rem;
    }
    
    /* Navbar Mobile */
    .navbar {
        padding: 0.8rem 0;
    }
    
    .navbar-container {
        padding: 0 1rem;
    }
    
    .navbar-logo a {
        font-size: clamp(0.9rem, 2vw, 1.1rem) !important;
        letter-spacing: 0.5px;
    }
    
    /* Modern Hamburger Menu - Slide from Left */
    .navbar-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(10, 10, 10, 0.99) 0%, rgba(26, 10, 46, 0.99) 100%);
        flex-direction: column;
        padding: 100px 2rem 2rem 2rem;
        gap: 1.5rem;
        z-index: 999;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-right: 1px solid rgba(255, 69, 0, 0.2);
        backdrop-filter: blur(10px);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-menu ul {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
        margin: 0;
    }
    
    .navbar-menu li {
        list-style: none;
    }
    
    .navbar-menu a {
        display: block;
        padding: 0.8rem 1rem;
        color: #e0e0e0;
        text-decoration: none;
        font-size: 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .navbar-menu a:hover {
        background: rgba(255, 69, 0, 0.2);
        color: #ff4500;
        padding-left: 1.5rem;
    }
    
    .navbar-menu a.active {
        color: #ff4500;
        background: rgba(255, 69, 0, 0.1);
        border-left: 3px solid #ff4500;
        padding-left: 1rem;
    }
    
    /* Modern Hamburger Icon */
    .navbar-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: transparent;
        border: none;
        cursor: pointer;
        width: 35px;
        height: 30px;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
    
    .navbar-toggle span {
        display: block;
        width: 25px;
        height: 2.5px;
        background: #ffffff;
        border-radius: 2px;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .navbar-toggle:hover span {
        background: #ff4500;
    }
    
    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
        background: #ff4500;
    }
    
    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
        background: #ff4500;
    }
    
    /* Semi-transparent Overlay when menu is open */
    @media (max-width: 767px) {
        .navbar-menu.active::before {
            content: '';
            position: fixed;
            top: 0;
            left: 280px;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: -1;
        }
    }
    
    /* Footer Mobile */
    .site-footer {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        padding: 1.5rem 1rem 1rem 1rem;
        transform: none !important;
        transition: none !important;
        opacity: 1 !important;
    }
    
    .site-footer.visible {
        transform: none !important;
    }
    
    .footer-phones {
        flex-direction: column;
    }
    
    .footer-phone {
        font-size: clamp(0.9rem, 1.6vw, 1rem);
    }
    
    /* Contact Page */
    .contact-page-main {
        padding-top: 70px !important;
        padding-bottom: 1rem !important;
    }
    
    .contact-page-container {
        padding: 1rem !important;
        max-width: 100% !important;
    }
    
    .contact-page-header {
        margin-bottom: 1.5rem !important;
    }
    
    .contact-page-title {
        font-size: clamp(1.5rem, 4vw, 2.2rem) !important;
        margin-bottom: 0.5rem !important;
    }
    
    .contact-page-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1rem) !important;
    }
    
    .contact-page-content {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
        align-items: stretch !important;
    }
    
    .contact-left-column {
        gap: 1.2rem !important;
        align-items: stretch !important;
    }
    
    .contact-page-phones {
        gap: 0.8rem !important;
        align-items: stretch !important;
        justify-content: stretch !important;
    }
    
    .contact-page-phones .btn-phone {
        width: 100% !important;
        max-width: none !important;
        padding: 1rem 1.2rem !important;
        font-size: 0.95rem !important;
    }
    
    .contact-form-intro {
        padding: 1rem !important;
        font-size: clamp(0.85rem, 2.5vw, 0.95rem) !important;
    }
    
    .contact-right-column {
        padding: 1.2rem !important;
        border-radius: 15px !important;
    }
    
    .contact-form {
        gap: 0.8rem !important;
    }
    
    .wpcf7-form {
        gap: 0.8rem !important;
    }
    
    .wpcf7-form p {
        gap: 0.3rem !important;
    }
    
    .contact-form-intro {
        padding: 1rem !important;
        font-size: clamp(0.85rem, 2.5vw, 0.95rem) !important;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }
    
    .form-group {
        margin-bottom: 0 !important;
    }
    
    .form-group label {
        font-size: clamp(0.85rem, 2.5vw, 0.95rem) !important;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.95rem !important;
        padding: 0.8rem !important;
    }
    
    .form-submit-btn {
        padding: 0.9rem 1.5rem !important;
        font-size: 0.95rem !important;
        width: 100% !important;
    }
    
    /* Despre Page Template Sections */
    .despre-main-section {
        overflow-x: hidden !important;
    }
    
    .nonstop-section {
        overflow-x: hidden !important;
        padding: 2rem 1rem !important;
    }
    
    .carousel-section {
        overflow-x: hidden !important;
        padding: 1rem 0 !important;
    }
    
    /* Despre Page - Home "De ce sa ne alegi" section */
    .despre-section {
        padding: 1.5rem 1.5rem 1.5rem 1.5rem !important;
    }
    
    .despre-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .despre-text {
        padding: 1rem;
    }
    
    .despre-title {
        font-size: clamp(1.3rem, 3vw, 1.8rem);
        margin-bottom: 1.5rem;
    }
    
    .despre-stats {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .stats-number {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
    }
    
    .stats-label {
        font-size: clamp(0.8rem, 1.5vw, 1rem);
    }
    
    .despre-cta {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .cta-link {
        font-size: 0.9rem;
    }
    
    .despre-image {
        margin-top: 1rem;
    }
    
    /* Dots Navigation - Hide on Mobile */
    .dots-navigation {
        display: none;
    }
    
    /* ========================================
       DESPRE PAGE TEMPLATE - MOBILE RESPONSIVE
       ======================================== */
    
    /* Despre Main Section */
    
    .despre-main-title {
        margin-bottom: 2rem !important;
        margin-top: 0 !important;
        font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
        text-align: center !important;
    }
    
    .despre-reasons {
        grid-template-columns: 1fr !important;
        gap: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .reason-item {
        min-height: 280px;
        padding: 1.5rem 1rem 0.8rem 1rem;
    }
    
    .reason-icon {
        font-size: 1.8rem;
    }
    
    .reason-title {
        font-size: clamp(1.1rem, 3vw, 1.4rem);
    }
    
    .reason-description {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }
    
    .reason-item:hover .reason-description {
        max-height: 150px;
    }
    
    .despre-footer-text {
        margin: 1.5rem 0 1rem 0;
    }
    
    .footer-brand {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }
    
    /* Non-stop Section */
    .nonstop-section {
        padding: 2rem 1rem !important;
    }
    
    .nonstop-container {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem;
    }
    
    .nonstop-image {
        order: 1;
        width: 100% !important;
        display: block !important;
    }
    
    .nonstop-image img {
        border-radius: 12px;
        width: 100% !important;
        display: block !important;
    }
    
    .nonstop-content {
        order: 2;
        width: 100% !important;
    }
    
    .nonstop-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: 1rem;
    }
    
    .nonstop-content p {
        font-size: clamp(0.95rem, 2.5vw, 1.05rem);
        line-height: 1.7;
        margin-bottom: 0.8rem;
    }
    
    
    /* Carousel Section - Hide on mobile/tablet */
    .carousel-section {
        display: none !important;
    }
    
    /* Mobile Gallery Section - 2x2 Grid */
    .mobile-gallery-section {
        padding: 2rem 1rem !important;
        display: block !important;
    }
    
    .mobile-gallery-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .mobile-gallery-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .mobile-gallery-item {
        width: 100% !important;
        height: auto !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    }
    
    .mobile-gallery-item img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1/1 !important;
        object-fit: cover !important;
        display: block !important;
        border-radius: 12px !important;
    }
    
    .mobile-gallery-load-more {
        display: block !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 2rem auto 0 !important;
        padding: 0.8rem 2rem !important;
        background: linear-gradient(135deg, #ff4500 0%, #ff6347 100%) !important;
        border: none !important;
        border-radius: 50px !important;
        color: #ffffff !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-gallery-load-more:hover {
        transform: translateY(-2px) scale(1.02) !important;
    }
    
    /* Lightbox Modal Mobile */
    .lightbox-modal {
        padding: 1rem;
    }
    
    .lightbox-close {
        top: -35px;
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }
    
    /* Video Section */
    .video-section {
        padding: 1rem 1rem 2rem 1rem !important;
    }
    
    /* Hide play button on mobile/tablet - devices have native player */
    .video-play-btn {
        display: none !important;
    }
    
    .video-container {
        max-width: 100% !important;
        margin-top: 0 !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .video-wrapper {
        max-height: 50vh !important;
        width: 100% !important;
        flex: 1 1 100% !important;
    }
    
    .video-wrapper video {
        max-height: 50vh !important;
    }
}

/* ========================================
   SMALL MOBILE (max 480px)
   ======================================== */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
    }
    
    .servicii-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .servicii-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .servicii-icon {
        font-size: 1.3rem;
    }
    
    .btn-phone {
        font-size: 0.85rem;
        padding: 0.7rem 1.5rem 0.7rem 2.5rem;
    }
    
    .btn-phone::before {
        font-size: 0.9rem;
        left: 0.7rem;
    }
    
    /* Extra small mobile optimizations for Despre page */
    .reason-item {
        min-height: 240px;
        padding: 1.2rem 0.8rem 0.6rem 0.8rem;
    }
    
    .reason-header {
        gap: 0.5rem;
        padding: 0.3rem 0.5rem;
        margin-bottom: 0.4rem;
    }
    
    .reason-icon {
        font-size: 1.6rem;
    }
    
    .nonstop-container {
        gap: 1rem;
    }
    
    .carousel-slide {
        width: calc(100% - 0.6rem);
    }
    
    .carousel-track {
        gap: 0.6rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
}

/* ========================================
   LARGE DESKTOP (min 1440px)
   ======================================== */
@media (min-width: 1440px) {
    .vulcanizare-section {
        padding: 4rem 3rem;
    }
    
    .servicii-container {
        max-width: 1400px;
    }
    
    .servicii-gallery {
        gap: 1rem;
    }
    
    .gallery-item {
        height: 280px;
    }
}

/* ========================================
   LANDSCAPE MODE (max-height: 600px)
   ======================================== */
@media (max-height: 600px) and (orientation: landscape) {
    .vulcanizare-section {
        min-height: auto;
        padding: 2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        margin-bottom: 0.5rem;
    }
    
    .hero-services {
        margin-bottom: 0.5rem;
    }
    
    .btn-phone {
        padding: 0.6rem 1.2rem 0.6rem 2.5rem;
    }
    
    .servicii-gallery {
        max-height: 400px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .navbar,
    .dots-navigation,
    .scroll-to-top,
    .site-footer {
        display: none !important;
    }
    
    .vulcanizare-section {
        page-break-after: always;
        break-after: page;
    }
    
    body {
        background: white;
        color: black;
    }
}
