/* Digital Nomad Tax Advisory - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
    
    /* Gallery adjustments */
    #gallery img {
        height: 200px;
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: var(--font-size-base) !important;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    /* Hero section adjustments */
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: var(--font-size-2xl);
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: var(--font-size-base);
    }
    
    /* Button adjustments */
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .btn-lg {
        padding: 1rem;
        font-size: var(--font-size-base);
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Service cards */
    .service-card .card-img-top {
        height: 150px;
    }
    
    /* Team member images */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Timeline adjustments */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 0;
        padding-left: 3rem;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 1rem;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: 3rem;
    }
    
    .timeline-marker {
        left: 10px !important;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }
    
    /* Contact form */
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    /* FAQ accordion */
    .accordion-button {
        padding: 1rem;
        font-size: var(--font-size-sm);
    }
    
    /* Footer adjustments */
    footer {
        text-align: center;
    }
    
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Utility classes for mobile */
    .text-center-mobile {
        text-align: center !important;
    }
    
    .mb-mobile {
        margin-bottom: 2rem !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero section */
    .hero-section h1 {
        font-size: var(--font-size-3xl);
    }
    
    /* Service cards in 2 columns */
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Team members in 2 columns */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Timeline adjustments */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 4rem;
    }
    
    .timeline-marker {
        left: 20px !important;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 1.5rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navbar */
    .navbar-brand {
        font-size: var(--font-size-lg) !important;
    }
    
    /* Hero section */
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: var(--font-size-4xl);
    }
    
    /* Cards spacing */
    .card {
        margin-bottom: 2rem;
    }
    
    /* Service cards in 2 columns */
    .service-card .card-img-top {
        height: 180px;
    }
    
    /* Team members */
    .team-member img {
        width: 140px;
        height: 140px;
    }
    
    /* Timeline - still single column */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 0;
        padding-left: 4rem;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 1rem;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: 4rem;
    }
    
    .timeline-marker {
        left: 20px !important;
    }
    
    /* Process steps in 2 columns */
    .process-step {
        margin-bottom: 1.5rem;
    }
    
    /* Contact section */
    .contact-info {
        margin-top: 0;
    }
    
    /* FAQ */
    .accordion-button {
        padding: 1.25rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full timeline layout */
    .timeline::before {
        left: 50%;
    }
    
    .timeline-item {
        width: 50%;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-left: 2rem;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 2rem;
        text-align: right;
    }
    
    .timeline-item:nth-child(odd) .timeline-marker {
        right: -10px;
        left: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-marker {
        left: -10px;
    }
    
    /* Process steps in 5 columns */
    .process-step {
        margin-bottom: 1rem;
    }
    
    /* Service cards in 3 columns */
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Team members in 4 columns */
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container adjustments */
    .container {
        max-width: 1200px;
    }
    
    /* Hero section */
    .hero-section {
        padding: 4rem 0;
    }
    
    /* Full layout for all components */
    .service-card,
    .team-member,
    .card {
        margin-bottom: 2rem;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 0;
    }
    
    /* Timeline full layout */
    .timeline {
        padding: 3rem 0;
    }
    
    .timeline-item {
        margin-bottom: 3rem;
    }
    
    .timeline-content {
        padding: 2rem;
    }
}

/* Print media adjustments */
@media print {
    /* Hide interactive elements */
    .navbar-toggler,
    .btn,
    .contact-form,
    .accordion-button,
    .breadcrumb-nav {
        display: none !important;
    }
    
    /* Adjust spacing for print */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Ensure cards don't break across pages */
    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    /* Timeline for print */
    .timeline-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    /* Colors for print */
    .text-primary,
    .text-secondary,
    .text-accent,
    .text-warning,
    .text-danger {
        color: #000 !important;
    }
    
    /* Background colors for print */
    .bg-light,
    .bg-primary,
    .bg-secondary,
    .bg-accent,
    .bg-warning,
    .bg-danger {
        background-color: #fff !important;
        color: #000 !important;
    }
    
    /* Shadows not needed for print */
    .card,
    .contact-form,
    .timeline-content {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #ff0000;
        --accent-color: #008000;
        --warning-color: #ff8c00;
        --danger-color: #ff0000;
        --black: #000000;
        --white: #ffffff;
        --light-gray: #f0f0f0;
        --gray: #808080;
        --dark-gray: #404040;
    }
    
    .card {
        border: 2px solid var(--black) !important;
    }
    
    .btn-primary {
        background-color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        color: var(--white) !important;
    }
    
    .btn-outline-primary {
        border-color: var(--primary-color) !important;
        color: var(--primary-color) !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .card:hover,
    .btn:hover,
    .team-member img:hover,
    .info-card:hover,
    .feature-item:hover,
    .hover-zoom:hover {
        transform: none !important;
    }
    
    .timeline-item,
    .process-step,
    .feature-item,
    .hover-zoom {
        transition: none !important;
    }
}

/* Dark mode support (future-proofing) */

/* Orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: var(--font-size-2xl);
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Focus improvements for accessibility */
@media (any-hover: none) {
    .card:focus,
    .btn:focus,
    .nav-link:focus,
    .form-control:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Large text support */
@media (min-resolution: 2dppx) {
    .navbar-brand,
    .btn,
    .card-title,
    .timeline-content h6 {
        font-weight: 600;
    }
    
    .form-control {
        border-width: 2px;
    }
} 