/**
 * Responsive Styles
 * Mobile-first breakpoints for all screen sizes
 */

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
    .hero-content h1 {
        font-size: 4rem;
    }

    .container-xxl {
        max-width: 1400px;
    }
}

/* Large Screens (1200px - 1399px) */
@media (max-width: 1399px) {
    .hero-carousel .carousel-item {
        height: 550px;
    }

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

/* Medium-Large Screens (992px - 1199px) */
@media (max-width: 1199px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 0.75rem;
        font-size: 0.9rem;
    }

    .mega-menu {
        padding: 1rem;
    }

    .mega-item {
        padding: 0.75rem;
    }

    .hero-carousel .carousel-item {
        height: 500px;
    }

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

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

/* Tablet Landscape (992px) */
@media (max-width: 991px) {

    /* Top Bar */
    .top-bar {
        padding: 0.75rem 0;
    }

    .top-bar-left .top-info-list {
        justify-content: center;
        gap: 1rem;
        margin-bottom: 0.5rem;
    }

    .top-bar-right {
        justify-content: center;
    }

    /* Header */
    .main-header {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        gap: 0.5rem;
    }

    .logo-img {
        height: 45px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-tagline {
        font-size: 0.7rem;
    }

    /* Mobile Navigation */
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        padding: 2rem 1.5rem;
        transition: left var(--transition-base);
        z-index: var(--z-modal);
        overflow-y: auto;
        box-shadow: var(--shadow-2xl);
    }

    .navbar-collapse.show {
        left: 0;
    }

    .navbar-collapse::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        z-index: -1;
    }

    .navbar-collapse.show::before {
        opacity: 1;
        visibility: visible;
    }

    .navbar-nav {
        padding-top: 1.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--gray-100);
        font-size: 0.95rem;
    }

    .navbar-nav .nav-link .nav-icon {
        display: inline-block;
        width: 20px;
        margin-right: 0.5rem;
        color: var(--primary);
    }

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

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        background: var(--gray-50);
        margin: 0.5rem 0;
        border-radius: var(--radius-lg);
    }

    .mega-menu {
        padding: 1rem;
    }

    .mega-menu .row {
        flex-direction: column;
    }

    .mega-menu .col-lg-3 {
        width: 100%;
    }

    .mega-item {
        margin-bottom: 0.5rem;
    }

    .navbar-actions {
        margin: 1.5rem 0 0;
        padding-top: 1.5rem;
        border-top: 1px solid var(--gray-200);
        justify-content: center;
    }

    .btn-contact {
        display: inline-flex !important;
    }

    /* Hero */
    .hero-carousel .carousel-item {
        height: 450px;
    }

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

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

    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }

    .carousel-control-prev {
        left: 1rem;
    }

    .carousel-control-next {
        right: 1rem;
    }

    /* Sections */
    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Stats */
    .stat-item {
        margin-bottom: 2rem;
    }

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

    /* Footer */
    .footer-widget {
        margin-bottom: 2rem;
    }
}

/* Tablet Portrait (768px) */
@media (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    /* Top Bar */
    .top-bar {
        display: none;
    }

    /* Show mobile top bar */
    .mobile-top-bar {
        display: flex;
        background: var(--secondary);
        padding: 0.5rem;
        justify-content: center;
        gap: 1rem;
    }

    .mobile-top-bar a {
        color: var(--white);
        font-size: 0.875rem;
    }

    /* Header */
    .logo-img {
        height: 40px;
    }

    .brand-text {
        display: none;
    }

    /* Hero */
    .hero-carousel .carousel-item {
        height: 400px;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .carousel-indicators {
        bottom: 1rem;
    }

    /* Marquee */
    .marquee-label {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .marquee-item {
        font-size: 0.85rem;
    }

    /* Sections */
    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Branch Cards */
    .branch-card-image {
        height: 180px;
    }

    /* Stats */
    .stats-section {
        padding: 3rem 0;
    }

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

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

    /* Testimonials */
    .testimonial-card {
        padding: 1.5rem;
    }

    /* Page Header */
    .page-header {
        padding: 3rem 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    /* Footer */
    .footer-top {
        padding: 3rem 0 1rem;
    }

    .footer-logo img {
        height: 50px;
    }

    .footer-bottom {
        text-align: center;
    }

    /* WhatsApp Float */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 80px;
        right: 20px;
        font-size: 1.5rem;
    }

    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Large Mobile (576px) */
@media (max-width: 575px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Hero */
    .hero-carousel .carousel-item {
        height: 350px;
    }

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

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    /* Buttons */
    .btn {
        padding: 0.625rem 1.25rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    /* Stats */
    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }

    /* Cards */
    .branch-card-body {
        padding: 1.25rem;
    }

    /* Forms */
    .form-control {
        padding: 0.75rem;
    }
}

/* Small Mobile (360px) */
@media (max-width: 359px) {
    body {
        font-size: 0.875rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .hero-carousel .carousel-item {
        height: 300px;
    }

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

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

    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {

    .top-bar,
    .marquee-bar,
    .navbar-toggler,
    .whatsapp-float,
    .back-to-top,
    .site-footer {
        display: none !important;
    }

    .main-header {
        position: static;
        box-shadow: none;
    }

    .hero-carousel {
        height: auto;
    }

    .hero-carousel .carousel-item {
        height: auto;
    }

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

    a {
        text-decoration: underline;
    }
}

/* Landscape Mode Fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-carousel .carousel-item {
        height: 100vh;
        min-height: 350px;
    }

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

    .hero-content p {
        display: none;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .marquee-track {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Optional dark mode styles can be added here */
}