/* =========================
   Modern Professional CSS for Tn-QA Delivery
   ========================= */

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

@import 'animations.css';

:root {
    /* Tunisia Colors */
    --tunisia-red: #E70013;
    --tunisia-dark: #8B0000;

    /* Qatar Colors */
    --qatar-maroon: #8D1B3D;
    --qatar-dark: #550020;

    /* Brand Colors */
    --gold: #C7A942;
    --gold-dark: #856404;

    /* Base Colors */
    --white: #FFFFFF;
    --black: #000000;
    --dark: #1a1a1a;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-600: #6C757D;
    --gray-800: #343A40;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

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

/* =========================
   Global Link Styling
   ========================= */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    text-decoration: none;
}

/* =========================
   Footer
   ========================= */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tunisia-red), var(--gold), var(--qatar-maroon));
}

.footer::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199, 169, 66, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.75;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.7);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-icon.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.social-icon.tiktok:hover {
    background: #000;
    border-color: #25f4ee;
    color: white;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

[dir="ltr"] .footer-title::after {
    right: auto;
    left: 0;
}

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

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.15rem 0;
}

.footer-links a::before {
    content: '›';
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(5px);
    transition: var(--transition);
    color: var(--gold);
}

[dir="ltr"] .footer-links a::before {
    content: '‹';
    transform: translateX(-5px);
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(-5px);
    text-decoration: none;
}

[dir="ltr"] .footer-links a:hover {
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.footer-contact li svg {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--gold);
    stroke: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.6;
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-title::after {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* =========================
   Navigation
   ========================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-img:hover {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Fallback for old flag circle design */
.logo-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--tunisia-red), var(--qatar-maroon));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-md);
}

.flag-tn,
.flag-qa {
    font-size: 1.5rem;
    position: absolute;
}

.flag-tn {
    right: 5px;
}

.flag-qa {
    left: 5px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--tunisia-red), var(--qatar-maroon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 600;
}

/* Language Toggle Button */
.lang-toggle {
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, var(--tunisia-red), var(--qatar-maroon));
    color: var(--white);
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.lang-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--qatar-maroon), var(--tunisia-red));
}

.lang-toggle:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.05rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tunisia-red), var(--qatar-maroon));
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--tunisia-red);
}

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

.contact-quick {
    display: flex;
    gap: 0.75rem;
}

.quick-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.quick-phone.tunisia {
    background: rgba(231, 0, 19, 0.1);
    color: var(--tunisia-red);
}

