:root {
    /* Brand Colors */
    --primary: #003366;
    --on-primary: #ffffff;
    --secondary: #1A1A1A;
    --tertiary: #666666;
    --surface: #ffffff;
    --surface-dim: #F9F9F9;
    --outline: #EEEEEE;
    --outline-focus: #CCCCCC;

    /* Typography */
    --font-heading: 'Libre Caslon Text', serif;
    --font-body: 'Hanken Grotesk', sans-serif;

    /* Spacing */
    --unit: 8px;
    --container-max: 1280px;
    --gutter: 32px;
    --margin-desktop: 64px;
    --margin-mobile: 20px;
    
    /* Depth */
    --shadow-subtle: 0px 4px 20px rgba(0,0,0,0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--secondary);
    background-color: var(--surface);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Classes */
h1, h2, h3, h4, h5, h6, .logo {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-weight: 400;
}

h1 {
    font-size: clamp(48px, 6vw, 64px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--surface); /* Over hero background */
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
}

h3 {
    font-size: 24px;
    line-height: 1.4;
}

label, .label-text {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--tertiary);
}

/* Layout */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--margin-desktop);
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--margin-mobile);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 32px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--on-primary);
    border: none;
}

.btn-primary:hover {
    background-color: #001e40; /* Darker blue */
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--outline);
    transition: transform 0.4s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--secondary);
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide on mobile for this simple version */
    }
    .mobile-menu-btn {
        display: flex;
    }
}

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

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease-out;
}

.hero-section:hover .hero-bg {
    transform: scale(1.05); /* Dynamic zoom on hover */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-top: 80px; /* offset navbar */
}

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

.hero-text p {
    color: var(--surface);
    font-size: clamp(18px, 2vw, 24px);
    margin-top: 24px;
    margin-bottom: 40px;
}

/* Search Bar */
.search-section {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.search-bar {
    background-color: var(--surface);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-subtle);
    padding: 8px;
    border: 1px solid var(--outline);
}

.search-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
}

.search-group label {
    margin-bottom: 8px;
}

.search-group input {
    border: none;
    border-bottom: 1px solid transparent;
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--secondary);
    padding: 4px 0;
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-group input:focus {
    border-bottom-color: var(--outline-focus);
}

.search-group input::placeholder {
    color: var(--tertiary);
    opacity: 0.6;
}

.divider {
    width: 1px;
    height: 56px;
    background-color: var(--outline);
}

.search-btn {
    margin-left: 16px;
}

@media (max-width: 992px) {
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .divider {
        width: 100%;
        height: 1px;
        margin: 8px 0;
    }
    .search-btn {
        margin: 16px;
    }
}

/* Properties Showcase */
.properties-section {
    padding: 120px 0;
}

.section-title {
    margin-bottom: 64px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--gutter);
}

.property-card {
    background: var(--surface);
    border: 1px solid var(--outline);
    transition: all 0.4s ease;
    cursor: pointer;
}

.property-card:hover {
    box-shadow: var(--shadow-subtle);
    transform: translateY(-8px);
}

.card-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
}

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

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

.card-content {
    padding: 32px;
}

.price {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 16px;
}

.property-name {
    font-size: 24px;
    margin-bottom: 8px;
}

.property-address {
    color: var(--tertiary);
    margin-bottom: 24px;
}

.property-details {
    display: flex;
    gap: 16px;
    border-top: 1px solid var(--outline);
    padding-top: 16px;
}

.property-details span {
    font-size: 14px;
    font-weight: 600;
    color: var(--tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Contact Section */
.contact-section {
    padding: 80px 0 120px 0;
    background-color: var(--surface-dim);
}

.contact-form {
    max-width: 600px;
    background: var(--surface);
    padding: 48px;
    border: 1px solid var(--outline);
    box-shadow: var(--shadow-subtle);
}

.form-group {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tertiary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--secondary);
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #CCCCCC;
    outline: none;
    transition: all 0.3s ease;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border: 1px solid var(--outline-focus);
    padding: 12px;
}

/* Footer */
.footer {
    background-color: var(--surface-dim);
    padding: 80px 0;
    border-top: 1px solid var(--outline);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand p {
    color: var(--tertiary);
    margin-top: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

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

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
