/* LYO Hair Products - Thai Wellness Sales Page CSS */
/* Optimized for Thai market and mobile-first responsive design */

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

body {
    font-family: 'Sarabun', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    font-size: 16px;
}

/* Thai Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Prompt', 'Arial', sans-serif;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.3rem; }

/* Thai Color Scheme - Lucky & Trustworthy Colors */
:root {
    --primary-red: #DC143C;
    --golden-yellow: #FFD700;
    --lucky-green: #228B22;
    --royal-blue: #4169E1;
    --warm-orange: #FF8C00;
    --soft-pink: #FFB6C1;
    --deep-purple: #663399;
    --trust-navy: #1e3a8a;
    --success-green: #16a34a;
    --warning-amber: #f59e0b;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile-First Responsive */
@media (min-width: 768px) {
    .container { padding: 0 40px; }
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
}

/* Header Section */
.header {
    background: linear-gradient(135deg, var(--primary-red), var(--deep-purple));
    color: white;
    text-align: center;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="25" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="25" cy="75" r="0.8" fill="rgba(255,255,255,0.08)"/><circle cx="75" cy="75" r="1.2" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.warning-badge {
    background: var(--warning-amber);
    color: #000;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 30px;
    display: inline-block;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.3);
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-image {
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    opacity: 1 !important;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, var(--golden-yellow), var(--warm-orange));
    color: #000;
    padding: 20px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.6);
}

.cta-button::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.6s;
}

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

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

.section-alt {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.section-dark {
    background: linear-gradient(135deg, var(--trust-navy), #1e40af);
    color: white;
}

/* Problem Section */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.problem-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary-red);
    transition: transform 0.3s ease;
}

.problem-item:hover {
    transform: translateY(-5px);
}

.problem-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-red);
}

/* Solution Section */
.solution-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.step-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--golden-yellow), var(--warm-orange));
}

.step-number {
    background: linear-gradient(135deg, var(--royal-blue), var(--deep-purple));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(65, 105, 225, 0.3);
}

.product-image {
    max-width: 200px;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
}

.ingredients-list {
    text-align: left;
    margin: 20px 0;
}

.ingredient-item {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 3px solid var(--lucky-green);
}

.ingredient-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    width: 30px;
}

.results-list {
    margin: 20px 0;
}

.result-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
    color: var(--success-green);
    font-weight: 600;
}

.result-item::before {
    content: '';
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Celebrity Testimonial */
.celebrity-testimonial {
    background: linear-gradient(135deg, var(--golden-yellow), var(--soft-pink));
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.celebrity-testimonial::before {
    content: '=�';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    opacity: 0.3;
}

.testimonial-quote {
    font-size: 1.3rem;
    font-style: italic;
    margin: 20px 0;
    color: #333;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    left: -20px;
    top: -10px;
    opacity: 0.3;
    color: var(--deep-purple);
}

.celebrity-name {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--deep-purple);
    margin-top: 20px;
}

/* Customer Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.testimonial-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.testimonial-image:hover {
    transform: scale(1.05);
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

.stars {
    color: var(--golden-yellow);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.review-text {
    margin: 15px 0;
    line-height: 1.8;
}

.reviewer-name {
    font-weight: 600;
    color: var(--deep-purple);
    text-align: right;
    margin-top: 20px;
}

/* Pricing Section */
.pricing-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    text-align: center;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    border: 3px solid var(--golden-yellow);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-red);
    color: white;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.original-price {
    font-size: 1.5rem;
    text-decoration: line-through;
    color: #666;
    margin-bottom: 10px;
}

.special-price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.savings {
    background: var(--success-green);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 30px;
    font-weight: 600;
}

.product-list {
    text-align: left;
    margin: 30px 0;
}

.product-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.product-list-item:last-child {
    border-bottom: none;
}

.product-value {
    color: var(--deep-purple);
    font-weight: 600;
}

/* Guarantee Section */
.guarantee {
    background: linear-gradient(135deg, var(--success-green), var(--lucky-green));
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin: 40px 0;
}

.guarantee-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

/* Urgency Section */
.urgency {
    background: linear-gradient(135deg, var(--primary-red), var(--warm-orange));
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.countdown {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 20px 0;
    animation: pulse 2s infinite;
    text-align: center;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.countdown-item {
    background: rgba(255,255,255,0.2);
    padding: 20px 15px;
    border-radius: 15px;
    min-width: 80px;
    text-align: center;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    color: white;
}

.countdown-label {
    font-size: 1rem;
    margin-top: 8px;
    color: white;
    font-weight: 500;
}

/* FAQ Section */
.faq-item {
    background: white;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.faq-question {
    background: linear-gradient(135deg, var(--royal-blue), var(--deep-purple));
    color: white;
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-answer {
    padding: 25px;
    line-height: 1.8;
    color: #333;
    display: none;
}

/* Usage Instructions */
.usage-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.usage-step {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.usage-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.morning { border-left: 5px solid var(--golden-yellow); }
.evening { border-left: 5px solid var(--deep-purple); }

/* Footer */
.footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 50px 0;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-item {
    padding: 20px;
    background: #333;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: block;
}

.floating-cta.show {
    display: block;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(100px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Floating CTA Mobile Optimizations */
.floating-cta .cta-button {
    text-align: center;
    white-space: nowrap;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .hero-title { font-size: 1.8rem; }
    .special-price { font-size: 2.2rem; }
    .cta-button { padding: 15px 30px; font-size: 1.2rem; }
    .section { padding: 40px 0; }
    .step-card, .pricing-card { padding: 30px 20px; }
    
    /* Floating CTA mobile specific */
    .floating-cta .cta-button {
        font-size: 1rem;
        padding: 12px 20px;
        white-space: nowrap;
    }
}

/* Tablet Optimizations */
@media (max-width: 1024px) {
    .floating-cta .cta-button {
        text-align: center;
        white-space: nowrap;
        font-size: 1.1rem;
        padding: 15px 25px;
    }
}

/* Thai Cultural Elements */
.thai-pattern {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="thai" patternUnits="userSpaceOnUse" width="60" height="60"><path d="M30 15 L45 30 L30 45 L15 30 Z" fill="none" stroke="rgba(255,215,0,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23thai)"/></svg>');
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Core Web Vitals Optimizations */
.hero-image, .product-image, .testimonial-image {
    content-visibility: auto;
    contain-intrinsic-size: 300px;
}

/* Reduce Layout Shift */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Performance Optimizations */
.section {
    contain: layout style;
}

/* Critical Resource Loading */
.hero-image {
    loading: eager;
    decoding: async;
    fetchpriority: high;
}

.product-image, .testimonial-image {
    loading: lazy;
    decoding: async;
}

/* Font Loading Optimization */
@font-face {
    font-family: 'Sarabun';
    font-display: swap;
}

@font-face {
    font-family: 'Prompt';
    font-display: swap;
}

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

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}