/* Enhanced Styles for Real Estate Landing Page */

/* ===== GENERAL ENHANCEMENTS ===== */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #A5D6A7;
    --accent-color: #FF9800;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --background-light: #F9F9F9;
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 6px 12px rgba(0, 0, 0, 0.15);
    --shadow-dark: 0 10px 25px rgba(0, 0, 0, 0.2);
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

body {
    scroll-behavior: smooth;
}

/* Subtle texture background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: 
        linear-gradient(135deg, rgba(245, 245, 245, 0.03) 25%, transparent 25%) -10px 0,
        linear-gradient(225deg, rgba(245, 245, 245, 0.03) 25%, transparent 25%) -10px 0,
        linear-gradient(315deg, rgba(245, 245, 245, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, rgba(245, 245, 245, 0.03) 25%, transparent 25%);
    background-size: 20px 20px;
    z-index: -1;
}

/* ===== STICKY NAVIGATION ===== */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.sticky-nav.hidden {
    transform: translateY(-100%);
}

.sticky-nav.transparent {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Enhanced navigation links */
.nav-links a {
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-links a:after {
    background-color: var(--primary-color);
    height: 3px;
    bottom: -5px;
    border-radius: 3px;
}

/* ===== ENHANCED HERO SECTION ===== */
.hero {
    height: 100vh;
    position: relative;
}

.hero-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
}

.hero-content {
    max-width: 650px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Enhanced CTA Button */
.btn-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

.btn-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-cta:hover::after {
    opacity: 1;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

/* Mobile optimization for back-to-top button */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 100px; /* Position above the floating CTA */
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .back-to-top {
        bottom: 90px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* ===== ENHANCED SECTION STYLES ===== */
.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.section-title.centered::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== ENHANCED CARDS & HOVER EFFECTS ===== */
.card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.card:hover .card-overlay {
    transform: translateY(-10px);
}

/* ===== ENHANCED FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    outline: none;
}

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

/* ===== LANGUAGE TOGGLE ===== */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background-color: white;
    border-radius: 30px;
    padding: 5px;
    box-shadow: var(--shadow-light);
    display: flex;
}

.language-toggle button {
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-toggle button.active {
    background-color: var(--primary-color);
    color: white;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid rgba(76, 175, 80, 0.5);
    outline-offset: 2px;
}

/* Skip to content link for keyboard users */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    z-index: 1001;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .btn-cta {
        padding: 12px 30px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn-cta {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    /* Larger touch targets for mobile */
    .nav-links a, 
    .btn,
    .form-control,
    .plan-option {
        padding: 12px;
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improved readability on small screens */
    p, li, .form-label {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* ===== INTERACTIVE MAP STYLES ===== */
.interactive-map {
    position: relative;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.map-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-marker::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.map-marker:hover {
    transform: rotate(-45deg) scale(1.2);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
}

.map-tooltip {
    position: absolute;
    background-color: white;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: var(--shadow-medium);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.map-marker:hover + .map-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ===== CONTACT FLOATING BUTTON ===== */
.contact-float {
    position: fixed;
    bottom: 80px;
    left: 30px;
    background-color: var(--accent-color);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

.contact-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-dark);
}

.contact-float i {
    font-size: 24px;
}

.contact-options {
    position: absolute;
    bottom: 75px;
    left: 0;
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: var(--shadow-medium);
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.contact-float:hover .contact-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-option {
    display: flex;
    align-items: center;
    padding: 10px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-option:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
}

.contact-option i {
    margin-right: 10px;
    font-size: 18px;
}

/* Contact Section Enhancements */
.contact-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* Subtle abstract texture for contact section */
.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(230, 230, 230, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 80% 40%, rgba(230, 230, 230, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 40% 70%, rgba(230, 230, 230, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 90%, rgba(230, 230, 230, 0.03) 0%, transparent 20%);
    z-index: -1;
}

.contact-info {
    padding: 40px;
    background: linear-gradient(135deg, #4A6D7C, #2C4251);
    color: white;
    border-radius: 10px 0 0 10px;
    position: relative;
    overflow: hidden;
}

/* Subtle abstract texture for contact info */
.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    z-index: 0;
    opacity: 0.1;
}

.contact-info > * {
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.contact-methods {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-method:hover .contact-icon {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
}

.contact-details h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.contact-details p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.contact-details a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-details a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.contact-social {
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.contact-social h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.contact-social .social-icons {
    display: flex;
    gap: 15px;
}

.contact-social .social-icons a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-social .social-icons a:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.3);
}

.contact-form {
    padding: 40px;
    background-color: white;
    border-radius: 0 10px 10px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #4A6D7C;
    box-shadow: 0 0 0 3px rgba(74, 109, 124, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #aaa;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

@media (max-width: 992px) {
    .contact-form-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        border-radius: 10px 10px 0 0;
        padding: 35px;
    }
    
    .contact-form {
        border-radius: 0 0 10px 10px;
        padding: 35px;
    }
    
    .contact-methods {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .contact-methods {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .contact-info, .contact-form {
        padding: 25px 20px;
    }
    
    .contact-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .contact-details h4 {
        font-size: 16px;
    }
    
    .contact-details p {
        font-size: 14px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .contact-social .social-icons {
        justify-content: center;
    }
}