.quick-phone.tunisia:hover {
    background: var(--tunisia-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-phone.qatar {
    background: rgba(141, 27, 61, 0.1);
    color: var(--qatar-maroon);
}

.quick-phone.qatar:hover {
    background: var(--qatar-maroon);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* =========================
   Hero Slider
   ========================= */
.hero-slider {
    margin-top: 70px;
    height: 100vh;
    min-height: 700px;
    position: relative;
    overflow: hidden;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

/* ---- Slide content staggered entrance animations ---- */

/* Outer card: rises from bottom with back-out easing */
.slide.active .slide-content {
    animation: cardRiseIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s both;
}

/* Flag: elastic pop-in with rotation */
.slide.active .flag-icon {
    animation: popInRotate 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

/* Title: slides in from LEFT with elastic finish */
.slide.active .slide-title {
    animation: slideInLeft 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.2s both;
}

/* Description: slides in from RIGHT with elastic finish */
.slide.active .slide-description {
    animation: slideInRight 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2.2s both;
}

/* Slide background: subtle zoom-out effect when activated */
.slide.active .slide-bg {
    animation: zoomOutBG 7s ease-out forwards;
}

/* ---- Keyframes ---- */

@keyframes cardRiseIn {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes popInRotate {
    from {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }

    60% {
        transform: scale(1.2) rotate(10deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-150px) skewX(-10deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) skewX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(150px) skewX(10deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) skewX(0);
    }
}

@keyframes zoomOutBG {
    from {
        transform: scale(1.2);
    }

    to {
        transform: scale(1);
    }
}

@keyframes backgroundShift {

    0%,
    100% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(1.06) translateY(-15px);
    }
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
}

.slide-tunisia .slide-bg {
    background-image:
        linear-gradient(135deg, rgba(231, 0, 19, 0.15) 0%, rgba(139, 0, 0, 0.1) 100%),
        linear-gradient(45deg, rgba(199, 169, 66, 0.05) 0%, transparent 50%),
        url('tuinsia.jpg');
    background-size: auto, auto, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    animation: backgroundShift 20s ease-in-out infinite;
}

.slide-qatar .slide-bg {
    background-image:
        linear-gradient(135deg, rgba(141, 27, 61, 0.15) 0%, rgba(85, 0, 32, 0.1) 100%),
        linear-gradient(225deg, rgba(97, 89, 63, 0.05) 0%, transparent 60%),
        url('qatar.jpg');
    background-size: auto, auto, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    animation: backgroundShift 25s ease-in-out infinite;
}

.slide-service .slide-bg {
    background-image:
        linear-gradient(135deg, rgba(199, 169, 66, 0.15) 0%, rgba(133, 100, 4, 0.1) 100%),
        radial-gradient(circle at 50% 50%, rgba(231, 0, 19, 0.05) 0%, transparent 50%),
        url('24-7.jpg');
    background-size: auto, auto, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}

.slide-why .slide-bg {
    background-image:
        linear-gradient(135deg, rgba(44, 95, 45, 0.15) 0%, rgba(21, 64, 22, 0.1) 100%),
        linear-gradient(45deg, rgba(199, 169, 66, 0.05) 0%, transparent 70%),
        url('hero-bg.jpg');
    background-size: auto, auto, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}



/* =========================
   Page Header
   ========================= */
.page-header {
    margin-top: 70px;
    padding: 0;
    background:
        linear-gradient(135deg, rgba(231, 0, 19, 0.3), rgba(141, 27, 61, 0.3)),
        url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    height: 70vh;
    min-height: 300px;
}

/* Welcome Message Section */
.welcome-message {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #fefefe 100%);
    text-align: center;
}

.welcome-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--tunisia-red), var(--qatar-maroon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.welcome-text {
    font-size: 1.4rem;
    line-height: 2;
    color: var(--gray-700);
    max-width: 900px;
    margin: 0 auto;
    font-weight: 500;
}

.slide-content {
    max-width: 900px;
    padding: 3rem;
    text-align: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(6px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep on slide-content */
.slide-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(255, 255, 255, 0.12) 50%,
            transparent 60%);
    animation: shimmerSweep 3.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmerSweep {
    0% {
        left: -60%;
    }

    60%,
    100% {
        left: 120%;
    }
}

.flag-icon {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.4));
    display: inline-block;
}

.slide-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.slide-description {
    font-size: 1.5rem;
    line-height: 1.9;
    margin-bottom: 2.5rem;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    opacity: 0.95;
}

.slide-features {
    list-style: none;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.slide-features li {
    padding: 0.75rem 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slide-btn {
    display: inline-block;
    padding: 1.3rem 3.5rem;
    background: rgba(255, 255, 255, 0.98);
    color: var(--dark);
    font-weight: 900;
    font-size: 1.3rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.slide-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(199, 169, 66, 0.3), transparent);
    transition: left 0.6s ease;
}

.slide-btn:hover::before {
    left: 100%;
}

.slide-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    background: var(--gold);
    color: var(--white);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 10;
}

.slider-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dot.active,
.dot:hover {
    background: var(--white);
    transform: scale(1.5);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.quick-order-btn {
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    background: var(--gold);
    color: var(--white);
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
    font-weight: 900;
    border-radius: 50px;
    box-shadow: var(--shadow-xl);
    z-index: 10;
    transition: var(--transition);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.quick-order-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-50%) scale(1.1);
}

/* =========================
   Quick Contact Section
   ========================= */
.quick-contact {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.quick-contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(231, 0, 19, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--tunisia-red), var(--qatar-maroon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--tunisia-red), var(--qatar-maroon));
    border-radius: 2px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--tunisia-red), var(--qatar-maroon));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.card-flag {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.contact-card h3 {
    font-size: 2rem;
    font-weight: 900;
}

.tunisia-card {
    border-top: 6px solid var(--tunisia-red);
}

.tunisia-card h3 {
    color: var(--tunisia-red);
}

.qatar-card {
    border-top: 6px solid var(--qatar-maroon);
}

.qatar-card h3 {
    color: var(--qatar-maroon);
}

.contact-number {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    margin-bottom: 1.2rem;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-number:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateX(-8px);
    border-color: rgba(231, 0, 19, 0.2);
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    border-radius: 15px;
    font-weight: 800;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}



.page-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.5rem;
    font-weight: 500;
}

/* =========================
   Services Section
   ========================= */
.services-section {
    padding: 6rem 0;
}

.tunisia-section {
    background: linear-gradient(180deg, rgba(231, 0, 19, 0.02) 0%, rgba(231, 0, 19, 0.01) 50%, #ffffff 100%);
}

.qatar-section {
    background: linear-gradient(180deg, rgba(141, 27, 61, 0.02) 0%, rgba(141, 27, 61, 0.01) 50%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.country-flag {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--tunisia-red), var(--qatar-maroon));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.3rem;
    line-height: 1.9;
    max-width: 850px;
    margin: 0 auto;
    color: var(--gray-600);
    font-weight: 500;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.service-card {
    flex: 1 1 300px;
    max-width: 400px;
    width: 100%;
    background: var(--white);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--tunisia-red), var(--qatar-maroon));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.service-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.service-card.featured {
    border: 2px solid var(--gold);
    background: linear-gradient(135deg, rgba(199, 169, 66, 0.03) 0%, transparent 100%);
}

.badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(199, 169, 66, 0.3);
}

.service-icon {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.service-card h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.3rem;
    color: var(--dark);
    line-height: 1.3;
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.9;
    font-size: 1.1rem;
    flex-grow: 1;
}

.service-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.service-card ul li {
    padding: 0.7rem 0;
    color: var(--gray-600);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding-right: 1.8rem;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--gold);
    font-weight: 900;
    font-size: 1.2rem;
}

/* Phone Display Styling */
.service-card .phone-display,
.highlight-section .phone-display {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.8rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--dark);
    margin: 0.5rem 0;
    border: 2px solid rgba(0, 0, 0, 0.05);
    direction: ltr;
    text-align: left;
    white-space: nowrap;
}

