/**
 * Responsive Styles
 * Mobile and tablet optimizations
 */

/* ==================== Tablet (768px and below) ==================== */
@media (max-width: 768px) {
    
    /* Typography */
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
    h4 { font-size: 18px; }

    /* Navigation */
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 30px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        gap: 0;
        align-items: flex-start;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        margin-bottom: 20px;
    }

    .nav-menu li a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
    }

    .btn-nav-cta {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    /* Hero Section */
    .hero {
        padding: 60px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-image {
        order: -1;
    }

    .image-placeholder {
        max-width: 300px;
        height: 350px;
        margin: 0 auto;
    }
    
    .image-placeholder img {
        object-fit: cover;
        border-radius: 20px;
    }

    /* Page Hero */
    .page-hero {
        padding: 60px 0;
    }

    .page-hero h1 {
        font-size: 36px;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 32px;
    }

    /* Grids */
    .problems-grid,
    .services-grid,
    .why-grid,
    .values-grid,
    .process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* About Page */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        position: static;
    }

    /* Service Detail */
    .service-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-icon-large {
        margin: 0 auto;
    }

    /* Problem Detail */
    .problem-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .problem-icon {
        margin: 0 auto;
    }

    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    /* Fees Table */
    .fees-table {
        font-size: 14px;
    }

    .fees-table th,
    .fees-table td {
        padding: 12px;
    }

    /* Legal Pages */
    .legal-wrapper {
        padding: 30px 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }

    /* Floating Buttons */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 26px;
    }

    .back-to-top {
        bottom: 85px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    /* CTA Section */
    .cta-box h2 {
        font-size: 28px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* ==================== Mobile (480px and below) ==================== */
@media (max-width: 480px) {
    
    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Typography */
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }

    /* Hero */
    .hero-text h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-trust {
        flex-direction: column;
        gap: 15px;
    }

    .image-placeholder {
        max-width: 280px;
        height: 320px;
    }

    /* Page Hero */
    .page-hero h1 {
        font-size: 28px;
    }

    .page-hero p {
        font-size: 16px;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 28px;
    }

    /* Cards */
    .problem-card,
    .service-card,
    .why-card,
    .value-card {
        padding: 25px;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn-lg {
        padding: 12px 25px;
        font-size: 15px;
    }

    /* Service Meta */
    .service-meta {
        flex-direction: column;
        gap: 10px;
    }

    /* Fees Table - Stack on mobile */
    .fees-table thead {
        display: none;
    }

    .fees-table,
    .fees-table tbody,
    .fees-table tr,
    .fees-table td {
        display: block;
        width: 100%;
    }

    .fees-table tr {
        margin-bottom: 20px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow: hidden;
    }

    .fees-table td {
        text-align: right;
        padding: 12px 15px;
        position: relative;
        padding-left: 50%;
    }

    .fees-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: 600;
        color: var(--dark-color);
    }

    /* Payment Info Grid */
    .info-grid {
        grid-template-columns: 1fr;
    }

    /* Flash Notification */
    .flash-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }

    /* Loading Overlay */
    .loading-content {
        padding: 30px 20px;
        margin: 0 20px;
    }

    /* Legal Content */
    .legal-wrapper {
        padding: 25px 15px;
    }

    .legal-wrapper h2 {
        font-size: 24px;
    }

    .legal-wrapper h3 {
        font-size: 20px;
    }

    /* Contact Items */
    .contact-item {
        flex-direction: column;
        gap: 10px;
    }

    /* Map */
    .map-wrapper iframe {
        height: 300px;
    }
}

/* ==================== Small Devices (360px and below) ==================== */
@media (max-width: 360px) {
    
    .hero-text h1 {
        font-size: 24px;
    }

    .page-hero h1 {
        font-size: 24px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .logo {
        font-size: 20px;
    }

    .logo i {
        font-size: 26px;
    }

    .image-placeholder {
        max-width: 250px;
        height: 300px;
    }
}

/* ==================== Landscape Mobile ==================== */
@media (max-height: 500px) and (orientation: landscape) {
    
    .hero {
        padding: 40px 0;
    }

    .page-hero {
        padding: 40px 0;
    }

    section {
        padding: 40px 0;
    }

    .nav-menu {
        height: 100vh;
        top: 0;
        padding-top: 80px;
    }
}
