/**
 * Freight Factoring Inc. - Responsive Styles
 * Mobile-first responsive design
 */

/* Large Desktops (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

/* Tablets and Small Desktops (992px to 1199px) */
@media (max-width: 1199px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Tablets (768px to 991px) */
@media (max-width: 991px) {
    .top-bar-left {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .top-bar-separator {
        display: none;
    }
    
    .top-bar-right {
        margin-top: 0.5rem;
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 0;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .card {
        margin-bottom: 2rem;
    }
    
    .page-title {
        font-size: 2.75rem;
    }
    
    .page-subtitle {
        font-size: 1.15rem;
    }
    
    .btn-nav-cta {
        width: auto;
        margin-left: 0.5rem;
    }
}

/* Mobile Landscape (576px to 767px) */
@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 {
        text-align: center;
    }
    
    .top-bar-left {
        align-items: center;
        margin-bottom: 0.5rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .trust-number {
        font-size: 2rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
    
    .footer-top {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-widget {
        margin-bottom: 2rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .accordion-button {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .accordion-body {
        padding: 1.25rem;
        font-size: 0.95rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .form-step {
        min-height: auto;
    }
    
    .form-step h3 {
        font-size: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.75rem;
        margin-top: 2rem;
    }
    
    .content-section h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
    body {
        font-size: 15px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .top-bar {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }
    
    .top-bar-link {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .btn-quote-top {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .hero-section {
        padding: 2.5rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }
    
    .trust-indicators {
        padding: 1.5rem 0;
    }
    
    .trust-item {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .trust-number {
        font-size: 1.75rem;
    }
    
    .trust-label {
        font-size: 0.8rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-icon,
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }
    
    .form-control {
        padding: 0.65rem 0.85rem;
        font-size: 0.95rem;
    }
    
    .footer-top {
        padding: 2.5rem 0 1rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-widget {
        margin-bottom: 2rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding: 1.5rem 0;
        text-align: center;
    }
    
    .copyright,
    .tagline {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .page-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .page-subtitle {
        font-size: 0.95rem;
    }
    
    .page-header {
        padding: 3rem 0;
    }
    
    .hero-cta {
        gap: 0.75rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 100%;
    }
    
    .btn-nav-cta {
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-link.btn-nav-cta {
        width: auto;
        margin: 0.5rem auto;
        display: block;
    }
    
    /* Contact form mobile improvements */
    .contact-section .row {
        margin: 0;
    }
    
    .contact-section .col-lg-8,
    .contact-section .col-lg-4 {
        padding: 0 15px;
        margin-bottom: 2rem;
    }
    
    /* Quote form mobile improvements */
    .form-step h3 {
        font-size: 1.5rem;
    }
    
    .progress {
        height: 8px;
    }
    
    /* Card improvements */
    .card-img-top {
        padding: 1.5rem;
        min-height: 150px;
    }
    
    /* Table responsive */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Ensure images don't overflow */
    img, svg {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix text overflow */
    .card-text,
    p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .main-header,
    .main-footer,
    .back-to-top,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
}

