/*
Theme Name: Housify
Theme URI: https://example.com/housify
Author: Antigravity
Author URI: https://google.com
Description: A modern real estate theme converted from design.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: housify
Tags: real-estate, modern, responsive
*/

:root {
    /* Colors from design */
    --color-primary: #C5A572;
    --color-primary-dark: #A98C5E;
    --color-text-dark: #1F1F1F;
    --color-text-body: #333333;
    --color-text-light: #666666;
    --color-white: #FFFFFF;
    --color-bg-light: #F9F9F9;
    --color-bg-dark: #1F1F1F;

    /* Typography */
    --font-primary: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Reset & Basics */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-body);
    line-height: 1.6;
    background-color: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-white);
    color: var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-text-dark);
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.text-highlight {
    color: var(--color-primary);
}

.text-white {
    color: var(--color-white);
}

/* Header */
.site-header {
    background-color: var(--color-white);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Added slight shadow for visibility */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding .site-title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    margin: 0;
}

.main-navigation a {
    font-weight: 500;
    font-size: 14px;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: var(--spacing-lg);
    overflow: hidden;
    /* The design creates a unique layout where the image is in the back but content overlaps provided space */
    min-height: 80vh;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    height: 100%;
}

.hero-content {
    align-self: center;
    max-width: 500px;
    padding-top: 100px;
    /* Offset to push down */
}

/* Wait, looking at design, the hero text "Find Your Dream Home Today" is on top of the image on the left side. */
.hero-title {
    color: #fff;
}

.hero-subtitle {
    color: #eee;
    margin-bottom: var(--spacing-md);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 0 100px;
    /* Stylistic choice if needed, but design looks like full overlay */
}

/* Correction: The design has the text ON TOP of the image. The WHO WE ARE card is floating on the bottom right. */

/* Let's adjust Hero to match Image exactly */
.hero-section {
    position: relative;
    height: 700px;
    margin: var(--spacing-sm);
    /* Whitespace around the hero frame */
    border-radius: 30px;
    overflow: hidden;
    background-color: #000;
    /* Fallback for white text visibility */
}

.hero-background-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Lower than container */
}

.hero-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    /* Darken slightly to make text pop */
}

.hero-container {
    position: relative;
    z-index: 10;
    /* Higher than BG */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 80px;
    /* Space from left */
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 11;
}

.hero-title {
    font-size: 64px;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 18px;
    max-width: 450px;
}

/* Who We Are Card */
.who-we-are-card {
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    padding: 40px;
    border-top-left-radius: 30px;
    max-width: 450px;
}

.who-we-are-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.who-desc {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.stats-grid {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 20px;
}

.stat-label {
    font-size: 11px;
    color: var(--color-text-light);
}

/* Property Match Section */
.property-match-section .section-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    align-items: flex-end;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.section-desc {
    max-width: 400px;
    font-size: 14px;
    color: var(--color-text-light);
}

.match-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 20px;
}

.match-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.match-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* Floating Card in Match Large */
.property-overlay-card {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.overlay-price {
    font-weight: 700;
    font-size: 18px;
    color: var(--color-text-dark);
}

.overlay-address {
    font-size: 12px;
    color: var(--color-text-light);
}

.overlay-stats {
    font-size: 12px;
    color: var(--color-text-light);
}

.overlay-arrow {
    background: var(--color-primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* About Section */
.about-section {
    background-color: var(--color-bg-dark);
    margin: var(--spacing-lg) var(--spacing-sm);
    border-radius: 30px;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0;
    /* Removing container padding for full height image */
}

.about-content {
    padding: 80px;
}

.about-text {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.about-image img {
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

/* Property Showcase */
.showcase-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    margin-top: 20px;
}

.filter-buttons button {
    background: none;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 20px;
    font-weight: 500;
}

.filter-buttons button.active {
    background: var(--color-primary);
    color: white;
}

.search-bar {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 5px 20px;
    display: flex;
    align-items: center;
}

.search-bar input {
    border: none;
    outline: none;
    margin-right: 10px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.property-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.property-image {
    height: 250px;
}

.property-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.property-details {
    padding: 20px;
    background: #fff;
}

.property-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 10px;
    padding: 10px;
    background: var(--color-bg-light);
    border-radius: 10px;
    justify-content: space-around;
}

/* Footer */
.site-footer {
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 900px) {
    .match-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .hero-container {
        padding-left: 20px;
    }

    .who-we-are-card {
        position: relative;
        max-width: 100%;
        margin-top: -50px;
        border-radius: 20px;
        margin-left: 20px;
        margin-right: 20px;
    }
}