/* === RESPONSIVE DESIGN - MOBILE FIRST === */

/* Mobile Breakpoints */
@media (max-width: 768px) {

    /* Typography Adjustments */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

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

    /* Header Mobile */
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px var(--space-md) var(--space-md);
        transition: var(--transition-smooth);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav__menu.show {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        width: 100%;
        gap: var(--space-sm);
        margin-bottom: var(--space-xl);
    }

    .nav__link {
        padding: var(--space-md);
        width: 100%;
        text-align: center;
        border: 1px solid var(--sea-foam);
        border-radius: var(--border-radius);
    }

    .nav__contact {
        flex-direction: column;
        text-align: center;
        padding: var(--space-md);
        border-radius: var(--border-radius-lg);
        width: 100%;
    }

    .nav__avatar {
        width: 60px;
        height: 60px;
    }

    .nav__cta-button {
        width: 100%;
        justify-content: center;
        margin-top: var(--space-sm);
    }

    .nav__toggle {
        display: block;
    }

    /* Hero Mobile */
    .hero {
        padding-top: 60px;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
        min-height: auto;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero__stats {
        justify-content: center;
        gap: var(--space-md);
    }

    .hero__image {
        order: -1;
    }

    .hero__img {
        height: 400px;
    }

    /* Services Mobile */
    .services__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .service__card {
        margin: 0 auto;
        max-width: 400px;
    }

    /* About Mobile */
    .about__content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .about__image {
        order: -1;
    }

    .about__img {
        height: 400px;
    }

    .about__cta {
        flex-direction: column;
        align-items: center;
    }

    .highlight__item {
        text-align: left;
    }

    /* Testimonials Mobile */
    .testimonials__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .testimonial__card--featured {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
    }

    .testimonial__img {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    /* Contact Mobile */
    .contact__content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .form__row {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    /* Footer Mobile */
    .footer__content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* Tablet Breakpoints */
@media (min-width: 769px) and (max-width: 1024px) {

    .hero__content {
        gap: var(--space-lg);
    }

    .hero__title {
        font-size: 3rem;
    }

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

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

    .testimonial__card--featured {
        grid-column: span 2;
    }
}

/* Large Desktop Optimizations */
@media (min-width: 1400px) {

    .container {
        max-width: 1400px;
    }

    .hero__title {
        font-size: 4rem;
    }

    .services__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xxl);
    }
}

/* Animation Classes for AOS */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--ocean-teal);
    outline-offset: 2px;
}

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

/* Print Styles */
@media print {
    .header,
    .nav__toggle,
    .footer {
        display: none;
    }

    .hero {
        padding-top: 0;
    }

    a {
        color: var(--navy-blue);
        text-decoration: underline;
    }

    .hero,
    .testimonials {
        background: white;
        color: var(--navy-blue);
    }
}