/* ======================================
   Islamische Bestattung - Custom CSS
   Islamic Funeral Services Website
   ====================================== */

/* ========== ROOT VARIABLES ========== */
:root {
    --primary-green: #2d7a4f;
    --primary-green-light: #3d9a6f;
    --primary-green-dark: #1d5a3f;
    --gold: #d4af37;
    --gold-light: #e4bf47;
    --dark: #1a1a1a;
    --dark-gray: #2a2a2a;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
}

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Arabic Font Support */
body[dir="rtl"], 
.lang-ar {
    font-family: 'Amiri', serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

section {
    padding: 80px 0;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
}

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-link {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

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

.top-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.emergency-text {
    color: var(--gold);
    font-weight: 500;
}

.language-switcher {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

/* ========== NAVIGATION ========== */
.navbar {
    padding: 15px 0;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.islamic-icon {
    color: var(--gold);
    font-size: 1.75rem;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 16px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-green);
}

.btn-emergency {
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50px;
    padding: 8px 20px;
}

.btn-emergency:hover {
    background: var(--primary-green-dark);
    color: var(--white);
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a3a2d 0%, #2d5f4d 50%, #1a3a2d 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212,175,55,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.islamic-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,0.03) 35px, rgba(255,255,255,0.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255,255,255,0.03) 35px, rgba(255,255,255,0.03) 70px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,175,55,0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--gold);
    display: block;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
}

.hero-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
}

.feature-item i {
    font-size: 1.25rem;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary-green);
    border: none;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45,122,79,0.4);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-green);
}

.hero-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

.card-header-islamic {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    padding: 20px;
    text-align: center;
    color: var(--white);
}

.card-header-islamic i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.card-header-islamic h3 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--white);
}

.hero-card .card-body {
    padding: 20px;
}

.country-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.country-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.country-list li:last-child {
    border-bottom: none;
}

.country-list i {
    color: var(--gold);
    font-size: 14px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========== TRUST SECTION ========== */
.trust-section {
    background: var(--light-gray);
    padding: 60px 0;
}

.trust-card {
    text-align: center;
    padding: 30px 20px;
}

.trust-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.trust-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 8px;
}

.trust-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ========== ISLAMIC SERVICES SECTION ========== */
.islamic-services-section {
    background: var(--white);
}

.islamic-service-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
}

.islamic-service-card:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.islamic-service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-green);
}

.islamic-service-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.islamic-service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.islamic-service-card ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-primary);
}

.islamic-service-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    background: var(--light-gray);
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 35px;
    height: 100%;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.service-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.service-list li {
    padding: 10px 0;
    display: flex;
    align-items: start;
    gap: 12px;
    color: var(--text-primary);
}

.service-list i {
    color: var(--primary-green);
    margin-top: 4px;
}

.service-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--light-gray);
    border-radius: 50px;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 14px;
}

/* ========== PROCESS SECTION ========== */
.process-section {
    background: var(--white);
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-step::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 60px;
    width: 2px;
    height: calc(100% + 40px);
    background: var(--border-color);
    transform: translateX(-50%);
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: var(--shadow);
}

.step-content {
    flex: 1;
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary-green);
}

.step-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* ========== ABOUT SECTION ========== */
.about-section {
    background: var(--light-gray);
}

.about-image {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-overlay {
    color: rgba(255,255,255,0.3);
}

.about-content {
    padding: 40px 0;
}

.about-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-values {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.value-item {
    display: flex;
    align-items: start;
    gap: 15px;
}

.value-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.value-item h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.value-item p {
    margin: 0;
    font-size: 1rem;
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    background: var(--white);
}

.contact-card {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-5px);
}

.contact-card:hover .contact-icon {
    background: var(--white);
    color: var(--primary-green);
}

.contact-card:hover h3,
.contact-card:hover p,
.contact-card:hover .contact-link {
    color: var(--white);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.contact-link {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1.125rem;
}

.contact-form-wrapper {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 40px;
}

.contact-form .form-control,
.contact-form .form-select {
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(45,122,79,0.25);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-desc {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary-green);
    color: var(--white);
}

.footer-title {
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
}

.footer-contact i {
    color: var(--gold);
    width: 20px;
}

.footer-contact a {
    color: rgba(255,255,255,0.8);
}

.footer-contact a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* ========== FLOATING BUTTONS ========== */
.float-whatsapp,
.float-call {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.float-whatsapp {
    bottom: 30px;
    right: 30px;
    background: #25D366;
}

.float-whatsapp:hover {
    background: #20ba5a;
    transform: scale(1.1);
    color: var(--white);
}

.float-call {
    bottom: 100px;
    right: 30px;
    background: var(--primary-green);
    animation: pulse 2s infinite;
}

.float-call:hover {
    background: var(--primary-green-dark);
    transform: scale(1.1);
    color: var(--white);
    animation: none;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(45,122,79,0.7); }
    70% { box-shadow: 0 0 0 15px rgba(45,122,79,0); }
    100% { box-shadow: 0 0 0 0 rgba(45,122,79,0); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .top-bar-info,
    .top-bar-right {
        justify-content: center;
    }

    .hero-section {
        padding: 60px 0;
    }

    section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    /* Process Timeline - Vertical Left Aligned */
    .process-timeline {
        max-width: 100%;
        padding-left: 30px;
    }

    .process-step {
        flex-direction: row !important;
        text-align: left;
        gap: 20px;
    }

    .process-step::after {
        left: 29px;
        top: 70px;
        height: calc(100% - 10px);
    }

    .process-step:last-child::after {
        display: none;
    }

    .step-number {
        margin: 0;
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .step-content {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .top-bar {
        text-align: center;
    }

    .top-bar-info,
    .top-bar-right {
        flex-direction: column;
        gap: 10px;
    }

    .language-switcher {
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Process Timeline - Compact Mobile */
    .process-timeline {
        padding-left: 20px;
    }

    .process-step {
        gap: 15px;
        margin-bottom: 30px;
    }

    .process-step::after {
        left: 24px;
        top: 60px;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }

    .step-content {
        padding: 20px;
    }

    .step-content h3 {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }

    .step-content p {
        font-size: 0.938rem;
    }

    .about-image {
        height: 300px;
        margin-bottom: 30px;
    }

    .float-whatsapp,
    .float-call {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .float-whatsapp {
        right: 20px;
        bottom: 20px;
    }

    .float-call {
        right: 20px;
        bottom: 85px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    .islamic-service-card,
    .service-card {
        padding: 25px;
    }
}

/* ========== RTL SUPPORT ========== */
[dir="rtl"] .hero-features,
[dir="rtl"] .hero-actions,
[dir="rtl"] .top-bar-info,
[dir="rtl"] .language-switcher {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-social {
    flex-direction: row-reverse;
}

[dir="rtl"] .float-whatsapp {
    left: 30px;
    right: auto;
}

[dir="rtl"] .float-call {
    left: 30px;
    right: auto;
}