.service-card .phone-display svg {
    flex-shrink: 0;
}

.cta-box {
    background: var(--white);
    padding: 4rem 3rem;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    margin-top: 4rem;
    border: 3px solid;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s ease;
}

.cta-box:hover::before {
    left: 100%;
}

.tunisia-cta {
    border-color: var(--tunisia-red);
    background: linear-gradient(135deg, rgba(231, 0, 19, 0.02) 0%, transparent 50%);
}

.qatar-cta {
    border-color: var(--qatar-maroon);
    background: linear-gradient(135deg, rgba(141, 27, 61, 0.02) 0%, transparent 50%);
}

.cta-box h3 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.cta-box p {
    font-size: 1.3rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 3rem;
    font-weight: 900;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--tunisia-red), var(--qatar-maroon));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.3);
}

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

/* =========================
   Contact Section
   ========================= */
.contact-section {
    padding: 5rem 0;
    background: var(--gray-100);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--tunisia-red), var(--qatar-maroon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-intro {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.tunisia-info {
    border-right: 5px solid var(--tunisia-red);
}

.qatar-info {
    border-right: 5px solid var(--qatar-maroon);
}

.email-info {
    border-right: 5px solid var(--gold);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-flag {
    font-size: 2.5rem;
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-100);
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.info-item:hover {
    background: var(--gray-200);
}

.info-item.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #128C7E;
}

.info-item.whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
}

.social-section {
    margin-top: 2rem;
}

.social-section h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.social-links-large {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.social-link.facebook {
    color: #1877F2;
}

.social-link.facebook:hover {
    background: #1877F2;
    color: var(--white);
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.social-link.tiktok {
    color: var(--black);
}

.social-link.tiktok:hover {
    background: var(--black);
    color: var(--white);
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--tunisia-red), var(--qatar-maroon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
    font-size: 1.05rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--tunisia-red);
    box-shadow: 0 0 0 4px rgba(231, 0, 19, 0.1);
}

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

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    display: none;
}

.form-message.success {
    background: rgba(39, 174, 96, 0.1);
    color: #27AE60;
    border: 2px solid #27AE60;
    display: block;
}

.form-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
    border: 2px solid #E74C3C;
    display: block;
}

/* =========================
   Footer
   ========================= */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: var(--gray-300);
    font-weight: 600;
}

.footer-text {
    color: var(--gray-300);
    line-height: 1.8;
    margin-top: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon.facebook:hover {
    background: #1877F2;
    transform: translateY(-5px);
}

.social-icon.tiktok:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-5px);
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--gray-300);
    transition: var(--transition);
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--white);
    padding-right: 10px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--gray-300);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-300);
    font-weight: 600;
}

