/* Mobile Responsiveness Fixes for BidHero Public Site */

/* ========================================
   NAVBAR FIXES
   ======================================== */

/* Ensure hamburger menu is visible on mobile */
@media (max-width: 991px) {
    .navbar-toggler {
        display: block !important;
        border: 1px solid rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0.75rem;
        font-size: 1.25rem;
        line-height: 1;
        background-color: transparent;
        border-radius: 0.25rem;
        transition: box-shadow 0.15s ease-in-out;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
        outline: 0;
    }

    .navbar-toggler-icon {
        display: inline-block;
        width: 1.5em;
        height: 1.5em;
        vertical-align: middle;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100%;
    }

    .navbar-collapse {
        margin-top: 1rem;
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .nav-item {
        padding: 0.5rem 0;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }
}

/* ========================================
   IMAGE RESPONSIVENESS
   ======================================== */

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Feature card images */
.feature-card img {
    max-width: 100%;
    height: auto;
    width: 100%;
}

/* ========================================
   PAGE HEADER FIXES
   ======================================== */

@media (max-width: 768px) {
    .page-header {
        padding: 60px 20px 40px !important;
    }

    .page-header h1 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem;
    }

    .page-header p {
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 50px 15px 30px !important;
    }

    .page-header h1 {
        font-size: 1.5rem !important;
    }

    .page-header p {
        font-size: 0.95rem !important;
    }
}

/* ========================================
   SECTION PADDING FIXES
   ======================================== */

@media (max-width: 768px) {
    section {
        padding: 40px 0 !important;
    }

    .section-header h2 {
        font-size: 1.75rem !important;
    }

    .section-header p {
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    section {
        padding: 30px 0 !important;
    }

    .section-header h2 {
        font-size: 1.5rem !important;
    }
}

/* ========================================
   CARD RESPONSIVENESS
   ======================================== */

@media (max-width: 768px) {
    .pain-point-card,
    .solution-card,
    .feature-card {
        margin-bottom: 1.5rem;
    }

    .pain-point-card h5,
    .solution-card h5,
    .feature-card h5 {
        font-size: 1.1rem !important;
    }

    .pain-point-card p,
    .solution-card p,
    .feature-card p {
        font-size: 0.95rem !important;
    }
}

/* ========================================
   STEP CARDS
   ======================================== */

@media (max-width: 768px) {
    .step-card {
        margin-bottom: 1.5rem;
    }

    .step-number {
        font-size: 2rem !important;
    }

    .step-card h5 {
        font-size: 1.1rem !important;
    }
}

/* ========================================
   BUTTON FIXES
   ======================================== */

@media (max-width: 768px) {
    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }

    .d-flex.gap-3 {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .d-flex.gap-3 .btn {
        width: 100%;
    }
}

/* ========================================
   CTA SECTION
   ======================================== */

@media (max-width: 768px) {
    .cta-section {
        padding: 40px 20px !important;
    }

    .cta-section h2 {
        font-size: 1.75rem !important;
    }

    .cta-section p {
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    .cta-section {
        padding: 30px 15px !important;
    }

    .cta-section h2 {
        font-size: 1.5rem !important;
    }
}

/* ========================================
   TESTIMONIAL CARDS
   ======================================== */

@media (max-width: 768px) {
    .testimonial-card {
        padding: 1.5rem !important;
    }

    .testimonial-card p {
        font-size: 1rem !important;
    }
}

/* ========================================
   CONTAINER PADDING
   ======================================== */

@media (max-width: 576px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ========================================
   ROW SPACING
   ======================================== */

@media (max-width: 768px) {
    .row.g-4 {
        row-gap: 1.5rem !important;
    }
}

/* ========================================
   FOOTER FIXES
   ======================================== */

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 !important;
    }

    .footer h6 {
        font-size: 1rem !important;
        margin-top: 1rem;
    }

    .footer img {
        max-width: 150px !important;
    }
}

/* ========================================
   VIDEO EMBED FIXES
   ======================================== */

@media (max-width: 768px) {
    .ratio {
        margin-bottom: 2rem;
    }
}

/* ========================================
   UTILITY FIXES
   ======================================== */

/* Ensure text center on mobile */
@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center !important;
    }

    /* Stack flex items on mobile */
    .flex-wrap {
        flex-wrap: wrap !important;
    }
}

