/* Mobile Responsive CSS for Bhenito Website */

/* Base Mobile-First Approach */
:root {
    --primary-color: #0a2342;
    --secondary-color: #D4AF37;
    --accent-color: #FFD700;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --gold-gradient: linear-gradient(45deg, #D4AF37, #FFD700);
    --premium-gold: #B8860B;
    --light-gold: #F4E4BC;
    --black-bg: #000000;
    --white-text: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Global Mobile Optimizations */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Mobile Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
    padding: 0.5rem 0;
    transition: var(--transition);
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
    transition: var(--transition);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    background: transparent;
    transition: var(--transition);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin: 0.25rem 0;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    background: var(--gold-gradient);
    color: #000 !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background: var(--gold-gradient);
    color: #000 !important;
}

/* Mobile Hero Section */
.hero-section {
    position: relative;
    min-height: 60vh;
    overflow: hidden;
}

.carousel-item {
    height: 60vh;
    min-height: 400px;
}

.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: brightness(0.7);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    bottom: 2rem;
    left: 1rem;
    right: 1rem;
    margin: 0 auto;
    max-width: 90%;
}

.carousel-caption h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Mobile Property Cards */
.property-template-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 2rem;
}

.property-template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.property-main-img {
    height: 250px;
    object-fit: cover;
    width: 100%;
    transition: var(--transition);
}

.property-template-card:hover .property-main-img {
    transform: scale(1.05);
}

.property-info-card {
    padding: 1.5rem;
    background: #fff;
}

.property-info-card h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.property-info-card ul {
    margin-bottom: 1.5rem;
}

.property-info-card li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Mobile Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #B8860B, #D4AF37);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    color: #000;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Mobile Testimonials */
.testimonial-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Mobile Footer */
footer {
    background: var(--primary-color);
    color: #fff;
    padding: 3rem 0 1rem;
}

footer h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--secondary-color);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.5rem 0.5rem 0;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: #000 !important;
    transform: translateY(-3px);
}

/* Mobile WhatsApp Float */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    z-index: 1000;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Mobile Badges */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.8rem;
}

.badge.bg-warning {
    background: var(--gold-gradient) !important;
    color: #000 !important;
}

/* Mobile Sections */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gold-gradient);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Mobile Forms */
.form-control {
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    border: 2px solid #eee;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.1);
    outline: none;
}

/* Mobile Modal */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 1.5rem;
}

/* Mobile Utilities */
.text-primary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background: var(--gold-gradient) !important;
    color: #000 !important;
}

/* Mobile Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Callback Widget */
#callback-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 300px;
    max-width: 90vw;
}

#open-callback-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9998;
    background: var(--secondary-color);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    color: #000;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: var(--transition);
}

#open-callback-widget:hover {
    transform: scale(1.1);
    background: var(--premium-gold);
}

