/* Custom CSS for Al-Hilali Gold (HilaliCrab-Gold) / ALHILALY ALADRISI ADVANCED BUSINESS CO.LTD */
:root {
    --bg-primary: #0a0c10;
    --bg-secondary: #12161f;
    --bg-card: rgba(22, 28, 38, 0.85);
    --border-color: rgba(212, 175, 55, 0.25);
    --border-hover: rgba(212, 175, 55, 0.6);
    
    --gold-primary: #d4af37;
    --gold-light: #f7e089;
    --gold-dark: #aa820a;
    --gold-gradient: linear-gradient(135deg, #ffe58f 0%, #d4af37 50%, #aa820a 100%);
    --gold-glow: 0 0 25px rgba(212, 175, 55, 0.35);
    
    --green-verified: #10b981;
    --green-glow: 0 0 20px rgba(16, 185, 129, 0.35);
    --red-alert: #ef4444;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --font-ar: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-en: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-ar);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.8) 0%, var(--bg-primary) 100%);
    min-height: 100vh;
}

body.lang-en {
    font-family: var(--font-en);
    direction: ltr;
}

body.lang-ar {
    font-family: var(--font-ar);
    direction: rtl;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    text-decoration: none;
    min-width: 0;
    flex: 1;
}

.brand-logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    min-width: 0;
    flex: 1;
}

.brand-logo-img {
    height: clamp(52px, 11vw, 68px);
    width: clamp(52px, 11vw, 68px);
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 3px 14px rgba(212, 175, 55, 0.45));
    flex-shrink: 0;
    align-self: center;
    border-radius: 50%;
}

.brand-title {
    font-size: clamp(0.78rem, 2.5vw, 1.15rem);
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1.2;
    white-space: nowrap;
}

.brand-subtitle {
    font-size: clamp(0.65rem, 1.8vw, 0.8rem);
    color: var(--text-secondary);
    white-space: nowrap;
    margin-top: 0.1rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.btn-lang {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: var(--transition-fast);
}

.btn-lang:hover {
    background: var(--gold-gradient);
    color: #000;
    box-shadow: var(--gold-glow);
}

/* Main Content Area */
.main-content {
    padding: 2rem 1rem 3rem 1rem;
}

/* Verified Status Banner */
.verified-banner {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3.5vw, 1.75rem);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--green-glow);
    position: relative;
    overflow: hidden;
}

.verified-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #34d399, #10b981);
}

.banner-icon {
    width: 54px;
    height: 54px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.banner-info {
    flex: 1;
}

.banner-title {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 800;
    color: #34d399;
    margin-bottom: 0.25rem;
}

.banner-sub {
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.batch-tag {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px dashed rgba(16, 185, 129, 0.5);
    color: #a7f3d0;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

/* SECTION 1: Product Showcase Hero & Specs */
.product-hero-section {
    margin-bottom: 3.5rem;
}

.product-main-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3.5vw, 2.25rem);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(14px);
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2.25rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 900px) {
    .product-main-card {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

.product-image-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

.badge-top-official {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: var(--gold-gradient);
    color: #000;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
    margin-bottom: 1.25rem;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(10, 12, 16, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.product-bag-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    display: block;
    margin: 0 auto;
    transition: transform 0.4s ease;
}

.product-bag-img:hover {
    transform: scale(1.03);
}

.product-details-column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.4rem;
}

.product-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* Checker Search Form */
.checker-box {
    background: rgba(10, 12, 16, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.checker-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.checker-form {
    display: flex;
    gap: 0.6rem;
}

@media (max-width: 480px) {
    .checker-form {
        flex-direction: column;
    }
}

.checker-input {
    flex: 1;
    background: rgba(18, 22, 31, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition-fast);
}

.checker-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.checker-btn {
    background: var(--gold-gradient);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.25rem;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.checker-btn:hover {
    box-shadow: var(--gold-glow);
}

.check-result-msg {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.check-result-msg.success {
    color: #34d399;
}

.check-result-msg.error {
    color: #f87171;
}

.specs-header-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gold-light);
    margin-bottom: 0.85rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed var(--border-color);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 520px) {
    .specs-grid {
        grid-template-columns: 1fr;
    }
}

.spec-item {
    background: rgba(10, 12, 16, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.9rem;
    transition: var(--transition-fast);
}

.spec-item:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
}

.spec-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.15rem;
}

.spec-value {
    font-size: clamp(0.9rem, 2.2vw, 1rem);
    font-weight: 700;
    color: var(--gold-light);
    word-break: break-word;
}

.spec-value.highlight {
    color: #34d399;
}

.action-buttons {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.btn-certificate {
    flex: 1;
    min-width: 200px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
    padding: 0.8rem 1.15rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-certificate:hover {
    background: var(--gold-gradient);
    color: #000;
    box-shadow: var(--gold-glow);
}

.btn-report {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 0.8rem 1.15rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-report:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--red-alert);
}

@media (max-width: 520px) {
    .btn-certificate, .btn-report {
        width: 100%;
        min-width: 100%;
    }
}

/* SECTION 2: Security Verification Checklist */
.security-section {
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: clamp(1.3rem, 3.5vw, 1.6rem);
    font-weight: 800;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

.security-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.security-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition-normal);
}

.security-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-primary);
    box-shadow: var(--gold-glow);
}

.card-num {
    width: 36px;
    height: 36px;
    background: var(--gold-gradient);
    color: #000;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* SECTION 3: Technical Details Grid for Mining */
.tech-details-card {
    background: linear-gradient(145deg, rgba(18, 22, 31, 0.9), rgba(10, 12, 16, 0.95));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3.5vw, 2.25rem);
    margin-bottom: 3.5rem;
}

.tech-title {
    text-align: inherit;
    margin-bottom: 1rem;
}

.tech-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.feature-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition-fast);
}

