/* style.css */

/* --- CSS Variables & Design Tokens --- */
:root {
    /* Colors */
    --bg-primary: #F8F5F0;
    /* Warm Cream */
    --text-primary: #2B2B2B;
    --accent-green: #6B8E23;
    /* Muted Green */
    --accent-green-hover: #5a781d;
    --accent-brown: #5C4033;
    /* Warm Brown */
    --card-bg: #FFFFFF;
    --soft-divider: #EAE6DF;

    /* Typography */
    --font-family: 'Inter', sans-serif;

    /* Spacing & Sizes */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-soft: 0 4px 12px rgba(43, 43, 43, 0.05);

    --transition-fast: 150ms ease;
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Prevent horizontal scroll on mobile */
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    margin-bottom: 16px;
}

h1 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
}

h2 {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 600;
}

h3 {
    font-size: 18px;
    font-weight: 600;
}

p {
    font-size: 16px;
    margin-bottom: 16px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Layout System --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 64px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 32px;
    color: var(--accent-brown);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    min-height: 48px;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-green);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
}

.btn-secondary:hover {
    color: var(--accent-brown);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}

.btn-outline:hover {
    background-color: rgba(107, 142, 35, 0.05);
}

.btn-block {
    width: 100%;
}

.btn-whatsapp-outline {
    background-color: #fff;
    border: 1px solid #25D366;
    color: #25D366;
    width: 100%;
    margin-top: 12px;
}

/* --- Sections --- */

/* 1. Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Soft placeholder image until real image */
    background: url('https://images.unsplash.com/photo-1626804475297-4160ebcecbbf?q=80&w=1400&auto=format&fit=crop') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--bg-primary);
    opacity: 0.85;
    /* Warm cream overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero p {
    color: rgba(43, 43, 43, 0.8);
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

@media (min-width: 480px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
}

/* 2. Trust Section */
.trust-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trust-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-soft);
}

.trust-icon {
    display: flex;
    color: var(--accent-green);
    flex-shrink: 0;
}

.trust-card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

@media (min-width: 768px) {
    .trust-cards {
        flex-direction: row;
    }

    .trust-card {
        flex: 1;
        flex-direction: column;
        text-align: center;
        padding: 32px 20px;
    }
}

/* 3. Subscription Plans */
.plans {
    background-color: #fff;
    /* Slight contrast from bg-primary */
}

.plans-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 20px 32px 20px;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.plans-slider::-webkit-scrollbar {
    display: none;
}

.plan-card {
    min-width: 280px;
    max-width: 320px;
    flex: 0 0 auto;
    scroll-snap-align: center;
    background: var(--card-bg);
    border: 1px solid var(--soft-divider);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-highlight {
    border-color: var(--accent-green);
    background-color: rgba(107, 142, 35, 0.03);
    /* Extremely faint green */
    transform: scale(1.02);
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent-green);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.plan-name {
    color: var(--accent-brown);
}

.plan-price {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.plan-price span {
    font-size: 16px;
    font-weight: 400;
    color: rgba(43, 43, 43, 0.6);
}

.plan-desc {
    font-size: 14px;
    color: rgba(43, 43, 43, 0.8);
    flex-grow: 1;
    margin-bottom: 24px;
}

@media (min-width: 1024px) {
    .plans-slider {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

/* 4. Tiffin Boxes */
.accordion-item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.accordion-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.accordion-title h3 {
    margin: 0;
    letter-spacing: 0.5px;
}

.accordion-title .price {
    font-weight: 600;
    color: var(--accent-green);
}

.chevron {
    transition: transform var(--transition-fast);
}

.accordion-header[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
    background-color: #faf9f7;
}

.box-breakdown {
    padding: 0 24px 24px 24px;
}

.box-breakdown li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--soft-divider);
    font-size: 14px;
}

.box-breakdown li:last-child {
    border-bottom: none;
}

.info-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--soft-divider);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-top: 24px;
    font-size: 14px;
}

.info-note svg {
    flex-shrink: 0;
    color: var(--text-primary);
    opacity: 0.6;
}

.info-note p {
    margin: 0;
}

/* 5. Delivery Info */
.delivery-card {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    font-size: 16px;
}

.delivery-list li {
    margin-bottom: 4px;
}

.delivery-list li:last-child {
    color: rgba(43, 43, 43, 0.7);
    font-size: 14px;
    margin-bottom: 0;
}

/* 6. Form */
.subscribe {
    background-color: #fff;
}

.form-container {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--soft-divider);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 600px) {
    .form-row {
        flex-direction: row;
    }

    .form-group.half {
        flex: 1;
        margin-bottom: 0;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--soft-divider);
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
    /* Remove default appearance for native select */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select {
    background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%232B2B2B" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m6 9 6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(107, 142, 35, 0.1);
}

.whatsapp-alt {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--soft-divider);
}

.whatsapp-alt p {
    font-size: 14px;
    color: rgba(43, 43, 43, 0.6);
    margin-bottom: 0;
}

/* 7. Footer */
.footer {
    text-align: center;
    padding: 40px 20px 100px 20px;
    /* Extra bottom padding for sticky CTA */
    border-top: 1px solid var(--soft-divider);
}

.footer h3 {
    margin-bottom: 8px;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-weight: 500;
}

.copyright {
    font-size: 14px;
    color: rgba(43, 43, 43, 0.6);
}


/* 8. Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: #ffffff;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .mobile-bottom-nav {
    background: #0f172a;
    border-top: 1px solid rgba(30, 41, 59, 0.8);
}

.mobile-bottom-nav.hidden-nav {
    transform: translateY(160%);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #94a3b8;
    transition: all 0.3s;
    min-width: 65px;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-item.active {
    color: #fb923c;
}

.nav-item .material-symbols-outlined {
    font-size: 28px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.nav-item.active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.nav-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Standardized Center Home Button */
.nav-home-wrapper {
    position: relative;
    top: -12px;
    background: white;
    padding: 4px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark .nav-home-wrapper {
    background: #0f172a;
}

.nav-home-btn {
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid #fb923c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(251, 146, 60, 0.2);
}

.nav-home-btn img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.nav-home-btn:active {
    transform: scale(0.9) rotate(-5deg);
}

@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* Hide old sticky cta if still present */
.sticky-cta {
    display: none !important;
}

.floating-wa {
    display: none !important;
}

@media (max-width: 767px) {
    body {
        padding-bottom: 100px;
    }
}

/* --- Animations --- */
.section-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-\\[marquee_20s_linear_infinite\\] {
    animation: marquee 20s linear infinite;
}

/* --- Powered By Z3Connect Badge --- */
@keyframes z3Pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251, 146, 60, 0); }
    50% { box-shadow: 0 0 0 6px rgba(251, 146, 60, 0.15); }
}

@keyframes z3Shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.powered-by-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(251, 146, 60, 0.3);
    background: rgba(251, 146, 60, 0.05);
    animation: z3Pulse 2.5s ease-in-out infinite;
    width: fit-content;
}

.dark .powered-by-badge {
    border-color: rgba(251, 146, 60, 0.2);
    background: rgba(251, 146, 60, 0.08);
}

.powered-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.z3-link {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-decoration: none;
    background: linear-gradient(90deg, #fb923c, #f97316, #ea580c, #fb923c);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: z3Shimmer 3s linear infinite;
    transition: opacity 0.2s;
}

.z3-link:hover {
    opacity: 0.8;
}