@import url('https://fonts.googleapis.com/css2?family=Xanh+Mono:ital@0;1&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary: #633713;
    /* Earthy Brown */
    --primary-light: #8D5B34;
    --secondary: #C5A059;
    /* Old Gold */
    --accent: #E67E22;
    /* Burnt Orange for highlight */
    --bg-paper: #FDF5E6;
    /* Old Paper Background */
    --bg-card: #FFFFFF;
    --text-main: #3E2723;
    --text-muted: #6D4C41;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(99, 55, 19, 0.15);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--bg-paper);
    color: var(--text-main);
    line-height: 1.7;
    background-image: url('https://www.transparenttextures.com/patterns/old-map.png');
    /* Subtle texture */
}

h1,
h2,
h3 {
    font-family: 'Xanh Mono', monospace;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--primary);
}

.container {
    width: 100%;
    padding: 0 20px;
    max-width: 500px;
    margin: 0 auto;
}

section {
    padding: 70px 0;
    border-bottom: 1px solid rgba(99, 55, 19, 0.1);
}

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

.text-left {
    text-align: left;
}

/* Bold Buttons & CTAs */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.3);
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), #A67C00);
    color: #3E2723;
    border: 2px solid #3E2723;
}

.btn-primary:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(197, 160, 89, 0.2);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--secondary);
}

/* Header/Hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://thachgiailinh.vn/wp-content/uploads/2025/06/thachgiailinh2-1024x576.webp');
    background-size: cover;
    background-position: center;
    padding: 60px 0 60px;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    color: var(--secondary);
    font-size: 2.4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 35px;
    opacity: 0.95;
}

.hero-badge {
    background: var(--secondary);
    color: #3E2723;
    padding: 8px 20px;
    font-weight: 800;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 20px;
    border-radius: 2px;
}

/* Content Blocks */
.card {
    background: var(--bg-card);
    padding: 30px;
    border: 1px solid #D7CCC8;
    border-radius: 4px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid #EFEBE9;
    pointer-events: none;
}

.icon-box {
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Ingredients */
.ingredient-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.ingredient-item {
    background: #EFEBE9;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.ingredient-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.ingredient-item h4 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 5px;
}

/* Swiper & Video Enhancements */
.swiper {
    width: 100%;
    height: auto;
    padding-bottom: 40px !important;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-pagination-bullet {
    background: var(--primary) !important;
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    background: var(--secondary) !important;
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--secondary) !important;
    transform: scale(0.6);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 4px solid var(--white);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Viewport Optimization */
section {
    padding: 80px 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-height: 800px) {
    section {
        min-height: 90vh;
    }
}

.container {
    width: 100%;
    padding: 0 20px;
    max-width: 500px;
    margin: 0 auto;
}

/* Proof & Certificates */
.proof-img {
    width: 100%;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
    margin: 20px 0;
}

/* Form */
.form-section {
    background: var(--primary);
    background-image: url('https://www.transparenttextures.com/patterns/dark-leather.png');
    padding: 80px 0;
}

.form-title {
    color: var(--secondary) !important;
}

.lead-form input,
.lead-form select {
    width: 100%;
    padding: 18px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--secondary);
    color: var(--white);
    font-size: 1rem;
    appearance: none;
    /* Reset for better custom styling */
    -webkit-appearance: none;
}

.lead-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23C5A059' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
}

.lead-form select option {
    background-color: #3E2723;
    /* Dark brown background for dropdown list */
    color: var(--white);
    padding: 10px;
}

.lead-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Testimonials */
.testimonial {
    border-left: 5px solid var(--secondary);
    padding: 20px;
    background: #FFF8E1;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    align-items: center;
    border-radius: 4px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
    flex-shrink: 0;
}

.testimonial-content {
    flex: 1;
}

/* Sales Notification Popup */
.order-notify {
    position: fixed;
    top: 50px;
    /* Above sticky footer */
    left: 20px;
    right: 20px;
    max-width: 400px;
    background: rgba(62, 39, 35, 0.95);
    /* Dark brown */
    border-left: 4px solid var(--secondary);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-120%);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin: 0 auto;
}

