/* Responsive Styles for BrandTone Pro Template */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .display-5 {
        font-size: 2.5rem;
    }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        margin-right: 50%;
        padding-right: 2rem;
        text-align: right;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50%;
        padding-left: 2rem;
        text-align: left;
    }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) {
    .hero-actions .btn {
        margin: 0 0.5rem 0 0;
    }
    
    .service-card .service-image img {
        height: 220px;
    }
    
    .blog-card .blog-image img {
        height: 220px;
    }
    
    .team-image img {
        width: 180px;
        height: 180px;
    }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) {
    .hero-section {
        padding-top: 120px;
    }
    
    .contact-form {
        padding: 2.5rem;
    }
}

/* Mobile Devices (below 992px) */
@media (max-width: 991.98px) {
    /* Disable animations on mobile */
    [data-sal] {
        animation: none;
        transform: none;
        opacity: 1;
    }
    
    /* Typography adjustments */
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        min-height: auto;
        padding: 100px 0 3rem;
        text-align: center;
    }
    
    .hero-actions {
        margin-top: 2rem;
    }
    
    .hero-actions .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Remove floating blobs on mobile */
    .decoration-blob {
        display: none;
    }
    
    /* Timeline mobile layout */
    .timeline::before {
        left: 1rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 3rem;
        margin-right: 0;
        padding-left: 1.5rem;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -2.5rem;
        right: auto;
    }
    
    /* Service cards mobile */
    .service-card .service-image img {
        height: 180px;
    }
    
    /* Team cards mobile */
    .team-image img {
        width: 120px;
        height: 120px;
    }
    
    /* Blog cards mobile */
    .blog-card .blog-image img {
        height: 180px;
    }
    
    /* Pricing cards mobile */
    .pricing-price {
        font-size: 2rem;
    }
    
    /* Process steps mobile */
    .step-number .badge {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    /* Section padding mobile */
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Card spacing mobile */
    .g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1.5rem;
    }
}

/* Small Mobile Devices (below 768px) */
@media (max-width: 767.98px) {
    /* Further typography adjustments */
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section small mobile */
    .hero-section {
        padding: 80px 0 2rem;
    }
    
    /* Navbar mobile */
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Service cards small mobile */
    .service-card .service-image img {
        height: 160px;
    }
    
    /* Pricing cards small mobile */
    .pricing-card {
        margin-bottom: 1.5rem;
    }
    
    /* Team section small mobile */
    .team-image img {
        width: 100px;
        height: 100px;
    }
    
    /* Process steps small mobile */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Blog cards small mobile */
    .blog-card .blog-image img {
        height: 160px;
    }
    
    /* Gallery small mobile */
    #gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Contact info mobile */
    .contact-info {
        margin-bottom: 2rem;
    }
    
    /* Footer mobile */
    footer .col-lg-2,
    footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer .row.align-items-center .col-md-6 {
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* Extra Small Mobile Devices (below 576px) */
@media (max-width: 575.98px) {
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography extra small */
    .display-4 {
        font-size: 1.5rem;
    }
    
    .display-5 {
        font-size: 1.25rem;
    }
    
    h4, .h4 {
        font-size: 1.125rem;
    }
    
    h5, .h5 {
        font-size: 1rem;
    }
    
    /* Hero section extra small */
    .hero-section {
        padding: 60px 0 2rem;
    }
    
    /* Service pricing extra small */
    .pricing-price {
        font-size: 1.75rem;
    }
    
    /* Step numbers extra small */
    .step-number .badge {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    /* Contact form extra small */
    .contact-form {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    /* Button adjustments */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Timeline extra small */
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 2.5rem;
        padding-left: 1rem;
    }
    
    /* Service cards extra small */
    .service-card .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
    
    .service-card .service-image img {
        height: 140px;
    }
    
    /* Blog cards extra small */
    .blog-card .blog-image img {
        height: 140px;
    }
    
    /* Team extra small */
    .team-image img {
        width: 80px;
        height: 80px;
    }
    
    /* Career cards extra small */
    .career-tags .badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
        margin: 0.125rem;
    }
    
    /* Gallery extra small */
    #gallery img {
        margin-bottom: 0.75rem;
    }
    
    /* FAQ cards extra small */
    .faq-card .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
    
    /* Section spacing extra small */
    .py-5 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    /* Feature icons extra small */
    .feature-icon i,
    .info-icon i {
        font-size: 2rem;
    }
}

/* Landscape Mobile Devices */
@media (max-width: 991.98px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 80px 0 2rem;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    /* Optimize for retina displays */
    .hero-decoration {
        transform: scale(0.5);
        transform-origin: top left;
    }
}

/* Dark Mode Support */

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations */
    .decoration-blob {
        animation: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .testimonial-card:hover,
    .case-study-card:hover,
    .career-card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    /* Hide interactive elements */
    .navbar,
    .hero-actions,
    .btn,
    .contact-form,
    footer .footer-social {
        display: none;
    }
    
    /* Adjust colors for print */
    .hero-section {
        background: white;
        color: black;
    }
    
    .bg-light {
        background: white;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    /* Typography for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .display-4,
    .display-5 {
        font-size: 18pt;
    }
    
    /* Remove shadows for print */
    .card,
    .contact-form {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.navbar-brand:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card,
    .contact-form {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }
    
    .btn-outline-primary {
        color: #000;
        border-color: #000;
    }
} 

.hero-section h1 {
    padding-top: 175px;
}