/* ========================================
   SEN - Syrian–European Nexus
   Design System v1.0
   ======================================== */

/* --- CSS Variables --- */
:root {
    /* Brand Colors */
    --navy-deep: #0f1c2e;
    --navy-light: #1a2f4b;
    --navy-hover: #162538;
    --gold-muted: #c5a059;
    --gold-light: #d4b574;
    --white-soft: #f9f9f9;
    --white-pure: #ffffff;
    --text-grey: #6b7280;
    --text-light: #9ca3af;
    --border-light: rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Cairo', 'Inter', sans-serif;
    --font-ui: 'Inter', 'Cairo', sans-serif;
    
    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;
    --space-2xl: 120px;
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--white-soft);
    color: var(--navy-deep);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL Support */
[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
}

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

ul, ol {
    list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy-deep);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    font-size: 1.1rem;
    color: var(--text-grey);
    max-width: 65ch;
}

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

.text-light {
    color: var(--text-light);
}

.display-text {
    font-family: var(--font-display);
    font-style: italic;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
}

.section-dark {
    background-color: var(--navy-deep);
    color: var(--white-soft);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white-soft);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-deep);
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links {
    display: flex;
    gap: var(--space-md);
}

.nav-link {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy-deep);
    padding: var(--space-xs) 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-muted);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--white-soft);
    border-radius: 6px;
}

.lang-btn {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-grey);
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--navy-deep);
}

.lang-btn.active {
    background: var(--navy-deep);
    color: var(--white-soft);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--navy-deep);
    transition: all var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    background: linear-gradient(135deg, var(--white-pure) 0%, var(--white-soft) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(180deg, rgba(197, 160, 89, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-muted);
    margin-bottom: var(--space-md);
}

.hero h1 {
    margin-bottom: var(--space-md);
}

.hero h1 .accent {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gold-muted);
}

.hero-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: var(--space-lg);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 16px 36px;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition-normal);
}

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

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

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

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

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

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

/* --- Pillars/Cards Section --- */
.pillars {
    padding: var(--space-2xl) 0;
}

.pillars-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pillars-header .subtitle {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--gold-muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.card {
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-normal);
}

.card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
}

.card-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    color: var(--gold-muted);
    opacity: 0.5;
    margin-bottom: var(--space-sm);
}

.card h3 {
    font-family: var(--font-display);
    color: var(--gold-muted);
    margin-bottom: var(--space-sm);
}

.card p {
    font-size: 1rem;
    line-height: 1.8;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-visual::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold-muted);
    opacity: 0.3;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--gold-muted);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-label {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy-deep);
}

.form-input,
.form-textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    background: var(--white-pure);
    color: var(--navy-deep);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gold-muted);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* --- Footer --- */
.footer {
    padding: var(--space-xl) 0 var(--space-lg);
    background: var(--white-pure);
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-logo img {
    height: 40px;
}

.footer-nav {
    display: flex;
    gap: var(--space-md);
}

.footer-nav a {
    font-size: 0.9rem;
    color: var(--text-grey);
}

.footer-nav a:hover {
    color: var(--gold-muted);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-grey);
}

.footer-legal {
    font-family: var(--font-ui);
}

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

.animate-fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 60px;
        --space-2xl: 80px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white-pure);
        padding: var(--space-md);
        border-bottom: 1px solid var(--border-light);
        gap: var(--space-sm);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .pillars-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .footer-content,
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* --- RTL Specific Styles --- */
[dir="rtl"] {
    /* Flip navigation */
    .nav-link::after {
        left: auto;
        right: 0;
    }
    
    /* Text alignment */
    .hero-description,
    p {
        text-align: right;
    }
    
    /* Contact items */
    .contact-item {
        flex-direction: row-reverse;
    }
    
    /* Form labels */
    .form-label {
        text-align: right;
    }
    
    /* Footer */
    .footer-bottom {
        flex-direction: row-reverse;
    }
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
