:root {
    --primary-bg: #FFFFFF;
    --secondary-bg: #0F172A;
    --surface-bg: #1E293B;
    --accent-color: #38BDF8;
    --text-on-white: #1E293B;
    --text-on-dark: #FFFFFF;
    --muted-on-white: #64748B;
    --muted-on-dark: #94A3B8;
    --font-family: 'Inter', sans-serif;
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-on-white);
    background-color: var(--primary-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    transition: all 0.3s ease;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    h3 {
        font-size: clamp(1.25rem, 3vw, 1.75rem);
    }

    .text-mobile-break {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

@media (prefers-reduced-motion: no-preference) {
    :focus-visible {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }
}

/* ===== main_header ===== */
.nav-link-item {
    transition: color 0.2s ease-in-out;
}

.nav-link-item:hover {
    color: var(--accent-color) !important;
}

.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.js-mobile-link {
    transition: color 0.2s ease;
}

.js-mobile-link:hover {
    color: var(--accent-color) !important;
}

/* ===== hero_section ===== */
.hero-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    padding: 3rem 0;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg-item.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ===== about_company ===== */
.experience-badge {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(180deg, #D946EF 0%, #A855F7 100%);
    color: #FFFFFF;
    padding: 30px 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.experience-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

@media (max-width:991px) {
    .experience-badge {
        left: 10px;
        top: 20px;
        transform: none;
        padding: 20px 8px;
        font-size: 0.75rem;
    }
}

/* ===== our_services ===== */
.js-service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.js-service-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== advantages_section ===== */
.js-advantage-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.js-advantage-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color) !important;
}

#why-us .ri-fs-1 {
    font-size: 3rem;
}

/* ===== meal_plans ===== */
.js-meal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-meal-card.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

.card {
    transition: transform 0.3s ease;
}

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

/* ===== process_steps ===== */
#how-it-works {
    background-color: var(--primary-bg);
    width: 100%
}

.js-step-card {
    transition: transform 0.3s ease;
    position: relative
}

.step-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--surface-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 2
}

/* ===== app_promo ===== */
#mobile-app {
    position: relative;
}

.js-animate {
    will-change: transform, opacity;
}

/* ===== client_reviews ===== */
#testimonials .card {
    transition: transform 0.3s ease;
}

#testimonials .card:hover {
    transform: translateY(-5px);
}

/* ===== faq_accordion ===== */
#faq .accordion-button::after {
    display: none;
}

#faq .accordion-button:not(.collapsed) {
    background-color: var(--surface-bg) !important;
    color: var(--text-on-dark) !important;
    border-color: var(--surface-bg) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

#faq .accordion-button:not(.collapsed) .js-faq-icon {
    color: var(--accent-color) !important;
}

#faq .accordion-button:focus {
    box-shadow: none;
    border-color: var(--accent-color);
}

#faq .accordion-item {
    overflow: hidden;
}

#faq .accordion-collapse {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* ===== footer ===== */
#footer {
    background-color: var(--secondary-bg);
    color: var(--text-on-dark);
    width: 100%;
}

.text-muted-custom {
    color: var(--muted-on-dark) !important;
}

.text-white-custom {
    color: var(--text-on-dark) !important;
}

.footer-link {
    color: var(--muted-on-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-icon {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.footer-legal-link {
    color: var(--muted-on-dark);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal-link:hover {
    color: var(--accent-color);
}

.footer-divider {
    border-top: 1px solid var(--surface-bg);
}