/* Cardinal Property Professional Design System */
:root {
    /* Enhanced Color Palette - More Professional with Rich Color Depth */
    --primary-color: #b91c1c;           /* More sophisticated red */
    --primary-hover-color: #991b1b;     /* Deeper red for hover states */
    --primary-light-color: #fee2e2;     /* Refined light red for backgrounds */
    --secondary-color: #1e293b;         /* Rich dark blue/slate for better contrast */
    --secondary-light-color: #334155;   /* Lighter slate for hover states */
    --tertiary-color: #f8fafc;          /* Softer light gray for backgrounds */
    --tertiary-light-color: #ffffff;    /* White */
    --dark-color: #0f172a;              /* Very dark slate for text */
    --light-color: #ffffff;             /* White */
    --success-color: #047857;           /* Refined green */
    --info-color: #0369a1;              /* Refined blue */
    --warning-color: #b45309;           /* Refined amber */
    --danger-color: #b91c1c;            /* Same as primary for consistency */
    
    /* Typography - Keeping the elegant combination */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', system-ui, sans-serif;
    
    /* Enhanced Shadow System - More refined depth */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    /* Animation Timing */
    --transition-fast: 150ms;
    --transition-normal: 250ms;
    --transition-slow: 450ms;
    
    /* Spacing System - More comprehensive */
    --spacing-xs: 0.25rem;  /* 4px */
    --spacing-sm: 0.5rem;   /* 8px */
    --spacing-md: 1rem;     /* 16px */
    --spacing-lg: 1.5rem;   /* 24px */
    --spacing-xl: 2rem;     /* 32px */
    --spacing-2xl: 3rem;    /* 48px */
    --spacing-3xl: 4rem;    /* 64px */
    
    /* Border Radius System - More refined */
    --radius-sm: 0.125rem;  /* 2px */
    --radius-md: 0.375rem;  /* 6px */
    --radius-lg: 0.5rem;    /* 8px */
    --radius-xl: 0.75rem;   /* 12px */
    --radius-full: 9999px;
}

/* Enhanced Typography System - More Polished and Professional */
body {
    font-family: var(--font-body);
    font-size: 17px; /* Sweet spot for readability */
    line-height: 1.65; /* Improved line height for better readability */
    color: var(--secondary-color); /* More refined dark slate color for main text */
    background-color: var(--tertiary-color); /* Slightly off-white for better eye comfort */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em; /* Slightly more spacing for better text flow */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2; /* Tighter line height for headings */
    margin-top: 0; /* Remove default top margin */
    margin-bottom: 1.5rem; /* Consistent spacing below headings */
    color: var(--secondary-color); /* Consistent color with body for cohesiveness */
    letter-spacing: -0.015em; /* Refined letter spacing */
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    letter-spacing: -0.025em;
    line-height: 1.1; /* Extra tight for large headings */
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 2.25rem);
    letter-spacing: -0.015em;
    line-height: 1.2;
}

h4 {
    font-size: clamp(1.2rem, 2vw, 1.75rem);
    letter-spacing: -0.01em;
}

h5 {
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
}

h6 {
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    letter-spacing: 0;
}

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    max-width: 70ch; /* Limit line length for optimal readability */
}

/* Text selection styling */
::selection {
    background-color: var(--primary-light-color);
    color: var(--primary-color);
}

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-tertiary { color: var(--tertiary-color); }
.text-light { color: var(--light-color); }
.text-dark { color: var(--dark-color); }
.text-success { color: var(--success-color); }
.text-info { color: var(--info-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }

.bg-primary { background-color: var(--primary-color); }
.bg-primary-light { background-color: var(--primary-light-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-secondary-light { background-color: var(--secondary-light-color); }
.bg-tertiary { background-color: var(--tertiary-color); }
.bg-tertiary-light { background-color: var(--tertiary-light-color); }
.bg-light { background-color: var(--light-color); }
.bg-dark { background-color: var(--dark-color); }

/* Enhanced Button System - More Professional and Mobile-Friendly */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem; /* Balanced padding for all devices */
    font-weight: 600; /* Semi-bold for better readability */
    line-height: 1.15;
    font-size: 1rem; /* Base size */
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1); /* Custom easing for smoother transitions */
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.01em;
    white-space: nowrap;
    user-select: none; /* Prevent text selection on buttons */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    touch-action: manipulation; /* Optimize for touch */
}

/* Improved focus states for accessibility */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 185, 28, 28), 0.4); /* Using RGB values for opacity */
    z-index: 1; /* Ensure focus ring is visible */
}

