/* ==========================================================================
   Base & Variables
   ========================================================================== */
:root {
    --brown-bark: #754C2B;
    --sage-green: #689F6B;
    --dust-grey: #D9D9D6;
    --light-bg: #F7F6F4;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-muted: #666666;
    --charcoal: #595A64;
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(117, 76, 43, 0.15);

    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: var(--brown-bark);
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ptb-100 {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-white {
    background-color: var(--white);
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

/* Typography & Titles */
.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.divider {
    height: 3px;
    width: 80px;
    background-color: var(--sage-green);
    margin: 0 auto;
    border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--sage-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--brown-bark);
    color: var(--white);
}

.btn-primary-sm {
    background-color: var(--sage-green);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.btn-primary-sm:hover {
    background-color: var(--brown-bark);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--brown-bark);
}

.btn-outline-sm {
    border: 1px solid var(--sage-green);
    color: var(--sage-green);
    padding: 6px 16px;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.9rem;
}

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

.btn-block {
    display: block;
    width: 100%;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--charcoal);
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-header.scrolled {
    background-color: var(--charcoal);
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.logo {
    display: inline-block;
    position: relative;
    z-index: 10;
    text-decoration: none;
}

/* Glowing Backlight Animation for the Logo */
.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 75%);
    z-index: -1;
    transform: translateY(-50%);
    animation: sweepGlow 2s infinite alternate ease-in-out;
}

@keyframes sweepGlow {
    0% {
        left: 10%;
        opacity: 0.5;
        transform: translateY(-50%) scale(0.8);
    }

    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.3);
    }

    100% {
        left: 90%;
        opacity: 0.5;
        transform: translateY(-50%) scale(0.8);
    }
}

.logo-img {
    height: 70px;
    /* Adjust based on your logo */
    transition: var(--transition);
}

/* If you want the logo to shrink when scrolled */
.main-header.scrolled .logo-img {
    height: 65px;
}

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

.nav-links li a {
    color: var(--white);
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--sage-green);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--sage-green);
}

.lang-switch {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem !important;
}

.header-actions-mobile {
    display: none;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('../img/hero-bg.jpg');
    /* Default background */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(117, 76, 43, 0.45);
    /* Brown Overly */
    z-index: 1;
}

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

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

/* ==========================================================================
   About Section & Video
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
    margin-top: 30px;
}

.features-list li {
    margin-bottom: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list .icon {
    color: var(--sage-green);
    font-weight: bold;
}

.video-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    height: 500px;
    /* Vertical video height container */
    position: relative;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: linear-gradient(145deg, var(--white) 0%, #fdfbf7 100%);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(104, 159, 107, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(104, 159, 107, 0.05) 0%, rgba(117, 76, 43, 0.05) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    box-shadow: 0 15px 35px rgba(117, 76, 43, 0.15);
    border-color: var(--sage-green);
    transform: translateY(-8px);
}

.service-card:hover::before {
    opacity: 1;
}

.card-header {
    height: 8px;
    background-color: var(--sage-green);
    transition: var(--transition);
}

.service-card:hover .card-header {
    background-color: var(--brown-bark);
}

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

.card-body h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--charcoal);
    font-weight: 700;
}

.card-body p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.services-video .video-wrapper {
    max-width: 400px;
    height: 600px;
    /* Vertical video */
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.services-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Tasting Program
   ========================================================================== */
.tasting-section {
    background: linear-gradient(135deg, var(--dust-grey) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.tasting-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tasting-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.t-feature-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1;
    min-width: 250px;
    max-width: 320px;
    text-align: center;
}

.t-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(104, 159, 107, 0.15);
    border-color: var(--sage-green);
}

.t-feature-card .feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fdfbf7 0%, #f4eee2 100%);
    border-radius: 50%;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.05);
}

.t-feature-card h4 {
    color: var(--charcoal);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.t-feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Enhancements for About Us Section */
.about-intro-badge {
    display: inline-block;
    background: rgba(104, 159, 107, 0.1);
    color: var(--sage-green);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-text .lead-text {
    font-size: 1.3rem;
    color: var(--charcoal);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #555;
}

.about-text strong {
    color: var(--brown-bark);
}

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

.vibrant-features li {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border-right: 4px solid var(--sage-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
}

.vibrant-features li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.vibrant-features .icon {
    color: var(--sage-green);
    font-weight: bold;
    margin-left: 15px;
    font-size: 1.2rem;
}

/* Email Badge Styling */
.email-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.email-badge:hover {
    transform: translateY(-2px);
    background: var(--white);
    color: var(--charcoal) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(104, 159, 107, 0);
    /* Sage green overlay */
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover::after {
    background-color: rgba(104, 159, 107, 0.3);
}

.btn-load-more {
    background-color: var(--brown-bark);
    color: var(--white);
    border-radius: 12px;
    padding: 12px 30px;
}

.btn-load-more:hover {
    background-color: var(--sage-green);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border: 4px solid var(--brown-bark);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: var(--brown-bark);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--sage-green);
}

.lightbox-close {
    top: 20px;
    right: 30px;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* ==========================================================================
   Contact & Form Elements
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-card {
    background: linear-gradient(135deg, var(--brown-bark) 0%, var(--charcoal) 100%);
    color: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(117, 76, 43, 0.2);
    position: relative;
    overflow: hidden;
}

.info-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

.info-item {
    position: relative;
    z-index: 2;
}

.info-item {
    margin-bottom: 20px;
}

.info-item h4 {
    color: var(--sage-green);
    margin-bottom: 5px;
}

.grayscale-map {
    border-radius: 10px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.grayscale-map:hover {
    filter: grayscale(0%);
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(10px);
}

.tasting-form h3 {
    margin-bottom: 5px;
}

.form-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--dust-grey);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: var(--sage-green);
    outline: none;
}

.checkbox-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.chip {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--light-bg);
    border: 1px solid var(--dust-grey);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.chip input[type="checkbox"] {
    display: none;
}

/* Highlighting the chip when checkbox is checked */
.chip:has(input[type="checkbox"]:checked) {
    background-color: var(--sage-green);
    color: var(--white);
    border-color: var(--sage-green);
}

/* Form Select Dropdown */
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--dust-grey);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--white);
    cursor: pointer;
    transition: border-color 0.3s ease;
    appearance: auto;
}
.form-select:focus {
    border-color: var(--sage-green);
    outline: none;
}