/* =========================
   Floating WhatsApp
   ========================= */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    background: #128C7E;
    transform: scale(1.1);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

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

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

/* =========================
   Responsive Design
   ========================= */
/* =========================
   Responsive Design
   ========================= */
@media (max-width: 968px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-slider {
        height: auto;
        min-height: 500px;
        margin-top: 60px;
    }

    .slide-content {
        padding: 2rem;
        width: 95%;
    }

    .slide-title {
        font-size: 2.2rem;
    }

    .slide-description {
        font-size: 1.1rem;
    }

    .page-header {
        height: 70vh;
        min-height: 400px;
        padding: 4rem 0;
    }

    .page-header h1 {
        font-size: 2.8rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-cards,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .quick-order-btn {
        display: none;
    }

    .merchant-container {
        padding: 0.5rem 0;
        margin: 1rem 0;
    }

    .merchant-premium-wrapper {
        padding: 1.25rem 1rem;
        border-radius: 16px;
        border-width: 1px;
    }

    .merchant-badge-row {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .merchant-business-label {
        font-size: 0.55rem;
        letter-spacing: 2px;
    }

    .merchant-main-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .merchant-main-info p {
        font-size: 0.82rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }

    .merchant-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
        margin-bottom: 1rem;
    }

    .merchant-benefit-item {
        padding: 0.5rem 0.3rem;
        gap: 0.25rem;
    }

    .benefit-icon {
        font-size: 1.1rem;
    }

    .benefit-text {
        font-size: 0.7rem;
    }

    .premium-wa-btn {
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.88rem !important;
        border-radius: 12px !important;
        white-space: normal;
        min-height: 44px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .nav-container {
        padding: 0.5rem 1.5rem;
    }

    .logo-img {
        height: 40px;
    }

    .logo-main {
        font-size: 1.2rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--white);
        flex-direction: column;
        padding: 2.5rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        align-items: center;
        text-align: center;
        z-index: 1001;
    }

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

    .nav-link {
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid var(--gray-100);
    }

    .contact-quick {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    .quick-phone {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    .hero-slider {
        height: 60vh;
        /* Fixed height for mobile */
        min-height: 400px;
    }

    .slide-bg {
        /* Fix for mobile browsers holding onto 'fixed' which hides bg */
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
    }

    .page-header {
        height: 40vh;
        min-height: 350px;
        background-attachment: scroll !important;
        /* Fix for page header too */
        background-position: center center !important;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

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

    .section-header h2 {
        font-size: 2.2rem;
    }

    /* Merchant optimization already handled above for 768px */

    .section-group-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }

    .section-group-header h3 {
        width: 100%;
        justify-content: center;
    }

    .section-phone {
        width: 100%;
        justify-content: center;
    }

    .highlight-section {
        padding: 2rem 1.5rem;
    }

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

    .merchant-premium-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .merchant-badge-row {
        justify-content: center;
    }

    .merchant-main-info p {
        margin-bottom: 1.5rem;
    }
}


@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
        /* Minimal padding */
    }

    .slide-content {
        padding: 1.5rem 1rem;
        /* Compact padding */
        border-radius: 15px;
    }

    .slide-title {
        font-size: 1.6rem;
        /* Readable on small screens */
        margin-bottom: 1rem;
    }

    .slide-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .flag-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .contact-card,
    .info-card {
        padding: 1.5rem;
    }

    .merchant-premium-wrapper {
        padding: 1rem 0.75rem 1.25rem;
    }

    .merchant-main-info h3 {
        font-size: 1rem;
    }

    .merchant-main-info p {
        font-size: 0.78rem;
        margin-bottom: 0.8rem;
    }

    .merchant-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .merchant-benefit-item {
        padding: 0.4rem;
    }

    .benefit-text {
        font-size: 0.65rem;
    }

    .floating-whatsapp {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 55px;
        height: 55px;
    }
}

/* =========================
   Merchants & Optional Sections
   ========================= */
.merchant-section {
    background: linear-gradient(135deg, #1e1e2f 0%, #2a2a40 100%);
    color: var(--white);
    padding: 4rem 2rem;
    border-radius: 20px;
    margin: 4rem 0;
    text-align: center;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.merchant-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width=\"60\" height=\"60\" viewBox=\"0 0 60 60\" xmlns=\"http://www.w3.org/2000/svg\" opacity=\"0.05\" fill=\"%23ffffff\"%3E%3Cpath d=\"M54.627 0l.83.828-1.415 1.415-.828-.828-.828.828-1.415-1.415.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM22.485 0l.83.828-1.415 1.415-.828-.828-.828.828-1.415-1.415.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM0 22.485l.828.83-1.415 1.415-.828-.828-.828.828L-2.83 22.485l.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM0 54.627l.828.83-1.415 1.415-.828-.828-.828.828L-2.83 54.627l.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM54.627 32.142l.83.828-1.415 1.415-.828-.828-.828.828-1.415-1.415.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM22.485 32.142l.83.828-1.415 1.415-.828-.828-.828.828-1.415-1.415.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM32.142 54.627l.828.83-1.415 1.415-.828-.828-.828.828-1.415-1.415.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM32.142 22.485l.828.83-1.415 1.415-.828-.828-.828.828-1.415-1.415.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM54.627 0l.83.828-1.415 1.415-.828-.828-.828.828-1.415-1.415.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM22.485 0l.83.828-1.415 1.415-.828-.828-.828.828-1.415-1.415.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM0 22.485l.828.83-1.415 1.415-.828-.828-.828.828L-2.83 22.485l.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM0 54.627l.828.83-1.415 1.415-.828-.828-.828.828L-2.83 54.627l.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828z\"/ %3E%3C/svg%3E');
}

.merchant-content {
    position: relative;
    z-index: 1;
}

.merchant-section h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.merchant-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.maintenance-section {
    display: none;
}

.btn-whatsapp.full-width {
    width: 100%;
    justify-content: center;
    margin-top: 1.5rem;
}

/* =========================
   New Dynamic Service Styles (Global)
   ========================= */


/* Section Groups */
.service-section-group {
    margin-bottom: 5rem;
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-group-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-200);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.section-group-header h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-phone {
    background: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    direction: ltr;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(133, 100, 4, 0.2);
    font-size: 1rem;
    font-weight: 700;
    flex-grow: 1;
    text-align: center;
    box-shadow: 0 4px 12px rgba(133, 100, 4, 0.05);
}

.card-warning-text {
    color: #856404;
    background: #fff3cd;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 1rem;
    display: inline-block;
}

/* Specific Card Styling for Maintenance (Last Card) */
.service-card[data-id="qa_maintenance"] {
    opacity: 0.8;
    filter: grayscale(0.2);
}

.service-card[data-id="qa_maintenance"]:hover {
    filter: none;
    opacity: 1;
}

/* Highlight Sections (Cleaning, CV) */
.highlight-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.highlight-section::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(141, 27, 61, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.highlight-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.highlight-info {
    flex: 1;
    min-width: 300px;
}

.highlight-desc {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--gray-600);
}

.highlight-list {
    list-style: none;
    margin-bottom: 2.5rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.highlight-list li {
    position: relative;
    padding-right: 2.2rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.highlight-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #27AE60;
    font-weight: 900;
    font-size: 1.4rem;
}

.highlight-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--white);
    margin: 8% auto;
    padding: 3rem;
    border-radius: 30px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-modal {
    color: var(--gray-600);
    float: left;
    font-size: 32px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close-modal:hover {
    color: var(--tunisia-red);
    transform: rotate(90deg);
}

.modal-list {
    margin: 2rem 0;
    padding-right: 2rem;
    list-style: none;
}

.modal-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    padding-right: 1.5rem;
}

.modal-list li::before {
    content: '•';
    color: var(--gold);
    position: absolute;
    right: 0;
    font-weight: 900;
}

/* RTL/LTR Utils */
[dir="ltr"] {
    direction: ltr;
}

/* Responsive Adjustments for New Elements */
@media (max-width: 768px) {
    .section-group-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }

    .section-group-header h3 {
        width: 100%;
        justify-content: center;
    }

    .section-phone {
        width: 100%;
        justify-content: center;
    }

    .highlight-section {
        padding: 2rem 1.5rem;
    }

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

/* Tunisia Merchant Section - Compact Design */
.merchant-container {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
    margin: 2rem 0;
}

.merchant-premium-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 2px solid rgba(231, 0, 19, 0.25);
    padding: 2.5rem 3rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}


.merchant-premium-wrapper::after {
    display: none;
}

.merchant-premium-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(231, 0, 19, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.merchant-badge-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}


.merchant-business-label {
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--gray-400);
    letter-spacing: 3px;
    text-transform: uppercase;
    border-left: 1px solid var(--gray-300);
    border-right: 1px solid var(--gray-300);
    padding: 0 0.7rem;
    line-height: 1.6;
}