/* Mobile Responsive Breakpoints */
@media (max-width: 576px) {
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .property-info-card {
        padding: 1rem;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
    
    footer {
        padding: 2rem 0 1rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        right: 15px;
        bottom: 15px;
    }
    
    #callback-widget {
        left: 15px;
        right: 15px;
        width: auto;
    }
    
    #open-callback-widget {
        left: 15px;
        bottom: 15px;
    }
    
    /* Mobile Calculator Improvements */
    .calc-section .row {
        flex-direction: column-reverse;
    }
    
    .calc-section .col-lg-5,
    .calc-section .col-lg-7 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .calc-section .form-control {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .calc-section .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile Property Cards */
    .property-card {
        margin-bottom: 1rem;
    }
    
    .property-card .card-body {
        padding: 1rem;
    }
    
    .property-card .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile Navigation */
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        margin: 0.25rem 0;
        border-radius: 8px;
    }
    
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: rgba(255, 255, 255, 0.95);
        border: none;
        box-shadow: none;
        border-radius: 8px;
        margin: 0.5rem 0;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border-radius: 4px;
        margin: 0.25rem 0;
    }
    
    /* Mobile Navbar Brand */
    .navbar-brand img {
        max-height: 40px !important;
    }
    
    /* Mobile Navbar Toggler */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
        font-size: 1.25rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    /* Mobile Forms */
    .form-control {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile Tables */
    .table-responsive {
        font-size: 0.8rem;
    }
    
    /* Mobile Accordions */
    .accordion-button {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .accordion-body {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
    
    /* Mobile Chart Container */
    .chart-container {
        height: 250px !important;
        margin: 1rem 0;
    }
    
    /* Mobile Output Cards */
    .calc-section .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .calc-section .fs-5,
    .calc-section .fs-6 {
        font-size: 1rem !important;
    }
    
    /* Mobile Scenario Buttons */
    .scenario-btn {
        flex: 1;
        min-width: 60px;
        margin: 0.25rem;
    }
    
    /* Mobile Form Range */
    .form-range {
        margin: 0.5rem 0;
    }
    
    /* Mobile Recalculate Button */
    #calcRecompute {
        width: 100%;
        margin-top: 1rem !important;
    }
    
    /* Mobile Solicitor Page */
    .solicitor-hero {
        padding: 50px 0 30px 0 !important;
    }
    
    .solicitor-hero h1 {
        font-size: 1.75rem !important;
    }
    
    .solicitor-hero .lead {
        font-size: 1rem !important;
        padding: 0 1rem;
    }
    
    .solicitor-hero img {
        max-width: 80px !important;
        margin-bottom: 15px !important;
    }
    
    .solicitor-section {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .solicitor-section h2 {
        font-size: 1.25rem !important;
    }
    
    .solicitor-section p {
        font-size: 0.95rem !important;
    }
    
    .service-card {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .service-card h3 {
        font-size: 1.1rem !important;
    }
    
    .service-card p {
        font-size: 0.9rem !important;
    }
    
    .service-card i {
        font-size: 2.5rem !important;
    }
    
    .solicitor-img {
        max-width: 100% !important;
        margin: 0 auto 1.5rem auto !important;
    }
    
    .btn-premium {
        width: 100% !important;
        margin: 0.5rem 0 !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Mobile Search Bar */
    .search-bar {
        flex-direction: column !important;
        padding: 1rem !important;
        margin: -1.5rem auto 2rem auto !important;
    }
    
    .search-bar select,
    .search-bar input,
    .search-bar button {
        width: 100% !important;
        margin-bottom: 0.75rem !important;
        font-size: 1rem !important;
        padding: 0.75rem !important;
    }
    
    /* Mobile Property Cards */
    .property-card {
        margin-bottom: 1.5rem;
    }
    
    .property-card img {
        height: 200px !important;
    }
    
    .property-card-body {
        padding: 1rem !important;
    }
    
    .property-card-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .property-card-price {
        font-size: 1.25rem !important;
    }
    
    .property-card-yield {
        font-size: 1rem !important;
    }
    
    /* Mobile Filter Buttons */
    .filter-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile Hero Section */
    .hero-section {
        min-height: 50vh !important;
    }
    
    .hero-section .display-5,
    .hero-section .display-4 {
        font-size: 1.75rem !important;
    }
    
    .hero-section .lead {
        font-size: 1rem !important;
    }
    
    .hero-section .btn-lg {
        font-size: 0.9rem !important;
        padding: 0.75rem 1.5rem !important;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile CTA Buttons */
    .btn-group-mobile {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group-mobile .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile Statistics */
    .stats-section .row {
        text-align: center;
    }
    
    .stats-section .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .stats-section h3 {
        font-size: 1.5rem !important;
    }
    
    .stats-section p {
        font-size: 0.9rem !important;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .carousel-item {
        height: 70vh;
        min-height: 500px;
    }
    
    .carousel-caption {
        padding: 2rem;
        bottom: 3rem;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .property-main-img {
        height: 300px;
    }
    
    /* Tablet Calculator */
    .calc-section .col-lg-5,
    .calc-section .col-lg-7 {
        margin-bottom: 1.5rem;
    }
    
    /* Tablet Property Cards */
    .property-card .btn {
        width: auto;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* Tablet Navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Tablet Forms */
    .form-control {
        font-size: 0.95rem;
        padding: 0.7rem;
    }
    
    /* Tablet Search Bar */
    .search-bar {
        padding: 1.25rem !important;
    }
    
    .search-bar select,
    .search-bar input,
    .search-bar button {
        font-size: 0.9rem !important;
        padding: 0.6rem !important;
    }
    
    /* Tablet Property Cards */
    .property-card img {
        height: 250px !important;
    }
    
    .property-card-body {
        padding: 1.25rem !important;
    }
    
    .property-card-details {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .carousel-item {
        height: 80vh;
        min-height: 600px;
    }
    
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .property-main-img {
        height: 350px;
    }
}

@media (min-width: 992px) {
    .carousel-item {
        height: 90vh;
        min-height: 700px;
    }
    
    .carousel-caption h1 {
        font-size: 3rem;
    }
    
    .property-main-img {
        height: 400px;
    }
    
    .navbar-nav .nav-link {
        margin: 0 0.25rem;
    }
}

/* Mobile Navigation Overlay */
#mobileNavOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    padding: 1rem 0;
    transition: var(--transition);
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.mobile-nav-link:hover {
    color: var(--secondary-color);
    transform: translateX(10px);
}

#closeMobileNav {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 2010;
}

/* Hide mobile overlay on desktop */
@media (min-width: 992px) {
    #mobileNavOverlay {
        display: none !important;
    }
}

/* Mobile Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--secondary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile Focus States */
.nav-link:focus,
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Mobile Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    #callback-widget,
    #open-callback-widget {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .carousel-caption {
        position: static;
        background: none;
        color: #000;
    }
}
