/* Tosarion Responsive Custom Styles */
/* ================================== */

/* Mobile devices (up to 767px) */
@media (max-width: 767px) {
    /* Header Logo - Scale down on mobile */
    #topnav .logo img {
        transform: scale(1.0) !important;
        transform-origin: left center !important;
        max-width: 150px;
    }

    /* Header adjustments */
    #topnav {
        padding: 10px 0;
    }

    #topnav .container {
        padding: 0 15px;
    }

    /* Navigation menu */
    #topnav #navigation {
        background-color: #fff;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    /* Hero section */
    .bg-home {
        padding: 150px 0 80px !important;
        min-height: 500px !important;
    }

    .bg-home .title-heading h1 {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

    .bg-home .title-heading p {
        font-size: 15px !important;
    }

    /* Footer - Stack columns */
    footer .row > div {
        margin-bottom: 30px;
    }

    footer .logo-footer img {
        height: 32px !important;
        margin-bottom: 15px;
    }

    /* Contact section in footer */
    footer .footer-list li {
        font-size: 14px !important;
        margin-bottom: 10px;
        word-wrap: break-word;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Feature boxes */
    .features .core-feature {
        margin-bottom: 20px;
    }

    .features .icons {
        font-size: 40px !important;
    }

    /* Services section */
    .services {
        padding: 30px 20px !important;
        margin-bottom: 20px;
    }

    /* Blog cards */
    .blog .card {
        margin-bottom: 20px;
    }

    /* Section titles */
    .section-title h3 {
        font-size: 24px !important;
    }

    .section-title .para-desc {
        font-size: 15px !important;
    }

    /* Privacy Policy and Terms pages */
    .card-body.p-5 {
        padding: 20px !important;
    }

    .card-body h2 {
        font-size: 24px !important;
    }

    .card-body h4 {
        font-size: 18px !important;
    }

    /* Contact page */
    .contact-detail {
        flex-direction: column;
        text-align: center;
    }

    .contact-detail .icon {
        margin-right: 0 !important;
        margin-bottom: 10px;
    }

    /* About page images */
    .about-image,
    .about-img {
        margin-bottom: 30px;
    }

    /* Team member cards */
    .team-member {
        margin-bottom: 30px;
    }

    /* Padding adjustments */
    .section {
        padding: 60px 0 !important;
    }

    /* Preloader */
    #preloader {
        background-position: center center;
    }
}

/* Tablet devices (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    /* Header Logo - Slightly smaller on tablet */
    #topnav .logo img {
        transform: scale(1.2) !important;
        transform-origin: left center !important;
    }

    /* Hero section */
    .bg-home {
        padding: 180px 0 100px !important;
    }

    .bg-home .title-heading h1 {
        font-size: 34px !important;
    }

    /* Footer adjustments */
    footer .logo-footer img {
        height: 36px !important;
    }

    footer .col-lg-2,
    footer .col-lg-3,
    footer .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 30px;
    }

    /* Services and features */
    .services,
    .features .core-feature {
        margin-bottom: 25px;
    }

    /* Section padding */
    .section {
        padding: 80px 0 !important;
    }

    /* Cards */
    .card-body.p-5 {
        padding: 30px !important;
    }
}

/* Desktop devices (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    /* Slightly reduce logo scale */
    .logo img[style*="scale(1.5)"] {
        transform: scale(1.4) !important;
    }

    .logo img[style*="scale(1.45)"] {
        transform: scale(1.35) !important;
    }

    /* Container width adjustments */
    .container {
        max-width: 960px;
    }
}

/* Large desktop devices (1200px and above) */
@media (min-width: 1200px) {
    /* Ensure logos don't get too large */
    #topnav .logo img {
        max-width: 250px;
    }

    /* Optimal container width */
    .container {
        max-width: 1140px;
    }
}

/* Extra small devices landscape orientation */
@media (max-width: 575px) and (orientation: landscape) {
    .bg-home {
        padding: 120px 0 60px !important;
        min-height: 400px !important;
    }

    #topnav .logo img {
        max-width: 120px;
    }
}

/* Print styles */
@media print {
    #topnav,
    footer,
    .back-to-top,
    .btn,
    #preloader {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .section {
        padding: 20px 0 !important;
    }
}

/* Accessibility - Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    #topnav .logo img {
        transform: scale(1) !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }

    footer {
        border-top: 2px solid #fff;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Reserved for future dark mode implementation */
}

/* Fix for very small mobile screens */
@media (max-width: 360px) {
    #topnav .logo img {
        max-width: 120px;
        transform: scale(0.9) !important;
    }

    .bg-home .title-heading h1 {
        font-size: 24px !important;
    }

    .section-title h3 {
        font-size: 20px !important;
    }

    footer .footer-list li {
        font-size: 13px !important;
    }
}

/* Retina display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}
