/* ============================================
   AB ISOLATION - Responsive Stylesheet
   Mobile-First Approach
   ============================================ */

/* ============================================
   Tablet (min-width: 768px)
   ============================================ */
@media (max-width: 1024px) {
    /* Header */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: #183440;
        flex-direction: column;
        justify-content: flex-start;
        padding: 30px;
        transition: right var(--transition-normal);
        box-shadow: var(--shadow-lg);
        z-index: 1001;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-logo {
        display: block;
    }
    
    .nav-logo img {
        height: 50px;
        width: auto;
    }
    
    .nav-close {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--white);
    }
    
    .nav-close svg {
        width: 28px;
        height: 28px;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: transparent;
        box-shadow: none;
        padding-left: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-normal);
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 300px;
    }
    
    .dropdown-menu li a {
        color: rgba(255,255,255,0.7);
        padding: 10px 0;
    }
    
    .dropdown-menu li a:hover {
        background-color: transparent;
        color: var(--primary-light);
    }
    
    .hamburger {
        display: flex;
    }
    
    .header-cta {
        display: none;
    }
    
    /* Trust Section */
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image,
    .about-video {
        order: -1;
    }
    
    .about-image img,
    .about-video video {
        height: 350px;
    }
    
    /* Aides Section */
    .aides-images {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .aides-images img {
        height: 200px;
    }
    
    /* Services Section */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Why Section */
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Process Section - Tablet */
    .process-step {
        grid-template-columns: auto 1fr;
        gap: 20px;
    }
    
    .step-spacer {
        display: none;
    }
    
    .process-step:nth-child(odd) .step-card,
    .process-step:nth-child(even) .step-card {
        text-align: left;
        order: 2;
    }
    
    .step-center {
        order: 1;
    }
    
    .step-line {
        height: 80px;
    }
    
    /* Gallery Section */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    /* Aides Section */
    .aides-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .aides-image {
        order: -1;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-about {
        grid-column: span 2;
    }
}

/* ============================================
   Mobile (max-width: 767px)
   ============================================ */
@media (max-width: 767px) {
    /* General */
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    
    /* Header */
    .header {
        padding: 12px 0;
    }
    
    .logo-img {
        height: 55px;
    }
    
    .nav {
        width: 100%;
    }
    
    /* Hero */
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* Trust Section */
    .trust-section {
        padding: 40px 0;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .trust-item {
        padding: 20px 15px;
    }
    
    .trust-icon {
        width: 45px;
        height: 45px;
    }
    
    .trust-number {
        font-size: 1.5rem;
    }
    
    .trust-label {
        font-size: 0.8rem;
    }
    
    /* About Section */
    .about-image img,
    .about-video video {
        height: 280px;
    }
    
    .about-list li {
        font-size: 0.9rem;
    }
    
    /* Aides Section */
    .aides-images {
        grid-template-columns: 1fr;
    }
    
    .aides-images img {
        height: 180px;
    }
    
    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 25px;
    }
    
    /* Why Section */
    .why-section {
        padding: 60px 0;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .why-card {
        padding: 30px 20px;
    }
    
    /* Process Section - Mobile */
    .process-step {
        grid-template-columns: auto 1fr;
        gap: 15px;
    }
    
    .step-card {
        padding: 20px;
    }
    
    .step-icon-circle {
        width: 40px;
        height: 40px;
    }
    
    .step-icon-circle svg {
        width: 18px;
        height: 18px;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-line {
        height: 60px;
    }
    
    .step-title {
        font-size: 1rem;
    }
    
    .step-description {
        font-size: 0.9rem;
    }
    
    /* Gallery Section */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 150px;
        gap: 10px;
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .gallery-overlay {
        padding: 10px;
    }
    
    .gallery-overlay span {
        font-size: 0.85rem;
    }
    
    /* Aides Section */
    .aides-image img {
        height: 250px;
    }
    
    /* Testimonials Section */
    .testimonial-item {
        padding: 0 20px;
    }
    
    .testimonial-quote {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .testimonial-quote::before,
    .testimonial-quote::after {
        font-size: 2rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 80px 0;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Footer */
    .footer {
        padding: 60px 0 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-about {
        grid-column: span 1;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-col h4 {
        margin-bottom: 15px;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    /* WhatsApp Float */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* ============================================
   Small Mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.2rem; }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .trust-item {
        padding: 15px 10px;
    }
    
    .trust-number {
        font-size: 1.2rem;
    }
    
    .trust-label {
        font-size: 0.7rem;
    }
}

/* ============================================
   Large Desktop (min-width: 1280px)
   ============================================ */
@media (min-width: 1280px) {
    .container {
        max-width: 1300px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
}

/* ============================================
   Prefers Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .header,
    .whatsapp-float,
    .scroll-indicator,
    .gallery-btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
    
    section {
        page-break-inside: avoid;
    }
}
