/* ==========================================================================
   Marwan Al Ali — Executive Portfolio Design System
   Playfair Display + DM Sans | Dark luxury banking aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Core palette */
    --bg-deep: #0A0C10;
    --bg-surface: #12151C;
    --bg-elevated: #1A1F2A;
    --bg-card: rgba(26, 31, 42, 0.75);
    --cream: #F5F0E6;
    --cream-muted: #E5DFD3;
    --cream-dark: #C9C2B5;

    /* Champagne gold accents */
    --gold: #C9A962;
    --gold-light: #E2C98A;
    --gold-dark: #9A7B3C;
    --gold-glow: rgba(201, 169, 98, 0.35);

    /* Legacy aliases (mapped to new system) */
    --primary: #151B28;
    --secondary: #1E2636;
    --accent: var(--gold);
    --success: #5CB87A;
    --danger: #E85D5D;
    --whatsapp: #25D366;
    --text: #2C2C34;
    --text-light: var(--cream);
    --light: var(--cream-muted);

    /* Gradients */
    --gradient-hero: linear-gradient(145deg, #0A0C10 0%, #151B28 45%, #1E2636 100%);
    --gradient-gold: linear-gradient(135deg, #9A7B3C 0%, #C9A962 50%, #E2C98A 100%);
    --gradient-surface: linear-gradient(180deg, rgba(201,169,98,0.08) 0%, transparent 100%);
    --gradient: var(--gradient-hero);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(201, 169, 98, 0.18);
    --glass-blur: blur(20px);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing & radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.35);
    --shadow-gold: 0 8px 32px var(--gold-glow);

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --transition: 0.35s var(--ease-out);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.65;
    color: var(--text);
    background: var(--cream);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.page-dark {
    background: var(--bg-deep);
    color: var(--cream);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

a {
    color: inherit;
}

/* --------------------------------------------------------------------------
   Navigation — Glass sticky header
   -------------------------------------------------------------------------- */
nav {
    background: rgba(10, 12, 16, 0.82);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
}

nav.scrolled {
    background: rgba(10, 12, 16, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--cream);
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    transition: color var(--transition);
}

.logo span {
    color: var(--gold);
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.logo:hover::after { transform: scaleX(1); }
.logo:hover { color: var(--gold-light); }

.nav-links {
    display: flex;
    gap: 2.25rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: rgba(245, 240, 230, 0.72);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 6px 0;
    position: relative;
    transition: color var(--transition);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-light);
}

.nav-links a:hover::before,
.nav-links a.active::before { width: 100%; }

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--gold);
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 16, 0.88);
    backdrop-filter: blur(8px);
    z-index: 998;
}

/* --------------------------------------------------------------------------
   Hero Sections
   -------------------------------------------------------------------------- */
.page-hero,
.about-hero,
.coaching-hero,
.conf-hero,
.media-hero,
.contact-hero {
    background: var(--gradient-hero);
    color: var(--cream);
    position: relative;
    overflow: hidden;
}

.page-hero::before,
.about-hero::before,
.coaching-hero::before,
.conf-hero::before,
.media-hero::before,
.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(201, 169, 98, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(30, 38, 54, 0.8) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero::after,
.about-hero::after,
.coaching-hero::after,
.conf-hero::after,
.media-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.4;
}

/* Split hero variant */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
    align-items: center;
    padding: 100px 2rem 80px;
    max-width: 1280px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-split .hero-text { position: relative; z-index: 1; }

.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 1.25rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    background: var(--glass-bg);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 120px 2rem 80px;
}

.hero-content h1,
.hero-split h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--cream) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.9s var(--ease-out);
}

.hero-content p,
.hero-split p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(245, 240, 230, 0.78);
    max-width: 640px;
    margin: 0 auto;
    animation: fadeInUp 0.9s var(--ease-out) 0.15s both;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    animation: fadeInUp 0.9s var(--ease-out) 0.3s both;
}

.badge {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--cream-muted);
}

.badge i { color: var(--gold); }

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.content-wrapper {
    max-width: 1280px;
    margin: -60px auto 5rem;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.section {
    padding: 5rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header h2 i {
    color: var(--gold);
    margin-right: 0.5rem;
    font-size: 0.85em;
}

.section-header p {
    font-size: 1.1rem;
    color: #6B7280;
    max-width: 640px;
    margin: 0 auto;
}

.section-dark {
    background: var(--bg-surface);
    color: var(--cream);
}

.section-dark .section-header h2 { color: var(--cream); }
.section-dark .section-header p { color: rgba(245, 240, 230, 0.65); }

.container {
    max-width: 1280px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Cards — Unified glass card system
   -------------------------------------------------------------------------- */
.glass-card,
.stat-card,
.value-card,
.method-card,
.vision-item,
.expertise-item,
.portal-card,
.event-card,
.press-card,
.video-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(201, 169, 98, 0.1);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.glass-card:hover,
.stat-card:hover,
.value-card:hover,
.method-card:hover,
.vision-item:hover,
.expertise-item:hover,
.event-card:hover,
.press-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md), var(--shadow-gold);
    border-color: rgba(201, 169, 98, 0.25);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border-color: var(--glass-border);
    color: var(--cream);
}

/* Stat cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.stat-card {
    padding: 2rem 1.5rem;
    text-align: center;
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.25rem;
    color: var(--bg-deep);
    box-shadow: var(--shadow-gold);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    line-height: 1.15;
}

/* Playfair Display defaults to oldstyle figures — uniform lining nums for metrics */
.stat-value,
.press-count,
.year-badge,
.error-code {
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1, "onum" 0, "frac" 0;
}

.stat-label {
    color: #6B7280;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn,
.cta-button,
.vision-btn,
.access-button,
.error-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.04em;
}

.btn-primary,
.cta-button,
.vision-btn {
    background: var(--gradient-gold);
    color: var(--bg-deep);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover,
.cta-button:hover,
.vision-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--gold-glow);
}

