/* ═══════════════════════════════════════
   HOME — Emerald Premium Design System
   Đa Hữu Phước — Đá mài, Đá rửa, Terrazzo
═══════════════════════════════════════ */

/* ═══════ HERO ═══════ */
.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-dark, #0A1F0D) 0%, #0F2B14 50%, #0D3B12 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(27, 94, 32, 0.2), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(200, 169, 81, 0.1), transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content .badge-gold {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, rgba(200, 169, 81, 0.15), rgba(200, 169, 81, 0.05));
    color: #C8A951;
    border: 1px solid rgba(200, 169, 81, 0.3);
    margin-bottom: 24px;
}

.hero h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero h2 span {
    background: linear-gradient(135deg, #C8A951, #E8D48B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
    max-width: 500px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat h3 {
    font-size: 2rem;
    color: #C8A951;
    font-weight: 800;
}

.hero-stat p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.hero-visual {
    position: relative;
}

.hero-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hero-img {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: rgba(255, 255, 255, 0.06);
}

.hero-img:first-child {
    margin-top: 40px;
}

.hero-img:nth-child(2) {
    margin-top: -20px;
}

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

/* ═══════ SECTION COMMON ═══════ */
.section {
    padding: 80px 0;
}

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

.section-header .badge-gold {
    margin-bottom: 20px;
}

.badge-gold {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, rgba(200, 169, 81, 0.15), rgba(200, 169, 81, 0.05));
    color: #C8A951;
    border: 1px solid rgba(200, 169, 81, 0.3);
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #0D2812;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #1B5E20, #C8A951);
    border-radius: 3px;
}

.section-header p {
    color: #64748b;
    max-width: 600px;
    margin: 16px auto 0;
    font-size: 1rem;
    line-height: 1.7;
}

/* ═══════ SERVICES ═══════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E8E8EE;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.service-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

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

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

.service-body {
    padding: 24px;
}

.service-body h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #1A1A2E;
}

.service-body p {
    font-size: 0.85rem;
    color: #8E8EA0;
    line-height: 1.6;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1B5E20;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 16px;
}

.service-link:hover {
    gap: 10px;
}

/* ═══════ VIDEO SECTION ═══════ */
.video-section {
    background: linear-gradient(180deg, #FAFAFA 0%, #F0F5F1 100%);
}

.video-home-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.video-home-card {
    width: 280px;
    flex-shrink: 0;
}

.video-home-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #0a1f0d;
    aspect-ratio: 9/16;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-home-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.video-home-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-home-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 31, 13, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-home-overlay.playing {
    background: transparent;
    pointer-events: none;
}

.video-home-overlay.playing .video-play-btn {
    opacity: 0;
    transform: scale(0.5);
}

.video-play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #1B5E20;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    padding-left: 4px;
}

.video-play-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

.video-home-title {
    text-align: center;
    font-size: 0.95rem;
    color: #1A1A2E;
    margin-top: 16px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .video-home-grid {
        gap: 20px;
    }

    .video-home-card {
        width: 240px;
    }
}

@media (max-width: 480px) {
    .video-home-card {
        width: 100%;
        max-width: 300px;
    }
}

/* ═══════ PRODUCTS ═══════ */
.products-section {
    background: linear-gradient(180deg, #F0F5F1 0%, #FAFAFA 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E8E8EE;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 16px rgba(27, 94, 32, 0.08);
}

.product-img {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

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

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

.product-body {
    padding: 20px;
}

.product-body h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.product-body h3 a {
    color: #1A1A2E;
}

.product-body h3 a:hover {
    color: #1B5E20;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-price .price {
    font-weight: 700;
    color: #1B5E20;
    font-size: 0.95rem;
}

.product-price .price-old {
    font-size: 0.8rem;
    color: #8E8EA0;
    text-decoration: line-through;
}

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: #1B5E20;
    color: #fff;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ═══════ PROJECTS ═══════ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
}

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

.project-card:hover img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 31, 13, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
}

.project-overlay h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* ═══════ WHY US ═══════ */
.whyus-section {
    background: linear-gradient(135deg, #0A1F0D, #0F2B14);
    color: #fff;
}

.whyus-section .section-header h2 {
    color: #fff;
}

.whyus-section .section-header p {
    color: rgba(255, 255, 255, 0.5);
}

.whyus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.whyus-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.whyus-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.whyus-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(200, 169, 81, 0.2), rgba(200, 169, 81, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #C8A951;
}

.whyus-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.whyus-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* ═══════ CTA ═══════ */
.cta-section {
    padding: 80px 0;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
    border-radius: 24px;
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 169, 81, 0.2), transparent 70%);
    border-radius: 50%;
}

.cta-box h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin-bottom: 32px;
    position: relative;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    position: relative;
}

/* ═══════ BUTTONS ═══════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
    color: #fff;
    box-shadow: 0 4px 16px rgba(27, 94, 32, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(27, 94, 32, 0.4);
}

.btn-gold {
    background: linear-gradient(135deg, #C8A951, #D4AF37);
    color: #0A1F0D;
    box-shadow: 0 4px 16px rgba(200, 169, 81, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(200, 169, 81, 0.4);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-white {
    background: #fff;
    color: #1B5E20;
    font-weight: 700;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn-outline-gold {
    background: transparent;
    color: #C8A951;
    border: 2px solid rgba(200, 169, 81, 0.5);
}

.btn-outline-gold:hover {
    background: rgba(200, 169, 81, 0.1);
}

/* ═══════ ABOUT SECTION ═══════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #1A1A2E;
}

.about-content p {
    color: #5A5A6E;
    line-height: 1.8;
    margin-bottom: 24px;
}

/* ═══════ FLOATING CTA ═══════ */
.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn.phone {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
}

.floating-btn.zalo {
    background: linear-gradient(135deg, #0068FF, #0099FF);
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        display: none;
    }

    .hero h2 {
        font-size: 2.4rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .whyus-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .whyus-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 48px 24px;
    }

    .cta-box h2 {
        font-size: 1.6rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}