/* 
 * Atoot Sambandh — Responsive Breakpoints
 */

/* ── FLUID ROOT TYPOGRAPHY SCALING ── */
/* Base 1rem = 16px. We scale DOWN for small screens and UP for large displays! */
html {
    font-size: 16px;
    width: 100%;
}

/* ══════════════════════════════════════════
   LARGE SCREEN IMPROVEMENTS — 1920×1080
══════════════════════════════════════════ */

/* Bridge gap — 1400px to 1600px (1440p laptops) */
@media (min-width: 1400px) and (max-width: 1599.98px) {
    html {
        font-size: 16px;
    }

    .container {
        max-width: 1320px;
    }
}

/* 1600px and above — full HD monitors (1920×1080) */
@media (min-width: 1600px) {
    html {
        font-size: 18.5px;
        /* Aggressive jump to make scaling noticeable */
    }

    .container {
        max-width: 1540px;
    /* Removed extra padding to keep hero section tight */
    .hero-search-card {
        max-width: 580px;
        /* Increased further */
        margin-left: auto;
    }

    /* Boost hero text explicitly */
    .hero-content h1 {
        font-size: 4rem !important;
        /* Force a larger size for HD */
    }

    .hero-content p {
        font-size: 1.15rem !important;
        max-width: 42rem !important;
    }

    .hero-cta .btn-lg {
        padding: 1rem 2.25rem !important;
        font-size: 1.1rem !important;
    }

    /* Sections — more breathing room */
    .section-padding {
        padding: 7rem 0;
    }

    /* Feature cards — slightly more padding */
    .feature-card {
        padding: 3rem 2.25rem;
    }

    /* Profile cards — prevent over-stretching */
    .profile-card {
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }

    /* CTA rings — ensuring these stay as decorations without breaking layout width */
    .cta-ring1 {
        width: 44vw;
        height: 44vw;
        top: -10vw;
        right: -10vw;
    }

    .cta-ring2 {
        width: 54vw;
        height: 54vw;
        top: -15vw;
        right: -15vw;
    }

    .cta-orb1 {
        width: 35vw;
        height: 35vw;
    }
}

/* 1900px and above — ultra-wide */
@media (min-width: 1900px) {
    html {
        font-size: 20px;
        /* Strong scaling for ultra-wide */
    }

    .container {
        max-width: 1720px;
        /* Increased from 1600px */
    }

    .hero-search-card {
        max-width: 560px;
        /* Increased from 500px */
        margin-left: auto;
    }
}


/* Scaling DOWN for laptops and mobile */

@media (max-width: 1400px) {
    html {
        font-size: 15.5px;
    }
}

@media (max-width: 1199.98px) {
    html {
        font-size: 15px;
    }

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

@media (max-width: 991.98px) {
    html {
        font-size: 14.5px;
    }

    .section-padding {
        padding: 0rem 0.5rem;
        /* Added horizontal padding to protect deep shadows and layout gutters */
    }

    .hero-section {
        min-height: auto;
    }

    .hero-inner {
        padding: 4.375rem 0 5rem;
    }

    .hero-inner .row.gy-5 {
        --bs-gutter-y: 3.5rem;
        /* Slightly tighter vertical gap between text and card */
    }

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

    .hero-content p {
        max-width: 100%;
    }

    .hero-bg {
        background-position: center center;
        /* Better centering for diverse mobile aspect ratios */
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.6);
        /* Stronger overlay for mobile legibility */
        z-index: 1;
    }

    .hero-inner {
        z-index: 2;
    }

    .hero-search-card {
        margin-top: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .section-title {
        padding-top: 1.5rem;
    }

    .why-trust-strip {
        margin-bottom: 1.5rem;
    }

    .btn-secondary-custom {
        margin-bottom: 1.5rem;
    }

    .why-stat-num {
        font-size: 1.7rem;
        font-weight: 600;
    }

    .btn-primary-custom {
        margin-bottom: 1.5rem;
    }

    .about-image-wrap {
        margin-top: 1rem;
    }

    .step-connector {
        display: none;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .cta-section {
        padding: 2.375rem 0;
    }

    /* Navbar mobile */
    .main-navbar .navbar-collapse {
        background: #fff;
        padding: 1rem 0;
        border-top: 1px solid rgba(201, 162, 39, 0.15);
        margin-top: 0.625rem;
    }

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

    .main-navbar .d-flex {
        padding: 0.75rem 0 0.25rem;
        gap: 0.75rem;
    }

    .testi-slider {
        padding-bottom: 2rem !important;
    }

    .testi-card {
        padding: 1.5rem 2rem !important;
        padding-bottom: 1.75rem !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    .testi-section {
        padding-bottom: 2rem !important;
    }

    .testi-stars {
        margin-bottom: 0.75rem !important;
    }

    .testi-quote {
        font-size: 0.95rem !important;
        line-height: 1.55 !important;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 767.98px) {
    html {
        font-size: 13.5px;
    }

    .topbar .text-end {
        text-align: center !important;
        margin-top: 0.5rem;
    }

    .topbar .text-start {
        text-align: center !important;
    }

    .hero-inner {
        padding: 0.5rem 0px 2rem;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-card {
        flex-direction: row !important;
        align-items: stretch !important;
        background: #fff;
        min-height: 180px;
        border-radius: 12px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    }

    .profile-img-wrap {
        width: 38% !important;
        height: auto !important;
        aspect-ratio: auto !important;
        flex-shrink: 0;
    }

    .profile-img-wrap img {
        object-fit: cover !important;
        height: 100% !important;
    }

    .profile-body {
        width: 62% !important;
        padding: 0.85rem !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .profile-name {
        font-size: 1.05rem !important;
        margin-bottom: 0.35rem !important;
    }

    .srp-meta-row {
        font-size: 0.72rem !important;
        margin-bottom: 0.25rem !important;
        gap: 0.4rem 0.6rem !important;
    }

    .srp-tags {
        margin: 0.5rem 0 0.85rem !important;
        gap: 0.25rem !important;
    }

    .srp-tag {
        font-size: 0.65rem !important;
        padding: 0.1rem 0.5rem !important;
    }

    .profile-action {
        margin-top: 0.25rem !important;
        gap: 0.35rem !important;
    }

    .profile-action .btn-sm {
        padding: 0.4rem 0.4rem !important;
        font-size: 0.72rem !important;
    }

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

    .hero-content p {
        font-size: 0.95rem;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
    }

    .hero-cta {
        flex-direction: row !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 0.5rem !important;
    }

    .hero-cta .btn-primary-custom,
    .hero-cta .btn-outline-gold {
        width: auto !important;
        padding: 0.7rem 1rem !important;
        font-size: 0.8rem !important;
        flex: 1;
        max-width: 160px;
        justify-content: center;
        white-space: nowrap;
        border-width: 1.5px !important;
        height: 42px !important;
        display: flex !important;
        align-items: center !important;
    }

    .hero-cta .btn-outline-gold {
        background: transparent !important;
        color: var(--gold) !important;
        border-color: var(--gold) !important;
    }

    .contact-section {
        margin-bottom: 1rem;
    }

    .section-title h2 {
        font-size: 1.9rem;
    }

    .stats-strip .col-md-3 {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stats-strip .col-md-3:last-child {
        border-bottom: none;
    }

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

    .main-navbar .navbar-brand img {
        height: 4rem;
    }

    .hero-search-card-body {
        padding: 1.5rem 1.25rem 1.75rem;
    }

    .hero-search-card .btn-search {
        width: 100%;
        min-width: 100%;
        padding: 0.9rem 2rem;
    }

    .hero-trust-badges {
        gap: 1rem;
    }

    .trust-badge {
        font-size: 0.8rem;
    }

    .cta-section h2 {
        font-size: 1.9rem;
    }

    .cta-section p {
        font-size: 0.95rem;
    }

    /* Search Page Fixes */
    .smart-search-bar {
        padding: 0.75rem 0;
        top: 0 !important;
    }

    .ssb-input-row {
        gap: 0.5rem;
    }

    .ssb-input-wrap {
        padding: 0 0.75rem 0 1rem;
    }

    .ssb-btn {
        padding: 0.85rem 1.25rem;
        font-size: 0.85rem;
    }

    .filter-sidebar {
        margin-top: 1rem;
        border-radius: 12px;
        box-shadow: var(--shadow-sm);
    }

    .filter-range-row {
        gap: 4px;
    }

    .filter-range-row .filter-select {
        font-size: 0.75rem;
        padding: 0.4rem 0.25rem;
    }

    .filter-toggle {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }

    .filter-apply-btn {
        width: calc(100% - 2rem);
        margin: 1rem;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* Checkbox Hack Accordion */
    #mobileFilterCheckbox:checked ~ .filter-mobile-wrapper {
        max-height: 2500px !important;
        opacity: 1 !important;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    #mobileFilterCheckbox:checked ~ .filter-sidebar-header .transition-icon {
        transform: rotate(180deg) !important;
        background: var(--primary);
        color: #fff;
    }

    .filter-sidebar-header {
        cursor: pointer;
        display: flex;
        align-items: center;
        width: 100%;
        user-select: none;
        padding: 0.75rem 0;
    }

    .transition-icon {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        color: var(--primary);
        font-size: 0.75rem;
        width: 28px;
        height: 28px;
        background: var(--gold-pale);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .filter-mobile-wrapper {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
        opacity: 0;
        /* Remove display: none to allow smooth transition */
    }

    /* Keep it visible on desktop */
    @media (min-width: 992px) {
        .filter-mobile-wrapper {
            max-height: none !important;
            opacity: 1 !important;
            overflow: visible !important;
            padding: 0 !important;
        }
    }

    .results-controls {
        width: 100%;
        justify-content: space-between;
    }

}

@media (max-width: 575.98px) {
    html {
        font-size: 13.2px;
    }

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

    .hero-search-card-header h3 {
        font-size: 1.35rem;
    }

    .hero-tag {
        font-size: 0.75rem;
        margin-bottom: 1rem;
        padding: 0.3rem 0.85rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-search-card .field-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .hero-search-card .form-divider {
        display: none;
        /* Hide dividers when fields are stacked for cleaner look */
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .about-heading {
        font-size: 1.7rem;
        margin-bottom: 1rem;
    }

    .auth-page-container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .couple-overlay {
        opacity: 1;
    }

    .profile-tags {
        display: none;
    }
}

/* ── OFFCANVAS MOBILE NAV ── */
.mobile-offcanvas {
    width: 300px !important;
    max-width: 80vw;
    border-left: 3px solid var(--gold);
}

.mobile-offcanvas .offcanvas-header {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

.mobile-offcanvas .btn-close {
    opacity: 0.6;
}

.mobile-offcanvas .offcanvas-body {
    padding: 1.25rem;
}

.mobile-offcanvas .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.6rem 0.5rem;
    border-radius: 6px;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}

.mobile-offcanvas .nav-link:hover,
.mobile-offcanvas .nav-link.active {
    background: rgba(123, 13, 30, 0.06);
    color: var(--primary);
}

.mobile-offcanvas .nav-link .fa-chevron-down {
    transition: transform 0.25s ease;
    color: var(--primary);
    /* Changed from gold to red */
}

.mobile-offcanvas .nav-link[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}



.mobile-offcanvas .d-flex.flex-column a {
    justify-content: flex-start !important;
    padding-left: 1.25rem;
}

.cta-btns {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
}

@media (max-width: 991.98px) {
    .uds-mobile-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: rgba(180, 10, 3, 0.1);
        color: var(--primary);
        border: none;
        border-radius: 50%;
        font-size: 1.1rem;
        transition: all 0.2s;
    }

    .uds-mobile-close:hover {
        background: var(--primary);
        color: #fff;
    }
}

@media (min-width: 992px) {
    .uds-mobile-close {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .btn-cta-gold,
    .btn-cta-ghost {
        flex: 1 1 50% !important;
        width: 50% !important;
        padding: 0.75rem 0.5rem !important;
        font-size: 0.78rem !important;
        min-width: 0 !important;
        justify-content: center;
        white-space: nowrap !important;
        display: flex !important;
    }
}