/* Responsive Styles for urbanPOS Website */

/* Tablet Styles */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    /* Hero Section */
    .hero {
        padding: 120px 0 80px;
        min-height: 90vh;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
    }

    .hero-content {
        text-align: left;
    }

    .hero-content p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content h2 {
        font-size: 4rem;
        margin-bottom: 1.5rem;
    }

    .hero-content p {
        font-size: 1.25rem;
        max-width: 100%;
    }

    .hero-image img {
        max-width: 95%;
        transform: perspective(1000px) rotateX(3deg) rotateY(-3deg);
    }

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

    .pos-mockup {
        transform: none;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 2.5rem;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem;
        margin-top: 3rem;
    }

    /* Testimonials Grid */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-top: 3rem;
    }

    /* Contact Grid */
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-top: 3rem;
    }

    /* Pricing Grid */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }

    /* Demo Content */
    .demo-content {
        grid-template-columns: 1fr;
    }

    .menu-items {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    /* Contact Content */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

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

    .hero-content h1,
    .hero-content h2 {
        font-size: 3rem;
    }

    .header {
        top: 0px;
    }

    /* Navigation */
    .navbar {
        padding: 1rem 0;
    }

    .navbar-menu {
        position: fixed;
        top: 74px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 74px);
        background-color: var(--background-dark);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-nav {
        flex-direction: column;
        padding: 2rem;
        gap: 0;
    }

    .navbar-nav li {
        margin-bottom: 0rem;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.125rem;
        color: var(--text-light) !important;
        border-bottom: 1px solid var(--border-dark);
    }

    .nav-link:hover {
        color: var(--text-secondary) !important;
    }

    .navbar .container {
        justify-content: space-between;
    }

    .navbar-toggle {
        display: block;
        color: var(--text-light);
    }

    /* Hero Section */
    .hero {
        padding: 110px 0 70px;
        min-height: 80vh;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }

    .hero-content {
        text-align: left;
    }

    .hero-content h2 {
        font-size: 3rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

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

    .hero-content p {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }

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

    .btn {
        width: 100%;
    }

    .pos-mockup {
        padding: 15px;
    }

    .screen {
        width: 300px;
        /* height: 400px; */
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    /* Sections Padding */
    .products,
    .pricing,
    .demo,
    .contact {
        padding: 60px 0;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr !important;
    }

    /* Testimonials Grid */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 1.5rem;
    }

    /* Demo Interface */
    .demo-header {
        flex-direction: column;
        gap: 1rem;
        text-align: left;
    }

    .item-grid {
        grid-template-columns: 1fr;
    }

    .menu-item {
        padding: 15px;
    }

    .demo-content {
        min-height: auto;
    }

    .menu-items,
    .order-summary {
        padding: 20px;
    }

    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: left;
    }

    .social-links {
        justify-content: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 24px;
    }

    /* Hero */
    .hero-content h2 {
        font-size: 1.75rem;
    }

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

    .screen {
        width: 250px;
        /* height: 350px; */
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 1.75rem;
    }

    /* Product Cards */
    .product-card {
        padding: 1rem;
    }

    .product-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Pricing Cards */
    .pricing-card {
        padding: 1.5rem;
    }

    .amount {
        font-size: 2.5rem;
    }

    /* Demo */
    .menu-items,
    .order-summary {
        padding: 15px;
    }

    .demo-header {
        padding: 15px;
    }

    .demo-header h3 {
        font-size: 1rem;
    }

    /* Contact */
    .contact-form {
        padding: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }

    .navbar-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .products,
    .pricing,
    .demo,
    .contact {
        padding: 40px 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .pos-mockup {
        /* Ensure crisp rendering on high DPI displays */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print Styles */
@media print {

    .header,
    .hero-buttons,
    .demo,
    .navbar-toggle,
    .social-links {
        display: none !important;
    }

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

    .hero {
        background: none !important;
        color: black !important;
    }

    .section-header h2 {
        font-size: 18pt;
        color: black !important;
    }

    .product-card,
    .pricing-card {
        break-inside: avoid;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* Offer Page Responsive Styles */
@media (max-width: 992px) {
    .offer-hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
    }

    .offer-content {
        text-align: left;
    }

    .offer-title {
        font-size: 3.5rem;
    }

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

    .discount-circle {
        width: 250px;
        height: 250px;
    }

    .discount-percentage {
        font-size: 3rem;
    }

    .discount-text {
        font-size: 1.2rem;
    }

    .floating-icon {
        width: 50px;
        height: 50px;
    }

    .floating-icon i {
        font-size: 1.5rem;
    }

    .cta-content h2 {
        font-size: 2.8rem;
    }

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

@media (max-width: 768px) {
    .offer-hero .container {
        gap: 2rem;
    }

    .offer-title {
        font-size: 2.8rem;
    }

    .offer-subtitle {
        font-size: 1.1rem;
    }

    .offer-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

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

    .discount-circle {
        width: 200px;
        height: 200px;
    }

    .discount-percentage {
        font-size: 2.5rem;
    }

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

    .offer-card {
        padding: 2rem;
    }

    .card-header h3 {
        font-size: 1.5rem;
    }

    .benefit-item {
        padding: 1rem;
        flex-direction: column;
        text-align: left;
        gap: 0.75rem;
    }

    .benefit-item:hover {
        transform: translateY(-5px);
    }

    .benefit-text h4 {
        font-size: 1.1rem;
    }

    .benefit-text p {
        font-size: 0.9rem;
    }

    .comparison-header {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .comparison-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .comparison-header>div,
    .comparison-row>div {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .feature-name {
        background: rgba(255, 255, 255, 0.05);
        font-weight: 600;
    }

    .competitor-value,
    .urbanpos-value {
        text-align: center !important;
        justify-content: center !important;
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

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

@media (max-width: 480px) {
    .offer-title {
        font-size: 2.2rem;
    }

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

    .offer-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .discount-circle {
        width: 150px;
        height: 150px;
    }

    .discount-percentage {
        font-size: 2rem;
    }

    .discount-text {
        font-size: 0.9rem;
    }

    .floating-icon {
        width: 40px;
        height: 40px;
    }

    .floating-icon i {
        font-size: 1.2rem;
    }

    .offer-card {
        padding: 1.5rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-icon i {
        font-size: 1.5rem;
    }

    .card-header h3 {
        font-size: 1.3rem;
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
    }

    .benefit-icon i {
        font-size: 1.2rem;
    }

    .benefit-text h4 {
        font-size: 1rem;
    }

    .benefit-text p {
        font-size: 0.85rem;
    }

    .benefit-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {

    /* This can be expanded if dark mode is desired */
    .contact-form {
        background-color: #1e293b;
        color: var(--text-light);
    }

    .form-group input,
    .form-group textarea {
        background-color: #374151;
        color: var(--text-light);
        border-color: #4b5563;
    }
}

/* Focus States for Accessibility */
@media (min-width: 769px) {

    .btn:focus,
    .menu-item:focus,
    .form-group input:focus,
    .form-group textarea:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Hover Effects Only on Devices That Support Hover */
@media (hover: hover) and (pointer: fine) {

    .product-card:hover,
    .pricing-card:hover {
        transform: translateY(-8px);
    }

    .menu-item:hover {
        transform: translateY(-2px);
    }

    .btn:hover {
        transform: translateY(-2px);
    }
}

/* Contact Section Responsive */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* About Page Responsive */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .founders-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .mission-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .mission-text {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

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

    .mission-products {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .founder-card {
        padding: 2rem;
    }

    .avatar-circle {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }

    .mission-text {
        padding: 2rem 1rem;
    }

    .mission-text p {
        font-size: 1.1rem;
    }

    .mission-text p:first-child {
        font-size: 1.2rem;
    }

    .mission-product {
        padding: 1.5rem;
    }

    .mission-product-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* Prevent hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {

    .product-card:hover,
    .pricing-card:hover,
    .menu-item:hover,
    .btn:hover {
        transform: none;
    }
}

/* Restaurant Management Page Responsive Styles */
@media (max-width: 1200px) {
    .restaurant-hero .container {
        gap: 3rem;
    }

    .restaurant-hero h1 {
        font-size: 3rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .feature-main {
        gap: 3rem;
    }

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

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

@media (max-width: 992px) {
    .restaurant-hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
    }

    .restaurant-hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .feature-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }

    .feature-main:nth-child(even) {
        direction: ltr;
    }

    .apps-showcase {
        grid-template-columns: 1fr;
    }

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

    .benefits-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
    }

    .stats-circle {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .restaurant-hero {
        padding: 120px 0 80px;
    }

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

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

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

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

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

    .floating-icon {
        width: 50px;
        height: 50px;
    }

    .floating-icon i {
        font-size: 1.2rem;
    }

    .feature-icon-large {
        width: 80px;
        height: 80px;
    }

    .feature-icon-large i {
        font-size: 2rem;
    }

    .feature-content h3 {
        font-size: 1.5rem;
    }

    .mockup-screen {
        min-width: 250px;
        padding: 1rem;
    }

    .service-types {
        justify-content: center;
    }

    .service-card {
        min-width: 100px;
        padding: 1rem;
    }

    .app-card {
        padding: 1.5rem;
    }

    .app-icon {
        width: 70px;
        height: 70px;
    }

    .app-icon i {
        font-size: 1.8rem;
    }

    .features-grid-advanced {
        grid-template-columns: 1fr;
    }

    .advanced-feature {
        padding: 1.5rem;
    }

    .advanced-feature .feature-icon {
        width: 60px;
        height: 60px;
    }

    .advanced-feature .feature-icon i {
        font-size: 1.5rem;
    }

    .benefits-text h2 {
        font-size: 2rem;
    }

    .stats-circle {
        flex-direction: row;
        gap: 1.5rem;
    }

    .stat-circle {
        width: 120px;
        height: 120px;
    }

    .stat-circle .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .restaurant-hero h1 {
        font-size: 1.8rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-badge i {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .feature-content h3 {
        font-size: 1.3rem;
    }

    .feature-content p {
        font-size: 1rem;
    }

    .mockup-screen {
        min-width: 200px;
        padding: 0.75rem;
    }

    .order-item,
    .kitchen-item {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .service-card {
        min-width: 80px;
        padding: 0.75rem;
    }

    .service-card i {
        font-size: 1.5rem;
    }

    .service-card span {
        font-size: 0.8rem;
    }

    .app-card {
        padding: 1rem;
    }

    .app-card h3 {
        font-size: 1.3rem;
    }

    .app-card p {
        font-size: 0.9rem;
    }

    .app-features li {
        font-size: 0.8rem;
    }

    .advanced-feature {
        padding: 1rem;
    }

    .advanced-feature h3 {
        font-size: 1.1rem;
    }

    .advanced-feature p {
        font-size: 0.9rem;
    }

    .benefits-text h2 {
        font-size: 1.8rem;
    }

    .benefits-text p {
        font-size: 1rem;
    }

    .benefit-item {
        padding: 0.75rem;
    }

    .benefit-item h4 {
        font-size: 1rem;
    }

    .benefit-item p {
        font-size: 0.8rem;
    }

    .stat-circle {
        width: 100px;
        height: 100px;
    }

    .stat-circle .stat-number {
        font-size: 1.3rem;
    }

    .stat-circle .stat-label {
        font-size: 0.8rem;
    }
}

/* Hotel Management Page Responsive Styles */
@media (max-width: 1200px) {
    .hotel-hero .container {
        gap: 3rem;
    }

    .hotel-hero h1 {
        font-size: 3rem;
    }

    .hotel-hero .hero-stats {
        gap: 2rem;
    }

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

@media (max-width: 992px) {
    .hotel-hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
    }

    .hotel-hero h1 {
        font-size: 2.5rem;
    }

    .hotel-hero .hero-stats {
        justify-content: center;
        gap: 2rem;
    }

    .hotel-hero .hero-buttons {
        justify-content: center;
    }

    .services-showcase {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hotel-hero {
        padding: 120px 0 80px;
    }

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

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

    .hotel-hero .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hotel-hero .stat-number {
        font-size: 2rem;
    }

    .hotel-hero .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hotel-hero .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .hotel-hero .floating-icon {
        width: 50px;
        height: 50px;
    }

    .hotel-hero .floating-icon i {
        font-size: 1.2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-icon i {
        font-size: 1.8rem;
    }



    @media (max-width: 480px) {
        .hotel-hero h1 {
            font-size: 1.8rem;
        }

        .hotel-hero .hero-badge {
            font-size: 0.8rem;
            padding: 0.4rem 0.8rem;
        }

        .hotel-hero .hero-badge i {
            font-size: 1rem;
        }

        .hotel-hero .stat-number {
            font-size: 1.8rem;
        }

        .hotel-hero .stat-label {
            font-size: 0.8rem;
        }

        .service-card {
            padding: 1rem;
        }

        .service-card h3 {
            font-size: 1.3rem;
        }

        .service-card p {
            font-size: 0.9rem;
        }

        .service-features li {
            font-size: 0.8rem;
        }
    }