/*=========================================
 * Dermalya - Ultra Dynamic Motivation Layout
 * Dark Green + Brilliant Gold + Action Red
 *========================================*/

 :root {
    --primary: #0F3D29; /* Dark Forest Green */
    --primary-light: #16563B;
    --gold: #D4AF37; /* The exact gold from the logo */
    --gold-light: #fbeebf;
    --action-color: #E63946; /* Vibrant motivating red for buttons */
    --action-hover: #c1121f;
    
    --bg-main: #F7F9F8; /* Soft grayish cream */
    --text-dark: #1D2D24;
    --text-gray: #55665E;
    
    --radius-lg: 24px;
    --radius-md: 12px;
    
    --shadow-soft: 0 10px 30px rgba(15, 61, 41, 0.08);
    --shadow-glow: 0 10px 30px rgba(230, 57, 70, 0.35);
    
    --transition: all 0.3s ease-in-out;
}

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-gold { color: var(--gold); }
.mt-15 { margin-top: 15px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }
.mb-50 { margin-bottom: 50px; }
.mb-15 { margin-bottom: 15px; }
.relative-z { position: relative; z-index: 5; }

/* Typographic Logo Replica */
.logo-wrapper {
    display: inline-block;
    padding: 5px;
}
.logo-wrapper.inline {
    background: transparent;
    border-radius: 0;
}
.logo-text {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    letter-spacing: 1px;
}
.logo-leaf {
    color: var(--gold);
    display: inline-block;
    font-size: 1.5rem;
    vertical-align: middle;
    margin: 0 -2px;
    transform: rotate(15deg);
}

/* Gradients & Highlights */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.highlight {
    color: var(--gold);
    position: relative;
    display: inline-block;
}
.highlight::after {
    content: ''; position: absolute;
    bottom: 5px; left: 0; width: 100%; height: 30%;
    background: rgba(212, 175, 55, 0.2); z-index: -1;
}
.highlight-red {
    color: var(--action-color);
}

/* Glass & Elements */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-lg);
}

/* Motivating Action Buttons */
.btn {
    display: inline-flex; justify-content: center; align-items: center; gap: 10px;
    padding: 16px 32px; border-radius: 50px;
    font-weight: 800; font-size: 1.2rem; cursor: pointer;
    transition: var(--transition); border: none;
}
.btn-action {
    background: linear-gradient(45deg, var(--action-color), #ff6b6b);
    color: white;
}
.btn-action:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-glow);
}
.btn-large { padding: 22px 45px; font-size: 1.4rem; }

.shadow-glow { box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3); }
.pulse-fast { animation: pulseAction 1.5s infinite; }

@keyframes pulseAction {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

/* Header */
.main-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    position: fixed; top: 0; width: 100%; z-index: 1000;
    border-bottom: 2px solid rgba(212, 175, 55, 0.1);
    padding: 10px 0; transition: var(--transition);
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.header-cta { padding: 12px 25px; font-size: 1.1rem; }

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 80px;
    background: linear-gradient(180deg, rgba(232,242,238,1) 0%, rgba(247,249,248,1) 100%);
    overflow: hidden;
}
.hero-bg-shapes .shape { position: absolute; border-radius: 50%; filter: blur(60px); z-index: 1; transform: translateZ(0); will-change: transform; }
.hero-bg-shapes .shape-1 { top: -10%; right: -5%; width: 400px; height: 400px; background: rgba(212, 175, 55, 0.2); }
.hero-bg-shapes .shape-2 { bottom: 10%; left: -10%; width: 300px; height: 300px; background: rgba(15, 61, 41, 0.1); }

.hero-container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gold); color: white;
    padding: 8px 20px; border-radius: 30px;
    font-size: 1.1rem; font-weight: 800; margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}
.hero-title { font-size: 3.5rem; font-weight: 900; line-height: 1.4; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.3rem; color: var(--text-gray); margin-bottom: 30px; font-weight: 600;}

.price-showcase {
    background: white; padding: 20px 30px; border-radius: var(--radius-lg);
    display: inline-block; box-shadow: var(--shadow-soft);
    border: 2px solid var(--gold); margin-bottom: 30px;
}
.price-value { font-size: 3rem; font-weight: 900; color: var(--primary); line-height: 1; }
.currency { font-size: 1.5rem; }
.price-old { font-size: 1.4rem; color: var(--action-color); text-decoration: line-through; margin-top: 5px; font-weight: 700;}

