/* --- RESET & VARIABLES --- */
:root {
    --sage-green: #7a9a7e;
    --sage-dark: #5f7c63;
    --sage-light: #eaf1eb;
    --oat-cream: #f6f1e7;
    --oat-dark: #e8dfcb;
    --text-color: #2c3e35;
    --text-muted: #61746a;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(122, 154, 126, 0.12);
    --transition: all 0.3s ease;
    --radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Quicksand', sans-serif;
    color: var(--text-color);
    background-color: var(--oat-cream);
}

body {
    background-color: var(--oat-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* --- BUTTONS & BADGES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--sage-green);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(122, 154, 126, 0.35);
}

.btn-primary:hover {
    background-color: var(--sage-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--oat-dark);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #dcd0b5;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--sage-green);
    color: var(--sage-green);
}

.btn-outline:hover {
    background-color: var(--sage-green);
    color: var(--white);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.sub-title {
    display: inline-block;
    font-weight: 700;
    color: var(--sage-green);
    background-color: var(--sage-light);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.section-header p {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 650px;
    margin: 0 auto;
}

/* --- PHẦN 1 – NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(246, 241, 231, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(122, 154, 126, 0.15);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--sage-light);
    padding: 4px;
}

.brand-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--sage-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--sage-green);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
}

/* --- PHẦN 2 – HERO BANNER --- */
.hero-section {
    padding: 160px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--sage-light);
    color: var(--sage-green);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mascot-img {
    width: 100%;
    max-width: 420px;
    filter: drop-shadow(0 20px 30px rgba(122, 154, 126, 0.25));
    animation: floatMascot 4s ease-in-out infinite;
}

@keyframes floatMascot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-card-floating {
    position: absolute;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-color);
    z-index: 2;
}

.hero-card-floating i {
    color: var(--sage-green);
    font-size: 18px;
}

.card-float-1 {
    top: 15%;
    left: 0;
    animation: floatMascot 3s ease-in-out infinite alternate;
}

.card-float-2 {
    bottom: 20%;
    right: 0;
    animation: floatMascot 3.5s ease-in-out infinite alternate-reverse;
}

/* --- PHẦN 3 – GIỚI THIỆU GIÁ TRỊ DỊCH VỤ --- */
.about-section {
    padding: 100px 0;
    background-color: var(--white);
    border-radius: 40px 40px 0 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background-color: var(--oat-cream);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--oat-dark);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--sage-green);
}

.value-icon {
    width: 70px;
    height: 70px;
    background-color: var(--sage-light);
    color: var(--sage-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 24px;
}

.value-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.value-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* --- PHẦN 4 – VÌ SAO CHỌN PURRFECT MEAL? --- */
.why-choose-section {
    padding: 100px 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-card {
    background-color: var(--sage-light);
    padding: 35px 25px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    background-color: #dceade;
}

.feature-num {
    font-size: 42px;
    font-weight: 700;
    color: rgba(122, 154, 126, 0.3);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* --- PHẦN 5 – QUY TRÌNH SỬ DỤNG DỊCH VỤ --- */
.process-section {
    padding: 100px 0;
    background-color: var(--oat-cream);
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
}

.timeline-step {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--oat-dark);
}

.timeline-step:hover {
    transform: translateY(-5px);
    border-color: var(--sage-green);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--sage-light);
    color: var(--sage-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.timeline-step h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-step p {
    font-size: 13px;
    color: var(--text-muted);
}

/* --- PHẦN 6 – CÁC GÓI DỊCH VỤ --- */
.pricing-section {
    padding: 100px 0;
    background-color: var(--white);
    border-radius: 0 0 40px 40px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    background-color: var(--oat-cream);
    border-radius: var(--radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border: 2px solid var(--oat-dark);
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.pricing-card.popular {
    background-color: var(--sage-light);
    border-color: var(--sage-green);
    transform: scale(1.03);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background-color: var(--sage-green);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.pricing-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.package-term {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: var(--sage-green);
    margin-bottom: 25px;
}

.pricing-features {
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 15px;
    color: var(--text-color);
}

.pricing-features li i {
    color: var(--sage-green);
    font-size: 16px;
}

.pricing-features li.disabled {
    color: #a0a8a3;
    text-decoration: line-through;
}

.pricing-features li.disabled i {
    color: #a0a8a3;
}

/* --- PHẦN 7 – THỰC ĐƠN DINH DƯỠNG --- */
.menu-section {
    padding: 100px 0;
    background-color: var(--oat-cream);
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid var(--oat-dark);
    background-color: var(--white);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--sage-green);
    color: var(--white);
    border-color: var(--sage-green);
}

.menu-pane {
    display: none;
}

.menu-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.menu-item-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--oat-dark);
    transition: var(--transition);
}

.menu-item-card:hover {
    transform: translateY(-5px);
    border-color: var(--sage-green);
}

.menu-img-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
}

.menu-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.menu-item-card:hover .menu-img-wrap img {
    transform: scale(1.05);
}

.tag-meal {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(122, 154, 126, 0.9);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.menu-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.menu-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.nutrition-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nutrition-badge-group span {
    background-color: var(--sage-light);
    color: var(--sage-dark);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- PHẦN 8 – BLOG DINH DƯỠNG --- */
.blog-section {
    padding: 100px 0;
    background-color: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background-color: var(--oat-cream);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--oat-dark);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--sage-green);
}

.blog-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-img-wrap img {
    transform: scale(1.05);
}

.blog-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--sage-green);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more-link {
    font-weight: 700;
    color: var(--sage-green);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: var(--transition);
}

.read-more-link:hover {
    color: var(--sage-dark);
    gap: 10px;
}

/* --- PHẦN 9 – CTA KÊU GỌI ĐĂNG KÝ --- */
.cta-section {
    padding: 80px 0;
    background-color: var(--oat-cream);
}

.cta-container {
    background-color: var(--sage-light);
    border-radius: 30px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    border: 2px solid var(--sage-green);
    box-shadow: var(--shadow);
}

.cta-text h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.cta-text p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.cta-image {
    display: flex;
    justify-content: center;
}

.cta-mascot {
    width: 280px;
    animation: floatMascot 4s ease-in-out infinite;
}

/* --- PHẦN 10 – FOOTER --- */
.footer {
    background-color: #24342c;
    color: var(--oat-cream);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand .brand-text {
    color: var(--white);
}

.footer-desc {
    font-size: 14px;
    color: #b0c2b6;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--sage-green);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #b0c2b6;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #b0c2b6;
    font-size: 14px;
    margin-bottom: 14px;
}

.contact-info li i {
    color: var(--sage-green);
    margin-top: 4px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #9cb5a3;
}

/* --- MODAL AUTH --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background-color: var(--white);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: var(--radius);
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--text-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--oat-dark);
    background-color: var(--oat-cream);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--sage-green);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(122, 154, 126, 0.15);
}

.modal-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.modal-switch a {
    color: var(--sage-green);
    font-weight: 700;
}

.modal-switch a:hover {
    text-decoration: underline;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .timeline-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .pricing-grid, .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-card.popular {
        transform: none;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background-color: var(--oat-cream);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .nav-actions .btn-outline {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-container, .cta-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-wrapper {
        margin-top: 30px;
    }

    .values-grid, .features-grid, .timeline-grid, .pricing-grid, .menu-grid, .blog-grid {
        grid-template-columns: 1fr;
    }

    .cta-container {
        padding: 40px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}