/* ==========================================================================
   VANGUARD PROPERTIES - LUXURY REAL ESTATE DEMO
   ========================================================================== */

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

:root {
    /* Colors */
    --bg-light: #F9F9F6;
    --bg-white: #FFFFFF;
    --text-dark: #121212;
    --text-muted: #555555;
    --text-light: #999999;
    --accent: #5E6955; /* Elegant Sage Green */
    --border-color: rgba(0, 0, 0, 0.08);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --max-width: 1400px;
    --header-height: 90px;
    
    /* Animation */
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --------------------------------------------------------------------------
   RESET & BASICS
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: initial;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.1;
    color: var(--text-dark);
}

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

img {
    max-width: 100%;
    display: block;
}

/* --------------------------------------------------------------------------
   UTILITIES
   -------------------------------------------------------------------------- */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section {
    padding: 120px 0;
    position: relative;
}

.text-center {
    text-align: center;
}

/* Text Mask */
.reveal-text {
    overflow: hidden;
    display: inline-block;
}

.reveal-text span {
    display: inline-block;
    transform: translateY(100%);
    will-change: transform;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 100;
    background: transparent;
    transition: background 0.4s ease, height 0.4s ease, border 0.4s ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(249, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: 70px;
}

.header-inner {
    width: 92%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--text-dark);
}

.nav-link:hover {
    color: var(--accent);
}

.btn-contact {
    padding: 10px 24px;
    background: transparent;
    color: var(--text-dark);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    border: 1px solid var(--text-dark);
    border-radius: 0;
}

.btn-contact:hover {
    background: var(--text-dark);
    color: var(--bg-white);
}

@media (max-width: 900px) {
    .nav { display: none; }
}
@media (max-width: 600px) {
    .header { height: 70px; }
    .header-inner { width: 95%; }
    .logo { font-size: 1.3rem; }
    .btn-contact { padding: 8px 16px; font-size: 0.7rem; }
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
    height: 90vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-size: clamp(2.2rem, 10vw, 6.5rem);
    line-height: 1.1;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-title i {
    font-style: italic;
    color: var(--accent);
}

/* Advanced Search Bar */
.search-widget {
    background: var(--bg-white);
    padding: 15px;
    border-radius: 0;
    display: flex;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 10px 20px;
    border-right: 1px solid var(--border-color);
}

.search-field:last-of-type {
    border-right: none;
}

.search-field label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.search-field select, 
.search-field input {
    border: none;
    background: transparent;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-dark);
    outline: none;
    cursor: pointer;
}

.btn-search {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-search:hover {
    background: var(--text-dark);
}

@media (max-width: 768px) {
    .search-widget {
        flex-direction: column;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border: none;
    }
    .search-field {
        background: var(--bg-white);
        border: 1px solid var(--border-color);
        border-bottom: none;
        padding: 15px 20px;
    }
    .search-field:first-child {
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }
    .btn-search {
        padding: 20px;
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
    }
}

/* --------------------------------------------------------------------------
   PROPERTIES GRID (ASYMMETRIC)
   -------------------------------------------------------------------------- */
.properties-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.properties-header h2 {
    font-size: 3rem;
}

.link-all {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 3px;
}

.prop-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
}

/* Property Card */
.prop-card {
    position: relative;
    cursor: pointer;
}

.prop-img-wrap {
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.prop-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.prop-card:hover .prop-img-wrap img {
    transform: scale(1.05);
}

.prop-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.prop-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.prop-loc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.prop-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--accent);
}

.prop-meta {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.prop-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Asymmetric Grid Classes */
.prop-1 {
    grid-column: 1 / 8;
}
.prop-1 .prop-img-wrap {
    height: 600px;
}

.prop-2 {
    grid-column: 8 / 13;
    margin-top: 100px;
}
.prop-2 .prop-img-wrap {
    height: 450px;
}

.prop-3 {
    grid-column: 1 / 6;
    margin-top: 40px;
}
.prop-3 .prop-img-wrap {
    height: 500px;
}

.prop-4 {
    grid-column: 6 / 13;
    margin-top: 0;
}
.prop-4 .prop-img-wrap {
    height: 700px;
}

@media (max-width: 900px) {
    .properties-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .prop-grid {
        grid-template-columns: 1fr;
    }
    .prop-1, .prop-2, .prop-3, .prop-4 {
        grid-column: 1 / -1;
        margin-top: 0;
    }
    .prop-1 .prop-img-wrap, .prop-2 .prop-img-wrap, .prop-3 .prop-img-wrap, .prop-4 .prop-img-wrap {
        height: 400px;
    }
}

@media (max-width: 600px) {
    .properties-header h2 {
        font-size: 2.2rem;
    }
    .prop-info {
        flex-direction: column;
        gap: 5px;
    }
    .prop-1 .prop-img-wrap, .prop-2 .prop-img-wrap, .prop-3 .prop-img-wrap, .prop-4 .prop-img-wrap {
        height: 300px;
    }
    .prop-price {
        font-size: 1.2rem;
    }
}

/* --------------------------------------------------------------------------
   EDITORIAL SECTION
   -------------------------------------------------------------------------- */
.editorial {
    background: var(--bg-white);
    padding: 150px 0;
    border-top: 1px solid var(--border-color);
}

.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ed-title {
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.ed-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.ed-img {
    width: 100%;
    height: 700px;
    object-fit: cover;
}

@media (max-width: 900px) {
    .editorial-grid {
        grid-template-columns: 1fr;
    }
    .ed-img {
        height: 400px;
    }
}

@media (max-width: 600px) {
    .ed-title {
        font-size: 2.2rem;
    }
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 100px 0 40px;
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    display: block;
}

.footer-col h4 {
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
