/* RESPONSIVE STYLES - ForexBrokerLead */
/* ================================== */

/* Mobile First Approach */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 576px) {
    .hero-section {
        padding: 100px 0 60px !important;
        min-height: auto;
    }
    
    .display-4 {
        font-size: 1.8rem !important;
    }
    
    .display-5 {
        font-size: 1.6rem !important;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .stats-value {
        font-size: 2rem;
    }
    
    .live-stats .stat-number {
        font-size: 1.8rem;
    }
    
    .trust-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        margin: 3px;
    }
    
    .quick-contact-form {
        margin: 15px 0;
        padding: 20px 15px;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 768px) {
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .display-4 {
        font-size: 2.2rem !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 992px) {
    .hero-section {
        padding: 130px 0 90px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Specific Mobile Optimizations */

/* Navigation mobile styles */
@media (max-width: 768px) {
    .navbar-collapse {
        background: rgba(33, 37, 41, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem;
        margin-top: 10px;
        border-radius: 8px;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu {
        background: transparent;
        border: none;
        text-align: center;
    }
    
    .dropdown-item {
        color: rgba(255,255,255,0.8);
        padding: 8px 0;
    }
    
    .dropdown-item:hover {
        background: transparent;
        color: white;
    }
}

/* Promo bar mobile adjustments */
@media (max-width: 768px) {
    #promo-bar {
        top: 60px;
    }
    
    body.promo-visible {
        padding-top: 130px;
    }
}

/* Form responsiveness */
@media (max-width: 768px) {
    .form-floating {
        margin-bottom: 1rem;
    }
    
    .btn-group-vertical .btn {
        margin-bottom: 0.5rem;
    }
}

/* Card deck responsiveness */
@media (max-width: 768px) {
    .card-deck {
        display: block;
    }
    
    .card-deck .card {
        margin-bottom: 1rem;
    }
}

/* Grid system adjustments */
@media (max-width: 768px) {
    .row-cols-md-2 > * {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .row-cols-lg-3 > * {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Typography scaling */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.1rem; }
}

/* Button sizing for mobile */
@media (max-width: 576px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Image responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* Table responsiveness */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Modal mobile optimizations */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-content {
        border-radius: 8px;
    }
}

/* Carousel mobile optimizations */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption {
        bottom: 20px;
        padding: 15px;
    }
    
    .carousel-caption h5 {
        font-size: 1.2rem;
    }
}

/* Utility classes for mobile */
.mobile-hidden {
    display: none;
}

@media (min-width: 768px) {
    .mobile-hidden {
        display: block;
    }
    
    .desktop-hidden {
        display: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .nav-link:hover {
        background: transparent;
    }
}

/* High DPI screen optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
        background-image: url('/images/hero-bg@2x.jpg');
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        -text-primary: #f8f9fa;
        -text-secondary: #e9ecef;
        -text-muted: #adb5bd;
    }
    
    .bg-light {
        background-color: #343a40 !important;
        color: var(--text-primary);
    }
    
    .bg-white {
        background-color: #212529 !important;
        color: var(--text-primary);
    }
    
    .card {
        background-color: #343a40;
        border-color: #495057;
    }
    
    .text-dark {
        color: var(--text-primary) !important;
    }
    
    .text-muted {
        color: var(--text-muted) !important;
    }
}