/* 🌟 Oujda COD Skincare - Elegant & Airy Light Theme */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Almarai:wght@300;400;700;800&display=swap');

:root {
    /* Airy, Light & Minimalist Palette */
    --bg-prime: #FAFAF8;
    /* Primary Off-White Background */
    --bg-sec: #F2EFE9;
    /* Warm Oyster/Sand Background */
    --bg-third: #FFFFFF;
    /* Pure white panels */

    --text-dark: #2B2A27;
    /* Extremely dark warm grey (softer than black) */
    --text-light: #ffffff;
    --text-muted-dark: #666666;
    --text-muted-light: #999999;

    --accent-vitc: #D9704A;
    /* Elegant terracotta/orange */
    --accent-hyal: #618A9E;
    /* Elegant muted slate/blue */

    --border-dark: #E0DDD5;
    /* Soft borders */
    --border-light: #F0EFEA;

    /* Typography */
    --font-fr: 'Montserrat', sans-serif;
    --font-ar: 'Almarai', sans-serif;

    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Language specifics */
html[lang="fr"] {
    color: var(--text-dark);
    font-family: var(--font-fr);
}

html[lang="ar"] {
    color: var(--text-dark);
    font-family: var(--font-ar);
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--bg-prime);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography Scales */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-muted-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Visual Elements */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1.25rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--text-dark);
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-dark {
    background: var(--text-dark);
    color: var(--bg-prime);
}

.btn-dark:hover {
    background: transparent;
    color: var(--text-dark);
}

.btn-light {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.btn-light:hover {
    background: var(--text-dark);
    color: var(--text-light);
}

.btn-submit {
    background: var(--bg-prime);
    color: var(--text-dark);
    border: 1px solid var(--bg-prime);
}

.btn-submit:hover {
    background: transparent;
    color: var(--bg-prime);
}


/* Top Nav */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    z-index: 1000;
    pointer-events: none;
}

.navbar>* {
    pointer-events: auto;
}

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

.lang-toggle {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition-fast);
}

.lang-toggle:hover {
    background: var(--text-dark);
    color: var(--bg-prime);
}

/* 🌟 Section 1: Massive Split Hero */
.hero {
    min-height: 100vh;
    display: flex;
    background: var(--bg-prime);
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 5vw;
    z-index: 10;
}

.hero-visual {
    flex: 0.8;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-sec);
}

.hero-visual img.main-bottle {
    width: 65%;
    height: auto;
    max-width: 500px;
    object-fit: contain;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.1));
    z-index: 2;
}

.hero-tag {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-muted-dark);
    margin-bottom: 2rem;
    text-transform: uppercase;
    display: inline-block;
}

.hero-desc {
    margin: 2rem 0 3rem;
    max-width: 480px;
    font-size: 1.25rem;
    font-weight: 500;
}


/* 🌟 Section 2: Statement */
.statement {
    background: var(--bg-sec);
    color: var(--text-dark);
    padding: 12vw 5vw;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.statement h2 {
    margin-bottom: 2rem;
}

.statement p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted-dark);
    font-size: 1.5rem;
}

.statement-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    white-space: nowrap;
    pointer-events: none;
}

/* 🌟 Section 3: The Ingredients Showcase (Alternating Blocks) */
.showcase-row {
    display: flex;
    min-height: 80vh;
}

.showcase-row.flipped {
    flex-direction: row-reverse;
}

.showcase-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8vw;
    background: var(--bg-prime);
}

.showcase-img {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.showcase-img img.bg-abstract {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-img img.overlay-product {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.2));
}

.showcase-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted-light);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.showcase-text p {
    color: var(--text-muted-dark);
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.showcase-text h3 {
    color: var(--accent-vitc);
    font-size: clamp(2rem, 4vw, 3rem);
}

.showcase-row.flipped .showcase-text h3 {
    color: var(--accent-hyal);
}

/* 🌟 Section: Before & After Gallery */
.gallery-section {
    padding: 10vw 5vw;
    background: var(--bg-sec);
}

.gallery-header {
    text-align: center;
    margin-bottom: 6vw;
}

.gallery-header h2 {
    margin-bottom: 1rem;
}

.gallery-header p {
    color: var(--text-muted-dark);
    font-size: 1.25rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.comparison-card {
    background: var(--bg-third);
    border: 1px solid var(--border-dark);
    padding: 2rem;
    transition: var(--transition-slow);
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.images-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.img-box {
    flex: 1;
    position: relative;
}

.img-box img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    background-color: #E2DFD8;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted-light);
}

.img-box .label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--text-dark);
    color: var(--text-light);
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 10;
}

[dir="rtl"] .img-box .label {
    left: auto;
    right: 1rem;
}

.img-box.after .label {
    background: var(--bg-third);
    color: var(--text-dark);
    border: 1px solid var(--border-dark);
}

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

.comparison-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.comparison-info p {
    font-size: 0.95rem;
    color: var(--text-muted-dark);
}

/* 🌟 Section 4: Collection / Pricing Architecture */
.collection {
    padding: 10vw 5vw;
    background: var(--bg-prime);
}

