/* ==========================================================================
   EQUATORIAL GOLDFIELDS LTD. — CORE DESIGN SYSTEM & STYLESHEET
   Brand Theme: Deep Obsidian & Liquid Gold Glassmorphism
   Typography: Outfit (Headings) & Inter (Body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #0B0D12;
    --bg-surface: #121620;
    --bg-surface-elevated: #1A202C;
    --bg-card: rgba(18, 22, 32, 0.75);
    
    --gold-primary: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #AA771C;
    --gold-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    --gold-gradient-soft: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(170, 119, 28, 0.1) 100%);
    --gold-glow: 0 0 25px rgba(212, 175, 55, 0.25);
    
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    
    --border-subtle: rgba(212, 175, 55, 0.15);
    --border-highlight: rgba(212, 175, 55, 0.4);
    
    --accent-emerald: #10B981;
    --accent-emerald-soft: rgba(16, 185, 129, 0.15);
    --accent-blue: #3B82F6;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Structural Tokens */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

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

.desktop-only {
    display: inline;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5.5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 3.5rem auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-full);
    background: var(--gold-gradient-soft);
    border: 1px solid var(--border-subtle);
    color: var(--gold-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Top Announcement & Live Price Ticker Bar (Continuous Right-to-Left Marquee) */
.top-bar {
    background: #06080B;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.78rem;
    padding: 0.45rem 0;
    position: relative;
    z-index: 101;
    overflow: hidden;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

@keyframes marqueeTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-wrap-marquee {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    user-select: none;
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.ticker-content-track {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    white-space: nowrap;
    will-change: transform;
    animation: marqueeTicker 28s linear infinite;
    width: max-content;
}

.ticker-wrap-marquee:hover .ticker-content-track {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
}

.ticker-symbol {
    color: var(--text-muted);
}

.ticker-price {
    font-weight: 600;
    color: var(--text-main);
}

.ticker-change {
    font-size: 0.72rem;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-weight: 600;
}

.ticker-change.up {
    background: var(--accent-emerald-soft);
    color: var(--accent-emerald);
}

.ticker-change.down {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.top-bar-contacts {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.top-bar-contacts a:hover {
    color: var(--gold-primary);
}

/* Header & Glassmorphism Nav */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 13, 18, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-fast);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.logo-emblem {
    width: 34px;
    height: 34px;
    background: var(--gold-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #06080B;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: var(--gold-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    position: relative;
    padding: 0.4rem 0;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

/* Dropdown Menu Component */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(18, 22, 32, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    min-width: 210px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-fast);
    z-index: 150;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 0.55rem 1.15rem;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.nav-dropdown-item:hover {
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.84rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #06080B;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.25);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: rgba(18, 22, 32, 0.6);
    border-color: var(--border-subtle);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--gold-primary);
    background: var(--gold-gradient-soft);
    color: var(--gold-primary);
}

.menu-toggle {
    display: none;
}

/* Mobile Nav Card Buttons */
.mobile-nav-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #121620;
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 0.95rem 1.25rem;
    color: #F8FAFC;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: var(--transition-fast);
    text-decoration: none;
}

.mobile-nav-card:hover, .mobile-nav-card.active {
    border-color: var(--gold-primary);
    background: var(--gold-gradient-soft);
    color: var(--gold-primary);
}

/* Floating Action Controls (Desktop) */
.floating-email-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    background: var(--gold-gradient);
    color: #06080B;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    border: 1px solid rgba(255, 245, 183, 0.5);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.floating-email-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}

.floating-lang-wrap {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 999;
}

.floating-lang-select {
    background: #0B0D12;
    color: var(--gold-primary);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-full);
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    outline: none;
    transition: var(--transition-fast);
}

.floating-lang-select:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 5.5rem 0 4.5rem 0;
    background: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.12) 0%, rgba(11, 13, 18, 1) 70%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    background: var(--accent-emerald-soft);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-title {
    font-size: 3.2rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.25rem;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-subtle);
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Spec Box */
.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
}

.hero-card-title {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
}

.spec-key {
    color: var(--text-muted);
}

.spec-value {
    font-weight: 600;
    color: var(--text-main);
}

.badge-tag {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    border: 1px solid var(--border-subtle);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
}

.feature-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gold-gradient-soft);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Supply Chain Visual Route Grid */
.route-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.route-step {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: var(--transition-fast);
}

.route-step:hover {
    border-color: var(--border-highlight);
    transform: translateY(-3px);
}

.route-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #06080B;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.route-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.route-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* FAQ Accordion Component */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-question {
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-main);
}

.faq-question:hover {
    color: var(--gold-primary);
}

.faq-icon {
    font-size: 1.3rem;
    color: var(--gold-primary);
    transition: var(--transition-fast);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 2rem 1.5rem 2rem;
}

/* Stepper */
.procurement-stepper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.step-card:hover, .step-card.active {
    border-color: var(--border-highlight);
    background: var(--bg-surface-elevated);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold-primary);
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.step-badge {
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-card.active .step-badge {
    background: var(--gold-gradient-soft);
    color: var(--gold-primary);
    border-color: var(--border-subtle);
}

/* Calculator Systems & Inputs */
.calc-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2.5rem;
    width: 100%;
    box-sizing: border-box;
}