.merchant-certified-badge {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(199, 169, 66, 0.3);
    z-index: 2;
}

.merchant-premium-content {
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    text-align: right;
}


.merchant-main-info h3 {
    font-size: 1.5rem;
    color: var(--tunisia-red);
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.merchant-premium-wrapper.qatar-branded {
    border-color: rgba(141, 27, 61, 0.25);
}

.merchant-premium-wrapper.qatar-branded .merchant-main-info h3 {
    color: var(--qatar-maroon);
}


.merchant-main-info p {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.merchant-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.merchant-benefit-item {
    background: rgba(255, 255, 255, 0.6);
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.merchant-benefit-item:hover {
    transform: translateY(-3px);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.benefit-icon {
    font-size: 1.6rem;
}

.benefit-text {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.8rem;
}

.merchant-cta-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.premium-wa-btn {
    padding: 0.85rem 2rem !important;
    font-size: 1rem !important;
    border-radius: 100px !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3) !important;
}

.merchant-disclaimer {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-style: italic;
}

/* Modal Form Styling */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-intro {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group label {
    font-weight: 700;
    color: var(--dark);
    font-size: 1rem;
}

.form-group input {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    font-size: 1.1rem;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 4px rgba(199, 169, 66, 0.1);
}

/* Merchant container mobile override removed - handled in the main definition above */

/* =========================
   Sub-Service Card Styles (Modal)
   ========================= */
.service-selection {
    padding: 1rem 0;
}

.sub-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.sub-service-card {
    background: linear-gradient(135deg, rgba(231, 0, 19, 0.03) 0%, rgba(141, 27, 61, 0.03) 100%);
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sub-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tunisia-red), var(--qatar-maroon));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sub-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--tunisia-red);
    background: linear-gradient(135deg, rgba(231, 0, 19, 0.08) 0%, rgba(141, 27, 61, 0.08) 100%);
}

.sub-service-card:hover::before {
    transform: scaleX(1);
}

.sub-service-card:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .welcome-message {
        padding: 3rem 1rem;
    }

    .welcome-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .welcome-text {
        font-size: 1.1rem;
        line-height: 1.6;
    }
}