.hero-benefits-list .hb-item {
    font-size: 1.2rem; font-weight: 700; color: var(--text-dark);
    margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.hb-item i { color: var(--primary); font-size: 1.4rem; }

.hero-image-wrapper { position: relative; }
.main-product-img { border-radius: var(--radius-lg); position: relative; z-index: 2; box-shadow: 0 20px 50px rgba(0,0,0,0.15); transition: var(--transition);}
.main-product-img:hover { transform: scale(1.03); }
.image-glow { position: absolute; top:50%; left:50%; transform: translate(-50%, -50%) translateZ(0); width: 100%; height: 100%; background: var(--gold); filter: blur(40px); opacity: 0.3; z-index: 1; will-change: transform;}

.trust-icons { display: flex; gap: 20px; font-weight: 800; color: var(--text-gray); }
.trust-icons i { color: var(--primary); }

/* Section Headers */
.sub-heading {
    display: block; color: var(--gold); font-size: 1.2rem; font-weight: 800;
    margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px;
}
.section-header h2 { font-size: 2.8rem; font-weight: 900; margin-bottom: 15px; }
.section-header p { font-size: 1.2rem; color: var(--text-gray); max-width: 700px; margin: 0 auto; }

/* Problem Section */
.problem-section { padding: 90px 0; background: white; }
.problems-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.problem-card { padding: 40px 30px; text-align: center; background: var(--bg-main); transition: var(--transition);}
.problem-card:hover { transform: translateY(-10px); border-bottom: 4px solid var(--action-color); }
.icon-circle {
    width: 80px; height: 80px; border-radius: 50%;
    margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; background: white; box-shadow: var(--shadow-soft);
}
.icon-circle.red-glow { border: 2px solid var(--action-color); color: var(--action-color); }
.problem-card h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 15px; color: var(--primary); }
.problem-card p { font-size: 1.15rem; color: var(--text-gray); }

.cta-banner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 40px; background: linear-gradient(135deg, rgba(232,242,238,1), rgba(255,255,255,1));
    border: 2px solid var(--primary);
}
.banner-content h3 { font-size: 1.8rem; font-weight: 900; margin-bottom: 10px; }
.banner-content p { font-size: 1.2rem; color: var(--text-dark); margin: 0; }

/* Ingredients */
.ingredients-section { padding: 90px 0; background: linear-gradient(to bottom, var(--primary), var(--primary-light)); color: white; }
.ingredients-section .section-header p { color: rgba(255,255,255,0.8); }
.ingredients-layout { display: flex; flex-direction: column; gap: 40px; }
.ing-card {
    display: flex; align-items: center; gap: 50px;
    background: rgba(255,255,255,0.05); padding: 30px;
    border-radius: var(--radius-lg); border: 1px solid rgba(212, 175, 55, 0.3);
}
.ing-card.reverse { flex-direction: row-reverse; }
.ing-img-container { flex: 1; text-align: center; }
.ing-img { width: 100%; border-radius: var(--radius-lg); box-shadow: 0 15px 40px rgba(0,0,0,0.5); max-height: 350px; object-fit: cover;}
.ing-content { flex: 1; }
.ing-content h3 { font-size: 2.2rem; font-weight: 800; margin-bottom: 20px; color: var(--gold); }
.ing-content p { font-size: 1.3rem; line-height: 1.8; color: #eee; }

/* Usage & Targets */
.usage-section { padding: 90px 0; background: white; }
.usage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 50px; }
.usage-text h2 { font-size: 2.5rem; font-weight: 900; margin-bottom: 30px; }
.stepbox { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 25px; }
.step-num { width: 45px; height: 45px; flex-shrink: 0; background: var(--primary); color: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 900;}
.step-desc h4 { font-size: 1.4rem; color: var(--primary); margin-bottom: 5px; }
.step-desc p { font-size: 1.15rem; color: var(--text-gray); }
.usage-illustration { position: relative; }
.showcase-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.overlay-badge { position: absolute; bottom: 20px; right: -20px; background: var(--gold); color: var(--primary); padding: 15px 30px; font-size: 1.3rem; font-weight: 900; border-radius: 50px; box-shadow: 0 10px 20px rgba(0,0,0,0.2); border: 3px solid white;}
.precautions { background: rgba(230, 57, 70, 0.05); padding: 15px 20px; border-right: 4px solid var(--action-color); border-radius: var(--radius-md); font-size: 1.1rem;}

