/* ═══════════════════════════════════════════════════════════════════════════
   World Gold Diamonds — Home Page Styles
   Sections: Hero · Products · Why Us · Trading · Compliance · Gallery · CTA
═══════════════════════════════════════════════════════════════════════════ */

/* ─── Scroll-triggered fade/slide animations ──────────────────────────────── */
[data-anim] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-anim="fade-right"] { transform: translateX(-40px); }
[data-anim].anim-visible  { opacity: 1; transform: none; }

/* ─── §1 Hero ─────────────────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.06);
    animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom {
    to { transform: scale(1); }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.72) 50%,
        rgba(0,0,0,0.88) 100%
    );
}

/* Particle canvas layer */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 7rem;
    padding-bottom: 10rem;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}
.hero-line-left,
.hero-line-right {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.18;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(245,245,245,0.85);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.btn-hero-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: var(--radius);
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.btn-hero-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Stats bar */
.hero-stats-bar {
    position: relative;
    z-index: 2;
    background: rgba(10,10,10,0.85);
    border-top: 1px solid rgba(201,168,76,0.25);
    backdrop-filter: blur(8px);
    padding: 1.5rem 0;
}
.hero-stat {
    text-align: center;
    padding: 0.75rem 1rem;
    border-right: 1px solid rgba(201,168,76,0.15);
}
.hero-stat:last-child { border-right: none; }
.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold);
}
.stat-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white-muted);
    margin-top: 0.35rem;
}

/* ─── §2 Products ─────────────────────────────────────────────────────────── */
.product-card {
    display: flex;
    flex-direction: column;
}
.product-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--gold);
    transition: background var(--transition), border-color var(--transition);
}
.product-card:hover .product-icon-wrap {
    background: rgba(201,168,76,0.2);
    border-color: var(--gold);
}
.product-name {
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}
.product-desc {
    font-size: 0.875rem;
    color: var(--white-muted);
    line-height: 1.65;
    flex: 1;
}
.product-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 1rem;
    transition: gap var(--transition), color var(--transition);
}
.product-link:hover { color: var(--gold-light); gap: 6px; }

/* ─── §3 Why Choose Us ────────────────────────────────────────────────────── */
.why-card { position: relative; overflow: hidden; }
.why-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 0;
    background: var(--gold);
    transition: height 0.4s ease;
}
.why-card:hover::before { height: 100%; }

.why-icon {
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}
.why-title {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.4rem;
}
.why-desc {
    font-size: 0.85rem;
    color: var(--white-muted);
    line-height: 1.65;
    margin: 0;
}

/* ─── §4 Trading ──────────────────────────────────────────────────────────── */
.trading-section {
    position: relative;
    overflow: hidden;
}
.trading-bg-img {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.trading-bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.18) saturate(0.4);
}
.trading-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.95) 40%, rgba(20,20,20,0.88) 100%);
}
.trading-section .container { position: relative; z-index: 1; }

.trading-feature-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color var(--transition), background var(--transition);
}
.trading-feature-card:hover {
    border-color: rgba(201,168,76,0.4);
    background: rgba(201,168,76,0.05);
}
.trading-feature-icon {
    font-size: 1.75rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}
.trading-feature-title {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.35rem;
}
.trading-feature-desc {
    font-size: 0.875rem;
    color: var(--white-muted);
    margin: 0;
    line-height: 1.65;
}

.trading-metric-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: var(--radius);
    transition: border-color var(--transition), transform var(--transition);
}
.trading-metric-card:hover {
    border-color: rgba(201,168,76,0.45);
    transform: translateY(-4px);
}
.trading-metric-featured {
    border-color: rgba(201,168,76,0.4);
    background: rgba(201,168,76,0.07);
}
.trading-metric-icon {
    font-size: 2rem;
    color: var(--gold);
    display: block;
    margin-bottom: 0.75rem;
}
.trading-metric-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.trading-metric-card p  { font-size: 0.875rem; }

/* ─── §5 Compliance ───────────────────────────────────────────────────────── */
.compliance-card {
    color: var(--white);
    transition: border-color var(--transition), transform var(--transition), background var(--transition);
}
.compliance-card:hover {
    color: var(--gold-light);
    background: rgba(201,168,76,0.06) !important;
    transform: translateY(-3px);
}
.compliance-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(201,168,76,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gold);
    flex-shrink: 0;
    transition: background var(--transition);
}
.compliance-card:hover .compliance-icon { background: rgba(201,168,76,0.25); }
.compliance-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: inherit;
    flex: 1;
}
.compliance-arrow { color: var(--gold); opacity: 0.5; font-size: 0.75rem; }
.compliance-card:hover .compliance-arrow { opacity: 1; }

.compliance-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}
.compliance-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gold);
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 50px;
    padding: 0.4rem 1rem;
}

/* ─── §6 Gallery ──────────────────────────────────────────────────────────── */
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.gallery-filter-btn {
    background: transparent;
    border: 1px solid rgba(201,168,76,0.25);
    color: var(--white-muted);
    border-radius: 50px;
    padding: 0.4rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 220px;
    gap: 8px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
}
/* Span first item wider for visual rhythm */
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(7) { grid-column: span 2; }
.gallery-item:nth-child(13){ grid-column: span 2; grid-row: span 2; }

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.88) saturate(0.9);
}
.gallery-item:hover .gallery-img {
    transform: scale(1.06);
    filter: brightness(1) saturate(1.1);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.gallery-item:hover .gallery-overlay { background: rgba(0,0,0,0.35); }
.gallery-zoom-btn {
    background: var(--gold);
    border: none;
    color: var(--black);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity var(--transition), transform var(--transition);
    cursor: pointer;
}
.gallery-item:hover .gallery-zoom-btn {
    opacity: 1;
    transform: scale(1);
}
.gallery-item.hidden { display: none; }

/* Lightbox */
.lightbox-img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: var(--radius);
}
.lightbox-caption {
    color: var(--white-muted);
    font-size: 0.875rem;
}

/* ─── §7 CTA ──────────────────────────────────────────────────────────────── */
.cta-section {
    position: relative;
    overflow: hidden;
    padding: 7rem 0;
}
.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.2) saturate(0.3);
}
.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.9) 100%);
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 1rem;
}
.cta-sub {
    color: rgba(245,245,245,0.8);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.8;
}
.cta-note { font-size: 0.8rem; color: var(--white-muted); }

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    border: 2px solid #25d366;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
}
.btn-whatsapp:hover {
    background: transparent;
    color: #25d366;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px;
    }
    .gallery-item:nth-child(1)  { grid-column: span 2; grid-row: span 2; }
    .gallery-item:nth-child(7)  { grid-column: span 1; }
    .gallery-item:nth-child(13) { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 767.98px) {
    .hero-content { padding-top: 5rem; padding-bottom: 8rem; }
    .hero-title   { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    .hero-cta .btn { width: 100%; margin-bottom: 0.75rem; }
    .hero-cta .me-3 { margin-right: 0 !important; }
    .hero-stats-bar .hero-stat { border-right: none; border-bottom: 1px solid rgba(201,168,76,0.1); }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }
    .gallery-item:nth-child(1)  { grid-column: span 2; grid-row: span 1; }
    .gallery-item:nth-child(13) { grid-column: span 2; }
    .cta-actions .btn { display: block; width: 100%; margin-bottom: 0.75rem; }
    .cta-actions .me-3 { margin-right: 0 !important; }
}
@media (max-width: 479.98px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
}
