/* Tablet and Mobile Styles */

/* Large Tablet (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .challenges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .pricing-table {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pricing-card {
        flex: 1 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
    
    .pricing-card:nth-child(2) {
        transform: scale(1);
        border: 1px solid var(--border-light);
    }
    
    .pricing-card:nth-child(2):hover {
        transform: translateY(-4px);
        border: 2px solid var(--primary-blue);
    }
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
    /* Mobile Navigation */
    nav {
        grid-template-columns: auto 1fr auto;
        padding: 1rem 1.5rem;
        min-height: 80px;
    }

    .company-name {
        font-size: 1.75rem;
        white-space: normal;
        text-align: center;
        grid-column: 2;
    }

    .mobile-menu-toggle {
        display: flex;
        grid-column: 3;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background-color: var(--bg-primary);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 2rem 0;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        justify-self: stretch;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    nav ul li a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        font-size: 16px;
        border-radius: 0;
    }

    nav ul li a:hover {
        background-color: rgba(0, 123, 255, 0.1);
    }
    
    .challenges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Timeline - Vertical Single Column */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        grid-template-columns: auto 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 2;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        grid-column: 1;
    }
    
    .timeline-marker {
        width: 16px;
        height: 16px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Footer - Stack Vertically on Tablet */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
    }
    
    .footer-section {
        max-width: 400px;
    }
    
    .pricing-table {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card {
        max-width: 100%;
    }
    
    .pricing-card:nth-child(2) {
        transform: scale(1);
    }
    
    .pricing-card:nth-child(2):hover {
        transform: translateY(-4px);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .challenges h2 {
        font-size: 2.5rem;
    }
    
    .about-hero {
        min-height: 35vh;
        padding: 3rem 1.5rem;
    }
    
    .about-hero h1 {
        font-size: 2.5rem;
    }
    
    .about-hero p {
        font-size: 1.125rem;
    }
    
    .about h1 {
        font-size: 2.5rem;
    }
    
    .about-intro,
    .about-mission,
    .about-commitment {
        padding: 2rem;
    }
    
    .contact h1 {
        font-size: 2.5rem;
    }
    
    .contact-info,
    .contact-form-expanded {
        padding: 2rem;
    }

    /* Scheduler responsive */
    .scheduler-section h2 {
        font-size: 2.5rem;
    }

    .meetergo-container {
        padding: 1.5rem;
    }

    /* Market Research responsive */
    .market-research {
        padding: 4rem 1.5rem;
    }

    .market-research h2 {
        font-size: 2.25rem;
        margin-bottom: 0.75rem;
    }

    .market-research h2::after {
        width: 60px;
        height: 3px;
    }

    .market-research-content {
        padding: 2.5rem 2rem;
        margin: 2rem auto 0;
    }

    .market-research-content::before {
        font-size: 4rem;
        top: 0.75rem;
        left: 1rem;
    }

    .market-research-content p {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    /* Pricing responsive */
    .pricing h2 {
        font-size: 2.5rem;
    }

    .pricing-intro {
        font-size: 1rem;
    }

    .addon-services h3 {
        font-size: 1.75rem;
    }

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

    .addon-card {
        width: 100%;
        max-width: 500px;
    }

    /* Pricing details responsive */
    .pricing-details ul li {
        font-size: 13px;
    }

    .device-info {
        padding: 1rem;
    }

    .device-info ul li {
        font-size: 12px;
    }

    /* Enterprise section responsive */
    .enterprise-section {
        margin: 3rem auto 0;
        padding: 2.5rem 2rem;
    }

    .enterprise-content h3 {
        font-size: 2rem;
    }

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

    .enterprise-features {
        gap: 1.5rem;
    }

    .enterprise-col ul li {
        font-size: 0.9rem;
    }

    /* FAQ section tablet */
    .faq-section {
        padding: 3rem 1.5rem;
    }

    .faq-section h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .faq-item {
        padding: 2rem;
    }

    .faq-item h3 {
        font-size: 1.35rem;
    }

    .faq-toggle {
        width: 32px;
        height: 32px;
    }

    .faq-icon {
        font-size: 1.35rem;
    }

    .faq-answer p,
    .faq-answer ul li {
        font-size: 0.95rem;
    }
}

/* Mobile (600px and below) */
@media (max-width: 600px) {
    /* Further optimize mobile navigation */
    nav {
        padding: 0.75rem 1rem;
        min-height: 70px;
    }

    .logo img {
        max-height: 60px;
    }

    .company-name {
        font-size: 1.35rem;
    }

    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
        width: 100%;
        max-width: 320px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-table {
        flex-direction: column;
    }
    
    .pricing-card {
        min-width: 100%;
    }
    
    .hero {
        min-height: 50vh;
        padding: 3rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    /* About Hero - Mobile Specific */
    .about-hero {
        min-height: 30vh;
        padding: 2.5rem 1.5rem;
        margin: -4rem -1.5rem 3rem -1.5rem;
    }
    
    .about-hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .about-hero p {
        font-size: 1rem;
    }
    
    .challenges {
        padding: 3rem 1.5rem;
    }
    
    .challenges h2,
    .pricing h2,
    .contact-form h2,
    .about h1,
    .contact h1 {
        font-size: 2rem;
    }
    
    .about h2,
    .contact h2 {
        font-size: 1.75rem;
    }
    
    .about-history h2,
    .about-team h2 {
        font-size: 1.75rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-content h3 {
        font-size: 1.125rem;
    }
    
    /* Footer - Further Optimized for Mobile */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-section {
        max-width: 100%;
    }
    
    footer {
        padding: 2.5rem 1.5rem 1.5rem;
    }
    
    .footer-bottom {
        font-size: 13px;
    }
    
    .pricing {
        padding: 3rem 1.5rem;
    }
    
    .contact-form {
        padding: 3rem 1.5rem;
    }
    
    .contact-form form {
        padding: 1.5rem;
    }
    
    /* Form Inputs - Full Width on Mobile */
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    button[type="submit"],
    .submit-btn {
        width: 100%;
        padding: 1rem;
    }

    /* Scheduler mobile optimization */
    .scheduler-section {
        padding: 3rem 1.5rem;
    }

    .scheduler-section h2 {
        font-size: 2rem;
    }

    .scheduler-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .meetergo-container {
        padding: 1rem;
        border-radius: 8px;
    }

    .meetergo-iframe {
        min-height: 600px;
    }

    .alternative-contact {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Market Research mobile optimization */
    .market-research {
        padding: 3.5rem 1.5rem;
    }

    .market-research h2 {
        font-size: 1.85rem;
        margin-bottom: 0.5rem;
    }

    .market-research h2::after {
        width: 50px;
        height: 3px;
        bottom: -8px;
    }

    .market-research-content {
        padding: 2rem 1.5rem;
        margin: 1.75rem auto 0;
        border-width: 2px;
    }

    .market-research-content::before {
        font-size: 3.5rem;
        top: 0.5rem;
        left: 0.75rem;
    }

    .market-research-content p {
        font-size: 1rem;
        line-height: 1.75;
    }

    .market-research-content a {
        font-weight: 600;
    }

    /* Pricing mobile optimization */
    .pricing {
        padding: 3rem 1.5rem;
    }

    .pricing h2 {
        font-size: 2rem;
    }

    .pricing-intro {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .pricing-table {
        margin-bottom: 3rem;
    }

    .pricing-card {
        padding: 1.75rem;
    }

    .pricing-card .price {
        font-size: 2.25rem;
    }

    .price-period {
        font-size: 0.9rem;
    }

    .pricing-subtitle {
        font-size: 13px;
    }

    /* Pricing details mobile */
    .pricing-details {
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }

    .pricing-details p {
        font-size: 14px;
    }

    .pricing-details ul li {
        font-size: 13px;
        padding: 0.4rem 0;
    }

    .first-year-total {
        font-size: 1rem !important;
        padding: 0.75rem;
    }

    .perfect-for {
        font-size: 13px !important;
        padding: 0.6rem;
    }

    .device-info {
        padding: 1rem;
        margin-top: 1rem;
    }

    .device-info p {
        font-size: 13px;
    }

    .device-info ul li {
        font-size: 12px;
        padding: 0.5rem 0;
    }

    .contact-cta {
        font-size: 0.95rem !important;
        padding: 0.75rem;
    }

    /* New pricing elements mobile */
    .first-year-total-inline {
        font-size: 0.875rem;
        padding: 0.6rem;
    }

    .view-details-btn {
        font-size: 0.875rem;
        padding: 0.75rem 1.25rem;
    }

    /* Enterprise section mobile */
    .enterprise-section {
        margin: 2.5rem -1.5rem 0;
        padding: 2rem 1.5rem;
        border-radius: 0;
    }

    .enterprise-content h3 {
        font-size: 1.75rem;
    }

    .enterprise-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .enterprise-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .enterprise-col ul li {
        font-size: 0.875rem;
        padding: 0.5rem 0;
    }

    .enterprise-cta-btn {
        font-size: 1rem;
        padding: 1rem 2rem;
        width: 100%;
    }

    .addon-services {
        padding-top: 2.5rem;
    }

    .addon-services h3 {
        font-size: 1.5rem;
    }

    .addon-intro {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .addon-card {
        padding: 1.5rem;
    }

    .addon-price {
        font-size: 1.75rem;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .company-name {
        font-size: 1.2rem;
        line-height: 1.2;
    }

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

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

    .challenges h2,
    .pricing h2 {
        font-size: 1.75rem;
    }

    .pricing-card {
        min-width: 100%;
        padding: 1.5rem;
    }

    /* Improve touch targets */
    nav ul li a {
        padding: 1.25rem 1.5rem;
        font-size: 17px;
    }

    button,
    .btn,
    button[type="submit"] {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
        font-size: 16px;
    }

    .mobile-menu-toggle {
        width: 32px;
        height: 26px;
    }

    /* Market Research small mobile */
    .market-research {
        padding: 3rem 1rem;
    }

    .market-research h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .market-research h2::after {
        width: 40px;
        bottom: -6px;
    }

    .market-research-content {
        padding: 1.75rem 1.25rem;
        margin: 1.5rem auto 0;
        border-radius: 12px;
    }

    .market-research-content::before {
        font-size: 3rem;
        top: 0.25rem;
        left: 0.5rem;
    }

    .market-research-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .market-research-content a {
        border-bottom-width: 1.5px;
    }

    /* Pricing small mobile */
    .pricing h2 {
        font-size: 1.75rem;
    }

    .pricing-card .price {
        font-size: 2rem;
    }

    .pricing-badge {
        font-size: 12px;
        padding: 0.3rem 0.75rem;
    }

    .addon-services h3 {
        font-size: 1.35rem;
    }

    .addon-price {
        font-size: 1.5rem;
    }
}

/* Extra Small Mobile (375px and below) */
@media (max-width: 375px) {
    nav {
        padding: 0.5rem 0.75rem;
        min-height: 65px;
    }

    .logo img {
        max-height: 50px;
    }

    .company-name {
        font-size: 1.1rem;
    }

    .nav-menu {
        top: 65px;
        height: calc(100vh - 65px);
    }

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

    .about-hero h1 {
        font-size: 1.65rem;
    }

    .challenges h2,
    .pricing h2,
    .contact h1 {
        font-size: 1.5rem;
    }

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

    .price {
        font-size: 1.75rem;
    }

    /* FAQ section mobile */
    .faq-section {
        padding: 2.5rem 1rem;
    }

    .faq-section h2 {
        font-size: 1.65rem;
        margin-bottom: 2rem;
    }

    .faq-container {
        gap: 1.5rem;
    }

    .faq-item {
        padding: 1.5rem;
    }

    .faq-item h3 {
        font-size: 1.15rem;
    }

    .faq-toggle {
        width: 30px;
        height: 30px;
    }

    .faq-icon {
        font-size: 1.25rem;
    }

    .faq-answer {
        margin-top: 1rem;
    }

    .faq-answer p,
    .faq-answer ul li {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .faq-answer ul {
        margin: 1rem 0;
    }

    .faq-answer ul li {
        padding: 0.6rem 0;
        padding-left: 1.25rem;
    }
}
