/* Custom CSS for Alex Young Real Estate Website */

:root {
    --primary-color: #10254e;
    --primary-dark: #0d1e3e;
    --primary-light: #f1eeee;
    --secondary-color: #ab987a;
    --accent-color: #ab987a;
    --text-dark: #10254e;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --bg-light: #f1eeee;
    --shadow-sm: 0 1px 2px 0 rgba(16, 37, 78, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(16, 37, 78, 0.1), 0 2px 4px -1px rgba(16, 37, 78, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(16, 37, 78, 0.1), 0 4px 6px -2px rgba(16, 37, 78, 0.05);
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 80px; /* Account for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
}

.display-4, .display-5, .display-6 {
    font-weight: 700;
}

/* Fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.loaded {
    opacity: 1;
    transform: translateY(0);
}

.navbar-brand.fade-in {
    transition-delay: 0.2s;
}

.navbar-nav.fade-in {
    transition-delay: 0.4s;
}

/* Navigation Styling */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: transparent !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    border: none;
    box-shadow: none;
    width: 100%;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    color: var(--text-dark) !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

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

/* Remove text shadow when navbar is scrolled */
.navbar.scrolled .navbar-brand,
.navbar.scrolled .navbar-nav .nav-link {
    text-shadow: none;
}

/* Hamburger menu styling */
.navbar-toggler {
    border: none !important;
    background-color: white !important;
    padding: 8px 10px !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 2px 8px rgba(16, 37, 78, 0.2) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2310254e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='1.5' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 22px !important;
    height: 16px !important;
}

/* Mobile navigation styling */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        color: white !important;
        text-shadow: none !important;
    }
    
    .navbar-nav .nav-link:hover {
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    .navbar-brand {
        color: white !important;
        text-shadow: none !important;
    }
    
    .navbar-collapse {
        background-color: var(--primary-color);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-image-container {
    min-height: 100vh;
}

.hero-image-container img {
    object-fit: cover;
    height: 100vh;
}

.object-cover {
    object-fit: cover;
}

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

/* Social icons styling */
.hero-section .position-absolute a {
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-section .position-absolute a:hover {
    background-color: var(--primary-color) !important;
    transform: scale(1.1);
}

/* Client Programs Text Override */
.bg-primary h5,
.bg-primary p,
.bg-primary strong {
    color: white !important;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

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

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

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

/* Cards */
.card {
    border-radius: 1rem;
    transition: all 0.3s ease;
}

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

.card-img-top {
    border-radius: 1rem 1rem 0 0;
}

/* Forms */
.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-control-lg, .form-select-lg {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: #1e293b !important;
}

footer a:hover {
    color: var(--primary-light) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

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

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

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

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

/* Program cards hover effects */
.program-card:hover .position-absolute {
    background: rgba(0,0,0,0.6) !important;
}

.program-card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-section .row {
        flex-direction: column;
    }
    
    .hero-image-container {
        min-height: 50vh;
    }
    
    .hero-image-container img {
        height: 50vh;
    }
    
    .hero-content {
        text-align: center;
        padding: 3rem 1.5rem !important;
    }
    
    .hero-content .d-flex {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-content .d-flex {
        flex-direction: column;
        gap: 0.5rem !important;
    }
}

@media (max-width: 576px) {
    .hero-image {
        width: 200px;
        height: 200px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
}

/* Blog Styling */
.blog-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.blog-post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content ul, .blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

/* Contact Form Enhancements */
.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Accordion Customization */
.accordion-button {
    background: white;
    border: none;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary-color);
}

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

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}
