/*
Theme Name: Zahra Jewellry Premium
Theme URI: https://zahrajewelry.id
Author: Jarjani - Code Aceh
Author URI: https://zahrajewelry.id
Description: Tema WordPress Premium dan Profesional khusus Toko Emas & Perhiasan. Dilengkapi kustomisasi warna, header/footer, hero section, serta Panel Admin khusus Update Harga Emas Per Mayam & Gram.
Version: 1.0.1
Text Domain: zahra-jewelry
*/

:root {
    --primary-gold: #D4AF37;
    --light-gold: #F3E5AB;
    --dark-gold: #AA7C11;
    --primary-maroon: #6A0F1F;
    --dark-maroon: #420812;
    --light-maroon: #8B1E2D;
    --bg-dark: #111111;
    --bg-light: #FAFAFA;
    --text-dark: #222222;
    --text-muted: #666666;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4, .brand-font { font-family: 'Cinzel', serif; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.top-bar { background-color: var(--dark-maroon); color: var(--light-gold); padding: 8px 0; font-size: 0.85rem; border-bottom: 1px solid rgba(212, 175, 55, 0.3); }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-info { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar-social a { color: var(--light-gold); margin-left: 15px; }
.top-bar-social a:hover { color: var(--white); }

/* Header & Nav */
header { background-color: var(--primary-maroon); position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.header-content { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; position: relative; }

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    max-height: 80px; /* Menjaga batas maksimum tinggi header */
    overflow: hidden;
}

.logo-container img, 
.custom-logo-link img, 
.custom-logo {
    display: block;
    height: auto;
    width: auto;
    max-height: 50px;
    object-fit: contain;
}
.logo-icon { width: 42px; height: 42px; background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-maroon); font-size: 1.4rem; font-weight: bold; box-shadow: 0 0 10px rgba(212, 175, 55, 0.5); flex-shrink: 0; }
.logo-text h1 { color: var(--primary-gold); font-size: 1.35rem; letter-spacing: 1px; line-height: 1.1; }
.logo-text p { color: var(--white); font-size: 0.7rem; letter-spacing: 0.5px; opacity: 0.9; }

.menu-toggle { display: none; background: none; border: none; color: var(--primary-gold); font-size: 1.8rem; cursor: pointer; padding: 5px 10px; z-index: 1001; }
nav ul { display: flex; list-style: none; gap: 15px; }
nav a { color: var(--white); font-weight: 600; font-size: 0.9rem; padding: 8px 12px; border-radius: 4px; display: block; }
nav a:hover, nav li.current-menu-item > a, nav a.active { color: var(--primary-gold); background: rgba(255,255,255,0.08); }

.nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 998; backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.3s ease; }
.nav-overlay.active { display: block; opacity: 1; }

/* Page Header Banner */
.page-header { background: linear-gradient(rgba(17, 17, 17, 0.8), rgba(66, 8, 18, 0.88)), url('https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?auto=format&fit=crop&w=1350&q=80') center/cover; color: var(--white); padding: 50px 0; text-align: center; }
.page-title { color: var(--primary-gold); font-size: 2.2rem; margin-bottom: 10px; }
.breadcrumb { font-size: 0.9rem; color: #ccc; }
.breadcrumb a { color: var(--light-gold); }

/* Hero Section */
.hero { color: var(--white); padding: 70px 0 90px; text-align: center; position: relative; }
.hero-title { color: var(--primary-gold); font-size: 2.2rem; max-width: 800px; margin: 0 auto 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.6); line-height: 1.3; }
.hero-subtitle { font-size: 1rem; max-width: 650px; margin: 0 auto 30px; opacity: 0.9; }
.cta-btn { display: inline-block; background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold)); color: var(--dark-maroon); padding: 14px 32px; font-weight: 700; border-radius: 30px; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4); }