/* Reviews */
.reviews-section { padding: 90px 0; background: var(--bg-main); }
.reviews-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.review-box { padding: 40px 30px; background: white; position: relative; }
.review-box::before { content: '”'; position: absolute; top: 10px; left: 20px; font-size: 5rem; color: rgba(212, 175, 55, 0.15); font-family: serif; line-height: 1; }
.review-box .stars { color: var(--gold); font-size: 1.5rem; margin-bottom: 15px; }
.r-text { font-size: 1.25rem; color: var(--text-dark); line-height: 1.7; font-style: italic; margin-bottom: 30px; }
.r-author { display: flex; align-items: center; gap: 15px; border-top: 1px dashed #ddd; padding-top: 20px; }
.avatar { width: 55px; height: 55px; background: var(--primary); color: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 900; }
.r-author h4 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.r-author span { font-size: 1rem; color: var(--primary); font-weight: 700; }

/* Form Section */
.order-section { padding: 0 0 100px; transform: translateY(-40px); }
.form-wrapper { max-width: 750px; margin: 0 auto; background: white; padding: 0; overflow: hidden; border: 2px solid var(--primary); box-shadow: 0 25px 60px rgba(15, 61, 41, 0.15); }
.form-header { background: var(--primary); color: white; padding: 40px 30px; border-bottom: 5px solid var(--gold); }
.form-header h2 { font-size: 2.2rem; font-weight: 900; margin-bottom: 10px;}
.form-header p { font-size: 1.15rem; color: rgba(255,255,255,0.8); }

.purchase-form { padding: 40px 50px; }

.offer-box { display: flex; align-items: center; gap: 20px; background: var(--bg-main); border: 2px dashed var(--gold); padding: 15px; border-radius: var(--radius-md); margin-bottom: 35px; }
.offer-image img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; border: 2px solid white; box-shadow: var(--shadow-soft); }
.offer-details h3 { font-size: 1.5rem; color: var(--primary); font-weight: 900;}
.offer-price { background: var(--gold); color: white; padding: 10px 20px; font-size: 1.6rem; font-weight: 900; border-radius: 30px; }

.delivery-title { font-size: 1.4rem; color: var(--primary); font-weight: 800; border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 25px; }

.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.input-icon { position: relative; }
.input-icon i { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--primary); }
.input-icon input { width: 100%; padding: 18px 20px 18px 50px; font-size: 1.15rem; font-family: inherit; border: 2px solid #ddd; background: #fdfdfd; border-radius: 10px; transition: var(--transition); }
.input-icon input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(15, 61, 41, 0.1); }
[dir="rtl"] .input-icon input { padding-right: 50px; padding-left: 20px; }

.total-box { background: var(--primary-light); color: white; padding: 25px; border-radius: 15px; margin-bottom: 30px; }
.t-row { display: flex; justify-content: space-between; font-size: 1.2rem; margin-bottom: 10px; }
.top-border { border-top: 1px dashed rgba(255,255,255,0.3); padding-top: 15px; margin-top: 15px; font-size: 1.6rem; font-weight: 900; color: var(--gold); }
.free { background: white; color: var(--primary); padding: 3px 10px; border-radius: 20px; font-size: 1rem; font-weight: 800; }

.secure-text { text-align: center; color: var(--text-gray); font-size: 1rem; margin-top: 15px; font-weight: 700;}

/* Footer */
footer { background: #F7F9F8; color: var(--text-gray); padding: 60px 20px; border-top: 5px solid var(--gold); }
.disclaimer { font-size: 0.95rem; margin-top: 20px; opacity: 0.6; }

/* Sticky Mobile */
.mobile-sticky-cta { position: fixed; bottom: 0; width: 100%; background: white; padding: 15px 20px; box-shadow: 0 -10px 30px rgba(0,0,0,0.1); z-index: 1000; display: none; }

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-image-wrapper { order: -1; }
    .price-showcase { margin: 0 auto 30px; }
    .hero-benefits-list .hb-item { justify-content: center; }
    .trust-icons { justify-content: center; }
    .problems-grid { grid-template-columns: 1fr; }
    .cta-banner { flex-direction: column; text-align: center; gap: 20px; }
    .ing-card { flex-direction: column !important; text-align: center; padding: 30px 20px;}
    .usage-grid { grid-template-columns: 1fr; padding: 30px; }
    .reviews-wrapper { grid-template-columns: 1fr; }
    .order-section { transform: translateY(0); padding: 50px 0; }
}

@media (max-width: 768px) {
    .header-cta { display: none; }
    .hero-title { font-size: 2.3rem; }
    .hero-section { padding-top: 120px; }
    .w-100-mobile { width: 100%; }
    .mobile-sticky-cta { display: block; }
    body { padding-bottom: 90px; }
    .purchase-form { padding: 30px 20px; }
    .offer-box { flex-direction: column; text-align: center; gap: 10px;}
}
