/*
Theme Name: Thăng Long UDIC
Description: Custom theme for Thăng Long UDIC real estate company
Version: 2.0
Author: Custom Development
*/

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

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background-color: #ffffff;
    font-size: 16px;
    overflow-x: hidden;
}

/* Colors */
:root {
    --primary-color: #8B1A1A;
    --primary-dark: #6D1515;
    --secondary-color: #C5A55A;
    --secondary-dark: #B8984E;
    --accent-color: #F5F2E8;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --text-muted: #95a5a6;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-medium: 0 5px 30px rgba(0,0,0,0.15);
    --shadow-strong: 0 10px 50px rgba(0,0,0,0.25);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1.2rem;
    color: var(--text-light);
}

/* Header */
.site-header {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(139, 26, 26, 0.85) 0%, rgba(139, 26, 26, 0.65) 100%), 
                url('../images/hero-cityscape.jpg') center/cover no-repeat;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-cityscape.jpg') center/cover no-repeat;
    animation: heroZoom 20s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

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

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    color: var(--white);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(197, 165, 90, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

/* Content Sections */
.content-section {
    padding: 6rem 0;
    position: relative;
}

.content-section:nth-child(even) {
    background: var(--light-gray);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Core Capabilities */
.capabilities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.capability-item {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.capability-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

.capability-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.capability-item:hover::before {
    transform: translateX(0);
}

.capability-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.capability-item h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.capability-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Projects */
.projects {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
}

.project-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
}

.project-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.project-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.project-details {
    background: var(--accent-color);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem 0;
    border-left: 5px solid var(--secondary-color);
}

.project-location {
    font-style: italic;
    color: var(--secondary-color);
    font-weight: 500;
    margin-top: 1rem;
}

/* Strategic Goals */
.strategic-goals {
    background: linear-gradient(rgba(139, 26, 26, 0.9), rgba(139, 26, 26, 0.8)), 
                url('../images/office-tower.jpg') center/cover no-repeat;
    color: var(--white);
    position: relative;
}

.strategic-goals .section-title {
    color: var(--white);
}

.strategic-goals .section-title::after {
    background: var(--secondary-color);
}

.strategic-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.strategic-content h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.strategic-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.news-item {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.news-image {
    height: 250px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 2rem;
}

.news-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.news-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h3 a:hover {
    color: var(--secondary-color);
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.news-content a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.news-content a::after {
    content: '→';
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.news-content a:hover::after {
    margin-left: 1rem;
}

/* Contact CTA */
.contact-cta {
    background: linear-gradient(135deg, var(--accent-color) 0%, #f0ede4 100%);
    text-align: center;
    padding: 6rem 0;
}

.contact-cta .section-title {
    margin-bottom: 2rem;
}

.contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .project-showcase {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .capabilities {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 1rem 2rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .content-section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .capabilities,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .capability-item {
        padding: 2rem 1.5rem;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn-primary {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .capability-item {
        padding: 1.5rem 1rem;
    }
    
    .news-content,
    .project-content {
        padding: 1.5rem;
    }
}

/* Animation utilities */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.2s;
}

.fade-in-delay-2 {
    animation-delay: 0.4s;
}

.fade-in-delay-3 {
    animation-delay: 0.6s;
}

/* Smooth scroll offset for fixed header */
html {
    scroll-padding-top: 80px;
}

/* ===== HOMEPAGE HERO FULLSCREEN ===== */

/* Remove any top padding/margin on homepage */
body.home .main-content,
body.blog .main-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Hero takes full viewport, extends under header */
.hero-section {
    height: 100vh !important;
    min-height: 700px;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ===== TRANSPARENT NAV ON HOMEPAGE ===== */
body.home .site-header,
body.blog .site-header {
    background: transparent !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

body.home .site-header.scrolled,
body.blog .site-header.scrolled {
    background: rgba(255,255,255,0.98) !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08) !important;
}

body.home .site-header .main-nav a,
body.blog .site-header .main-nav a {
    color: rgba(255,255,255,0.95) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

body.home .site-header.scrolled .main-nav a,
body.blog .site-header.scrolled .main-nav a {
    color: var(--text-dark) !important;
    text-shadow: none;
}

body.home .site-header .site-logo,
body.blog .site-header .site-logo {
    filter: brightness(10);
    transition: filter 0.3s ease;
}

body.home .site-header.scrolled .site-logo,
body.blog .site-header.scrolled .site-logo {
    filter: none;
}

/* ===== IMAGE BREAK SECTIONS ===== */
.image-break-section {
    height: 50vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-break-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.image-break-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.image-break-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.image-break-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
}
