/* ==========================================================================
   ONLY EARTHY — GLOBAL DESIGN SYSTEM
   Brand: Only Earthy | Domain: www.onlyearthy.in
   ========================================================================== */

/* --- 1. CSS VARIABLES (DESIGN TOKENS) --- */
:root {
    /* Brand Colors */
    --primary-green: #2D6A4F;    /* Main buttons, navbar, H1 */
    --accent-green: #52B788;     /* Hover states, icons */
    --light-green: #74C69D;      /* Highlights */
    --pale-green: #D8F3DC;       /* Very light tints */
    --beige: #F5ECD7;            /* Section backgrounds, cards */
    --warm-white: #FAFAF8;       /* Page background */
    
    /* Text & UI Colors */
    --dark-text: #1B1B1B;        /* Body and heading text */
    --muted-text: #5A5A5A;       /* Captions, subtext */
    --border: #E0E0E0;           /* Card borders, dividers */
    --footer-bg: #1B1B1B;        /* Dark footer */
    --danger-red: #EB5757;       /* Comparisons */
    --whatsapp-green: #25D366;   /* WhatsApp CTA */
    
    /* Typography Setup */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Playfair Display', serif;
    
    /* Spacing & Layout */
    --container-max: 1200px;
    --section-pad-desktop: 80px 0;
    --section-pad-mobile: 48px 0;
    
    /* Effects */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --card-shadow: 0 2px 12px rgba(0,0,0,0.06);
    --card-shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
}

/* --- 2. GLOBAL RESETS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--warm-white);
    color: var(--dark-text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 3. TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-green);
    line-height: 1.2;
    margin-bottom: 16px;
}

h1 { font-size: 56px; font-weight: 800; line-height: 1.1; }
h2 { font-size: 40px; font-weight: 700; }
h3 { font-size: 28px; font-weight: 700; }
h4 { font-size: 22px; font-weight: 600; line-height: 1.4; }

p { margin-bottom: 16px; }
.text-muted { color: var(--muted-text); }
.text-small { font-size: 14px; line-height: 1.6; }
.text-caption { font-size: 12px; }

.playfair {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 700;
}

/* --- 4. LAYOUT & CONTAINERS --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: var(--section-pad-desktop);
}

.bg-beige { background-color: var(--beige); }
.bg-pale { background-color: var(--pale-green); }
.bg-primary { background-color: var(--primary-green); color: #fff; }
.bg-white { background-color: #fff; }

/* Flex & Grid Utilities */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* --- 5. BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    min-height: 48px;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-green);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-green);
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--pale-green);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: #fff;
}

.btn-whatsapp:hover {
    background-color: #20b858;
    transform: translateY(-2px);
}

/* Marketplace Buttons */
.btn-amazon { border-color: #FF9900; color: #111; background: #fff; }
.btn-flipkart { border-color: #2874F0; color: #111; background: #fff; }
.btn-blinkit { background-color: #F7D300; border-color: #F7D300; color: #000; }

/* --- 6. CARDS --- */
.card {
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-6px);
}

/* --- 7. FORMS --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.form-control {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 16px; /* Prevents iOS zoom */
    transition: var(--transition-fast);
    background: #fff;
}

.form-control:focus {
    border-color: var(--primary-green);
    outline: none;
    box-shadow: 0 0 0 4px var(--pale-green);
}

/* --- 8. BADGES & TAGS --- */
.badge {
    display: inline-block;
    background: var(--pale-green);
    color: var(--primary-green);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- 9. ANIMATIONS --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--whatsapp-green);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: pulse 2s infinite;
    transition: 0.3s;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* --- 10. MOBILE RESPONSIVENESS (MOBILE-FIRST PRINCIPLES) --- */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section-padding { padding: var(--section-pad-mobile); }
    
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
    
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 24px; }
    
    .btn { width: 100%; display: flex; } /* Full width buttons on mobile */
    .btn-outline, .btn-primary { margin-bottom: 12px; }
    
    .floating-whatsapp {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }
}