:root {
    --bg-dark: #F5EFE2;      /* Warm Ivory - nền chính */
    --bg-card: #FFFDF7;      /* Off White - card / vùng nổi */
    --sand: #E6D7BC;         /* Soft Sand - section phụ */
    --border-color: #E6D7BC;
    --gold: #B84A2B;         /* Terracotta - highlight chính */
    --gold-hover: #9C3B20;
    --burgundy: #681F1B;     /* Deep Burgundy - CTA / section nổi bật */
    --olive: #686B4D;        /* Muted Olive - accent phụ */
    --text-main: #171513;    /* Soft Black - heading / text */
    --text-muted: #4A3429;   /* Warm Brown - chữ phụ */
    --nav-green: #FFFDF7;
    --logo-gold: #B84A2B;
}

.grandnang-home {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

.section-heading {
    color: var(--gold) !important;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.section-heading::before {
    content: "";
    display: inline-block;
    width: 50px;
    height: 2px;
    background-color: var(--gold);
}

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

.hero-section-home {
    position: relative;
    width: 100%;
    height: 90vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-slides-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}
.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s ease;
    transform: scale(1);
    filter: brightness(0.8);
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1.08);
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(23,21,19,0.45), rgba(23,21,19,0.92));
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}
.hero-title {
    font-size: 4.5rem;
    color: var(--gold) !important;
    margin: 0 0 10px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    letter-spacing: 5px;
}
.hero-subtitle {
    font-size: 1.5rem;
    color: #ffffff !important;
    font-weight: 300;
    margin-bottom: 25px;
    letter-spacing: 2px;
}
.hero-desc {
    font-size: 1.1rem;
    color: #e0e0e0 !important;
    margin-bottom: 40px;
    line-height: 1.6;
}
.btn-hero-cta {
    background: var(--gold);
    color: #FFFDF7;
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 5px 20px rgba(184,74,43,0.4);
}
.btn-hero-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(184,74,43,0.7);
}
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}
.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: 0.3s;
}
.hero-dot.active {
    background: var(--gold);
    width: 30px;
    border-radius: 6px;
}

.about-section {
    padding: 100px 5%;
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}
.about-text { flex: 1; }
.about-slogan {
    font-size: 1.8rem;
    color: #171513 !important;
    margin-bottom: 20px;
    line-height: 1.4;
}
.about-text p {
    color: #4A3429 !important;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 15px;
}
.about-image-wrapper {
    flex: 1;
    position: relative;
    height: 500px;
    perspective: 1000px;
}
.about-img {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(74,52,41,0.24);
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.main-img { width: 80%; height: 80%; top: 0; left: 0; z-index: 1; }
.sub-img { width: 60%; height: 60%; bottom: 0; right: 0; z-index: 2; border: 4px solid var(--gold); }
.about-image-wrapper:hover .main-img { transform: rotateY(-5deg) rotateX(5deg) scale(1.03) translateX(-10px); }
.about-image-wrapper:hover .sub-img { transform: rotateY(5deg) rotateX(-5deg) scale(1.06) translateY(-15px); }

.concept-section {
    padding: 100px 3%;
    background: #E6D7BC;
}
/* Kho ảnh: xếp theo CỘT (masonry), mỗi ảnh giữ NGUYÊN tỉ lệ gốc lúc tải lên — không cắt, không để ô trống */
.masonry-container {
    column-count: 4;
    column-gap: 16px;
    max-width: 1500px;
    margin: 0 auto;
}
.masonry-item {
    position: relative;
    display: block;
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(74,52,41,0.12);
    border: 1px solid rgba(184,74,43,0.2);
    transition: all 0.4s ease;
}
.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s ease;
    filter: brightness(0.95);
}
.masonry-item.gallery-add-tile { min-height: 160px; }

.masonry-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 20px 15px;
    background: linear-gradient(to top, rgba(23,21,19,0.9), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.masonry-overlay h4 {
    color: var(--gold);
    margin: 0;
    font-size: 1.1rem;
}
.masonry-item:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(184,74,43,0.3);
}
.masonry-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}
.masonry-item:hover .masonry-overlay { opacity: 1; }

.parallax-banner {
    position: relative;
    height: 450px;
    overflow: hidden;
    margin: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.parallax-bg {
    position: absolute;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    z-index: 1;
    transform: scale(1.05);
}
.parallax-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(23,21,19,0.2) 0%, rgba(23,21,19,0.8) 100%);
    z-index: 2;
}
.parallax-content {
    position: relative;
    z-index: 3;
    padding: 0 20px;
}
.parallax-content h3 { color: var(--gold) !important; font-size: 2.2rem; margin-bottom: 12px; letter-spacing: 3px; }
.parallax-content p { color: #ffffff !important; font-size: 1.15rem; max-width: 650px; margin: 0 auto; opacity: 0.95; }

.features-section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease;
}
.feature-box:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(184,74,43,0.15);
}
.feat-icon { font-size: 3rem; color: var(--gold); margin-bottom: 20px; transition: transform 0.4s; }
.feature-box:hover .feat-icon { transform: scale(1.2); }
.feature-box h4 { color: #171513 !important; margin-bottom: 15px; font-size: 1.2rem; }
.feature-box p { color: #4A3429 !important; line-height: 1.6; font-size: 0.95rem; }

.cta-section {
    padding: 120px 20px;
    text-align: center;
    background: linear-gradient(rgba(23,21,19,0.8), rgba(23,21,19,0.95)), url('cta-bg.jpg') center/cover fixed;
}
.cta-content h2 { font-size: 3rem; color: var(--gold) !important; margin-bottom: 20px; letter-spacing: 1px; }
.cta-content p { color: #ffffff !important; }

@media (min-width: 1400px) { .masonry-container { column-count: 5; } }
@media (max-width: 1024px) { .masonry-container { column-count: 3; } }
@media (max-width: 768px) {
    .masonry-container { column-count: 2; column-gap: 10px; }
    .masonry-item { margin-bottom: 10px; }
    .about-section { flex-direction: column; }
    .about-image-wrapper { height: 350px; width: 100%; margin-top: 30px; }
    .hero-title { font-size: 3rem; }
}
