/* ============================================
   REM PROPERTY - MODERN REAL ESTATE MAGAZINE
   ============================================ */

:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --accent: #d69e2e;
    --accent-hover: #b7791f;
    --text-dark: #1a202c;
    --text-body: #4a5568;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-body);
    line-height: 1.6;
    background: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.logo-rem {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
}

.logo-property {
    font-size: 18px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-search .search-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920') center/cover;
    opacity: 0.15;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 54, 93, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--bg-white);
    letter-spacing: -2px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: 8px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-desc {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--bg-white);
    opacity: 0.7;
    font-size: 14px;
    animation: bounce 2s infinite;
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
}

.section-desc {
    color: var(--text-light);
    font-size: 18px;
    max-width: 600px;
    margin: 24px auto 0;
}

/* ============================================
   FEATURED ARTICLES
   ============================================ */
.featured {
    background: var(--bg-light);
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 24px;
    height: 600px;
}

.featured-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.featured-card.large {
    grid-row: span 2;
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.featured-card.large .card-image {
    height: 300px;
}

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

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

.card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: var(--bg-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-issue {
    display: inline-block;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.featured-card.large h3 {
    font-size: 28px;
}

.card-content p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    margin-top: 16px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--accent);
    gap: 12px;
}

/* ============================================
   LATEST ARTICLES
   ============================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.article-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    height: 220px;
    overflow: hidden;
}

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

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

.article-content {
    padding: 24px;
}

.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
}

.article-date {
    color: var(--text-light);
}

.article-category {
    color: var(--accent);
    font-weight: 600;
}

.article-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
    background: var(--primary);
    padding: 80px 0;
    color: var(--bg-white);
}

.newsletter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.newsletter-content h2 {
    color: var(--bg-white);
    font-size: 32px;
    margin-bottom: 8px;
}

.newsletter-content p {
    opacity: 0.9;
    font-size: 16px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--bg-white);
    font-size: 16px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 8px;
}

.footer-contact p {
    margin-bottom: 16px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.6;
    font-size: 14px;
}

/* ============================================
   ARTICLE PAGES
   ============================================ */
.article-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    padding: 160px 0 80px;
    position: relative;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920') center/cover;
    opacity: 0.1;
}

.article-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.article-header .article-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    font-size: 14px;
    opacity: 0.9;
}

.article-header h1 {
    font-size: 42px;
    color: var(--bg-white);
    line-height: 1.3;
    margin-bottom: 24px;
}

.article-header .excerpt {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.9;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
}

.article-body p {
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 24px;
    color: var(--text-body);
}

.article-body h2 {
    font-size: 28px;
    margin: 48px 0 24px;
    color: var(--primary);
}

.article-body h3 {
    font-size: 22px;
    margin: 36px 0 16px;
    color: var(--text-dark);
}

.article-body blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--text-light);
    font-size: 20px;
    line-height: 1.8;
}

.article-body ul,
.article-body ol {
    margin: 24px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.8;
}

.article-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.tag {
    padding: 8px 20px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-body);
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: var(--bg-white);
}

/* Related Articles */
.related-articles {
    background: var(--bg-light);
    padding: 80px 0;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 48px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
