:root {
    --primary: #020C45;
    --accent: #CD9703;
    --gray: #606060;
    --black: #000000;
    --white: #FFFFFF;
    --off-white: #F8F8F8;
    --light-gray: #E5E5E5;
}

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

body {
    font-family: 'Raleway', sans-serif;
    color: var(--black);
    line-height: 1.6;
    background: var(--white);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
}

.logo {
    text-decoration: none;
}

.logo-main {
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-menu a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-menu a:not(.btn-nav):hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.btn-nav {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.75rem 1.75rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background: #03155a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(2, 12, 69, 0.2);
}

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

.btn-primary-light:hover {
    background: var(--off-white);
}

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

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

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

.btn-accent:hover {
    background: #b68503;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--light-gray);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

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

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 75vh;
    background: linear-gradient(rgba(2, 12, 69, 0.85), rgba(2, 12, 69, 0.85)),
                url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1600') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    padding: 4rem 2rem 2rem;
    max-width: 900px;
}

.hero-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.95);
    font-weight: 300;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

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

/* Hero Search */
.hero-search {
    width: 100%;
    padding: 2rem 0 3rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.search-card {
    background: var(--white);
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    max-width: 1000px;
    margin: 0 auto;
}

.search-card h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.search-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-input,
.search-select {
    padding: 1rem;
    border: 1px solid var(--light-gray);
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
}

.search-input:focus,
.search-select:focus {
    outline: none;
    border-color: var(--accent);
}

.quick-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.quick-links span {
    font-weight: 600;
    color: var(--gray);
    font-size: 0.9rem;
}

.quick-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: var(--accent);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header.centered {
    text-align: center;
}

.section-intro {
    font-size: 1.15rem;
    color: var(--gray);
    margin-top: 1rem;
    max-width: 700px;
}

.section-header.centered .section-intro {
    margin-left: auto;
    margin-right: auto;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: var(--accent);
}

/* USP Section */
.usp-section {
    background: var(--off-white);
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.usp-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 3px solid var(--accent);
}

.usp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.usp-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.usp-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.usp-card p {
    color: var(--gray);
    line-height: 1.7;
}

.cta-center {
    text-align: center;
    margin-top: 3rem;
}

/* Featured Listings */
.featured-listings {
    background: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.listing-card {
    background: var(--white);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
}

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

.listing-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.listing-card:hover .listing-image img {
    transform: scale(1.05);
}

.listing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.listing-content {
    padding: 1.75rem;
}

.listing-price {
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.listing-address {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.listing-location {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.listing-details {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.listing-details span {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* CTA Banner */
.cta-banner {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

/* Process Preview */
.process-preview {
    background: var(--off-white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    margin-bottom: 1rem;
}

.step p {
    color: var(--gray);
    line-height: 1.7;
}

/* Footer */
.main-footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.logo-footer {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.footer-location {
    font-weight: 600;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Raleway', sans-serif;
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 3rem 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }
}