.collection-header {
    text-align: center;
    margin-bottom: 6vw;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-board {
    background: var(--bg-third);
    border: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
    transition: var(--transition-slow);
    position: relative;
}

.product-board:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
}

.board-img {
    padding: 4rem 2rem 1rem;
    text-align: center;
    position: relative;
    background: var(--bg-third);
    border-bottom: 1px solid var(--border-light);
}

.board-img img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.05));
}

.board-info {
    padding: 3rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.board-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.board-info p {
    color: var(--text-muted-dark);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex: 1;
}

.board-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    display: block;
    color: var(--text-dark);
}

.board-price span {
    font-size: 1rem;
    font-weight: 600;
    vertical-align: middle;
}

.old-price {
    font-size: 1.2rem;
    color: var(--text-muted-light);
    text-decoration: line-through;
    margin-right: 1rem;
    font-weight: 500;
}

[dir="rtl"] .old-price {
    margin-right: 0;
    margin-left: 1rem;
}

.badge-float {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.5rem 1rem;
    background: var(--accent-vitc);
    color: var(--text-light);
    z-index: 10;
}

[dir="rtl"] .badge-float {
    left: auto;
    right: 1.5rem;
}

.badge-duo {
    background: var(--text-dark);
}

/* 🌟 Section 5: The Form / Checkout Vault */
.checkout-vault {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 10vw 5vw;
}

.checkout-container {
    max-width: 900px;
    margin: 0 auto;
}

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

.vault-header h2 {
    color: var(--bg-prime);
}

.vault-header p {
    color: var(--text-muted-light);
}

.vault-form {
    padding: 0 1rem;
}

.form-step-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: var(--bg-prime);
    border-bottom: 1px solid var(--text-muted-dark);
    padding-bottom: 1rem;
}

.selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.opt-card {
    border: 1px solid var(--text-muted-dark);
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition-fast);
    background: rgba(255, 255, 255, 0.02);
}

.opt-card:hover {
    border-color: var(--text-muted-light);
    background: rgba(255, 255, 255, 0.05);
}

.opt-card.selected {
    border-color: var(--bg-prime);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.opt-card img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--text-muted-dark);
}

.opt-details {
    flex: 1;
}

.opt-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-light);
}

.opt-price {
    color: var(--text-muted-light);
    font-weight: 500;
}

.opt-check {
    width: 24px;
    height: 24px;
    border: 1px solid var(--text-muted-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.opt-card.selected .opt-check {
    border-color: var(--bg-prime);
}

.opt-card.selected .opt-check::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--bg-prime);
    border-radius: 50%;
}

.input-row {
    margin-bottom: 2.5rem;
}

.input-row label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    color: var(--text-muted-light);
}

.input-row input,
.input-row textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-muted-dark);
    color: var(--text-light);
    font-family: inherit;
    font-size: 1.25rem;
    padding: 0.5rem 0 1rem;
    transition: var(--transition-fast);
    resize: none;
}

.input-row input:focus,
.input-row textarea:focus {
    outline: none;
    border-bottom-color: var(--bg-prime);
}

[dir="rtl"] .input-row {
    text-align: right;
}

[dir="rtl"] .input-row input,
[dir="rtl"] .input-row textarea {
    text-align: right;
}

[dir="rtl"] .input-row input[type="tel"] {
    direction: ltr;
    text-align: right;
}

.vault-totals {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 4rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--text-muted-dark);
    border-bottom: 1px solid var(--text-muted-dark);
}

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

.totals-lbl {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted-light);
    font-weight: 600;
}

.total-price-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1;
}

.totals-val {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.totals-val .original-price {
    font-size: 1.25rem;
    text-decoration: line-through;
    color: var(--text-muted-light);
    display: none;
    margin-right: 15px;
}

[dir="rtl"] .totals-val .original-price {
    margin-right: 0;
    margin-left: 15px;
}

.trust-bar {
    display: flex;
    justify-content: space-between;
    margin-top: 5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--text-muted-dark);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {

    .showcase-row,
    .showcase-row.flipped {
        flex-direction: column;
    }

    .showcase-text {
        padding: 10vw 5vw;
    }

    .showcase-img {
        height: 400px;
        min-height: 400px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    h2 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .navbar {
        padding: 1.5rem;
        justify-content: space-between;
        flex-direction: row;
    }

    .hero {
        flex-direction: column;
        min-height: auto;
        padding-top: 6rem;
    }

    .hero-content {
        padding: 0 5vw 3rem;
        text-align: center;
        align-items: center;
    }

    .hero-visual {
        width: 100%;
        padding: 3rem 5vw;
        min-height: 350px;
    }

    .hero-desc {
        text-align: center;
        font-size: 1rem;
    }

    .statement-bg-text {
        font-size: 25vw;
    }

    .statement p {
        font-size: 1.1rem;
    }

    .images-wrapper {
        flex-direction: column;
    }

    .img-box img {
        height: 300px;
    }

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

    .trust-bar {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }

    .vault-totals {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .total-price-value {
        font-size: 2.5rem;
    }

    .totals-val {
        justify-content: center;
    }
}