/* ==========================================================================
   PREMIUM ANCIENT EGYPT ARCHETYPE (OBSIDIAN, DESERT SAND & GOLD INLAYS)
   ========================================================================== */
:root {
    --bg-obsidian-prime: #0B0A08;
    --bg-obsidian-surface: #14110E;
    --bg-glass-overlay: rgba(20, 17, 14, 0.85);
    
    --egypt-gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 50%, #AA7C11 100%);
    --egypt-gold: #D4AF37;
    --egypt-gold-hover: #AA7C11;
    --egypt-linen: #EADBC8;
    
    --text-primary: #F5EBE6;
    --text-muted: #A8A29E;
    --text-red: #EF4444;
    
    --border-soft: rgba(212, 175, 55, 0.08);
    --border-sand-glow: rgba(212, 175, 55, 0.25);
    
    --font-serif: 'Cinzel Decorative', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    
    --transition-regal: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    background-color: var(--bg-obsidian-prime);
    color: var(--text-primary);
    font-family: var(--font-sans);
}

body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Structural Layout Matrices */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.text-center { text-align: center; }
.max-w-800 { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }
.p-4 { padding: 2.5rem; }
.m-0 { margin: 0 !important; }
.uppercase-text { text-transform: uppercase; letter-spacing: 1.5px; }
.text-sm { font-size: 0.95rem; }
.text-xs { font-size: 0.85rem; }
.text-sand { color: var(--egypt-gold) !important; }
.bg-obsidian-surface { background-color: var(--bg-obsidian-surface); }
.order-2-mobile { order: 0; }
.order-1-mobile { order: 0; }

h1, h2, h3, h4 { font-family: var(--font-serif); color: #FFFFFF; font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.5px; color: var(--egypt-linen); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); letter-spacing: -0.5px; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--egypt-gold); }
p { line-height: 1.75; margin-bottom: 1rem; }

.text-gold-gradient { background: var(--egypt-gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Regal Interactive Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 32px; border-radius: 0px; font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; text-decoration: none;
    cursor: pointer; transition: var(--transition-regal); border: 1px solid transparent;
}
.btn-gold-solid { background-color: var(--egypt-gold); color: var(--bg-obsidian-prime); }
.btn-gold-solid:hover { background-color: #FFFFFF; color: var(--bg-obsidian-prime); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3); }

.btn-outline-linen { background-color: transparent; border-color: var(--egypt-linen); color: var(--egypt-linen); }
.btn-outline-linen:hover { border-color: var(--egypt-gold); color: var(--egypt-gold); background-color: rgba(212, 175, 55, 0.02); }
.btn-sm { padding: 8px 20px; font-size: 0.8rem; }
.btn-lg { padding: 14px 36px; font-size: 0.95rem; }

/* ==========================================================================
   NAVIGATION SYSTEMS
   ========================================================================== */
.pharaoh-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    height: 90px; display: flex; align-items: center; transition: var(--transition-regal);
    border-bottom: 1px solid var(--border-soft);
}
.pharaoh-header.sticky-scrolled {
    height: 70px; background-color: var(--bg-glass-overlay);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-sand-glow);
}
.navbar-split-flex { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.pharaoh-logo-asset { height: 36px; display: block; }
.pharaoh-navigation-menu { display: flex; gap: 28px; }
.pharaoh-nav-link { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition-regal); }
.pharaoh-nav-link:hover { color: var(--egypt-gold); }

/* ==========================================================================
   HERO DISPLAY BUILD
   ========================================================================== */
.hero-egypt-block { position: relative; padding: 180px 0 100px; overflow: hidden; }
.egypt-sand-glow {
    position: absolute; top: -10%; right: -5%; width: 550px; height: 550px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%); z-index: 0;
}
.hero-layout-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.egypt-gold-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--egypt-gold); letter-spacing: 2.5px; margin-bottom: 18px; border-left: 2px solid var(--egypt-gold); padding-left: 8px; }
.hero-lead-text { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 24px; line-height: 1.75; }
.text-linen-muted { color: rgba(234, 219, 200, 0.6); }
.hero-cta-button-row { display: flex; gap: 16px; }

