/* ============================================
   الخلطة الملكية - Premium Landing Page
   Clean, minimal, elegant design
   ============================================ */

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

:root {
    --gold: #C9A84C;
    --gold-light: #E8D48B;
    --gold-dark: #A07D2E;
    --green: #1B5E20;
    --green-light: #2E7D32;
    --green-dark: #0D3311;
    --bg: #FAFAF7;
    --bg-cream: #F5F0E8;
    --bg-dark: #1A1A18;
    --text: #2C2C2A;
    --text-light: #6B6B68;
    --text-muted: #9E9E9B;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.problem-card, .solution-card, .testimonial-card,
.guarantee-item, .usage-step, .ingredient-item, .faq-item {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Staggered animation delays */
.problem-card:nth-child(1), .solution-card:nth-child(1),
.testimonial-card:nth-child(1), .guarantee-item:nth-child(1),
.ingredient-item:nth-child(1) { transition-delay: 0s; }
.problem-card:nth-child(2), .solution-card:nth-child(2),
.testimonial-card:nth-child(2), .guarantee-item:nth-child(2),
.ingredient-item:nth-child(2) { transition-delay: 0.1s; }
.problem-card:nth-child(3), .testimonial-card:nth-child(3),
.guarantee-item:nth-child(3), .ingredient-item:nth-child(3) { transition-delay: 0.2s; }
.problem-card:nth-child(4), .guarantee-item:nth-child(4),
.ingredient-item:nth-child(4) { transition-delay: 0.3s; }
.ingredient-item:nth-child(5) { transition-delay: 0.4s; }
.ingredient-item:nth-child(6) { transition-delay: 0.5s; }

/* -- Buttons -- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border: none;
    border-radius: 50px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(201, 168, 76, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

/* -- Floating CTA -- */
.floating-cta {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 1000;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 4px 30px rgba(201, 168, 76, 0.5);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.floating-cta.visible {
    transform: translateX(-50%) translateY(0);
}

.cta-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: rgba(201, 168, 76, 0.3);
    animation: pulse 2s infinite;
    pointer-events: none;
}

/* -- Header -- */
.header {
    background: var(--white);
    padding: 12px 0;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.logo {
    height: 50px;
    margin: 0 auto;
}

/* -- Hero Section -- */
.hero {
    position: relative;
    background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 50%, var(--green-light) 100%);
    padding: 50px 0 60px;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.15), transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(201, 168, 76, 0.2);
    border: 1px solid rgba(201, 168, 76, 0.4);
    color: var(--gold-light);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-subtitle strong {
    color: var(--gold-light);
    font-size: 1.4rem;
}

.hero-product {
    margin: 0 auto 30px;
    max-width: 360px;
}

.product-img {
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.price-old {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.5);
    text-decoration: line-through;
}

.price-new {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold-light);
    text-shadow: 0 2px 10px rgba(201, 168, 76, 0.3);
}

.btn-hero {
    width: 100%;
    max-width: 340px;
    padding: 18px 36px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--gold), #D4A843, var(--gold-dark));
    background-size: 200% auto;
    animation: shimmer 3s ease infinite;
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

/* -- Section Base -- */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--green-dark);
    margin-bottom: 10px;
}

.section-desc {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: block;
    text-align: center;
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

/* -- Problems Section -- */
.section-problems {
    background: var(--white);
}

/* -- Before/After Section -- */
.before-after-section {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.ba-card {
    flex: 1;
    position: relative;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.ba-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.ba-badge.before {
    background: #FF5252;
    color: white;
}

.ba-badge.after {
    background: #4CAF50;
    color: white;
}

.ba-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.ba-desc {
    font-weight: 700;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.4;
}


.problems-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.problem-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}

.problem-card:hover {
    border-color: rgba(201, 168, 76, 0.3);
    box-shadow: var(--shadow-sm);
}

.problem-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.problem-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.problem-card p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* -- Solution Section -- */
.section-solution {
    background: var(--bg);
}

.solution-products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.solution-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
}

.solution-card-header {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    padding: 16px 20px;
}

.solution-card-header h3 {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 800;
}

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

.solution-card-body > p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.solution-benefits {
    list-style: none;
    padding: 0;
}

.solution-benefits li {
    position: relative;
    padding-right: 28px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.solution-benefits li:last-child {
    border-bottom: none;
}

.solution-benefits li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 8px;
    color: var(--green);
    font-weight: 900;
    font-size: 1.1rem;
}

/* -- Ingredients Section -- */
.section-ingredients {
    background: var(--white);
}



.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ingredient-item {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 16px 8px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}

.ingredient-item:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.ingredient-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    box-shadow: var(--shadow-sm);
    border: 3px solid var(--white);
    background: var(--white);
}

