/**
 * PSISSM.ro - Responsive Stylesheet
 * Mobile & Tablet Optimizations
 */

/* ============================================
   Tablet Landscape (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .intro-row {
        gap: 40px;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step::after {
        display: none;
    }
    
    .zones-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-row {
        grid-template-columns: 2fr 1fr;
        gap: 30px;
    }
    
    .footer-zones,
    .footer-contact {
        grid-column: span 1;
    }
}

/* ============================================
   Tablet Portrait (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 50px 0;
        --gutter: 20px;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.375rem;
    }
    
    /* Header */
    .header-inner {
        padding: 8px 15px;
    }
    
    .site-logo .logo-img {
        height: 32px;
    }
    
    /* Site name visible on mobile */
    .site-name {
        display: block;
        font-size: 14px;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-white);
        box-shadow: var(--shadow-lg);
        padding: 80px 0 20px;
        overflow-y: auto;
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1002;
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .menu {
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
    }
    
    .menu > li {
        border-bottom: 1px solid var(--border-light);
    }
    
    .menu > li:last-child {
        border-bottom: none;
    }
    
    .menu > li > a {
        padding: 16px 0;
        font-size: 15px;
        font-weight: 500;
    }
    
    .menu > li > a:hover {
        background-color: transparent;
    }
    
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .menu-item-has-children.open .sub-menu {
        max-height: 500px;
    }
    
    .sub-menu li {
        border-top: 1px solid var(--border-light);
    }
    
    .sub-menu li a {
        padding: 12px 20px 12px 40px;
        background: var(--bg-light);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
        z-index: 999;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .trust-badge {
        padding: 15px;
    }
    
    /* Stats Grid - Cifre și Realizări */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .stat-box {
        padding: 20px !important;
    }
    
    .stat-box div {
        font-size: 2.5rem !important;
    }
    
    /* Sections */
    .section-header {
        margin-bottom: 35px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Intro */
    .intro-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .intro-image {
        order: -1;
    }
    
    .intro-badge {
        bottom: 20px;
        right: 20px;
        padding: 15px 20px;
    }
    
    .intro-badge i {
        font-size: 1.5rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card.featured {
        transform: none;
    }
    
    /* Process Steps */
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    /* Pricing */
    .info-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Zones */
    .zones-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 1.875rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-legal-links ul {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Buttons */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .floating-whatsapp {
        bottom: 80px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.625rem;
    }
    
    .floating-whatsapp .tooltip {
        display: none;
    }
}

/* ============================================
   Mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    :root {
        --section-padding: 40px 0;
    }
    
    /* Container */
    .container {
        padding: 0 12px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Header */
    .site-logo img {
        height: 45px;
    }
    
    .main-navigation {
        width: 280px;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 2rem;
    }
    
    .hero-trust-badges {
        grid-template-columns: 1fr;
    }
    
    .trust-badge {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 15px 20px;
    }
    
    .trust-badge i {
        font-size: 1.5rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 13px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 14px 30px;
        font-size: 15px;
    }
    
    /* Check List */
    .check-list li {
        font-size: 0.9375rem;
    }
    
    /* Service Card */
    .service-card {
        padding: 30px 20px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    .service-features {
        padding: 15px;
    }
    
    /* Process Steps */
    .step-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1.125rem;
    }
    
    /* Pricing */
    .pricing-box {
        padding: 30px 20px;
    }
    
    .price .amount {
        font-size: 3rem;
    }
    
    .price .currency {
        font-size: 1.25rem;
    }
    
    /* CTA Section */
    .cta-title {
        font-size: 1.625rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-main {
        padding: 30px 0 20px;
    }
    
    .footer-logo img {
        height: 40px;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-description,
    .footer-menu a,
    .zones-list,
    .contact-info {
        font-size: 13px;
    }
    
    .copyright {
        font-size: 13px;
    }
    
    .footer-legal-links a {
        font-size: 13px;
    }
    
    /* Floating Elements */
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .floating-whatsapp {
        bottom: 70px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    /* Breadcrumbs */
    .breadcrumbs {
        padding: 12px 0;
    }
    
    .breadcrumbs li {
        font-size: 13px;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .topbar,
    .main-navigation,
    .hero-section,
    .cta-section,
    .back-to-top,
    .floating-whatsapp,
    .menu-toggle,
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .site-header {
        position: static;
        box-shadow: none;
        border-bottom: 2px solid #000;
    }
    
    a {
        text-decoration: underline;
    }
    
    .btn {
        border: 2px solid #000;
        color: #000 !important;
    }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Keyboard Navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* Skip to Content Link (for accessibility) */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 15px 20px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}