/* Responsive Design for Corporate Team Building Website */

/* Extra Large Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 3.58rem;
    }
}

/* Large Screens (1200px and up) */
@media (min-width: 1200px) {
    .timeline-item {
        width: 40%;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 60%;
    }
}

/* Medium Screens (992px and up) */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        margin: 0 0.25rem;
        padding: 0.5rem 0.75rem !important;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 10rem 0 6rem;
    }
    
    .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Small to Medium Screens (768px to 991px) */
@media (max-width: 991.98px) {
    /* Navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.36rem;
    }
    
    .navbar-collapse {
        background: var(--white);
        border-radius: var(--border-radius);
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }
    
    /* Hero Section */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 6rem 0 4rem;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.64rem;
    }
    
    .hero-section h2 {
        font-size: 1.26rem;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.82rem; }
    h3 { font-size: 1.54rem; }
    
    /* Cards */
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .career-card,
    .info-card,
    .element-card,
    .blog-card {
        margin-bottom: 2rem;
    }
    
    /* Price Cards */
    .price-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    /* Timeline */
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-item {
        width: calc(100% - 4rem);
        margin-left: 4rem !important;
        margin-bottom: 2rem;
    }
    
    .timeline-item::before {
        content: '';
        position: absolute;
        left: -2rem;
        top: 2rem;
        width: 1rem;
        height: 1rem;
        background: var(--primary-orange);
        border-radius: 50%;
        border: 3px solid var(--white);
        box-shadow: var(--shadow-sm);
    }
    
    /* Team Section */
    .team-member {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Contact Form */
    .contact-form {
        margin-bottom: 2rem;
    }
    
    .contact-info {
        margin-top: 0;
    }
}

/* Small Screens (576px to 767px) */
@media (max-width: 767.98px) {
    /* Typography */
    h1 { font-size: 1.89rem; }
    h2 { font-size: 1.60rem; }
    h3 { font-size: 1.34rem; }
    
    /* Hero Section */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 5rem 0 3rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.62rem;
    }
    
    .hero-section h2 {
        font-size: 1.24rem;
        margin-bottom: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
        text-align: center;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .career-card,
    .info-card,
    .element-card,
    .blog-card {
        padding: 1.5rem;
    }
    
    /* Sections */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Timeline */
    .timeline {
        padding: 1rem 0;
    }
    
    .timeline::before {
        left: 1rem;
    }
    
    .timeline-item {
        width: calc(100% - 2rem);
        margin-left: 2rem !important;
        padding: 1.5rem;
    }
    
    .timeline-item::before {
        left: -1.5rem;
        top: 1.5rem;
        width: 0.75rem;
        height: 0.75rem;
    }
    
    /* Step Numbers */
    .step-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    /* Contact Section */
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
    
    /* Footer */
    footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Space div */
    #space {
        min-height: 40vh;
        margin-top: 70px;
    }
    
    #space::before {
        font-size: 1.52rem;
    }
}

/* Extra Small Screens (up to 575px) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 { font-size: 1.54rem; }
    h2 { font-size: 1.33rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1rem; }
    
    /* Hero Section */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 4rem 0 2rem;
    }
    
    .hero-section h1 {
        font-size: 1.86rem;
    }
    
    .hero-section h2 {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.25rem 0;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 0.89rem;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .career-card,
    .info-card,
    .element-card,
    .blog-card {
        padding: 1rem;
        margin-bottom: 1.74rem;
    }
    
    /* Sections */
    .py-5 {
        padding-top: 1.63rem !important;
        padding-bottom: 1.64rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    /* Timeline */
    .timeline-item {
        padding: 1rem;
    }
    
    .timeline-date {
        font-size: 1.00rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* Process Steps */
    .process-step {
        padding: 1rem 0.5rem;
    }
    
    .step-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.93rem;
    }
    
    /* Team Members */
    .team-member img {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* Contact Form */
    .contact-form,
    .contact-info {
        padding: 1rem;
    }
    
    .contact-form .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 1.00rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.96rem;
    }
    
    /* FAQ */
    .accordion-button {
        padding: 0.75rem 1rem;
        font-size: 0.99rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
    
    /* Gallery */
    .gallery-img {
        height: 150px !important;
        margin-bottom: 1rem;
    }
    
    /* Footer */
    footer {
        padding: 2rem 0 1rem !important;
    }
    
    footer h4, footer h5 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    footer p {
        font-size: 1.00rem;
    }
    
    /* Space div */
    #space {
        min-height: 30vh;
        margin-top: 60px;
    }
    
    #space::before {
        font-size: 1.39rem;
    }
    
    /* Service and Price Card Lists */
    .service-card ul,
    .price-card ul {
        font-size: 0.96rem;
    }
    
    /* Blog Cards */
    .blog-card .card-img-top {
        height: 150px !important;
    }
    
    /* Case Study Cards */
    .case-study-card img {
        height: 150px !important;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        padding: 0.5rem 0;
    }
    
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
}

/* Landscape Orientation on Small Screens */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 3rem 0 2rem;
    }
    
    .hero-section h1 {
        font-size: 1.86rem;
    }
    
    #space {
        min-height: 25vh;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb,
    footer,
    .btn,
    .accordion-button {
        display: none !important;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        background: none !important;
        color: var(--dark-gray) !important;
        padding: 1rem 0;
    }
    
    .hero-section h1,
    .hero-section h2,
    .hero-section p {
        color: var(--dark-gray) !important;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .career-card,
    .info-card,
    .element-card,
    .blog-card {
        box-shadow: none !important;
        border: 1px solid var(--light-gray);
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #000fe1;
        --primary-teal: #005f03;
        --primary-orange: #ff2400;
        --primary-purple: #410089;
        --primary-green: #006903;
        --medium-gray: #4b4847;
        --dark-gray: #000000;
    }
    
    .btn-outline-primary {
        border-width: 3px;
    }
    
    .navbar-nav .nav-link {
        border: 1px solid transparent;
    }
    
    .navbar-nav .nav-link:hover {
        border-color: var(--primary-blue);
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.accordion-button:focus {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
} 