/*
 * Main Stylesheet for FhgCenter Website
 * --------------------------------------
 * Sections:
 * 1. Variables & Globals
 * 2. Header & Navigation
 * 3. Intro Section & CTA Button
 * 4. Services Section
 * 5. Gallery Section (Vertical Layout)
 * 6. Footer
 * 7. Floating Action Buttons
 */


/* ------------------------- */
/* 1. Variables & Globals    */
/* ------------------------- */
:root {
    --primary-green: #006A4E;
    --accent-yellow: #FFC72C;
    --dark-color: #1a1a1a;
    --text-color: #333333;
    --light-background: #f8f9fa;
    --white-background: #ffffff;
    --whatsapp-color: #25D366;
    --closed-red: #d9534f;
}

body {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-background);
    color: var(--text-color);
    line-height: 1.7;
    direction: rtl;
}

bdi {
    direction: ltr;
    unicode-bidi: bidi-override;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

h1, h2 {
    font-weight: 700;
}

/* ------------------------- */
/* 2. Header & Navigation    */
/* ------------------------- */
.main-header {
    background: var(--dark-color);
    color: var(--light-background);
    padding: 0.5rem 0;
    border-bottom: var(--primary-green) 4px solid;
    position: sticky;
    top: 0;
    z-index: 1000;

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

    .logo-area {
        display: flex;
        align-items: center;
        gap: 15px;

        .header-logo {
            height: 50px;
            width: auto;
            border-radius: 6px;
        }

        h1 {
            margin: 0;
            font-size: 1.8rem;
            @media (max-width: 992px) {
                font-size: 1.5rem;
            }
            @media (max-width: 768px) {
                font-size: 1.2rem;
            }
        }
    }

    .main-nav {
        ul { list-style: none; display: flex; padding: 0; margin: 0; }
        li { margin-right: 20px; }
        a {
            color: #fff;
            text-decoration: none;
            font-size: 1.1rem;
            padding: 5px 10px;
            transition: color 0.3s ease;
            &:hover { color: var(--accent-yellow); }
        }
        
        @media (max-width: 768px) {
            position: absolute;
            top: 100%;
            right: 0;
            width: 100%;
            background-color: var(--dark-color);
            overflow: hidden;
            max-height: 0;
            transition: max-height 0.4s ease-in-out;
            &.active { max-height: 300px; border-top: 1px solid #444; }
            ul { flex-direction: column; padding: 1rem 0; }
            li { text-align: center; margin: 0; }
            a { display: block; padding: 1rem; }
        }
    }

    .hamburger-menu {
        display: none;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        font-size: 1.6rem;
        color: #fff;
        @media (max-width: 768px) { display: block; }
    }
}


/* ------------------------- */
/* 3. Intro & CTA Button     */
/* ------------------------- */
.intro {
    padding: 4rem 0;
    text-align: center;

    h2 { 
        font-size: 2.5rem; 
        margin-bottom: 1rem;
        @media (max-width: 768px) {
            font-size: 2rem;
        }
    }

    p { font-size: 1.2rem; max-width: 800px; margin: auto; }
    
    @media (max-width: 768px) {
        padding: 3rem 0;
    }

    .business-hours {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid #e0e0e0;
        max-width: 500px;
        margin-inline: auto;

        h3 {
            font-size: 1.4rem;
            color: var(--primary-green);
            margin: 0 0 1rem 0;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        p {
            margin: 0.25rem 0;
            font-size: 1.1rem;
            line-height: 1.8;
            color: var(--text-color);
        }

        p strong {
            color: var(--primary-green);
        }
    }
}

.cta-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent-yellow);
    color: var(--primary-green);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;

    &:hover {
        background-color: #fcae1e;
        transform: translateY(-2px);
    }
    
    @media (max-width: 768px) {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}

.cta-button--secondary {
    background-color: transparent;
    border-color: var(--primary-green);
    color: var(--primary-green);

    &:hover {
        background-color: var(--primary-green);
        color: var(--white-background);
    }
}

/* ------------------------- */
/* 4. Services Section       */
/* ------------------------- */
.services-section {
    padding: 4rem 0;
    background: var(--white-background);
    text-align: center;

    h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
        @media (max-width: 768px) {
            font-size: 2rem;
        }
    }

    .services-list {
        list-style: none;
        padding: 0;
        margin: 0 auto;
        max-width: 800px;
        text-align: right;
    }

    .services-list li {
        font-size: 1.2rem;
        padding: 0.75rem 0;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .services-list i {
        color: var(--primary-green);
        font-size: 1.5rem;
        width: 30px; /* To align text nicely */
        text-align: center;
    }

    .services-tagline {
        margin-top: 2.5rem;
        font-size: 1.3rem;
        font-weight: bold;
        color: var(--primary-green);
    }
}


/* ------------------------------------- */
/* 5. Gallery Section (Vertical Layout) */
/* ------------------------------------- */
.gallery-section {
    padding: 4rem 0;
    background: var(--light-background);

    h2 { 
        text-align: center; 
        font-size: 2.5rem; 
        margin-bottom: 3rem;
        @media (max-width: 768px) {
            font-size: 2rem;
        }
    }
    
    @media (max-width: 768px) {
        padding: 3rem 0;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 2.5rem;

        @media (max-width: 768px) { 
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
        @media (max-width: 480px) {
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        }
    }

    .comparison-card {
        background: var(--white-background);
        border: 1px solid #eee;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        display: flex;
        flex-direction: column;
        gap: 4px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;

        &:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 25px rgba(0,0,0,0.12);
        }
    }

    .image-wrapper {
        position: relative;
        line-height: 0;
        
        img,
        picture {
            width: 100%;
            height: auto;
            display: block;
        }

        .image-label {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(26, 26, 26, 0.7);
            color: #fff;
            padding: 5px 15px;
            border-radius: 6px;
            font-size: 1rem;
            font-weight: bold;
            line-height: 1.5;
            backdrop-filter: blur(4px);
        }
    }
}

/* ------------------------- */
/* 6. Footer                 */
/* ------------------------- */
.main-footer {
    background: var(--dark-color);
    color: var(--light-background);
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    
    p { margin: 0.5rem 0; }
    
    .footer-contact-links {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        margin: 1rem 0;
    }

    .footer-contact-links .separator {
        display: inline-block;
        @media (max-width: 768px) {
            display: none;
        }
    }

    a { 
        color: var(--accent-yellow); 
        text-decoration: none; 
        font-weight: bold; 
    }
}

/* ------------------------- */
/* 7. Floating Action Buttons*/
/* ------------------------- */
.float-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 100;
    transition: transform 0.2s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;

    i { font-size: 1.8rem; }
    &:hover { transform: scale(1.1); }
    
    @media (max-width: 768px) {
        width: 50px;
        height: 50px;
        bottom: 15px;
        i { font-size: 1.5rem; }
    }
}

.call-btn {
    background-color: var(--accent-yellow);
    right: 25px;
    i { color: var(--primary-green); }
    @media (max-width: 768px) { right: 15px; }
}

.whatsapp-btn {
    background-color: var(--primary-green);
    left: 25px;
    i { color: #fff; }
    @media (max-width: 768px) { left: 15px; }
}