.ingredient-item span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
}

/* -- Emotional Section -- */
.section-emotional {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
}

.emotional-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

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

.emotional-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(13,51,17,0.85), rgba(26,26,24,0.9));
}

.emotional-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.emotional-content h2 {
    color: var(--gold-light);
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.6;
}

.emotional-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* -- Testimonials -- */
.section-testimonials {
    background: var(--bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 1rem;
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* -- Usage Steps -- */
.section-usage {
    background: var(--white);
}

.usage-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.usage-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px 20px;
    border: 1px solid rgba(0,0,0,0.04);
}

.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 900;
    font-size: 1.2rem;
}

.step-content h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--green-dark);
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* -- Guarantees -- */
.section-guarantees {
    background: linear-gradient(160deg, var(--green-dark), var(--green));
    padding: 50px 0;
}

.guarantees-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.guarantee-item {
    text-align: center;
    padding: 20px 10px;
}

.guarantee-icon {
    margin-bottom: 12px;
    color: var(--gold-light);
}

.guarantee-item h3 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.guarantee-item p {
    color: rgba(255,255,255,0.65);
    font-size: 0.8rem;
}

/* -- Order Section -- */
.section-order {
    background: var(--bg-cream);
    padding: 60px 0 80px;
}

.order-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gold);
}

.order-header {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    padding: 30px 24px;
    text-align: center;
}

.order-header h2 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.order-header > p {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.order-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 10px;
}

.order-price-old {
    color: rgba(255,255,255,0.4);
    text-decoration: line-through;
    font-size: 1.1rem;
}

.order-price-new {
    color: var(--gold-light);
    font-size: 2rem;
    font-weight: 900;
}

.order-shipping {
    color: var(--gold-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.order-form {
    padding: 28px 24px 32px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E8E8E5;
    border-radius: var(--radius-sm);
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
    background: var(--bg);
    direction: rtl;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.form-note {
    text-align: center;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.form-note svg {
    color: var(--green);
}

/* -- FAQ -- */
.section-faq {
    background: var(--white);
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-item {
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.04);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(201, 168, 76, 0.3);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    font-weight: 700;
    font-size: 0.95rem;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--gold);
    transition: var(--transition);
    font-weight: 300;
}

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

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

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 20px 18px;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* -- Footer -- */
.footer {
    background: var(--bg-dark);
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    height: 40px;
    margin: 0 auto 14px;
    filter: brightness(1.2);
}

.footer p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-copy {
    margin-top: 8px;
    font-size: 0.8rem !important;
    color: rgba(255,255,255,0.3) !important;
}

/* -- Modal -- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    max-width: 380px;
    width: 100%;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.modal h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: 8px;
}

.modal p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* -- Responsive -- */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .hero-subtitle strong {
        font-size: 1.2rem;
    }
    
    .price-new {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .before-after-section {
        flex-direction: column;
        gap: 24px;
    }
    
    .ba-img {
        height: 280px;
    }
    
    .problems-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .problem-card {
        padding: 18px 12px;
    }
    
    .ingredients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .guarantees-grid {
        gap: 14px;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .emotional-content h2 {
        font-size: 1.35rem;
    }
    
    .order-price-new {
        font-size: 1.7rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .solution-products {
        grid-template-columns: 1fr 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
