/* Responsive Styles */

/* Tablet and below (max-width: 1024px) */
@media (max-width: 1024px) {
    /* Typography adjustments */
    h1 {
        font-size: var(--font-size-4xl);
    }

    h2 {
        font-size: var(--font-size-3xl);
    }

    /* Hero Section */
    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }

    /* Grid adjustments */
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* About Preview */
    .about-preview-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .about-preview-image img {
        height: 400px;
    }

    /* Footer */
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Mobile and below (max-width: 768px) */
@media (max-width: 768px) {
    /* Container padding */
    :root {
        --container-padding: 1rem;
    }

    /* Typography */
    h1 {
        font-size: var(--font-size-3xl);
    }

    h2 {
        font-size: var(--font-size-2xl);
    }

    h3 {
        font-size: var(--font-size-xl);
    }

    /* Header */
    .logo {
        min-width: 140px;
        padding: 0.5rem 1rem;
    }

    .logo-text {
        font-size: 0.8rem;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        align-self: center;
    }

    .mobile-menu-overlay {
        display: block;
    }

    /* Hero Section */
    .hero {
        height: 85vh;
        min-height: 550px;
    }

    .hero-content {
        padding-top: 80px;
    }

    .hero-title {
        font-size: 2.25rem;
        margin-bottom: var(--space-3);
    }

    .hero-subtitle {
        font-size: 1.0625rem;
        margin-bottom: var(--space-4);
    }

    .hero-stats {
        font-size: var(--font-size-sm);
        gap: 1.5rem;
        padding: 1rem 1.5rem;
        margin-bottom: var(--space-6);
    }

    .hero-stat-item {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
        padding: 0.875rem 2rem;
    }

    .carousel-btn {
        width: 48px;
        height: 48px;
        font-size: var(--font-size-2xl);
    }

    .carousel-prev {
        left: 1.25rem;
    }

    .carousel-next {
        right: 1.25rem;
    }

    .carousel-indicators {
        bottom: 2rem;
    }

    .scroll-indicator {
        bottom: 4.5rem;
        font-size: 0.75rem;
    }

    .scroll-indicator span {
        font-size: 0.75rem;
    }

    .scroll-arrow {
        font-size: 1.25rem;
    }

    /* Sections */
    section {
        padding: var(--space-6) 0;
    }

    section.section-lg {
        padding: var(--space-8) 0;
    }

    .section-heading h2 {
        font-size: var(--font-size-2xl);
    }

    .section-heading p {
        font-size: var(--font-size-base);
    }

    /* Grid layouts */
    .grid-cols-4,
    .grid-cols-3,
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    /* Service Cards */
    .service-card {
        padding: var(--space-3);
    }

    /* About Preview */
    .about-preview-image img {
        height: 300px;
    }

    /* Achievements */
    .stat-number {
        font-size: var(--font-size-4xl);
    }

    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer {
        padding: var(--space-6) 0 var(--space-3);
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        margin-bottom: var(--space-4);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }

    .footer-legal {
        justify-content: center;
    }

    /* Buttons */
    .btn {
        min-width: 120px;
        padding: var(--space-2) var(--space-3);
    }

    .btn-lg {
        min-width: 160px;
        padding: var(--space-2) var(--space-4);
    }

    /* CTA Section */
    .cta-content h2 {
        font-size: var(--font-size-2xl);
    }

    .cta-content .lead {
        font-size: var(--font-size-base);
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

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

    /* Page Hero */
    .page-hero {
        padding: var(--space-8) 0 var(--space-6);
        margin-top: 70px;
    }

    .page-hero h1 {
        font-size: var(--font-size-3xl);
    }

    .page-hero .lead {
        font-size: var(--font-size-base);
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    /* Filter Buttons */
    .filter-buttons {
        gap: var(--space-1);
    }

    .filter-btn {
        padding: var(--space-1) var(--space-2);
        font-size: var(--font-size-sm);
    }

    /* Lightbox */
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }

    .lightbox-content img {
        max-height: 60vh;
    }

    .lightbox-caption {
        padding: var(--space-2);
        margin-top: var(--space-2);
    }

    .lightbox-caption h3 {
        font-size: var(--font-size-xl);
    }

    .lightbox-caption p {
        font-size: var(--font-size-sm);
    }

    .lightbox-close {
        top: var(--space-2);
        right: var(--space-2);
        width: 40px;
        height: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-2xl);
    }

    .lightbox-prev {
        left: var(--space-2);
    }

    .lightbox-next {
        right: var(--space-2);
    }

    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: var(--space-3);
        right: var(--space-3);
    }
}

/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero {
        min-height: 500px;
    }

    .hero-content {
        padding-top: 70px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

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

    .hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: var(--space-4);
    }

    .hero-stats {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        margin-bottom: var(--space-4);
    }

    .hero-stat-item {
        font-size: 0.9375rem;
    }

    .hero-stat-divider {
        display: none;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .carousel-prev {
        left: 0.75rem;
    }

    .carousel-next {
        right: 0.75rem;
    }

    .carousel-indicators {
        bottom: 1.5rem;
        padding: 0.5rem 1rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .scroll-indicator {
        display: none;
    }

    .section-heading h2 {
        font-size: var(--font-size-xl);
    }

    .cta-content h2 {
        font-size: var(--font-size-xl);
    }

    .logo {
        min-width: 120px;
        padding: 0.5rem 0.75rem;
    }

    .logo-text {
        font-size: 0.7rem;
    }

    /* Forms */
    .form-input,
    .form-textarea,
    .form-select {
        font-size: var(--font-size-base);
    }

    .btn {
        font-size: var(--font-size-sm);
    }
}

/* Animation classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    opacity: 0;
}

.animate-fade.animate-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Ensure touch targets are at least 44px on mobile */
@media (max-width: 768px) {
    button,
    a.btn,
    .filter-btn,
    .nav-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .back-to-top,
    .hero-cta,
    .cta-section,
    .filter-buttons,
    .mobile-menu-toggle,
    .carousel-btn,
    .carousel-indicators {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero {
        height: auto;
        min-height: 0;
    }
}
