/* 
   WORLD BANK EXPERIENCE - PREMIUM LANDING PAGE CSS 
   Forbes / Bloomberg / Financial Times Aesthetic 
*/

:root {
    --navy: #0A192F;
    --navy-light: #112240;
    --gold: #D4AF37;
    --gold-hover: #C5A017;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --medium-gray: #8892B0;
    --dark-text: #0F172A;
    --border-color: #E2E8F0;
    --shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.1);
    --shadow-hover: 0 20px 40px -15px rgba(2, 12, 27, 0.2);
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

*[id] {
    scroll-margin-top: 80px; /* Offset for fixed header */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--navy);
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.max-w-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--light-gray); }
.bg-navy { background-color: var(--navy); }
.text-white { color: var(--white); }
.text-gold { color: var(--gold); }
.text-light-gray { color: var(--medium-gray); }
.mb-4 { margin-bottom: 2rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.section-padding { padding: 5rem 0; }

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

.title-underline {
    height: 3px;
    width: 60px;
    background-color: var(--gold);
    margin: 0 auto 2rem auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-small { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.btn-large { padding: 1.2rem 2.5rem; font-size: 1.1rem; }

.btn-primary {
    background-color: var(--navy);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--gold);
    color: var(--navy);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--navy);
    color: var(--navy);
}

.btn-secondary:hover {
    background-color: var(--navy);
    color: var(--white);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--navy);
}

.btn-gold:hover {
    background-color: var(--gold-hover);
}

.btn-outline-gold {
    background-color: transparent;
    border-color: var(--gold);
    color: var(--gold);
}

.btn-outline-gold:hover {
    background-color: var(--gold);
    color: var(--navy);
}

.btn-outline-navy {
    background-color: transparent;
    border-color: var(--navy);
    color: var(--navy);
}

.btn-outline-navy:hover {
    background-color: var(--navy);
    color: var(--white);
}

/* Header */
.main-header {
    background-color: var(--navy);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
    border-bottom: 2px solid rgba(212, 175, 55, 0.2); /* Subtle gold border */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo i {
    color: var(--gold);
    margin-right: 0.5rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--gold);
    transition: var(--transition);
}

.main-nav a:not(.btn):hover {
    color: var(--gold);
}

.main-nav a:not(.btn):hover::after {
    width: 100%;
}

.main-nav .btn-primary {
    background-color: var(--gold);
    color: var(--navy);
}

.main-nav .btn-primary:hover {
    background-color: var(--white);
    color: var(--navy);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    position: relative;
    z-index: 1001; /* Stay above the mobile nav */
    padding: 10px; /* Increase tap target size */
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    -webkit-appearance: none;
}

/* Full Screen Overlay Menu */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--navy);
    z-index: 99999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: flex;
    opacity: 1;
}

.close-overlay {
    position: absolute;
    top: 20px;
    right: 25px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 10px;
    -webkit-tap-highlight-color: transparent;
}

.overlay-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    width: 100%;
}

.overlay-nav a {
    color: var(--white);
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.overlay-nav a:not(.btn) {
    padding: 10px;
    display: inline-block;
}

.overlay-nav .btn {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: 5rem;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.hero h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-subheadline {
    font-size: 1.1rem;
    color: var(--medium-gray);
    margin-bottom: 2rem;
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    color: var(--navy);
}

.badge i {
    color: var(--gold);
    font-size: 1.2rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

.portrait-container {
    position: relative;
    border-radius: 8px;
}

.portrait-container img {
    border-radius: 4px;
    box-shadow: var(--shadow);
    object-fit: cover;
    aspect-ratio: 3/4;
}

.authority-stats {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--navy);
    padding: 2rem;
    border-radius: 4px;
    display: flex;
    gap: 2rem;
    box-shadow: var(--shadow-hover);
    border-left: 4px solid var(--gold);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    color: var(--gold);
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Experience Grid */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.exp-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
    border-top: 3px solid transparent;
    transition: var(--transition);
}

.exp-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--gold);
    box-shadow: var(--shadow-hover);
}

.icon-gold {
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.exp-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
}