/* Delivery Section */
.delivery-section {
    background: rgba(104, 159, 107, 0.05);
    border: 1px dashed rgba(104, 159, 107, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
}
.delivery-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
    margin-bottom: 0;
}

/* Collapsible Delivery Section */
.collapsible-section .delivery-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1rem;
    color: var(--charcoal);
    padding: 5px 0;
    user-select: none;
    transition: color 0.3s ease;
}
.collapsible-section .delivery-toggle:hover {
    color: var(--sage-green);
}
.collapsible-section .toggle-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    display: inline-block;
}
.collapsible-section .delivery-fields {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
}
.collapsible-section.open .delivery-fields {
    max-height: 200px;
    opacity: 1;
    margin-top: 12px;
}
.collapsible-section.open .toggle-arrow {
    transform: rotate(-90deg);
}
/* For LTR (English) the arrow points right initially */
[dir="ltr"] .collapsible-section.open .toggle-arrow {
    transform: rotate(90deg);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: #5c3c22;
    /* Darker Brown Bark */
    color: var(--dust-grey);
    padding: 60px 0 30px;
}

.footer-logo {
    height: 120px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--white);
}

.footer-links a:hover {
    color: var(--sage-green);
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    margin: 0 5px;
}

.social-links a:hover {
    background-color: var(--sage-green);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* ==========================================================================
   Responsive (Mobile First considerations overridden here for Desktop)
   Mobile specifics first
   ========================================================================== */
@media (max-width: 768px) {
    .hero-section {
        background-image: url('../img/hero-bg-mobile.jpg');
        background-attachment: scroll;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top center;
        /* better for mobile performance */
    }

    .header-actions-mobile {
        display: flex;
        /* Show hamburger and lang toggle on mobile header */
    }

    .desktop-only {
        display: none !important;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--brown-bark);
        padding-top: 80px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 30px;
        gap: 20px;
    }

    .nav-links li a {
        color: var(--white);
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on mobile */
        gap: 8px;
    }

    .gallery-item {
        border-radius: 6px;
    }

    .btn-load-more {
        width: 100%;
        display: block;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

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

/* ==========================================================================
   Floating Elements & Modal
   ========================================================================== */

/* WhatsApp Floating Left */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    left: 20px;
    /* LEFT POS */
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.fab-container {
    position: fixed;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fab-right {
    right: 30px;
}

.fab-left {
    left: 30px;
}

.fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 2;
}

.fab-right .fab-main {
    background-color: var(--brown-bark);
}

.fab-right .fab-main:hover {
    background-color: var(--sage-green);
    transform: scale(1.05);
}

.fab-left .fab-main {
    background-color: #25D366;
    /* WhatsApp Green */
    animation: pulse 2s infinite;
}

.fab-left .fab-main:hover {
    transform: scale(1.05);
}


.fab-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

.fab-container.active .fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--brown-bark);
    /* Changed from SVG colors natively, keeping brown bark as per request "الظل والنصوص بني غامق" */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-soft);
    border: 1.5px solid var(--dust-grey);
    position: relative;
}

.fab-item:hover {
    border-color: var(--brown-bark);
    transform: translateY(-3px);
}

/* Tooltips */
.fab-item::before {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--brown-bark);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    font-family: 'Tajawal', sans-serif;
}

.fab-right .fab-item::before {
    right: 60px;
}

.fab-left .fab-item::before {
    left: 60px;
}

.fab-item:hover::before {
    opacity: 1;
}

/* Modal Glassmorphism */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Dim backdrop */
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header h3 {
    margin-bottom: 5px;
}

.modal-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
}

.close-modal:hover {
    color: var(--brown-bark);
}

@media (max-width: 768px) {
    .fab-container.fab-right {
        right: 20px;
    }

    .fab-container.fab-left {
        left: 20px;
    }
}
