/* --- CSS RESET & ROOT VARIABLES --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --turmeric-gold: #F2C94C;
    --tiffin-grey: #4F4F4F;
    --roti-beige: #F5EFE3;
    --coriander-green: #27AE60;
    --font-primary: 'Nunito Sans', sans-serif;
    --transition-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    background-color: var(--roti-beige);
    color: var(--tiffin-grey);
    font-weight: 400; /* Nunito Sans is best at normal weight */
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded { opacity: 1; }

/* --- PRELOADER --- */
.preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--roti-beige);
    display: grid;
    place-items: center;
    z-index: 2000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader-logo {
    width: 80px;
    height: 80px;
    background-image: url('logo.svg');
    background-size: contain;
    animation: spin-load 1.5s infinite linear;
}
@keyframes spin-load {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.preloader.hidden { opacity: 0; visibility: hidden; }

/* --- GLOBAL TYPOGRAPHY & BUTTONS --- */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 900;
}
h1 { font-size: clamp(2.8rem, 7vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
.section-title { margin-bottom: 4rem; text-align: center; }
.subtitle {
    font-weight: 700;
    color: var(--turmeric-gold);
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}
.cta-button, .cta-button-large {
    display: inline-block;
    background: var(--turmeric-gold);
    color: var(--tiffin-grey);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-fast);
    border: 2px solid var(--turmeric-gold);
}
.cta-button-large { padding: 1rem 2.5rem; font-size: 1.1rem; }
.cta-button:hover, .cta-button-large:hover {
    background-color: transparent;
    color: var(--turmeric-gold);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* --- HEADER --- */
#header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-fast);
}
#header.scrolled {
    background: rgba(245, 239, 227, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
nav.container { display: flex; justify-content: space-between; align-items: center; }
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.brand-logo img { height: 40px; width: 40px; }
.brand-name {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--tiffin-grey);
}

/* --- HERO SECTION --- */
#hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 8rem 0 4rem 0;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-subtext {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 1.5rem auto 2.5rem auto;
    color: #6a6a6a;
    max-width: 650px;
}

/* --- ANIMATIONS --- */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    transition-delay: var(--delay, 0s);
}
[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- LAYOUT & SECTIONS --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.content-section { padding: 6rem 0; }
.content-section-dark {
    padding: 6rem 0;
    background-color: var(--tiffin-grey);
    color: var(--roti-beige);
}
.content-section-dark h2, .content-section-dark h3 { color: #fff; }
.content-section-dark .subtitle { color: var(--turmeric-gold); }
.subtitle-dark { color: var(--turmeric-gold); }

/* --- ASSURANCE SECTION --- */
.assurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.assurance-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    transition: var(--transition-fast);
}
.assurance-card:hover { transform: translateY(-8px); }
.assurance-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.assurance-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* --- HOW IT WORKS SECTION --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.step-card {
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    background: #5a5a5a;
}
.step-number {
    display: inline-block;
    background: var(--turmeric-gold);
    color: var(--tiffin-grey);
    width: 40px; height: 40px;
    line-height: 40px;
    border-radius: 50%;
    font-weight: 900;
    margin-bottom: 1rem;
}
.step-card h4 { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* --- CTA SECTION --- */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    background: var(--coriander-green);
    color: #fff;
}
.cta-section h2 { color: #fff; }
.cta-section .container { max-width: 700px; }
.cta-section p { margin: 1rem auto 2rem auto; }
.cta-section .cta-button-large {
    background: #fff;
    color: var(--coriander-green);
    border-color: #fff;
}
.cta-section .cta-button-large:hover {
    background: transparent;
    color: #fff;
}

/* --- FOOTER --- */
#footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid #dcd1b9;
}
#footer .brand-logo { justify-content: center; margin-bottom: 1rem; }
.copyright { font-size: 0.9rem; color: #888; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    /* Most sections are already responsive due to auto-fit grid */
}