/* ==========================================================================
   MOROCCOBAGDROP DESIGN SYSTEM & STYLE DECK
   ========================================================================== */

/* Color Design Tokens & Layout Config */
:root {
    --bg-color: #FCFAF7;
    --text-color: #1E293B;
    --text-muted: #64748B;
    --primary: #E2725B; /* Terracotta / Marrakech Clay */
    --primary-hover: #D45B43;
    --accent: #1E3A8A; /* Indigo Trust */
    --accent-light: #EFF6FF;
    --whatsapp: #25D366; /* Action Green */
    --whatsapp-hover: #20BA56;
    --card-bg: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(226, 114, 91, 0.08), 0 4px 6px -2px rgba(226, 114, 91, 0.03);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dynamic Language Visibility Rules */
html[lang="en"] .lang-fr {
    display: none !important;
}
html[lang="fr"] .lang-en {
    display: none !important;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 80px; /* Space for mobile sticky CTA */
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #0F172A;
}

p {
    color: var(--text-muted);
}

/* Custom Scrollbar for premium feel */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* ==========================================================================
   COMMON COMPONENTS
   ========================================================================== */

.section-title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 0.5rem;
    padding: 0 1.5rem;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    padding: 0 1.5rem;
}

/* CTA Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: var(--whatsapp);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 20px -5px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 480px;
}

.cta-button:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -5px rgba(37, 211, 102, 0.45);
}

/* Pulse animation on Hero CTA */
.primary-cta {
    animation: ctaPulse 2.5s infinite;
}

@keyframes ctaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */

.alert-bar {
    background-color: var(--accent);
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.logo-accent {
    color: var(--primary);
}

.language-toggle {
    display: flex;
    background-color: var(--border-color);
    padding: 3px;
    border-radius: var(--radius-sm);
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 6px 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
}

.lang-btn.active {
    background-color: white;
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    padding: 4rem 1.5rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-tagline {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    background-color: rgba(226, 114, 91, 0.1);
    padding: 0.35rem 1rem;
    border-radius: 50px;
}

.hero-content h1 {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    max-width: 750px;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* Transparency Box */
.transparency-box {
    background-color: rgba(243, 237, 227, 0.5);
    border: 1px solid rgba(226, 114, 91, 0.15);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 480px;
    text-align: left;
}

.box-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.75rem;
}

.transparency-box ol {
    padding-left: 1.2rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.transparency-box li {
    margin-bottom: 0.5rem;
}

.transparency-box li::marker {
    color: var(--primary);
    font-weight: 700;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    width: 100%;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    background-color: var(--accent-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

/* Hero Image & Frame */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: visible;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
    object-fit: cover;
    aspect-ratio: 16/10;
}

.image-overlay-card {
    position: absolute;
    bottom: -20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.overlay-badge {
    background-color: #D1FAE5;
    color: #065F46;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    display: inline-block;
    width: max-content;
}

.image-overlay-card p {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    font-style: italic;
}

/* ==========================================================================
   SOCIAL PROOF / REVIEWS SECTION
   ========================================================================== */

.reviews-section {
    padding: 5rem 1.5rem;
    background-color: white;
}

.rating-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 3rem;
}

.stars {
    color: #F59E0B;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.rating-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.review-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.review-author {
    font-weight: 700;
    color: var(--text-color);
}

.review-country {
    font-weight: 500;
    color: var(--text-muted);
}

.review-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
    font-style: italic;
}

/* ==========================================================================
   HOW IT WORKS SECTION
   ========================================================================== */

.how-it-works {
    padding: 6rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    margin-top: 4rem;
}

.step-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem 2rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.step-card:hover {
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -24px;
    left: 24px;
    background-color: var(--primary);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(226, 114, 91, 0.3);
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   LOCATION COVERAGE
   ========================================================================== */

.locations-section {
    padding: 6rem 1.5rem;
    background-color: white;
}

.locations-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.location-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.location-dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.location-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   SECURITY GUARANTEE
   ========================================================================== */

.security-section {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.security-card {
    background-color: var(--accent);
    color: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -10px rgba(30, 58, 138, 0.2);
}

.security-card h2 {
    color: white;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.security-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sec-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.sec-icon {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.sec-item h4 {
    color: white;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.sec-item p {
    color: #93C5FD;
    font-size: 0.95rem;
}

/* ==========================================================================
   PRICING CARD
   ========================================================================== */

.pricing-section {
    padding: 6rem 1.5rem;
    background-color: white;
}

.pricing-card {
    background-color: var(--bg-color);
    border: 3px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.card-header {
    background-color: var(--primary);
    color: white;
    padding: 0.35rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 2rem;
}

.price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1;
}

.price-or {
    font-size: 2rem;
    color: var(--text-muted);
    font-weight: 500;
}

.price-period {
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.025em;
}

.pricing-features {
    text-align: left;
    list-style: none;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-features li {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-section {
    padding: 6rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-container {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: transparent;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition);
    display: inline-block;
    line-height: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 250px; /* Safe upper limit for content heights */
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */

.final-cta {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.final-cta-card {
    background-color: #FDF9F5;
    border: 1px dashed var(--primary);
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.final-cta-card h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.final-cta-card p {
    font-size: 1.1rem;
    max-width: 550px;
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background-color: #0F172A;
    color: #94A3B8;
    padding: 4rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contacts p {
    color: #94A3B8;
    font-size: 0.95rem;
}

.footer-copyright {
    border-top: 1px solid #1E293B;
    padding-top: 2rem;
    font-size: 0.8rem;
    text-align: center;
}

/* ==========================================================================
   STICKY MOBILE ACTION BAR
   ========================================================================== */

.sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: center;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-action-bar.visible {
    transform: translateY(0);
}

.mobile-sticky-cta {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}


/* ==========================================================================
   DESKTOP MEDIA QUERIES (768px and up)
   ========================================================================== */

@media (min-width: 768px) {
    .header {
        padding: 2rem;
    }
    
    .hero {
        padding: 6rem 2rem 8rem;
    }
    
    .hero-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .hero-content {
        align-items: flex-start;
        text-align: left;
        flex: 1.1;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
        line-height: 1.1;
    }
    
    .hero-sub {
        font-size: 1.25rem;
        margin-bottom: 3rem;
    }
    
    .hero-image-wrapper {
        flex: 0.9;
        max-width: 520px;
    }
    
    .trust-badges {
        justify-content: flex-start;
    }
    
    .reviews-grid {
        flex-direction: row;
    }
    
    .review-card {
        flex: 1;
    }
    
    .steps-container {
        flex-direction: row;
        gap: 2rem;
    }
    
    .step-card {
        flex: 1;
        padding: 3rem 2rem 2.5rem;
    }
    
    .locations-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .location-item {
        width: calc(50% - 0.75rem);
    }
    
    .security-card {
        padding: 4rem;
    }
    
    .security-grid {
        flex-direction: row;
        gap: 2rem;
    }
    
    .sec-item {
        flex: 1;
    }
    
    .footer {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        max-width: 1200px;
        margin: 0 auto;
        padding: 6rem 2rem 4rem;
    }
    
    .footer-copyright {
        width: 100%;
    }
    
    /* Disable sticky mobile bar on desktop */
    .sticky-action-bar {
        display: none !important;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* Privacy Policy Page Specific Styles */
.privacy-section {
    padding: 4rem 1.5rem;
    max-width: 800px;
    margin: 2rem auto 4rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.privacy-section h1 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.privacy-section h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.privacy-section p, .privacy-section ul {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.privacy-section ul {
    padding-left: 1.5rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
}

.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.back-home-link:hover {
    color: var(--primary-hover);
    transform: translateX(-3px);
}