.egypt-image-frame { background-color: var(--bg-obsidian-surface); padding: 14px; border: 1px solid var(--border-soft); }
.frame-gold-hieroglyph { border-color: var(--border-sand-glow); box-shadow: 0 30px 60px rgba(0,0,0,0.6); }
.fluid-source-img { width: 100%; height: auto; display: block; }

/* ==========================================================================
   EDITORIAL WRITING MATRICES & TABLES
   ========================================================================== */
.egypt-section { padding: 95px 0; border-bottom: 1px solid var(--border-soft); }
.section-subtitle-prose { color: var(--text-muted); font-size: 1.1rem; line-height: 1.7; }
.paragraph-text { color: var(--text-muted); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.25rem; }

.egypt-slate-panel { background-color: var(--bg-obsidian-surface); border: 1px solid var(--border-soft); padding: 34px 30px; }
.border-gold-left { border-left: 3px solid var(--egypt-gold); }
.border-sand-glow { border-color: var(--border-sand-glow); }
.error-border { border-color: rgba(239, 68, 68, 0.15); }

.egypt-editorial-bullet-list { fill: none; list-style: none; }
.egypt-editorial-bullet-list i, .egypt-editorial-bullet-list li { position: relative; padding-left: 26px; margin-bottom: 14px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.egypt-editorial-bullet-list li::before { content: '✦'; position: absolute; left: 0; color: var(--egypt-gold); font-size: 0.85rem; top: 0; }
.error-bullets li::before { color: var(--text-red); }
.text-muted-bullets li::before { color: #52525B; }

.egypt-ordered-stepper { list-style: none; counter-reset: egypt-counter; }
.egypt-ordered-stepper li { position: relative; padding-left: 48px; margin-bottom: 18px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.egypt-ordered-stepper li::before { counter-increment: egypt-counter; content: "IV" counter(egypt-counter); position: absolute; left: 0; top: 0; color: var(--egypt-gold); font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.5px; }

.egypt-callout-panel { background: linear-gradient(90deg, rgba(212, 175, 55, 0.02) 0%, transparent 100%); border-left: 3px solid var(--egypt-gold); padding: 20px 24px; }
.egypt-divider { border: 0; height: 1px; background: var(--border-soft); margin: 26px 0; }

/* ==========================================================================
   DYNAMIC RESPONSIVE TABLE TRANSFORMATION (FIX FOR image_473f1f.png)
   ========================================================================== */
.snapshot-section { padding: 50px 0; border-bottom: 1px solid var(--border-soft); }
.data-tables-stack { display: flex; flex-direction: column; gap: 28px; }
.table-responsive-node { width: 100%; overflow: visible; }
.egypt-structured-table { width: 100%; border-collapse: collapse; text-align: left; }
.egypt-structured-table th, .egypt-structured-table td { padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
.egypt-structured-table th { font-family: var(--font-heading); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--egypt-gold); letter-spacing: 1px; background-color: rgba(0,0,0,0.2); }
.egypt-structured-table td { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }
.bold-linen-text { color: var(--egypt-linen) !important; font-weight: 500; }

@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .hero-layout-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-cta-button-row { justify-content: center; }
    .hero-visual-column { order: -1; max-width: 480px; margin: 0 auto; }
    .footer-grid-layout { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .compliance-badges { justify-content: center; }
    
    /* Table Transformation Engine */
    .egypt-structured-table, 
    .egypt-structured-table thead, 
    .egypt-structured-table tbody, 
    .egypt-structured-table tr, 
    .egypt-structured-table td { display: block; width: 100%; }
    .egypt-structured-table thead { display: none; }
    .egypt-structured-table tr { margin-bottom: 24px; border: 1px solid var(--border-soft); padding: 20px; background: var(--bg-obsidian-surface); }
    .egypt-structured-table td { padding: 10px 0; border: none; display: flex; flex-direction: column; }
    .egypt-structured-table td::before {
        content: attr(data-label);
        font-family: var(--font-heading);
        font-size: 0.75rem;
        text-transform: uppercase;
        color: var(--egypt-gold);
        margin-bottom: 6px;
        font-weight: 700;
        letter-spacing: 0.5px;
    }
}

/* ==========================================================================
   DYNAMIC INTERACTIVE ACCORDIONFAQ
   ========================================================================== */
.egypt-accordion-group { display: flex; flex-direction: column; gap: 12px; }
.accordion-node-card { background-color: var(--bg-obsidian-surface); border: 1px solid var(--border-soft); overflow: hidden; }
.accordion-trigger-button { width: 100%; background: transparent; border: none; padding: 22px 24px; text-align: left; color: #FFFFFF; font-family: var(--font-sans); font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition-regal); }
.accordion-trigger-button:hover { color: var(--egypt-gold); }
.pharaoh-indicator-icon { position: relative; width: 12px; height: 12px; flex-shrink: 0; }
.pharaoh-indicator-icon::before, .pharaoh-indicator-icon::after { content: ''; position: absolute; background-color: var(--egypt-gold); transition: var(--transition-regal); }
.pharaoh-indicator-icon::before { top: 5px; left: 0; width: 12px; height: 2px; }
.pharaoh-indicator-icon::after { top: 0; left: 5px; width: 2px; height: 12px; }

.accordion-panel-viewport { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.accordion-panel-viewport p { overflow: hidden; padding: 0 24px 22px 24px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

.accordion-node-card.active { border-color: var(--border-sand-glow); }
.accordion-node-card.active .accordion-panel-viewport { grid-template-rows: 1fr; }
.accordion-node-card.active .pharaoh-indicator-icon::after { transform: rotate(90deg); opacity: 0; }

/* ==========================================================================
   FOOTER COMPLIANCE & COOKIES OVERLAY
   ========================================================================== */
.pharaoh-footer { background-color: #060504; padding: 85px 0 30px; border-top: 1px solid var(--border-soft); }
.footer-grid-layout { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 48px; }
.grey-filter { filter: grayscale(1); opacity: 0.25; }
.footer-meta-prose { font-size: 0.85rem; color: var(--text-muted); margin-top: 16px; line-height: 1.6; }
.pharaoh-footer h4 { font-size: 0.85rem; text-transform: uppercase; color: #FFFFFF; letter-spacing: 1px; margin-bottom: 20px; font-family: var(--font-heading); }
.footer-links-column { display: flex; flex-direction: column; gap: 12px; }
.footer-links-column a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: var(--transition-regal); }
.footer-links-column a:hover { color: var(--egypt-gold); }

.compliance-badges { display: flex; gap: 10px; margin-bottom: 14px; }
.badge-item { padding: 4px 10px; font-weight: 700; font-size: 0.75rem; border: 1px solid rgba(255,255,255,0.05); }
.age-red { color: #EF4444; border-color: rgba(239,68,68,0.2); }
.ssl-secure { color: #10B981; border-color: rgba(16,185,129,0.2); }
.footer-bottom-bar { margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--border-soft); color: rgba(255,255,255,0.1); font-size: 0.8rem; }

/* Cookie sand overlay banner floating */
.cookie-egypt-overlay {
    position: fixed; bottom: 24px; left: 24px; right: 24px;
    background-color: var(--bg-obsidian-surface); border: 1px solid var(--border-soft);
    padding: 16px 24px; z-index: 1100; transform: translateY(180%); transition: var(--transition-regal);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.cookie-egypt-overlay.notice-visible { transform: translateY(0); border-color: var(--border-sand-glow); }
.cookie-flex-container { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.cookie-notice-text { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

@media (max-width: 768px) {
    .bank-navigation, .header-action, .timber-navigation, .navigation-menu-links, .press-nav-links, .header-action-zone, .navigation-menu, .pharaoh-navigation-menu, .header-action-button-block { display: none; }
    .cookie-flex-container { flex-direction: column; align-items: flex-start; }
    .cookie-flex-container button { align-self: flex-end; }
}