/* Certifications */
.cert-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cert-card {
    background-color: var(--navy-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.cert-icon {
    font-size: 3rem;
    color: rgba(212, 175, 55, 0.2);
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.cert-year {
    display: inline-block;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cert-title {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.cert-issuer {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.cert-desc {
    color: var(--medium-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Premium Cards Grid */
.premium-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.premium-card {
    background-color: var(--white);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.premium-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--navy);
}

.card-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: rgba(10, 25, 47, 0.05);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-weight: 700;
}

.premium-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

/* Client Benefits Accordion / Blocks */
.benefit-blocks {
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-block {
    background-color: var(--white);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.accordion-header {
    padding: 1.5rem 2rem;
    cursor: pointer;
    background-color: var(--white);
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: var(--light-gray);
}

.accordion-header h3 {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header h3 i {
    color: var(--gold);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header h3 i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px; /* Arbitrary large number */
}

.benefit-details {
    padding: 0 2rem 2rem 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.detail-column h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.detail-column p {
    font-size: 0.95rem;
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    width: 50%;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    padding-right: 0;
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    top: 5px;
    right: -7px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--navy);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--gold);
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -9px;
    right: auto;
}

.timeline-content {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
    border-top: 3px solid transparent;
}

.timeline-item.highlight .timeline-content {
    border-top-color: var(--gold);
    background-color: var(--navy);
}

.timeline-item.highlight h3, .timeline-item.highlight p {
    color: var(--white);
}

.timeline-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

/* Leadership Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-box {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Trust Grid */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    font-size: 1.05rem;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Contact Methods */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.contact-method {
    background-color: var(--navy-light);
    padding: 2.5rem;
    border-radius: 4px;
    border-bottom: 3px solid var(--gold);
}

.contact-method i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.contact-method h3 {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
}

.contact-link {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-link:hover {
    color: var(--gold);
}

.contact-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Internal Links */
.internal-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Floating Contact (Desktop & Tablet) */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.float-btn:hover {
    transform: scale(1.1);
    color: white;
}

.float-wa { background-color: #25D366; }
.float-call { background-color: var(--navy); }

/* Sticky Mobile Bar */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sticky-btn {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0; /* Reduced padding */
    color: var(--white);
    font-weight: 500; /* Lighter font weight to match smaller size */
    font-size: 0.75rem; /* Smaller text */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem; /* Tighter gap */
}

.sticky-btn i { font-size: 1.2rem; }
.sticky-btn.bg-wa { background-color: #25D366; }
.sticky-btn.bg-email { background-color: var(--navy-light); }
.sticky-btn:first-child { background-color: var(--navy); }

/* Footer */
.site-footer {
    background-color: #050d1a;
    color: var(--medium-gray);
    padding: 3rem 0 2rem 0;
    font-size: 0.9rem;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo i {
    color: var(--gold);
    margin-right: 0.5rem;
}

/* Modal Styling */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(10, 25, 47, 0.8); 
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto; 
    padding: 20px;
    border: 1px solid var(--border-color);
    width: 90%; 
    max-width: 1000px;
    height: 80vh;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    color: var(--medium-gray);
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--navy);
    text-decoration: none;
}

#pdfFrame {
    width: 100%;
    height: calc(100% - 20px);
    margin-top: 20px;
    border-radius: 4px;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.cta-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(10, 25, 47, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(10, 25, 47, 0); }
    100% { box-shadow: 0 0 0 0 rgba(10, 25, 47, 0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.8rem; }
    .hero-container { gap: 2rem; }
    .authority-stats { left: -10px; bottom: -20px; gap: 1rem; padding: 1.5rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}

@media (max-width: 768px) {
    .header-container { height: 70px; }
    
    *[id] { scroll-margin-top: 70px; }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        display: none !important;
    }
    
    .hero { padding-top: 100px; }
    .hero-container { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .hero-ctas { flex-direction: column; }
    
    .authority-stats { position: relative; left: 0; bottom: 0; margin-top: -20px; z-index: 10; }
    
    .benefit-details { grid-template-columns: 1fr; }
    
    .timeline::before { left: 30px; }
    .timeline-item, .timeline-item:nth-child(even) { width: 100%; padding-left: 80px; padding-right: 0; }
    .timeline-dot { left: 22px !important; }
    
    .trust-grid { grid-template-columns: 1fr; }
    .contact-methods { grid-template-columns: 1fr; }
    
    .floating-contact { display: none; }
    .mobile-sticky-bar { display: flex; }
    body { padding-bottom: 55px; /* Adjusted space for compact sticky bar */ }
}