.btn-secondary,
.cta-button.btn-outline {
    background: transparent;
    color: var(--cream);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--gold);
    color: var(--gold-light);
}

.btn-dark {
    background: var(--primary);
    color: var(--cream);
}

.access-button {
    width: 100%;
    background: var(--gradient-gold);
    color: var(--bg-deep);
    font-size: 1rem;
    padding: 1.1rem 2rem;
    box-shadow: var(--shadow-gold);
}

.access-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px var(--gold-glow);
}

.access-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    background: var(--gradient-hero);
    color: var(--cream);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(201,169,98,0.1) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.cta-content h2,
.cta-content h3 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--cream);
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(245, 240, 230, 0.75);
    margin-bottom: 2rem;
}

.cta-section .cta-button {
    background: var(--cream);
    color: var(--bg-deep);
}

.cta-section .cta-button:hover {
    background: var(--gold-light);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer,
footer {
    background: var(--bg-deep);
    color: rgba(245, 240, 230, 0.7);
    padding: 3.5rem 2rem 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand .logo {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
    color: rgba(245, 240, 230, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    text-decoration: none;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--bg-deep);
    border-color: var(--gold);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Forms & Alerts
   -------------------------------------------------------------------------- */
.access-input {
    width: 100%;
    padding: 1.1rem 1.5rem;
    font-size: 1.1rem;
    font-family: var(--font-body);
    border: 1px solid rgba(201, 169, 98, 0.25);
    border-radius: var(--radius-md);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    background: var(--cream);
    color: var(--primary);
    transition: all var(--transition);
}

.access-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.alert {
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    animation: slideIn 0.35s var(--ease-out);
}

.alert-success {
    background: rgba(92, 184, 122, 0.12);
    color: var(--success);
    border: 1px solid rgba(92, 184, 122, 0.35);
}

.alert-error {
    background: rgba(232, 93, 93, 0.1);
    color: var(--danger);
    border: 1px solid rgba(232, 93, 93, 0.35);
}

/* --------------------------------------------------------------------------
   Timeline (shared)
   -------------------------------------------------------------------------- */
.timeline {
    position: relative;
    padding: 2.5rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--gold), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-content {
    width: 44%;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(201, 169, 98, 0.12);
    box-shadow: var(--shadow-sm);
}

.timeline-dot {
    width: 44px;
    height: 44px;
    background: var(--gradient-gold);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-deep);
    font-size: 0.9rem;
    box-shadow: 0 0 0 6px var(--cream), var(--shadow-gold);
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.timeline-content .period {
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes goldShimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-split { grid-template-columns: 1fr; text-align: center; padding-top: 100px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }

    .nav-container { padding: 1rem 1.25rem; }
    .logo { font-size: 1.1rem; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 85vw);
        height: 100vh;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 5.5rem 2rem 2rem;
        gap: 0;
        border-left: 1px solid var(--glass-border);
        transition: right 0.35s var(--ease-out);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active { right: 0; }
    .mobile-menu-overlay.active { display: block; }

    .nav-links li { width: 100%; margin: 0.25rem 0; }

    .nav-links a {
        display: block;
        padding: 0.9rem 0;
        font-size: 0.85rem;
        color: var(--cream-muted);
    }

    .nav-links a::before { display: none; }

    .nav-links a.active,
    .nav-links a:hover {
        color: var(--gold);
        padding-left: 0.75rem;
        border-left: 2px solid var(--gold);
    }

    .hero-content { padding: 90px 1.5rem 60px; }
    .content-wrapper { margin-top: -40px; padding: 0 1.25rem; }

    .timeline::before { left: 24px; }
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
    }
    .timeline-content {
        width: calc(100% - 56px);
        margin-left: 56px;
    }
    .timeline-dot { left: 24px; }

    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-button { width: 100%; max-width: 300px; }
}

@media (max-width: 480px) {
    .stats-cards { grid-template-columns: 1fr; }
    .stat-value { font-size: 2rem; }
}
