/* Modern EMANAH Consulting Website */
/* Contemporary Professional Design */

:root {
    --primary: #1A4D3A;
    --primary-dark: #0D3B2F;
    --accent: #B8956A;
    --text-dark: #1C1C1C;
    --text-light: #5A5A5A;
    --bg-light: #FAFAF8;
    --white: #FFFFFF;

    --font-heading: 'Playfair Display', 'IBM Plex Serif', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Fade-in animations */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu toggle */
body.menu-open {
    overflow: hidden;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
    margin-top: 10px;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropbtn {
    cursor: pointer;
}

/* Desktop language switcher */
.nav-container>.lang-switch {
    display: flex;
    gap: 4px;
    background: rgba(26, 77, 58, 0.05);
    border-radius: 30px;
    padding: 6px;
}

.nav-container>.lang-switch a {
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
}

.nav-container>.lang-switch a.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(26, 77, 58, 0.2);
}

.nav-container>.lang-switch a:hover:not(.active) {
    background: rgba(26, 77, 58, 0.1);
}

/* Hide mobile language switcher on desktop */
.nav-menu>.lang-switch {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 59, 47, 0.85) 0%, rgba(26, 77, 58, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 40px;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.75rem;
    margin-bottom: 10px;
    font-weight: 400;
}

.hero-tagline {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--accent) 0%, #9A7A4F 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.0625rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(184, 149, 106, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(184, 149, 106, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Value Proposition Section */
.value-prop {
    padding: 100px 40px;
    background: var(--bg-light);
}

.value-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: center;
}

.value-text h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 30px;
}

.value-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.value-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.stat-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
}

/* Section Styling */
.section {
    padding: 100px 40px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 60px;
}

/* Cards Grid */
.cards-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    border-left: 4px solid var(--accent);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.card-number {
    position: absolute;
    top: -15px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--accent);
}

/* Deliverables Section (Dark) */
.deliverables-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #0F4A3E 100%);
    padding: 100px 40px;
    color: white;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.deliverable-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.deliverable-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.deliverable-icon {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.deliverable-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.deliverable-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* Process Timeline */
.process-timeline {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 30px;
}

.process-step-block {
    flex: 1;
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

.process-number {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.process-step-block h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    margin-top: 10px;
}

.process-step-block p {
    color: var(--text-light);
    line-height: 1.7;
}

.process-arrow {
    display: flex;
    align-items: center;
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 300;
}

/* Trust Section */
.trust-section {
    padding: 80px 40px;
    background: var(--bg-light);
}

.trust-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.trust-item {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.trust-item h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.trust-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Ethics Teaser */
.ethics-teaser {
    background: linear-gradient(to bottom, white 0%, var(--bg-light) 100%);
    padding: 100px 40px;
}

.ethics-content-block {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.ethics-content-block h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 30px;
}

.lead-text {
    font-size: 1.375rem;
    color: var(--text-light);
    margin-bottom: 50px;
    font-style: italic;
}

.ethics-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.ethics-point {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.ethics-point h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.125rem;
}

.ethics-point p {
    color: var(--text-light);
    line-height: 1.6;
}

.btn-outline {
    display: inline-block;
    padding: 14px 35px;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 100px 40px;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 40px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 40px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 1.125rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .value-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .process-timeline {
        flex-direction: column;
    }

    .process-arrow {
        transform: rotate(90deg);
    }

    .ethics-highlights {
        grid-template-columns: 1fr;
    }

    .deliverables-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .trust-grid,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Mobile navigation */
    .hamburger {
        display: flex;
    }

    /* Hide desktop language switcher on mobile */
    .nav-container>.lang-switch {
        display: none;
    }

    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        left: auto !important;
        width: 280px !important;
        height: 100vh !important;
        background: white !important;
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        padding: 80px 0 30px 0 !important;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 998;
        gap: 0 !important;
    }

    .nav-menu.mobile-active {
        right: 0 !important;
    }

    .nav-menu li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: none !important;
    }

    .nav-menu li a {
        display: block !important;
        width: 100% !important;
        padding: 16px 24px !important;
        border-bottom: 1px solid #eee;
        border-radius: 0 !important;
        font-size: 1rem;
        color: var(--text-dark);
    }

    .nav-menu a::after {
        display: none !important;
    }

    .nav-menu li a:hover {
        background: var(--bg-light);
    }

    /* Mobile dropdown */
    .dropdown-content {
        position: static !important;
        display: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #f5f5f5 !important;
        border-radius: 0 !important;
        min-width: 100% !important;
        width: 100% !important;
    }

    .dropdown:hover .dropdown-content {
        display: block !important;
    }

    .dropdown-content a {
        padding: 14px 24px 14px 40px !important;
        border-bottom: 1px solid #e0e0e0;
        font-size: 0.9rem;
    }

    /* Show mobile language switcher */
    .nav-menu > .lang-switch {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 0 !important;
        background: transparent !important;
        padding: 10px 0 !important;
        margin-top: auto !important;
        border-top: 1px solid #ddd;
        border-radius: 0 !important;
    }

    .nav-menu .lang-switch a {
        display: block !important;
        width: 100% !important;
        padding: 14px 24px !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        text-align: left;
    }

    .nav-menu .lang-switch a.active {
        background: var(--primary) !important;
        color: white !important;
    }

    .nav-menu .lang-switch a:hover:not(.active) {
        background: var(--bg-light) !important;
    }

    .value-text h2,
    .ethics-content-block h2,
    .cta-content h2 {
        font-size: 2rem;
    }

    /* Mobile overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 997;
    }
}