.btn:active {
    transform: translateY(1px); /* Subtle press effect */
    box-shadow: var(--shadow-sm);
}

/* Enhanced icon buttons */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}

.btn-icon i, .btn-icon svg {
    font-size: 1.1em;
    flex-shrink: 0; /* Prevent icon from shrinking */
    transition: transform var(--transition-normal) ease;
}

/* Improved hover effect for icon buttons */
.btn-icon:hover i, .btn-icon:hover svg {
    transform: translateX(2px); /* Subtle movement on hover */
}

/* Primary button - Cardinal red */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

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

/* Secondary button - White with red border */
.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-weight: 500;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--primary-light-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Tertiary button - Slate background */
.btn-tertiary {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 500;
}

.btn-tertiary:hover, .btn-tertiary:focus {
    background-color: var(--secondary-light-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Dark button */
.btn-dark {
    background-color: var(--dark-color);
    color: white;
    font-weight: 500;
}

.btn-dark:hover, .btn-dark:focus {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Outline button */
.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid currentColor;
    font-weight: 500;
}

.btn-outline:hover, .btn-outline:focus {
    background-color: var(--primary-light-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Button sizes - Better Touch Targets for Mobile */
.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    min-height: 3.5rem; /* Ensure good touch target */
}

.btn-md {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-height: 3rem; /* Ensure good touch target */
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    min-height: 2.5rem; /* Ensure good touch target */
}

/* Disabled state */
.btn:disabled, .btn.disabled {
    opacity: 0.65;
    pointer-events: none;
    box-shadow: none;
}

/* Full width button for mobile */
.btn-full {
    width: 100%;
}

/* Card System */
.card {
    background-color: white;
    border-radius: var(--radius-md);
    border: 1px solid #ddd; /* Light border for definition */
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal) ease;
    margin-bottom: 1.5rem; /* Space between cards */
}

.card:hover {
    transform: translateY(-3px); /* Subtle lift, not too much movement for older users */
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color); /* Red border on hover for clear feedback */
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--secondary-light-color);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--secondary-light-color);
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-size: 1.75rem; /* Larger title */
    margin-bottom: 0.75rem; /* More space below */
    color: var(--primary-color); /* Red titles for emphasis */
    font-weight: 700; /* Bolder */
}

.card-subtitle {
    font-size: 1.125rem; /* Larger subtitle */
    color: var(--secondary-color);
    margin-bottom: 1.25rem; /* More space below */
    font-weight: 600; /* Semi-bold */
}

.card-text {
    margin-bottom: 1.25rem; /* More space below paragraphs */
    font-size: 1.125rem; /* Larger text */
    line-height: 1.6; /* More line spacing */
}

.property-card, .blog-card {
    transition: transform var(--transition-normal) ease, box-shadow var(--transition-normal) ease;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100%;
}

.property-card:hover, .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Enhanced Hero Section System - More Professional and Impactful */
.hero {
    background-color: var(--secondary-color);
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    overflow: hidden; /* Prevent background overflow */
}

/* Improved overlay gradient for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.65) 0%, 
        rgba(15, 23, 42, 0.85) 100%); /* More sophisticated gradient */
    z-index: 1;
}

/* Optional subtle texture overlay for depth */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23ffffff' fill-opacity='0.07' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
    opacity: 0.15;
    z-index: 2;
    pointer-events: none;
}

/* Improved hero content */
.hero-content {
    position: relative;
    z-index: 3; /* Above both overlays */
    padding: 7rem 0; /* More vertical space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* More impactful heading */
.hero-content h1 {
    font-size: clamp(2.5rem, 7vw, 4.25rem);
    font-weight: 700;
    letter-spacing: -0.03em; /* Tighter letter spacing for impact */
    margin-bottom: 1.75rem;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); /* Enhanced text shadow */
    line-height: 1.1; /* Tighter line height */
    max-width: 18ch; /* Control line length */
}

/* Enhanced hero description */
.hero-content p {
    font-size: clamp(1.125rem, 2.5vw, 1.4rem);
    font-weight: 400;
    max-width: 50ch; /* Shorter line length for readability */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.5;
}