.sub-service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.sub-service-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.4;
}

/* Back Button */
.btn-back {
    background: var(--gray-200);
    color: var(--dark);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back:hover {
    background: var(--gray-300);
    transform: translateX(-5px);
    box-shadow: var(--shadow-sm);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 3rem;
    border-radius: 25px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: var(--gray-600);
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
}

.close-modal:hover,
.close-modal:focus {
    background: var(--tunisia-red);
    color: var(--white);
    transform: rotate(90deg);
}

#modalTitle {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--dark);
    text-align: center;
    padding-top: 1rem;
}

#modalBody {
    margin-top: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
        margin: 10% auto;
    }

    .sub-services-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .sub-service-card {
        padding: 1.5rem 1rem;
    }

    .sub-service-icon {
        font-size: 2.5rem;
    }

    .sub-service-title {
        font-size: 1rem;
    }

    #modalTitle {
        font-size: 1.5rem;
    }
}

/* Contact Page Title Custom */
.contact-page-title-custom {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .contact-page-title-custom {
        font-size: 1.8rem;
    }
}

/* =========================
   Homepage Card Subtitles
   ========================= */
.card-subtitle {
    font-size: 1.35rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    background: linear-gradient(135deg, var(--tunisia-red), var(--qatar-maroon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================
   Sub-service Card Button in Modal
   ========================= */
.sub-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 1.2rem 1rem;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    transition: var(--transition);
    text-align: center;
}

.sub-service-card:hover {
    border-color: var(--qatar-maroon);
    background: rgba(141, 27, 61, 0.04);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.sub-service-btn {
    margin-top: 0.5rem;
    padding: 0.55rem 1.2rem;
    background: linear-gradient(135deg, var(--tunisia-red), var(--qatar-maroon));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    box-shadow: 0 4px 12px rgba(141, 27, 61, 0.25);
}

.sub-service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(141, 27, 61, 0.4);
    background: linear-gradient(135deg, var(--qatar-maroon), var(--tunisia-red));
}