/* Hide overflow on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .container,
    .container-fluid {
        overflow-x: hidden;
    }
}

/* ========================================
   ICON SIZES
   ======================================== */

@media (max-width: 768px) {
    .pain-point-card .icon i,
    .solution-card .icon i,
    .feature-card .icon i {
        font-size: 2rem !important;
    }
}

/* ========================================
   GRID IMPROVEMENTS
   ======================================== */

@media (max-width: 768px) {
    .col-md-6,
    .col-lg-4 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ========================================
   PLATFORM CARDS
   ======================================== */

@media (max-width: 991px) {
    .platform-card {
        margin-bottom: 2rem;
    }

    .platform-card img {
        max-width: 100%;
        height: auto;
    }

    .platform-card h3 {
        font-size: 1.5rem !important;
    }

    .platform-card .icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .platform-card {
        padding: 1.5rem;
    }

    .platform-card h3 {
        font-size: 1.25rem !important;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px !important;
    }

    .hero-section h1 {
        font-size: 1.75rem !important;
    }

    .hero-section .lead {
        font-size: 1rem !important;
    }

    .display-4 {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 50px 0 30px !important;
    }

    .hero-section h1 {
        font-size: 1.5rem !important;
    }

    .display-4 {
        font-size: 1.5rem !important;
    }
}

/* ========================================
   TEXT GRADIENT
   ======================================== */

@media (max-width: 576px) {
    .text-gradient {
        font-size: 1.5rem !important;
        display: inline-block;
    }
}

/* ========================================
   INTEGRATION SECTION
   ======================================== */

@media (max-width: 991px) {
    .integration-graphic {
        margin: 2rem 0;
    }

    .integration-arrow {
        font-size: 2rem !important;
        transform: rotate(90deg);
    }
}

/* ========================================
   NAVBAR BRAND
   ======================================== */

@media (max-width: 576px) {
    .navbar-brand img {
        height: 32px !important;
    }
}

/* ========================================
   LEAD TEXT
   ======================================== */

@media (max-width: 768px) {
    .lead {
        font-size: 1rem !important;
    }
}

/* ========================================
   BEFORE/AFTER LISTS
   ======================================== */

@media (max-width: 768px) {
    .col-md-6 > h4 {
        font-size: 1.25rem !important;
    }

    ul[style*="line-height"] li {
        font-size: 0.95rem !important;
    }
}

/* ========================================
   MAX WIDTH OVERRIDES
   ======================================== */

@media (max-width: 768px) {
    [style*="max-width: 700px"],
    [style*="max-width: 900px"] {
        max-width: 100% !important;
    }
}

/* ========================================
   PRICING CARDS
   ======================================== */

@media (max-width: 768px) {
    .pricing-card {
        margin-bottom: 1.5rem;
    }

    .pricing-card h3 {
        font-size: 1.5rem !important;
    }

    .pricing-card .price {
        font-size: 2rem !important;
    }
}

/* ========================================
   ABOUT PAGE
   ======================================== */

@media (max-width: 576px) {
    .about-section img {
        max-width: 200px !important;
    }
}

/* ========================================
   ENSURE NO HORIZONTAL SCROLL
   ======================================== */

@media (max-width: 991px) {
    * {
        max-width: 100%;
    }

    img,
    video,
    iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* ========================================
   UTILITY: STACK BUTTONS ON MOBILE
   ======================================== */

@media (max-width: 576px) {
    .btn-group,
    .d-flex.flex-sm-row {
        flex-direction: column !important;
    }

    .btn-group .btn,
    .d-flex.flex-sm-row .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ========================================
   LIST IMPROVEMENTS
   ======================================== */

@media (max-width: 768px) {
    .list-unstyled li {
        font-size: 0.95rem;
        margin-bottom: 0.75rem !important;
    }
}