/* Better button arrangement */
.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Fullscreen hero for landing page - fixed height on mobile */
.hero-fullscreen {
    min-height: 100vh;
    max-height: 800px; /* Limit max height */
    display: flex;
    align-items: center;
}

/* Featured property card in hero */
.hero-property-feature {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Value Propositions Cards in Hero - Enhanced Visibility */
.value-prop-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.value-prop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.1) 0%, rgba(185, 28, 28, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal) ease;
    pointer-events: none;
}

.value-prop-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(185, 28, 28, 0.3) inset, 0 0 30px rgba(185, 28, 28, 0.2);
    border-color: rgba(185, 28, 28, 0.5);
}

.value-prop-card:hover::before {
    opacity: 1;
}

.value-prop-icon {
    position: relative;
    z-index: 1;
}

.value-prop-icon > div {
    transition: all var(--transition-normal) ease;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3);
}

.value-prop-card:hover .value-prop-icon > div {
    background: rgba(185, 28, 28, 0.3);
    border-color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(185, 28, 28, 0.5);
}

.value-prop-icon i {
    color: var(--primary-color);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    transition: all var(--transition-normal) ease;
    display: block;
}

.value-prop-card:hover .value-prop-icon i {
    color: var(--primary-color);
    filter: drop-shadow(0 4px 8px rgba(185, 28, 28, 0.6));
    transform: scale(1.1);
}

.value-prop-card h3 {
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.value-prop-card:hover h3 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 10px rgba(185, 28, 28, 0.3);
}

.value-prop-card p {
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Mobile optimizations for hero */
@media (max-width: 768px) {
    .hero-content {
        padding: 5rem 0;
    }
    
    .mobile-hero-fix {
        min-height: auto !important;
        height: auto !important;
        padding-top: 70px !important; /* Account for header */
        padding-bottom: 50px !important;
        overflow: visible !important;
    }
    
    .value-prop-card {
        padding: 1.25rem 1.5rem;
    }
    
    .value-prop-icon > div {
        padding: 0.75rem !important;
    }
    
    .value-prop-icon i {
        font-size: 1.75rem !important;
    }
    
    .value-prop-card h3 {
        font-size: 1rem !important;
    }
    
    .value-prop-card p {
        font-size: 0.875rem !important;
    }
    
    .hero-fullscreen {
        min-height: auto; /* Reset for mobile */
        height: auto; /* Auto height based on content */
        padding: 6rem 0 3rem; /* Top and bottom padding */
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .hero-content p {
        font-size: clamp(1rem, 2vw, 1.2rem);
        max-width: 90%;
        margin-bottom: 1.5rem; /* Less space below paragraph */
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1.5rem;
        gap: 0.75rem; /* Tighter spacing */
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 0.75rem 1rem; /* Smaller buttons */
    }
    
    /* Fix for hero section on small mobile screens */
    section.relative.h-screen {
        height: auto !important; /* Override any fixed height */
        min-height: 500px; /* Minimum reasonable height */
    }
}

/* Features Section */
.feature-item {
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: transform var(--transition-normal) ease, box-shadow var(--transition-normal) ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
    border-radius: 50%;
    background-color: rgba(185, 28, 28, 0.1);
    transition: all var(--transition-normal) ease;
}

.feature-item:hover .feature-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Testimonial System */
.testimonial-card {
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
    background-color: white;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: var(--primary-light-color);
    line-height: 0.8;
    opacity: 0.3;
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    display: flex;
    align-items: center;
    font-size: 1.125rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-weight: 700;
    color: var(--dark-color);
}

.testimonial-title {
    font-size: 0.875rem;
    color: var(--secondary-color);
    opacity: 0.7;
}

/* Enhanced Footer System - More Professional and Cohesive */
footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.9);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer section headings */
footer h3 {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Refined accent line */
footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 40px;
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
}

/* Better footer links */
footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.25s ease;
    text-decoration: none;
    display: block;
    margin-bottom: 0.875rem;
    position: relative;
    padding-left: 0;
}

footer a:hover {
    color: white;
    transform: translateX(4px);
}

/* Improved footer list styling */
footer ul {
    padding-left: 0;
    list-style: none;
    margin-top: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}