.calc-inputs, .calc-results {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
    box-sizing: border-box;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-control {
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem; /* Prevents auto-zoom on iOS */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: var(--transition-fast);
}

select.form-control {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    appearance: auto;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.calc-results {
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calc-res-row {
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.calc-res-row:last-child {
    border-bottom: none;
}

.calc-res-val {
    font-weight: 700;
    color: var(--gold-primary);
}

/* Compliance Grid */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.compliance-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.compliance-icon {
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 0.85rem;
}

.compliance-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.compliance-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer Section */
.footer {
    background: #06080B;
    border-top: 1px solid var(--border-subtle);
    padding: 4.5rem 0 2rem 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.footer-brand p {
    margin-top: 0.85rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-title {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 1.1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a:hover {
    color: var(--gold-primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 8, 11, 0.88);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 620px;
    padding: 2.25rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-main);
}

/* ==========================================================================
   ADVANCED MOBILE & RESPONSIVE MEDIA QUERIES (FLAWLESS MOBILE UX)
   ========================================================================== */

/* ==========================================================================
   ADVANCED MOBILE & RESPONSIVE MEDIA QUERIES (FLAWLESS MOBILE UX)
   ========================================================================== */

html, body {
    overflow-x: hidden;
    width: 100%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
}

.proc-stage-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1050px) {
    .container {
        padding: 0 1.2rem;
    }

    /* Desktop Links Hidden on Mobile */
    .nav-links {
        display: none !important;
    }

    /* Floating Gold Menu Toggle Button ☰ Pinned Below Top Bar */
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 75px;
        right: 1rem;
        z-index: 9998;
        background: var(--gold-gradient);
        color: #06080B;
        font-weight: 800;
        font-size: 1.3rem;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 2px solid #FFFFFF;
        box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .menu-toggle:hover {
        transform: scale(1.08);
        box-shadow: 0 12px 30px rgba(212, 175, 55, 0.7);
    }

    /* Top Header Bar Adjustments on Mobile */
    .header-btn-access {
        display: none !important;
    }
    .header-btn-email {
        padding: 0.45rem 0.85rem;
        font-size: 0.78rem;
    }

    /* Top Ticker Bar on Mobile */
    .top-bar-contacts {
        display: none;
    }
    .top-bar-inner {
        justify-content: center;
    }

    /* Hero Section Responsive Layout */
    .hero {
        padding: 3rem 0 2.5rem 0;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
    .hero-title {
        font-size: clamp(1.75rem, 5.5vw, 2.6rem);
        line-height: 1.25;
        word-break: break-word;
    }
    .hero-subtitle {
        font-size: 0.98rem;
        margin-bottom: 1.75rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.85rem;
        margin-bottom: 2rem;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100% !important;
        box-sizing: border-box;
        justify-content: center;
        text-align: center;
        white-space: normal;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        text-align: center;
    }
    .stat-item {
        background: rgba(212, 175, 55, 0.05);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        padding: 0.85rem 1rem;
    }
    .stat-num {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .compliance-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .route-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    /* Perfect Mobile CIF Calculator Layout */
    .calc-box {
        grid-template-columns: 1fr;
        padding: 1.25rem 1rem;
        gap: 1.5rem;
        margin-top: 1.5rem;
        border-radius: var(--radius-md);
        width: 100%;
        box-sizing: border-box;
    }

    .calc-inputs, .calc-results {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .calc-results {
        padding: 1.25rem 1rem;
        border-radius: var(--radius-md);
    }

    .calc-res-row {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .calc-res-row span:first-child {
        font-size: 0.82rem;
        color: var(--text-muted);
    }

    .calc-res-val {
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--gold-primary);
        text-align: right;
    }

    .calc-actions-wrap {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.25rem;
    }

    .calc-actions-wrap .btn {
        width: 100% !important;
        box-sizing: border-box;
        justify-content: center;
        text-align: center;
        padding: 0.85rem 1rem;
        font-size: 0.88rem;
    }

    .step-card {
        grid-template-columns: 45px 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }
    .step-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    /* Contact Desk Mobile Realignment: Form FIRST (above), Operational Hubs SECOND (below) */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .contact-grid > .hero-card {
        order: 1 !important;
        padding: 1.5rem 1.1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .contact-grid > .calc-box {
        order: 2 !important;
        padding: 1.5rem 1.1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Procedures Stage Cards Mobile Stack */
    .proc-stage-card {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .proc-stage-card .feature-icon {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.5rem !important;
    }

    /* Consistent Floating Action Controls on Mobile */
    .floating-email-btn {
        bottom: 1rem;
        right: 0.75rem;
        padding: 0.65rem 1rem;
        font-size: 0.8rem;
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
        z-index: 9999;
    }
    .floating-lang-wrap {
        display: block !important;
        bottom: 1rem;
        left: 0.75rem;
        z-index: 9999;
    }
    .floating-lang-select {
        padding: 0.6rem 0.85rem;
        font-size: 0.78rem;
        background: #06080B;
        border-color: var(--border-highlight);
    }
}

@media (max-width: 550px) {
    .hero-title {
        font-size: 1.7rem;
    }
    .hero-card {
        padding: 1.25rem 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .hero-card > div[style*="display:flex"] {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    .hero-card .btn {
        width: 100% !important;
        white-space: normal !important;
    }
    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        padding: 0.4rem 0;
        border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    }
    .spec-value {
        font-size: 0.86rem;
    }
    .modal-card {
        padding: 1.25rem;
        margin: 0 0.5rem;
    }
    .section {
        padding: 3rem 0;
    }
}
