/**
 * ========================================
 * RONGHAO Homepage Styles
 * ========================================
 * Page-specific styles for the homepage.
 */

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a1a1a 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(190, 18, 60, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(190, 18, 60, 0.1) 0%, transparent 40%);
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-inner {
    max-width: 900px;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-tagline::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--color-accent);
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 24px;
}

.hero-title-accent {
    color: var(--color-accent);
    display: block;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin-bottom: 40px;
}

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

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    animation: bounce 2s infinite;
}

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

/* ========================================
   Advantages Section (Bento Grid)
   ======================================== */
.advantages {
    background: var(--color-background);
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 20px;
}

.bento-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* Card Sizes */
.bento-card-large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a1a1a 100%);
    color: var(--color-white);
}

.bento-card-medium {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-card-full {
    grid-column: span 4;
    grid-row: span 1;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

/* Card Content Styles */
.card-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.bento-card-large .card-label {
    color: rgba(255,255,255,0.6);
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.bento-card-large .card-title {
    font-size: 32px;
    color: var(--color-white);
}

.card-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-secondary);
}

.bento-card-large .card-description {
    color: rgba(255,255,255,0.7);
    max-width: 90%;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 14px;
    margin-top: auto;
}

.card-link:hover {
    gap: 12px;
}

.bento-card-large .card-link {
    color: var(--color-white);
}

/* Data Card Styles */
.data-number {
    font-size: 56px;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 8px;
}

.data-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.data-sublabel {
    font-size: 13px;
    color: var(--color-secondary);
}

/* Certification Card */
.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.cert-badge {
    background: var(--color-background);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-secondary);
}

/* Service Promise Card */
.promise-list {
    display: flex;
    gap: 40px;
    flex: 1;
}

.promise-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.promise-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.promise-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-primary);
}

/* Decorative Elements */
.card-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(190, 18, 60, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.bento-card-large .card-decoration {
    background: radial-gradient(circle, rgba(190, 18, 60, 0.2) 0%, transparent 70%);
}

/* ========================================
   Products Section
   ======================================== */
.products {
    background: var(--color-white);
}

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

.product-card {
    background: var(--color-background);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-image {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e5e5e5 0%, #d4d4d4 100%);
    position: relative;
    overflow: hidden;
}

.product-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 14px;
}

.product-content {
    padding: 24px;
}

.product-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.product-description {
    font-size: 14px;
    color: var(--color-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-link:hover {
    color: var(--color-accent);
}

.btn-small {
    padding: 8px 20px;
    font-size: 13px;
}

/* CTA Banner */
.cta-banner {
    margin-top: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(190, 18, 60, 0.15) 0%, transparent 60%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
}

.cta-description {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

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

.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 991px) {
    :root {
        --section-gap: 80px;
    }

    .hero-title {
        font-size: 48px;
    }

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

    .bento-card-large {
        grid-column: span 2;
        grid-row: span 2;
        min-height: 400px;
    }

    .bento-card-medium {
        grid-column: span 1;
        min-height: 200px;
    }

    .bento-card-full {
        grid-column: span 2;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

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

    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

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

    .bento-card-large,
    .bento-card-medium,
    .bento-card-full {
        grid-column: span 1;
        grid-row: span 1;
        min-height: auto;
    }

    .bento-card-large {
        padding: 28px;
    }

    .bento-card-large .card-title {
        font-size: 24px;
    }

    .promise-list {
        flex-direction: column;
        gap: 20px;
    }

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

    .cta-banner {
        padding: 32px 24px;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
}

/* ========================================
   Logo Color Helper
   ======================================== */
.logo-hao {
    color: var(--color-accent);
}