/* Enhanced social media links */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    transition: all 0.25s ease;
    margin: 0; /* Reset margin */
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer columns */
.footer-col {
    margin-bottom: 2rem;
}

/* Enhanced footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer logo treatment */
.footer-col .logo-container {
    margin-bottom: 1.25rem;
}

.footer-col .logo-container img {
    height: 48px;
    width: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Louisville accent colors */
.louisville-accent {
    color: var(--primary-color);
}

/* Contact info styling in footer */
footer .flex.items-start i {
    margin-top: 0.375rem; /* Better align icons with multi-line text */
}

/* Enhanced Header and Navigation System - More Professional and Polished */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98); /* Slightly transparent for modern look */
    backdrop-filter: blur(8px); /* Subtle blur effect for depth */
    -webkit-backdrop-filter: blur(8px); /* For Safari support */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04); /* Refined shadow */
    border-bottom: 2px solid var(--primary-color); /* Thinner border for elegance */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); /* Custom easing for smoother transitions */
    padding: 0.6rem 0; /* Balanced padding */
}

.site-header.scrolled {
    padding: 0.4rem 0; /* Slightly more compact when scrolled */
    background-color: rgba(255, 255, 255, 1); /* Fully opaque when scrolled */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Stronger shadow */
}

/* Enhanced logo container */
.logo-container {
    display: flex;
    align-items: center;
    transition: all 0.25s ease;
    text-decoration: none; /* Remove underline */
}

.logo-container:hover {
    transform: translateY(-1px); /* Subtle lift instead of scale for more professional look */
}

.logo-container:active {
    transform: translateY(0); /* Press effect */
}

/* Enhanced logo image */
.logo-container img {
    height: 52px; /* Slightly smaller for better proportion */
    width: auto;
    object-fit: contain;
    transition: all 0.25s ease;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); /* Subtle shadow for depth */
}

.site-header.scrolled .logo-container img {
    height: 46px; /* Even smaller when scrolled */
}

/* Enhanced main navigation links */
.main-nav .nav-link {
    font-weight: 600; /* Semi-bold instead of bold for more elegance */
    font-size: 0.95rem; /* Slightly smaller for refinement */
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.6rem 1rem; /* Balanced padding */
    margin: 0 0.2rem; /* Space between nav items */
    transition: all 0.25s ease;
    color: var(--secondary-color);
    position: relative;
    border-radius: var(--radius-md);
    text-decoration: none; /* Ensure no underline */
}

/* Hover and active states with subtle indicator */
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    background-color: rgba(var(--primary-color-rgb, 185, 28, 28), 0.07); /* Subtle background */
    color: var(--primary-color); /* Red text instead of white for better readability */
}

/* Subtle underline indicator for active state */
.main-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0.3rem;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
}

/* Enhanced Mobile Menu System - More Professional and User-Friendly */
.mobile-menu-toggle {
    display: flex; /* Always visible on mobile */
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: var(--radius-md);
    background-color: rgba(var(--primary-color-rgb, 185, 28, 28), 0.08);
    margin-left: auto;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    touch-action: manipulation; /* Optimize for touch */
}

.mobile-menu-toggle:hover {
    background-color: rgba(var(--primary-color-rgb, 185, 28, 28), 0.12);
}

.mobile-menu-toggle:active {
    transform: scale(0.97);
}

/* Enhanced for better visibility and touch targeting */
.mobile-menu-toggle i {
    font-size: 22px;
    color: var(--primary-color);
    transition: transform 0.2s ease;
}

.mobile-menu-toggle:hover i {
    transform: scale(1.05);
}

/* Improved mobile menu panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%; /* Wider menu for easier touch/reading */
    max-width: 350px; /* Adjusted for better visual balance */
    background-color: white;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smoother scrolling on iOS */
    display: block !important; /* Always display, use transform to hide */
    opacity: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
}

/* Nice header for mobile menu */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

/* Better close button */
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Good touch target */
    height: 40px; /* Good touch target */
    border-radius: var(--radius-full);
    padding: 0;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.mobile-menu-close:hover, .mobile-menu-close:focus {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.mobile-menu-close:active {
    transform: scale(0.95);
    background-color: rgba(0, 0, 0, 0.1);
}

/* Better menu body spacing */
.mobile-menu-body {
    padding: 1.25rem 1.5rem 2rem;
}

/* Enhanced mobile navigation links */
.mobile-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 1.25rem 0.75rem; /* Large touch target for mobile */
    margin: 0.25rem 0;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 1.125rem;
    color: var(--secondary-color);
}