.feature-box:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
}

.feature-box i {
    font-size: 1.6rem;
    color: var(--gold-primary);
    margin-bottom: 0.6rem;
    display: block;
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 0.4rem;
}

.feature-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer & Company Stamp */
.footer {
    background: rgba(6, 8, 12, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0 2rem 0;
    text-align: center;
}

.footer-top {
    margin-bottom: 1.25rem;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.35rem;
}

.footer-phone {
    font-size: 1.05rem;
    color: var(--gold-light);
    direction: ltr;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-phone:hover {
    color: var(--gold-primary);
}

.footer-divider {
    width: 100%;
    max-width: 900px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 1.5rem auto;
}

.footer-stamp {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding-top: 0.5rem;
}

.stamp-logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 14px rgba(236, 72, 153, 0.45));
    transition: transform 0.3s ease;
}

.stamp-logo-img:hover {
    transform: scale(1.08);
}

.stamp-text {
    font-size: clamp(0.95rem, 2.4vw, 1.1rem);
    color: #cbd5e1;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

.stamp-text .text-cyan {
    color: #06b6d4;
    font-weight: 700;
}

.stamp-text .text-pink {
    color: #ec4899;
    font-weight: 700;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-secondary);
    border: 2px solid var(--gold-primary);
    border-radius: var(--radius-lg);
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: clamp(1.25rem, 4vw, 2rem);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: var(--gold-glow);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

body.lang-en .modal-close {
    left: auto;
    right: 1rem;
}

.modal-close:hover {
    color: #fff;
}

.certificate-header {
    text-align: center;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

.cert-stamp {
    width: 64px;
    height: 64px;
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.cert-title {
    font-size: clamp(1.2rem, 3.5vw, 1.4rem);
    font-weight: 800;
    color: var(--gold-light);
}

.cert-body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.cert-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.cert-table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
    min-width: 300px;
}

.cert-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: clamp(0.82rem, 2.2vw, 0.9rem);
}

.cert-table tr td:first-child {
    color: var(--text-muted);
    font-weight: 600;
}

.cert-table tr td:last-child {
    color: var(--gold-light);
    font-weight: 700;
}

.cert-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: #34d399;
    font-weight: 700;
}

.footer-stamp-link {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition-fast);
}

.footer-stamp-link:hover .stamp-logo-img {
    transform: scale(1.12);
    filter: drop-shadow(0 0 22px rgba(236, 72, 153, 0.7));
}

.footer-stamp-link:hover .stamp-text {
    opacity: 0.95;
}
