/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,700;1,700&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    /* Refined Color Palette - HSL for better control */
    --primary-h: 221;
    --primary-s: 100%;
    --primary-l: 31%;
    --primary-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    /* Coldwell Banker Blue */

    --accent-h: 40;
    --accent-s: 52%;
    --accent-l: 56%;
    --accent-color: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    /* Elegant Gold */

    --secondary-color: hsl(var(--primary-h), 100%, 20%);
    --text-color: #1a1a1a;
    --text-muted: #555555;
    --light-bg: #fdfdfd;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-dark: rgba(0, 51, 160, 0.9);

    /* Shadows & Glows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-accent: 0 10px 15px rgba(197, 160, 89, 0.2);

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

/* --- Layout Components --- */

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-title h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 2rem auto 0;
    border-radius: 2px;
}

/* --- Navigation --- */

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(15px);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    font-family: 'Outfit', sans-serif;
}

header.scrolled .logo {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-color);
    position: relative;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Hero Section --- */

.hero {
    height: 100vh;
    min-height: 800px;
    background: linear-gradient(135deg, rgba(0, 35, 102, 0.7) 0%, rgba(0, 51, 160, 0.4) 100%),
        url('images/direct-front.JPEG') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 100px;
}

.hero-content {
    max-width: 1000px;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInScale 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.price-tag {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Outfit', sans-serif;
}

.hero-content h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    margin-bottom: 1.5rem;
    line-height: 1;
    letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* --- Stats Grid --- */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 1100px;
    margin: -80px auto 4rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 10;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    padding: 2.5rem 2rem;
    text-align: center;
    border-right: 1px solid #f0f0f0;
    transition: var(--transition);
}

.stat-item:hover {
    background: #f8f9fa;
    transform: translateY(-5px);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item h3 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.stat-item p {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
}

/* --- Property Features (Image + Text) --- */

.property-features {
    display: flex;
    gap: 5rem;
    align-items: center;
    margin-bottom: 6rem;
}

.property-features.reversed {
    flex-direction: row-reverse;
}

.property-text {
    flex: 1;
}

.property-text h3 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 1rem;
}

.property-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.property-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.property-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.property-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.05rem;
}

.property-list li strong {
    color: var(--primary-color);
}

.property-list li::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    margin-top: 4px;
}

.property-img-container {
    flex: 1.2;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.property-img-container img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.property-img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    pointer-events: none;
}

/* --- Gallery Grid --- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: zoom-in;
}

.gallery-item:nth-child(1) {
    grid-column: span 3;
    grid-row: span 2;
}

.gallery-item:nth-child(2) {
    grid-column: span 3;
}

.gallery-item:nth-child(3) {
    grid-column: span 1;
}

.gallery-item:nth-child(4) {
    grid-column: span 1;
}

.gallery-item:nth-child(5) {
    grid-column: span 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item-caption {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    color: white;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-caption {
    opacity: 1;
}

/* --- Social Proof / Platform Bar --- */

.platform-bar {
    padding: 60px 0;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.platform-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.7;
    filter: grayscale(1);
    transition: var(--transition);
}

.platform-logos:hover {
    opacity: 1;
    filter: grayscale(0);
}

.platform-logo {
    height: 40px;
    width: auto;
}

/* --- Contact Section --- */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
}

.agent-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 120px;
}

.agent-card img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 8px solid var(--light-bg);
    box-shadow: var(--shadow-md);
}

.agent-card h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.agent-contact-info {
    margin-top: 2rem;
    text-align: left;
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.contact-form {
    background: var(--white);
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid #f0f0f0;
}

.form-title {
    margin-bottom: 3rem;
}

.form-title h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #fcfcfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 51, 160, 0.05);
}

/* --- Buttons --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.btn-accent:hover {
    background: #b6904a;
    box-shadow: var(--shadow-accent);
}

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

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

/* --- Floating Action Button --- */

.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.fab .btn {
    padding: 1rem 2rem;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- Footer --- */

footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 100px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-about h4 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.footer-links h5,
.footer-contact h5 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* --- Animations --- */

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Responsive --- */

@media (max-width: 1200px) {
    .property-features {
        gap: 3rem;
    }

    .contact-container {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -60px;
    }

    .stat-item {
        border-bottom: 1px solid #f0f0f0;
    }

    .stat-item:nth-child(2n) {
        border-right: none;
    }

    .property-features,
    .contact-container,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .property-features.reversed {
        flex-direction: column;
    }

    .property-features {
        flex-direction: column;
        text-align: center;
    }

    .property-text h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .property-list {
        justify-items: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2) {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .section {
        padding: 80px 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: span 1;
    }
}

/* --- Neighborhood Grid --- */
.neighborhood-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.area-card {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.area-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    z-index: 1;
}

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

.area-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    color: white;
    width: 100%;
}

.area-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.area-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
}

/* --- Tools Grid --- */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.tool-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-card h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.calc-input {
    margin-bottom: 1.5rem;
}

.calc-input label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.calc-input input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-family: inherit;
}

.calc-input input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.calc-result {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.calc-result p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.calc-result h4 {
    font-size: 3rem;
    color: white;
    font-family: 'Outfit', sans-serif;
}

.tool-card.valuation p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

@media (max-width: 992px) {

    .neighborhood-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
}