/**
 * Main Stylesheet for MLS Site for Realtors
 * 
 * This file contains all the custom CSS styles for the website.
 * 
 * @package MLS_Site_For_Realtors
 */

/* CSS Variables */
:root {
    --primary-color: #1e40af;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-radius: 16px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
}

.display-5 {
    font-size: 2rem;
    font-weight: 700;
}

.lead {
    font-size: 1.1rem;
    font-weight: 300;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #34495e;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand img {
    max-height: 40px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    transition: var(--transition);
    font-size: 1rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-item.active .nav-link {
    color: var(--primary-color);
}

/* Mobile Navigation Consistency */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
}

/* Scroll offset for fixed navbar */
html {
    scroll-padding-top: 100px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e293b 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e293b 100%);
}

.min-vh-50 {
    min-height: 50vh;
}

.hero-actions .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-icon {
    color: var(--primary-color);
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 2px solid #e2e8f0;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.pricing-card.border-primary {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.price {
    font-size: 1.5rem;
}

/* Process Steps */
.process-step {
    padding: 2rem 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Hero Tag */
.hero-tag {
    display: inline-block;
}

/* Problem Cards */
.problems-grid {
    padding: 2rem 0;
}

.problem-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    height: 100%;
    transition: var(--transition);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 100%);
    transition: var(--transition);
}

.problem-card-1 {
    box-shadow: 0 4px 6px -1px rgba(147, 197, 253, 0.15), 0 2px 4px -1px rgba(147, 197, 253, 0.08);
}

.problem-card-1::before {
    background: linear-gradient(90deg, rgba(219, 234, 254, 0.6) 0%, rgba(191, 219, 254, 0.4) 100%);
}

.problem-card-2 {
    box-shadow: 0 4px 6px -1px rgba(110, 231, 183, 0.15), 0 2px 4px -1px rgba(110, 231, 183, 0.08);
}

.problem-card-2::before {
    background: linear-gradient(90deg, rgba(209, 250, 229, 0.6) 0%, rgba(167, 243, 208, 0.4) 100%);
}

.problem-card-3 {
    box-shadow: 0 4px 6px -1px rgba(252, 211, 77, 0.15), 0 2px 4px -1px rgba(252, 211, 77, 0.08);
}

.problem-card-3::before {
    background: linear-gradient(90deg, rgba(254, 243, 199, 0.6) 0%, rgba(253, 230, 138, 0.4) 100%);
}

.problem-card:hover {
    transform: translateY(-8px);
}

.problem-card-1:hover {
    box-shadow: 0 20px 25px -5px rgba(147, 197, 253, 0.2), 0 10px 10px -5px rgba(147, 197, 253, 0.1);
}

.problem-card-2:hover {
    box-shadow: 0 20px 25px -5px rgba(110, 231, 183, 0.2), 0 10px 10px -5px rgba(110, 231, 183, 0.1);
}

.problem-card-3:hover {
    box-shadow: 0 20px 25px -5px rgba(252, 211, 77, 0.2), 0 10px 10px -5px rgba(252, 211, 77, 0.1);
}

.problem-icon {
    margin-bottom: 1.5rem;
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.problem-card-1 .icon-box {
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.7) 0%, rgba(191, 219, 254, 0.5) 100%);
    border-color: rgba(147, 197, 253, 0.4);
}

.problem-card-2 .icon-box {
    background: linear-gradient(135deg, rgba(209, 250, 229, 0.7) 0%, rgba(167, 243, 208, 0.5) 100%);
    border-color: rgba(110, 231, 183, 0.4);
}

.problem-card-3 .icon-box {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.7) 0%, rgba(253, 230, 138, 0.5) 100%);
    border-color: rgba(252, 211, 77, 0.4);
}

.icon-box i {
    color: #64748b;
    transition: var(--transition);
}

.problem-card-1 .icon-box i {
    color: rgba(59, 130, 246, 0.7);
}

.problem-card-2 .icon-box i {
    color: rgba(16, 185, 129, 0.7);
}

.problem-card-3 .icon-box i {
    color: rgba(245, 158, 11, 0.7);
}

.problem-card:hover .icon-box {
    transform: scale(1.1);
}

.problem-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.problem-description {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsive - Maintain Desktop Look and Feel */
@media (max-width: 991.98px) {
    .problem-card {
        padding: 2.5rem 2rem;
        margin-bottom: 1.5rem;
    }
    
    .icon-box {
        width: 60px;
        height: 60px;
    }
    
    .icon-box i {
        font-size: 2rem;
    }
    
    .problem-title {
        font-size: 1.25rem;
    }
    
    .problem-description {
        font-size: 1rem;
    }
}

/* Solution Cards */
.solution-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 2px solid #e2e8f0;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.solution-card.border-primary {
    border-color: var(--primary-color);
}

.solution-card.border-success {
    border-color: var(--success-color);
}

.solution-icon {
    color: var(--primary-color);
}

/* Results Cards */
.result-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.result-number {
    font-size: 3rem;
    line-height: 1;
}

/* Results Badge */
.results-badge {
    margin-top: 1rem;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature-icon {
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

/* Property Cards */
.property-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 2rem;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.property-image {
    position: relative;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.property-price {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 600;
}

.property-details {
    padding: 1.5rem;
}

.property-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.property-address {
    color: #6c757d;
    margin-bottom: 1rem;
}

.property-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.property-feature {
    text-align: center;
}

.property-feature i {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.property-feature span {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Search Form */
.search-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.search-form .form-group {
    margin-bottom: 1rem;
}

.search-form .form-control {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

/* Agent Cards */
.agent-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    margin-bottom: 2rem;
}

.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.agent-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--light-color);
}

.agent-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.agent-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.agent-contact {
    margin-top: 1rem;
}

.agent-contact a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.agent-contact a:hover {
    color: var(--secondary-color);
}

/* Site Footer */
.site-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.site-footer .footer-brand,
.site-footer .footer-section-title {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.site-footer .footer-link {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.site-footer .footer-link:hover {
    color: white;
}

.footer-social-links .social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: var(--transition);
}

.footer-social-links .social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Footer Mobile Consistency */
@media (max-width: 768px) {
    .site-footer {
        padding: 2.5rem 0 1rem;
    }
    
    .site-footer .footer-brand,
    .site-footer .footer-section-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .site-footer .footer-link {
        font-size: 0.9rem;
    }
    
    .footer-social-links .social-link {
        width: 36px;
        height: 36px;
        line-height: 36px;
    }
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: var(--box-shadow) !important;
}

.rounded {
    border-radius: var(--border-radius) !important;
}

/* Responsive Design - Maintain Desktop Look and Feel */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .features-section {
        padding: 4rem 0;
    }
    
    .cta-section {
        padding: 4rem 0;
    }
    
    .hero-actions .btn {
        display: inline-block;
        width: auto;
        margin-right: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-actions .btn:last-child {
        margin-right: 0;
    }
    
    .property-features {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .property-feature {
        margin-bottom: 0;
    }
    
    /* Maintain card consistency on mobile */
    .service-card,
    .feature-card,
    .solution-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .process-step {
        padding: 2rem 1rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.6rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .search-form {
        padding: 1.5rem;
    }
    
    .property-details {
        padding: 1.5rem;
    }
    
    .agent-card {
        padding: 1.5rem;
    }
    
    /* Maintain card consistency on small mobile */
    .service-card,
    .feature-card,
    .solution-card,
    .problem-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .process-step {
        padding: 1.5rem 1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    .cta-section,
    .site-footer {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
    }
}
