/*
Theme Name: BuildOasis Portal
Author: Senior Frontend Designer
Description: Концепция "Architectural Serenity": Эстетика комфорта, гармония материалов и безупречное планирование.
Version: 1.0.0
Text Domain: buildoasis
*/

:root {
    /* Colors - Sophisticated & Calming */
    --bg: #fdfdfc;
    --surface: #f5f5f2;
    --surface-dark: #1a1c18;
    --primary: #8b9d83; /* Sage Green - Harmony */
    --primary-dim: rgba(139, 157, 131, 0.1);
    --accent: #d4a373; /* Earthy Sand */
    --text: #2c2e2a;
    --text-muted: #6b705c;
    --border: #e9e9e2;
    
    /* Spacing */
    --gap: 2.5rem;
    --header-height: 110px;
    --container-width: 1400px;
    
    /* Fonts */
    --font-display: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: var(--font-body); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
ul { list-style: none; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--gap); }

/* Typography */
h1, h2, h3 { font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.text-mono { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 600; }

/* Header - Elegant Glassmorphism */
.site-header {
    height: var(--header-height);
    background: rgba(253, 253, 252, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 5rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--surface-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    flex-shrink: 0;
}
.logo span { color: var(--primary); }

.main-nav ul { 
    display: flex; 
    gap: 4rem; 
}
.main-nav a { 
    font-weight: 500; 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    text-transform: uppercase; 
}
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--primary); }

.menu-toggle { display: none; background: var(--surface-dark); color: #fff; border: none; padding: 14px; border-radius: 50%; cursor: pointer; }
.hamburger { width: 20px; height: 2px; background: #fff; position: relative; display: block; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 100%; height: 2px; background: #fff; left: 0; transition: 0.3s; }
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* Hero - Option A: Asymmetric Text Left / Image Right */
.hero {
    padding: 180px 0 100px;
    background: var(--bg);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.hero h1 { font-size: clamp(3.5rem, 8vw, 6rem); margin-bottom: 2.5rem; color: var(--surface-dark); }
.hero h1 span { color: var(--primary); }

.hero-desc { 
    font-size: 1.25rem; 
    color: var(--text-muted); 
    line-height: 1.5; 
    max-width: 500px;
    margin-bottom: 4rem;
    position: relative;
    padding-left: 2rem;
}
.hero-desc::before {
    content: '';
    position: absolute;
    left: 0; top: 0; width: 4px; height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.hero-image-wrap {
    position: relative;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    filter: sepia(0.1) brightness(1.05);
    border-radius: 4rem 1rem 4rem 1rem;
    box-shadow: 60px -40px 0 var(--surface);
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-image-wrap:hover .hero-banner-img { transform: translate(-20px, 20px); }

/* Oasis Roadmap */
.oasis-roadmap {
    padding: 10rem 0;
    background: var(--surface-dark);
    color: #fff;
    border-radius: 5rem 5rem 0 0;
}

.roadmap-header { margin-bottom: 6rem; text-align: center; }
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.roadmap-card {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.5s;
}
.roadmap-card:hover { background: rgba(139, 157, 131, 0.1); border-color: var(--primary); transform: translateY(-15px); }
.roadmap-card .step { font-family: var(--font-mono); color: var(--primary); font-size: 0.8rem; margin-bottom: 2rem; display: block; }
.roadmap-card h3 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.roadmap-card p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.5); }

/* Design Vault */
.design-vault {
    padding: 10rem 0;
}

.vault-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 6rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2.5rem;
}

.vault-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.vault-item {
    display: flex;
    flex-direction: column;
}

.vault-img-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    margin-bottom: 2.5rem;
    background: var(--surface);
}

.vault-img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    filter: grayscale(0.2);
}
.vault-item:hover .vault-img { transform: scale(1.1); filter: grayscale(0); }

.vault-item h4 { font-size: 1.6rem; margin-bottom: 1.5rem; }
.vault-item p { font-size: 1rem; color: var(--text-muted); margin-bottom: 2.5rem; }

.btn-oasis {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--surface-dark);
    padding: 1rem 2rem;
    border: 1px solid var(--surface-dark);
    width: fit-content;
    transition: 0.3s;
}
.btn-oasis:hover { background: var(--surface-dark); color: #fff; }

/* Post Grid */
.post-section-header {
    padding: 8rem 0 3rem;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 5rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    padding-bottom: 10rem;
}

.post-card {
    display: flex;
    flex-direction: column;
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 2.5rem;
    position: relative;
}

.card-img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s; }
.post-card:hover .card-img { transform: scale(1.05); }

.card-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--primary); margin-bottom: 1.25rem; display: block; }
.card-title { font-size: 1.75rem; margin-bottom: 1.5rem; line-height: 1.1; }
.card-excerpt { font-size: 1rem; color: var(--text-muted); margin-bottom: 3rem; flex-grow: 1; }

/* Footer */
.site-footer {
    padding: 10rem 0 5rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

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

.footer-col h4 { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); margin-bottom: 3rem; text-transform: uppercase; }
.footer-contact-item { margin-bottom: 3rem; }
.footer-contact-item label { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.75rem; }
.footer-contact-item span { font-size: 1.3rem; font-weight: 700; color: var(--surface-dark); }

.footer-bottom {
    padding-top: 4rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Pagination */
.pagination-container { padding-bottom: 10rem; }
.pagination-list { display: flex; justify-content: center; gap: 0.5rem; }
.pagination-item a, .pagination-item span {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    font-weight: 600;
}
.pagination-item.is-active span { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Mobile */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 4rem; }
    .roadmap-grid { grid-template-columns: repeat(2, 1fr); }
    .vault-grid { grid-template-columns: repeat(2, 1fr); }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.is-active {
        display: block; position: fixed; top: var(--header-height); left: 0; width: 100%;
        background: #fff; padding: 3rem; border-bottom: 1px solid var(--border);
    }
    .main-nav ul { flex-direction: column; gap: 2rem; }
    .menu-toggle { display: block; }
}

@media (max-width: 640px) {
    .roadmap-grid { grid-template-columns: 1fr; }
    .vault-grid { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3rem; }
}