/* Live Gold Price Card */
.gold-price-card { background: var(--bg-dark); border: 2px solid var(--primary-gold); border-radius: 12px; max-width: 900px; margin: -40px auto 50px; padding: 22px 28px; position: relative; z-index: 10; box-shadow: 0 10px 30px rgba(0,0,0,0.3); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.price-info h3 { color: var(--primary-gold); font-size: 1.15rem; margin-bottom: 5px; display: flex; align-items: center; gap: 10px; }
.price-info p { color: #aaa; font-size: 0.85rem; }
.price-badge { background: rgba(212, 175, 55, 0.15); color: var(--light-gold); padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; border: 1px solid var(--primary-gold); display: inline-block; margin-top: 4px; }
.price-values { display: flex; gap: 25px; }
.price-item { text-align: right; }
.price-item .label { font-size: 0.8rem; color: #ccc; text-transform: uppercase; }
.price-item .val { font-size: 1.4rem; font-weight: 700; color: var(--white); font-family: 'Cinzel', serif; }
.price-item .val span { color: var(--primary-gold); }

/* Section Header */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { color: var(--primary-maroon); font-size: 1.8rem; position: relative; display: inline-block; padding-bottom: 10px; }
.section-header h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--primary-gold); }
.section-header p { color: var(--text-muted); margin-top: 10px; font-size: 0.95rem; }

/* Grid Sections */
.news-section { padding: 50px 0; background-color: var(--white); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.news-card { background: var(--bg-light); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transition: transform 0.3s ease; border: 1px solid #eee; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-5px); }
.news-img { height: 180px; background-size: cover; background-position: center; position: relative; }
.news-badge { position: absolute; top: 12px; left: 12px; background: var(--primary-maroon); color: var(--white); font-size: 0.7rem; padding: 4px 10px; border-radius: 4px; font-weight: 600; }
.news-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.news-content h3 { font-size: 1.05rem; color: var(--text-dark); margin-bottom: 10px; font-weight: 700; }
.news-content p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 15px; flex-grow: 1; }
.news-link { color: var(--primary-maroon); font-size: 0.85rem; font-weight: 700; }

.gallery-section { padding: 50px 0; background-color: var(--bg-light); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; }
.product-card { background: var(--white); border-radius: 10px; overflow: hidden; border: 1px solid #e0e0e0; text-align: center; transition: all 0.3s ease; }
.product-card:hover { border-color: var(--primary-gold); box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2); }
.product-img { height: 220px; background-size: cover; background-position: center; }
.product-info { padding: 18px; }
.product-category { font-size: 0.75rem; color: var(--primary-gold); font-weight: 700; text-transform: uppercase; }
.product-title { font-size: 1.05rem; margin: 6px 0; color: var(--text-dark); }
.product-price { font-weight: 700; color: var(--primary-maroon); font-size: 0.95rem; margin-bottom: 12px; }
.btn-outline { display: inline-block; padding: 8px 18px; border: 1px solid var(--primary-maroon); color: var(--primary-maroon); border-radius: 20px; font-size: 0.85rem; font-weight: 600; }

.features-section { background: linear-gradient(135deg, var(--dark-maroon), var(--primary-maroon)); color: var(--white); padding: 60px 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.feature-box { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(212, 175, 55, 0.2); padding: 25px; border-radius: 10px; display: flex; gap: 18px; align-items: flex-start; }
.feature-icon { font-size: 1.8rem; color: var(--primary-gold); background: rgba(212, 175, 55, 0.1); width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.contact-section { padding: 60px 0; background: var(--white); }
.contact-wrapper, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.consultation-form, .contact-box { background: var(--bg-light); padding: 30px; border-radius: 12px; border: 1px solid #eee; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.88rem; font-weight: 600; }
.form-control { width: 100%; padding: 11px 14px; border: 1px solid #ccc; border-radius: 6px; font-family: inherit; font-size: 0.9rem; }
.btn-submit { width: 100%; background: var(--primary-maroon); color: var(--white); border: none; padding: 13px; border-radius: 6px; font-weight: 700; cursor: pointer; }

/* Footer */
footer { background-color: var(--bg-dark); color: var(--white); padding: 50px 0 20px; border-top: 3px solid var(--primary-gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 35px; margin-bottom: 35px; }
.footer-col h4 { color: var(--primary-gold); font-size: 1.15rem; margin-bottom: 18px; }
.footer-col p { color: #aaa; font-size: 0.88rem; line-height: 1.6; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #ccc; font-size: 0.88rem; }
.footer-links a:hover { color: var(--primary-gold); padding-left: 5px; }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid #222; color: #777; font-size: 0.82rem; }

.float-wa { position: fixed; bottom: 22px; right: 22px; background-color: #25d366; color: white; width: 55px; height: 55px; border-radius: 50px; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 2px 2px 10px rgba(0,0,0,0.3); z-index: 1000; }

@media (max-width: 992px) {
    .menu-toggle { display: block; }
    nav { position: fixed; top: 0; right: -280px; width: 280px; height: 100vh; background-color: var(--dark-maroon); border-left: 2px solid var(--primary-gold); padding: 80px 20px 30px; transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 999; }
    nav.active { right: 0; }
    nav ul { flex-direction: column; gap: 15px; }
    .contact-wrapper, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
}