/* ===================================
   RESPONSIVE DESIGN
   Mobile-First Approach
   =================================== */

/* Tablet Landscape and Below (1199px) */
@media screen and (max-width: 1199px) {
    :root {
        --container-padding: 1.5rem;
        --spacing-xxl: 4rem;
    }

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

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

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

/* Tablet Portrait (992px) */
@media screen and (max-width: 992px) {
    :root {
        --spacing-xxl: 3rem;
        --spacing-xl: 3rem;
    }

    /* Typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

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

    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }

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

    /* Fit Section */
    .fit-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Pricing Section */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .pricing-card {
        max-width: 500px;
        margin: 0 auto;
    }

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

    .about-photo img {
        max-height: 480px;
        width: 100%;
        object-fit: cover;
        object-position: top center;
    }

    .about-text h2 {
        text-align: center;
    }

    .about-text p {
        text-align: center;
    }

    .about-cta {
        text-align: center;
    }
}

/* Mobile Landscape (768px) */
@media screen and (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
        --spacing-xxl: 2.5rem;
    }

    /* Navigation */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-speed) var(--transition-ease);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--color-light-gray);
        opacity: 1;
    }

    .nav-link {
        display: block;
        padding: 1.25rem 2rem;
        font-size: 1rem;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Hero Section */
    .hero-section {
        padding: 4rem var(--container-padding) 3rem;
        min-height: auto;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }

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

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

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

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

    /* Fit Section */
    .fit-card {
        padding: var(--spacing-md);
    }

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

    .fit-list li {
        font-size: 0.95rem;
        padding: 0.5rem 0;
    }

    /* How It Works Section */
    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .work-icon {
        width: 100px;
        height: 100px;
    }

    .work-icon img {
        max-width: 60px;
        max-height: 60px;
    }

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

    .work-description {
        font-size: 0.95rem;
    }

    /* Pricing Section */
    .pricing-intro {
        font-size: 1.05rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pricing-card {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .pricing-header {
        padding: 1rem;
    }

    .pricing-features {
        padding: 0.75rem 1rem;
    }

    .pricing-name {
        font-size: 1.5rem;
    }

    .price {
        font-size: 2.5rem;
    }

    .pricing-features li {
        font-size: 0.95rem;
    }

    .pricing-addon {
        padding: var(--spacing-md);
    }

    .pricing-addon h4 {
        font-size: 1.25rem;
    }

    .pricing-addon p {
        font-size: 1rem;
    }

    .pricing-addon ul,
    .pricing-included ul {
        padding-left: 1.5rem;
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .pricing-included {
        padding: var(--spacing-md);
    }

    .pricing-included h4 {
        font-size: 1.125rem;
    }

    .pricing-included li,
    .pricing-addon li {
        font-size: 0.95rem;
    }

    /* Testimonials Section */
    .brand-logos {
        gap: var(--spacing-md);
    }

    .logo-placeholder {
        width: 120px;
        height: 60px;
        font-size: 0.75rem;
    }

    .testimonials-carousel {
        padding: 0 40px 2.5rem;
    }

    .swiper-pagination {
        display: flex;
        justify-content: center;
    }

    .testimonial-card {
        padding: var(--spacing-md);
        min-height: 280px;
    }

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

    /* About Section */
    .about-text p {
        font-size: 1rem;
    }

    .photo-placeholder {
        aspect-ratio: 4/3;
    }

    /* Buttons */
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
}

/* Mobile Portrait (576px) */
@media screen and (max-width: 576px) {
    :root {
        --container-padding: 1rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2rem;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-md);
    }

    /* Navigation */
    .nav-logo {
        font-size: 1.25rem;
    }

    /* Hero Section */
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

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

    .hero-tagline {
        font-size: 0.95rem;
    }

    /* Fit Section */
    .fit-card {
        padding: var(--spacing-md);
    }

    .fit-title {
        font-size: 1.35rem;
    }

    .fit-list li {
        font-size: 0.9rem;
        gap: 0.75rem;
    }

    .check-icon,
    .x-icon {
        font-size: 1.25rem;
    }

    /* How It Works Section */
    .work-icon {
        width: 90px;
        height: 90px;
        margin-bottom: var(--spacing-sm);
    }

    .work-icon img {
        max-width: 50px;
        max-height: 50px;
    }

    .work-title {
        font-size: 1.125rem;
    }

    .work-description {
        font-size: 0.9rem;
    }

    /* Pricing Section */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        max-width: none;
        width: 100%;
        margin: 0;
    }

    .pricing-header {
        padding: 1.25rem var(--spacing-md);
    }

    .pricing-features {
        padding: 0.875rem var(--spacing-md);
    }

    .pricing-intro {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-lg);
    }

    .pricing-name {
        font-size: 1.1rem;
        min-height: auto;
    }

    .price {
        font-size: 1.75rem;
    }

    .period {
        font-size: 0.9rem;
    }

    .pricing-header {
        padding: 0.75rem 0.5rem;
    }

    .pricing-features {
        padding: 0.5rem 0.75rem;
    }

    .pricing-features li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }

    .pricing-addon h4 {
        font-size: 1.125rem;
    }

    .pricing-addon p {
        font-size: 0.95rem;
    }

    .pricing-addon ul,
    .pricing-included ul {
        padding-left: 1.25rem;
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .pricing-included h4 {
        font-size: 1rem;
    }

    .pricing-included li,
    .pricing-addon li {
        font-size: 0.875rem;
        padding: 0.4rem 0;
        padding-left: 1.25rem;
    }

    .popular-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        top: -12px;
    }

    /* Testimonials Section */
    .brand-logos {
        gap: var(--spacing-sm);
    }

    .logo-placeholder {
        width: 100px;
        height: 50px;
        font-size: 0.7rem;
        padding: 0.5rem;
    }

    .testimonials-carousel {
        padding: 0 30px 2.5rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 38px;
        height: 38px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 15px;
    }

    .testimonial-card {
        padding: var(--spacing-md);
        min-height: 250px;
    }

    .testimonial-stars {
        font-size: 1.25rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .author-name {
        font-size: 1rem;
    }

    .author-title {
        font-size: 0.9rem;
    }

    /* About Section */
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.75rem;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-md) var(--container-padding);
        font-size: 0.9rem;
        text-align: center;
    }

    .footer p,
    .footer a {
        text-align: center;
    }
}

/* Extra Small Mobile (400px) */
@media screen and (max-width: 400px) {
    .hero-section {
        padding: 2.5rem var(--container-padding) 2rem;
    }

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

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

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

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

    .logo-placeholder {
        width: 150px;
        height: 60px;
    }

    .work-icon {
        width: 80px;
        height: 80px;
    }

    .work-icon img {
        max-width: 45px;
        max-height: 45px;
    }

    .testimonials-carousel {
        padding: 0 15px 2.5rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 32px;
        height: 32px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 13px;
    }
}

/* Landscape Orientation Adjustments */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: var(--spacing-lg) var(--container-padding);
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }

    .hero-subtitle,
    .hero-tagline {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-sm);
    }

    .hero-buttons {
        margin-top: var(--spacing-sm);
    }
}

/* Print Styles */
@media print {
    .nav-container,
    .menu-toggle,
    .hero-buttons,
    .btn,
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination {
        display: none !important;
    }

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

    section {
        page-break-inside: avoid;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* High DPI / Retina Displays */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced Motion Preference */
@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;
    }
}
