/* ===========================
   Responsive Design
   =========================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

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

    .service-detail-content {
        grid-template-columns: 1fr;
    }

    .service-detail-cta {
        position: static;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 4rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    /* Navigation */
    .nav-wrapper {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: var(--spacing-md);
    }

    .mobile-menu-toggle {
        display: flex;
        order: 1;
    }

    .logo {
        order: 2;
        justify-self: center;
    }

    .logo-img {
        height: 40px;
    }

    .nav-right {
        order: 3;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-md);
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-sm);
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        width: 100%;
        text-align: left;
    }

    .language-switcher {
        padding-left: var(--spacing-md);
        border-left: 1px solid rgba(255, 255, 255, 0.3);
        padding-top: 0;
        border-top: none;
        width: auto;
        justify-content: flex-end;
    }

    /* Hero */
    .hero {
        padding: var(--spacing-2xl) 0;
    }

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

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* CTA Section */
    .cta-title {
        font-size: 1.75rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-sm);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Hide Quick Links section on mobile to reduce footer height */
    .footer-column:nth-child(2) {
        display: none;
    }

    .footer-heading {
        font-size: 1rem;
        margin-bottom: var(--spacing-xs);
    }

    .footer-text,
    .footer-legal,
    .footer-contact li {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .footer-text {
        margin-bottom: var(--spacing-xs);
    }

    .footer-bottom {
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-sm);
        font-size: 0.8125rem;
    }

    /* Page Header */
    .page-header {
        padding: var(--spacing-xl) 0;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1.125rem;
    }

    /* Service Detail */
    .service-detail {
        padding: var(--spacing-2xl) 0;
    }

    .service-detail-hero {
        height: 250px;
        margin-bottom: var(--spacing-lg);
    }

    .service-detail-title {
        font-size: 1.75rem;
    }

    .service-detail-subtitle {
        font-size: 1.25rem;
    }

    .cta-card h3 {
        font-size: 1.25rem;
    }

    /* About Page */
    .about-intro {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .about-image {
        height: 300px;
    }

    .section-title-left {
        font-size: 2rem;
        text-align: center;
    }

    /* Values Grid */
    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Differentiators Grid */
    .differentiators-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    /* Company Details */
    .company-details-content {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-heading {
        font-size: 1.75rem;
    }

    .contact-description {
        font-size: 1rem;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
    }

    .map-container {
        height: 300px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 1.75rem;
        --spacing-2xl: 2.5rem;
        --spacing-3xl: 3rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

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

    .service-title {
        font-size: 1.25rem;
    }

    .service-icon {
        width: 56px;
        height: 56px;
    }

    .service-icon svg {
        width: 30px;
        height: 30px;
    }

    .differentiator-icon {
        width: 64px;
        height: 64px;
    }

    .differentiator-icon svg {
        width: 32px;
        height: 32px;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .service-detail-title {
        font-size: 1.5rem;
    }

    .contact-heading {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-menu-toggle,
    .hero-buttons,
    .cta-section,
    .service-link,
    .btn {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    .hero,
    .page-header {
        background: none;
        color: #000;
        padding: 1rem 0;
    }

    .section-title,
    .hero-title,
    .page-title {
        color: #000;
        page-break-after: avoid;
    }

    .service-card,
    .value-card,
    .detail-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
