/*
* VoiceAI - Responsive Styles
* Mobile-first responsive design stylesheet
*/

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 576px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Layout */
    section {
        padding: var(--space-2xl) 0;
    }
    
    /* Header */
    #header .container {
        padding: 0 var(--space-md);
    }
    
    .nav-links {
        display: none;
    }
    
    .header-buttons {
        display: none;
    }
    
    #mobile-menu-toggle {
        display: block;
    }
    
    /* Mobile menu active state */
    #header.menu-active {
        background-color: white;
        height: 100vh;
        overflow-y: auto;
    }
    
    #header.menu-active .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #header.menu-active .logo-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 1rem 0;
    }
    
    #header.menu-active #main-nav {
        width: 100%;
        margin-top: var(--space-xl);
    }
    
    #header.menu-active .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    #header.menu-active .nav-links li {
        width: 100%;
    }
    
    #header.menu-active .nav-link {
        display: block;
        padding: var(--space-md) 0;
        font-size: 1.25rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    #header.menu-active .header-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: var(--space-xl);
        gap: var(--space-md);
    }
    
    #header.menu-active #mobile-menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    #header.menu-active #mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    #header.menu-active #mobile-menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Hero Section */
    #hero {
        padding-top: 6rem;
        text-align: center;
    }
    
    #hero .container {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .hero-stat {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    /* Brands Section */
    .brand-logos {
        justify-content: center;
    }
    
    /* Features Section */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* How It Works Section */
    .step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    /* Demo Section */
    .demo-container {
        flex-direction: column;
    }
    
    .demo-features {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
    
    /* Use Cases Section */
    .tab-navigation {
        flex-wrap: wrap;
    }
    
    .tab-pane-content {
        flex-direction: column-reverse;
    }
    
    .tab-image {
        margin-bottom: var(--space-xl);
    }
    
    /* Testimonials Section */
    .testimonial-container {
        height: 350px;
    }
    
    /* Pricing Section */
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
    
    /* Contact Section */
    .contact-container {
        flex-direction: column;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .form-submit {
        grid-column: span 1;
    }
    
    /* Footer */
    .footer-top {
        flex-direction: column;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        gap: var(--space-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 577px) and (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Layout */
    section {
        padding: var(--space-2xl) 0;
    }
    
    /* Header */
    .nav-links {
        display: none;
    }
    
    .header-buttons .btn-outline {
        display: none;
    }
    
    #mobile-menu-toggle {
        display: block;
    }
    
    /* Mobile menu active state - reuse the same as small devices */
    #header.menu-active {
        background-color: white;
        height: 100vh;
        overflow-y: auto;
    }
    
    #header.menu-active .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #header.menu-active .logo-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 1rem 0;
    }
    
    #header.menu-active #main-nav {
        width: 100%;
        margin-top: var(--space-xl);
    }
    
    #header.menu-active .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    #header.menu-active .nav-links li {
        width: 100%;
    }
    
    #header.menu-active .nav-link {
        display: block;
        padding: var(--space-md) 0;
        font-size: 1.25rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    #header.menu-active .header-buttons {
        display: flex;
        width: 100%;
        margin-top: var(--space-xl);
        gap: var(--space-md);
    }
    
    #header.menu-active #mobile-menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    #header.menu-active #mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    #header.menu-active #mobile-menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Hero Section */
    #hero .container {
        flex-direction: column;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stat {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 80%;
        margin: 0 auto;
    }
    
    /* Features Section */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Demo Section */
    .demo-container {
        flex-direction: column;
    }
    
    /* Use Cases Section */
    .tab-navigation {
        flex-wrap: wrap;
    }
    
    .tab-pane-content {
        flex-direction: column-reverse;
    }
    
    .tab-image {
        margin-bottom: var(--space-xl);
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Pricing Section */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card:last-child {
        grid-column: span 2;
        max-width: 80%;
        margin: 0 auto;
    }
    
    /* Contact Section */
    .contact-container {
        flex-direction: column;
    }
    
    /* Footer */
    .footer-nav {
        gap: var(--space-lg);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 769px) and (max-width: 992px) {
    /* Header */
    .nav-links {
        gap: var(--space-sm);
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 3rem;
    }
    
    /* Features Section */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Demo Section */
    .demo-container {
        flex-direction: column;
    }
    
    .demo-features {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
        margin-top: var(--space-xl);
    }
    
    /* Contact Section */
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .form-submit {
        grid-column: span 1;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 993px) and (max-width: 1200px) {
    /* Features Section */
    .features-grid {
        gap: var(--space-lg);
    }
    
    /* Footer */
    .footer-nav {
        gap: var(--space-xl);
    }
}

/* For all mobile devices */
@media (max-width: 768px) {
    /* Make sure the horizontal tabs display properly on small screens */
    .tab-navigation {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tab-btn {
        margin-bottom: var(--space-xs);
    }
    
    /* Adjust demo features for mobile */
    .demo-features {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    /* Testimonials need more height on mobile */
    .testimonial-container {
        height: auto;
        min-height: 300px;
    }
    
    .testimonial-card {
        position: relative;
        height: auto;
    }
    
    /* FAQ items need adjustment on mobile */
    .faq-question h3 {
        font-size: 1rem;
    }
}