.mobile-nav .nav-link.active {
    background-color: rgba(var(--primary-color-rgb, 185, 28, 28), 0.08);
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-nav .nav-link:hover, .mobile-nav .nav-link:focus {
    background-color: rgba(0, 0, 0, 0.03);
    transform: translateX(2px);
}

.mobile-nav .nav-link i {
    margin-right: 0.75rem;
    width: 1.25rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Mobile menu backdrop */
#mobile-menu-backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    transition: opacity 0.35s ease;
}

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

@keyframes slideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.animate-fade-in {
    animation: fadeIn 0.7s ease-out forwards;
}

.animate-slide-in {
    animation: slideInRight 0.7s ease-out forwards;
}

.animate-zoom-in {
    animation: zoomIn 0.7s ease-out forwards;
}

.animate-bounce {
    animation: bounce 2s ease infinite;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Alert and Notification System */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.alert-success {
    background-color: #d1fae5;
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-info {
    background-color: #e0f2fe;
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

.alert-warning {
    background-color: #fef3c7;
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-error {
    background-color: #fee2e2;
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

/* Utility Classes */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: -2rem auto 3rem;
    text-align: center;
    color: var(--secondary-color);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.shadow-hover {
    transition: box-shadow var(--transition-normal) ease, transform var(--transition-normal) ease;
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

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

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

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--secondary-color);
    background-color: white;
    background-clip: padding-box;
    border: 1px solid var(--secondary-light-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-normal) ease, box-shadow var(--transition-normal) ease;
}

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

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

.form-text {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
    opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
    /* LG breakpoint in Tailwind is 1024px */
    .main-nav {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
}

@media (min-width: 1024px) {
    /* Hide mobile toggle on desktop */
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Comprehensive Mobile Optimization */

/* Tablets and small laptops */
@media (max-width: 1024px) {
    /* General padding adjustments */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    /* Header adjustments */
    .site-header {
        padding: 0.5rem 0;
    }
    
    .logo-container img {
        height: 50px;
    }
    
    /* Grid adjustments */
    .grid-cols-3, .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Feature items */
    .feature-item {
        padding: 1.5rem;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1.25rem;
    }
}

/* Medium Mobile Devices */
@media (max-width: 768px) {
    /* Layout adjustments */
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    .section-padding {
        padding: 3.5rem 0;
    }
    
    /* Header spacer adjustment for mobile */
    div.h-24 {
        height: 4.5rem !important; /* Smaller spacer on mobile */
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    p {
        margin-bottom: 1.25rem;
    }
    
    /* Header adjustments */
    .site-header {
        padding: 0.5rem 0;
    }
    
    .logo-container img {
        height: 45px;
    }
    
    /* Hero optimizations */
    .hero-content {
        padding: 4.5rem 0;
    }
    
    /* Grid adjustments */
    .grid-cols-2, .grid-cols-3, .grid-cols-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Spacing adjustments */
    .gap-8 {
        gap: 1.5rem;
    }
    
    /* Better touch targets */
    .mobile-nav .nav-link {
        padding: 1.25rem 0.75rem;
    }
    
    /* Card title adjustments */
    .card-title {
        font-size: 1.35rem;
    }
    
    /* Footer adjustments */
    footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom div {
        margin-top: 1rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    /* Layout adjustments */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    /* Extra hero fixes for smallest screens */
    .mobile-hero-fix {
        min-height: unset !important;
        height: auto !important;
        max-height: none !important;
        padding-top: 40px !important;
        padding-bottom: 20px !important;
    }
    
    /* Ensure stats are seen on mobile */
    .grid-cols-2 {
        margin-bottom: 12px !important;
    }
    
    /* Smaller stats on small mobile */
    .grid-cols-2 .bg-white\/10 {
        padding: 0.75rem !important;
    }
    
    /* Reduce spacing for mobile screens */
    .py-16, .py-24 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    /* Logo size */
    .logo-container img {
        height: 40px;
    }
    
    /* Hero content */
    .hero-content {
        padding: 4rem 0;
    }
    
    /* Cards and containers */
    .card, .testimonial-card, .feature-item {
        padding: 1.25rem;
    }
    
    /* Touch optimizations */
    button, 
    .btn, 
    .nav-link, 
    a[role="button"] {
        touch-action: manipulation;
    }
    
    /* Increased spacing for touch targets */
    footer a {
        margin-bottom: 1rem;
        padding: 0.25rem 0;
    }
    
    /* Better spacing for footer social icons */
    .footer-social {
        gap: 0.5rem;
    }
    
    /* Improve footer columns */
    .footer-col h3 {
        font-size: 1.25rem;
    }
}

/* Enhanced Team Profile Image */
.team-profile-image {
    filter: saturate(1.2) contrast(1.05) brightness(1.05) !important;
    transform: scale(1.02);
    transition: all 0.5s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.team-profile-image:hover {
    transform: scale(1.03);
    filter: saturate(1.3) contrast(1.1) brightness(1.1) !important;
}

/* Footer styling */
.louisville-footer {
    position: relative;
}

.footer-content {
    position: relative;
}

/* Louisville Color Accents */
.louisville-accent {
    color: #C8102E; /* Louisville Cardinals Red */
}

.louisville-secondary-accent {
    color: #0C223F; /* Louisville Navy Blue */
}

/* Local Map Section Styling */
.local-map-container {
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 2px solid #f3f4f6;
    overflow: hidden;
    position: relative;
}

.local-map-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 80%, rgba(255,255,255,0.8) 100%);
    pointer-events: none;
}

/* Louisville-inspired Property Cards */
.property-card.louisville-style {
    border-top: 4px solid #C8102E; /* Louisville Cardinals Red */
    transition: transform 0.3s ease;
}

.property-card.louisville-style:hover {
    transform: translateY(-5px);
}

/* Investment Process Steps */
.process-step {
    padding: 2rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    text-align: center;
    border-bottom: 3px solid #C8102E;
    transition: all 0.3s ease;
}

.process-step: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);
}

.process-number {
    width: 3rem;
    height: 3rem;
    background-color: #C8102E;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.process-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Investment Type Cards */
.investment-type-icon {
    width: 5rem;
    height: 5rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Mobile Optimizations for Investment Cards */
@media (max-width: 640px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .investment-card-feature {
        margin-bottom: 0.5rem;
    }
    
    .btn {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        font-size: 1rem;
    }
}

/* Enhanced Animations for Investment Opportunities */
.investment-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
}

.investment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.investment-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation timing for staggered card appearance */
.investment-card:nth-child(1) {
    transition-delay: 0.1s;
}

.investment-card:nth-child(2) {
    transition-delay: 0.2s;
}

.investment-card:nth-child(3) {
    transition-delay: 0.3s;
}

.investment-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* Accessible Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    color: var(--secondary-color);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1.125rem; /* Larger text */
    line-height: 1.5;
    color: var(--secondary-color);
    background-color: #fff;
    border: 2px solid #ddd; /* Thicker border */
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(210, 0, 0, 0.25); /* Red glow */
    outline: none;
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
    border-color: var(--danger-color);
}

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

.invalid-feedback {
    font-size: 1rem;
    color: var(--danger-color);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Smooth Button Animations */
.btn {
    transition: all 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Optimized Touch Areas for Mobile */
@media (max-width: 640px) {
    .btn, a {
        padding: 0.75rem 1rem;
        min-height: 3rem;
    }
    
    .grid {
        gap: 1rem;
    }
    
    h1, h2, h3 {
        line-height: 1.3;
    }
    
    /* Better spacing for mobile */
    .investment-card {
        margin-bottom: 1.5rem;
    }
    
    /* Enhance icons visibility */
    .investment-card-feature i {
        font-size: 1.25rem;
    }
    
    /* Improved touch feedback */
    .mobile-tap-card {
        position: relative;
        z-index: 1;
    }
    
    .mobile-tap-card:active {
        transform: scale(0.98);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* Sticky mobile footer */
    .sticky-cta {
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    /* Add bottom margin to content to accommodate sticky footer */
    #content {
        padding-bottom: 60px;
    }
}

/* Ripple effect for mobile card touch */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Enhanced CTA button */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(0);
}