.order-notify.active {
    transform: translateX(0);
}

.order-notify i {
    color: var(--secondary);
    font-size: 1.2rem;
}

.order-notify .msg {
    font-size: 0.85rem;
    line-height: 1.4;
}

.order-notify .msg .highlight {
    color: var(--secondary);
    font-weight: bold;
}

/* Sticky Footer */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #3E2723;
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    border-top: 3px solid var(--secondary);
}

.sticky-footer .btn {
    padding: 14px 10px;
    font-size: 0.85rem;
}

/* Typography Helpers */
.highlight {
    color: var(--secondary);
    font-weight: 600;
}

.bold {
    font-weight: 800;
}

/* Promotional Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-paper);
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--secondary);
}

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

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-img {
    width: 105%;
    display: block;
}

.modal-body {
    padding: 25px;
    text-align: center;
}

.promo-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--primary);
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-shopee {
    background: #EE4D2D;
    /* Shopee Orange */
    color: white;
    box-shadow: 0 6px 20px rgba(238, 77, 45, 0.3);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeInUp 0.8s ease forwards;
}

.italic {
    font-style: italic;
}

/* Custom Added Styles for Optimized Landing Page */

/* Pain Points Slider */
.pain-cards-slider {
    padding-bottom: 30px !important;
}

/* Ingredients Grid */
.ingredient-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
@media (min-width: 400px) {
    .ingredient-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 600px) {
    .ingredient-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
.ingredient-item {
    background: #EFEBE9;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #D7CCC8;
}
.ingredient-item h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 5px;
}
.ingredient-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
    background: var(--bg-card);
    border-radius: 4px;
    box-shadow: var(--shadow);
    border: 1px solid #D7CCC8;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.comparison-table th, .comparison-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #EFEBE9;
}
.comparison-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}
.comparison-table th small {
    font-weight: normal;
    font-size: 0.75rem;
    opacity: 0.8;
}
.comparison-table td:first-child {
    text-align: left;
    background: #FAFAFA;
}
.highlight-col {
    background: rgba(197, 160, 89, 0.1);
    color: var(--primary);
    font-weight: 600;
}
.comparison-table th.highlight-col {
    background: var(--secondary);
    color: #3E2723;
}

/* Testimonial Improved */
.testimonial-improved {
    display: flex;
    flex-direction: column;
}
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
}
.before-after-stats {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 8px;
    border-radius: 4px;
    border: 1px dashed var(--secondary);
}
.before-after-stats p {
    margin-bottom: 3px;
}
.before-after-stats p:last-child {
    margin-bottom: 0;
}
.badge-before {
    background: #757575;
    color: white;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: bold;
}
.badge-after {
    background: #4CAF50;
    color: white;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: bold;
}
.quote {
    font-style: italic;
    color: var(--text-main);
}

/* Pricing Cards */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid #D7CCC8;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}
.pricing-card.popular {
    border: 2px solid var(--secondary);
    transform: scale(1.02);
}
.popular-badge {
    background: var(--secondary);
    color: #3E2723;
    font-weight: bold;
    padding: 5px 0;
    font-size: 0.85rem;
}
.pricing-header {
    background: var(--primary);
    color: var(--white);
    padding: 15px;
    font-weight: bold;
    font-size: 1.1rem;
}
.pricing-card.popular .pricing-header {
    background: linear-gradient(135deg, var(--secondary), #A67C00);
    color: #3E2723;
}
.pricing-body {
    padding: 20px;
}
.pricing-body h3 {
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
    margin-bottom: 10px;
}
.pricing-body .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
}
.pricing-body .saving {
    display: inline-block;
    background: #FFF3E0;
    color: #E65100;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* FAQ */
.faq-item {
    background: var(--bg-card);
    border: 1px solid #EFEBE9;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.faq-question {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
}
.faq-answer {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Commitment */
.commitment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.commitment-item {
    background: var(--bg-card);
    padding: 20px 15px;
    text-align: center;
    border-radius: 4px;
    border: 1px dashed var(--secondary);
}
.commitment-item .icon-box {
    font-size: 2rem;
    margin-bottom: 10px;
    display: inline-block;
}
.commitment-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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