/*
Theme Name: ABC Real Estate Modernism
Description: Architectural Minimalist Design for Real Estate Blog
Author: Senior Frontend Designer
Version: 1.0
*/

:root {
    --c-bg: #FFFFFF;
    --c-text: #1A1A1A;
    --c-primary: #0D1B2A; /* Deep Navy */
    --c-accent: #C5A059;  /* Muted Gold */
    --c-grey: #F4F4F4;
    --c-border: #E0E0E0;
    --f-display: 'Playfair Display', serif;
    --f-body: 'Montserrat', sans-serif;
    --sidebar-w: 350px;
}

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

body {
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: var(--f-body);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Layout */
.site-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar-realty {
    width: var(--sidebar-w);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--c-primary);
    color: #fff;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
    overflow-y: auto;
}

.main-area {
    margin-left: var(--sidebar-w);
    width: calc(100% - var(--sidebar-w));
    min-width: 0;
}

/* Sidebar Elements */
.logo {
    font-family: var(--f-display);
    font-size: 1.6rem;
    color: #fff;
    text-decoration: none;
    margin-bottom: 60px;
    border-left: 4px solid var(--c-accent);
    padding-left: 20px;
    display: block;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.nav-realty ul { list-style: none; }
.nav-realty li { margin-bottom: 20px; }
.nav-realty a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 700;
    transition: 0.3s;
    display: block;
    line-height: 1.4;
}

.nav-realty a:hover, .nav-realty .current-menu-item a {
    color: var(--c-accent);
    transform: translateX(10px);
}

.sidebar-contacts {
    margin-top: auto;
    font-size: 0.8rem;
}
.sidebar-contacts p { margin-bottom: 20px; }
.sidebar-contacts .contact-val { 
    color: var(--c-accent); 
    font-weight: 700; 
    display: block; 
    margin-top: 5px;
    overflow-wrap: break-word;
}

/* Hero Section */
.hero-realty {
    height: 90vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 8%;
    background: var(--c-grey);
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 700px;
}

.hero-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--c-accent);
    margin-bottom: 25px;
    display: block;
}

.hero-realty h1 {
    font-family: var(--f-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    color: var(--c-primary);
    margin-bottom: 40px;
}

.hero-img-wrap {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Feature Grid */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--c-primary);
    color: #fff;
}

.feat-item {
    padding: 80px 40px;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: 0.5s;
}
.feat-item:hover { background: rgba(255,255,255,0.05); }
.feat-item:last-child { border-right: none; }
.feat-item h3 { font-family: var(--f-display); font-size: 1.8rem; margin-bottom: 20px; color: var(--c-accent); }
.feat-item p { font-size: 0.95rem; opacity: 0.7; }

/* Post Grid */
.section-padding { padding: 120px 8%; }
.section-title {
    font-family: var(--f-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 80px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--c-accent);
}

.realty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 60px;
}

.realty-card {
    border: 1px solid var(--c-border);
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff;
}
.realty-card:hover { transform: translateY(-15px); border-color: var(--c-accent); box-shadow: 0 30px 60px rgba(0,0,0,0.05); }

.card-img-container {
    height: 400px;
    overflow: hidden;
    position: relative;
}
.card-img-container img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.realty-card:hover .card-img-container img { transform: scale(1.1); }

.card-meta {
    position: absolute;
    top: 30px;
    left: 30px;
    background: var(--c-primary);
    color: #fff;
    padding: 8px 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-content { padding: 40px; }
.card-date { font-size: 0.8rem; color: #999; margin-bottom: 15px; display: block; }
.card-content h3 { font-family: var(--f-display); font-size: 1.8rem; margin-bottom: 20px; color: var(--c-primary); }
.card-excerpt { font-size: 1rem; color: #666; margin-bottom: 30px; }

.card-link {
    font-weight: 700;
    text-decoration: none;
    color: var(--c-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--c-accent);
    padding-bottom: 5px;
}

/* Pagination */
.realty-pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 100px;
}
.page-link {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-border);
    text-decoration: none;
    color: var(--c-primary);
    font-weight: 700;
    transition: 0.3s;
}
.page-link:hover, .page-link.current {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}

/* Footer */
.footer-realty {
    background: var(--c-grey);
    padding: 100px 8%;
    border-top: 1px solid var(--c-border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
}
.footer-col h4 {
    font-family: var(--f-display);
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--c-primary);
}
.footer-info p { margin-bottom: 20px; font-size: 0.95rem; opacity: 0.7; }

.footer-contact-list { list-style: none; }
.footer-contact-list li { margin-bottom: 25px; }
.footer-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 8px;
}

.footer-bottom {
    margin-top: 100px;
    padding-top: 40px;
    border-top: 1px solid var(--c-border);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #999;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--c-primary);
    z-index: 1100;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
}

.mobile-logo {
    font-family: var(--f-display);
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}

.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1100px) {
    .sidebar-realty {
        transform: translateX(-100%);
    }
    .sidebar-realty.active {
        transform: translateX(0);
    }
    .main-area {
        margin-left: 0;
        width: 100%;
        padding-top: 70px;
    }
    .mobile-header { display: flex; }
    .hero-realty { height: auto; padding: 100px 20px; }
    .hero-img-wrap { display: none; }
    .features { grid-template-columns: 1fr; }
    .realty-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .section-padding { padding: 80px 20px; }
    .hero-realty h1 { font-size: 2.8rem; }
    .card-img-container { height: 300px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}
