/* 
   York CC - South Florida Real Estate Theme
   Clean, sophisticated, light-themed
*/
:root {
    /* Color Palette */
    --color-bg: #fdfcf9; /* Warm white */
    --color-bg-alt: #f4f1ea; /* Beige */
    --color-text: #2d3748; /* Charcoal/Dark Navy feel */
    --color-text-muted: #4a5568;
    
    /* Accents */
    --color-primary: #5f9ea0; /* Muted Green/Teal (Florida vibe) */
    --color-primary-hover: #4a8082;
    --color-accent: #e2725b; /* Terracotta */
    --color-accent-hover: #cc5c47;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow-light: 0 10px 30px rgba(45, 55, 72, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.highlight {
    color: var(--color-primary);
}

.highlight-white {
    color: #fff;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: #1a202c; /* Deeper for headings */
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(95, 158, 160, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 158, 160, 0.4);
}

.btn-secondary {
    background-color: var(--color-bg);
    color: var(--color-text);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

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

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

.btn-large {
    padding: 16px 40px;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 100;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(253, 252, 249, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a:not(.btn-primary) {
    color: var(--color-text);
}

/* Base states for un-scrolled navbar when over a dark image */
.logo {
    font-size: 1.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    transition: color 0.3s;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn-primary) {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--color-primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Soft dark gradient to make white text readable */
    background: linear-gradient(to right, rgba(26, 32, 44, 0.8) 0%, rgba(26, 32, 44, 0.4) 100%);
    z-index: -1;
}

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

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    color: #e2e8f0;
    margin-bottom: 40px;
    max-width: 650px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Section Globals */
.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--color-bg-alt);
}

.bg-accent {
    background-color: var(--color-primary);
    color: #fff;
}

.bg-accent h2, .bg-accent p {
    color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(2.5rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.about-text .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 30px;
    color: var(--color-text-muted);
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--color-text-muted);
}

/* Projects Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-info {
    padding: 24px;
}

.gallery-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.gallery-info p {
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Available Homes */
.homes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.home-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.home-card:hover {
    box-shadow: var(--shadow-light);
}

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

.home-details {
    padding: 30px;
    position: relative;
}

.badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--color-accent);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(226, 114, 91, 0.3);
}

.badge.pending {
    background: var(--color-primary);
    box-shadow: 0 4px 10px rgba(95, 158, 160, 0.3);
}

.home-details h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.home-details p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-weight: 600;
}

/* Investors & Partners */
.investors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.investors-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.investors-image-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.investors-image-grid img:nth-child(2) {
    transform: translateY(40px);
}

.investors-text h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.investors-text p {
    margin-bottom: 24px;
    color: var(--color-text-muted);
}

/* Sell Your Property Form */
.sell-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.benefits-list {
    list-style: none;
    margin-top: 30px;
}

.benefits-list li {
    font-size: 1.125rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.sell-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    color: var(--color-text);
}

.sell-form-wrapper h3 {
    margin-bottom: 24px;
    font-size: 1.5rem;
}

/* Forms */
.input-group {
    margin-bottom: 20px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 16px;
    background: #f9f9f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(95, 158, 160, 0.1);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item .icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    background: rgba(95, 158, 160, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-item h4 {
    font-size: 1.125rem;
    margin-bottom: 5px;
}

.contact-item p, .contact-item a {
    color: var(--color-text-muted);
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--color-primary);
}

/* Footer */
footer {
    background: #1a202c; /* Charcoal */
    color: #fff;
    padding: 60px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-brand p {
    margin-top: 16px;
    color: #a0aec0;
    max-width: 400px;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.footer-links a {
    display: block;
    color: #a0aec0;
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #a0aec0;
    font-size: 0.875rem;
}

.legal-links a {
    margin-left: 20px;
}

.legal-links a:hover {
    color: #fff;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .investors-grid, .sell-container, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .investors-image-grid img:nth-child(2) {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    
    .nav-links a:not(.btn-primary) {
        color: var(--color-text);
        font-size: 1.125rem;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 101;
    }
    
    .mobile-menu-btn span {
        background-color: #fff;
    }
    
    .navbar.scrolled .mobile-menu-btn span {
        background-color: var(--color-text);
    }
    
    .mobile-menu-btn.active span {
        background-color: var(--color-text);
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
