/* Brisk Ride - Responsive CSS */
/* Mobile-first responsive design for all screen sizes */

/* Mobile Styles (Default - up to 768px) */

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 999;
        padding-top: 2rem;
    }

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

    .nav-list {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        width: 100%;
        font-size: 1.1rem;
    }

    .hamburger {
        display: flex;
    }

    /* Hero Section Mobile */
    .hero {
        min-height: 70vh;
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

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

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

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .page-header {
        padding: 120px 0 40px;
    }

    .page-icon {
        width: 60px;
        height: 60px;
    }

    /* Grid Layouts Mobile */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

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

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

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

    /* Services Mobile */
    .tab-buttons {
        flex-direction: column;
    }

    .tab-btn {
        text-align: center;
        padding: 1rem;
    }

    .tab-content {
        padding: 1.5rem;
    }

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

    .social-links a {
        display: block;
        margin-bottom: 0.5rem;
        margin-right: 0;
    }

    /* Forms Mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form,
    .contact-form-main {
        padding: 1.5rem;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    /* Cookie Banner Mobile */
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Service Detail Cards Mobile */
    .service-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .service-header {
        padding: 1.5rem;
    }

    /* Comparison Table Mobile */
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    /* About Page Mobile */
    .history-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .timeline-year {
        margin-bottom: 0.5rem;
    }

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

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

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

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

    .contact-form-detailed {
        padding: 1.5rem;
    }

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

    .map-placeholder {
        padding: 2rem;
        min-height: 200px;
    }

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

    .social-links-detailed {
        gap: 0.3rem;
    }

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

    /* Thank You Page Mobile */
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }

    .wait-content {
        grid-template-columns: 1fr;
    }

    /* CTA Buttons Mobile */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Buttons Mobile */
    .btn-cta,
    .btn-primary,
    .btn-secondary,
    .btn-tertiary,
    .btn-outline {
        width: 100%;
        max-width: 300px;
        margin-bottom: 0.5rem;
    }
}

/* Small Mobile (up to 480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

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

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section {
        padding: 40px 0;
    }

    .content-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 1rem;
    }

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

    .benefit-card,
    .team-member,
    .achievement-card,
    .review-card {
        padding: 1.5rem;
    }

    .service-detail-card {
        margin-bottom: 2rem;
    }

    .service-content {
        padding: 1rem;
    }

    .service-header {
        padding: 1rem;
    }

    .cookie-banner {
        padding: 1rem;
    }

    .cookie-buttons {
        gap: 0.5rem;
    }

    .cookie-buttons button {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .thank-you-icon {
        font-size: 3rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .metric-number {
        font-size: 1.5rem;
    }

    .contact-option {
        padding: 0.8rem 1rem;
    }

    .contact-option-icon {
        font-size: 1.2rem;
    }
    [class*="-grid"] {
        grid-template-columns: 1fr;
    }
}

/* Tablet Styles (769px to 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .content-stats {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

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

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

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

    .nav-list {
        gap: 1.5rem;
    }

    .service-content {
        grid-template-columns: 1.5fr 1fr;
    }

    .contact-options {
        gap: 1rem;
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

/* Large Tablet/Small Desktop (1025px to 1200px) */
@media screen and (min-width: 1025px) and (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .achievements-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .principles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .wait-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop (1201px and up) */
@media screen and (min-width: 1201px) {
    .container {
        max-width: 1200px;
        padding: 0 40px;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .section {
        padding: 80px 0;
    }

    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .achievements-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .principles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .faq-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* High Resolution Screens (1400px and up) */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }

    .hero-content h1 {
        font-size: 4.5rem;
    }

    .section {
        padding: 100px 0;
    }
}

/* Landscape Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }

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

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

    .page-header {
        padding: 100px 0 30px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-cta:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-tertiary:hover,
    .btn-outline:hover {
        transform: none;
        box-shadow: none;
    }

    .benefit-card:hover,
    .achievement-card:hover,
    .review-card:hover {
        transform: none;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        display: none;
    }

    .nav-link.active {
        background: rgba(128, 163, 95, 0.1);
        border-radius: 5px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .hamburger,
    .btn-cta,
    .btn-primary,
    .btn-secondary,
    .btn-tertiary,
    .btn-outline {
        display: none !important;
    }

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

    .container {
        max-width: none;
        padding: 0;
    }

    .section {
        padding: 20pt 0;
        page-break-inside: avoid;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
    }

    .hero {
        background: none !important;
        color: #000 !important;
        min-height: auto;
    }

    .hero-content h1,
    .hero-content p {
        color: #000 !important;
    }

    .page-header {
        background: none !important;
        color: #000 !important;
        padding: 20pt 0;
    }

    .legal-text {
        font-size: 10pt;
        line-height: 1.3;
    }
}

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

    .hero {
        scroll-behavior: auto;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-cta {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }

    .btn-secondary {
        background: #333;
        color: #fff;
        border: 2px solid #fff;
    }

    .btn-tertiary,
    .btn-outline {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }

    .nav-link:hover,
    .nav-link.active {
        background: #000;
        color: #fff;
    }

    .section:nth-child(even) {
        background: #f0f0f0;
    }
}

/* Focus Management for Accessibility */
@media (prefers-reduced-motion: no-preference) {
    .nav-link:focus,
    .btn-primary:focus,
    .btn-secondary:focus,
    .btn-tertiary:focus,
    .btn-outline:focus,
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        outline: 3px solid #80a35f;
        outline-offset: 2px;
    }
}

/* Tablet Portrait Specific */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

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

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

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

    .history-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .quality-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .map-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* iPhone Specific Adjustments */
@media screen and (max-width: 414px) {
    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .navbar {
        padding: 0.8rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .cookie-banner {
        padding: 0.8rem 1rem;
    }

    .cookie-content {
        font-size: 0.9rem;
    }

    .cookie-buttons button {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/* Accessibility - Screen Reader Only */
.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;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #80a35f;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error States */
.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Success States */
.success {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.success-message {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}
