/* ============================================================
   base.css — Design Tokens, Resets & Global Styles
   Sulekha Kitchenware — B2B Catalogue
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Custom Properties (Design Tokens) ────────────────── */
:root {
    /* Colors */
    --clr-bg: #FFFFFF;
    --clr-bg-section: #F8F9FA;
    --clr-bg-dark: #111111;
    --clr-bg-card: #FFFFFF;
    --clr-primary: #111111;
    --clr-secondary: #6B7280;
    --clr-accent: #C47A2C;
    --clr-accent-light: #F5E6D0;
    --clr-accent-dark: #A25F1C;
    --clr-border: #E5E7EB;
    --clr-border-light: #F3F4F6;
    --clr-white: #FFFFFF;
    --clr-success: #22C55E;
    --clr-error: #EF4444;

    /* Typography */
    --ff-heading: 'Poppins', sans-serif;
    --ff-body: 'Inter', sans-serif;
    --fs-xs: 0.75rem;
    /* 12px */
    --fs-sm: 0.875rem;
    /* 14px */
    --fs-base: 1rem;
    /* 16px */
    --fs-md: 1.125rem;
    /* 18px */
    --fs-lg: 1.25rem;
    /* 20px */
    --fs-xl: 1.5rem;
    /* 24px */
    --fs-2xl: 2rem;
    /* 32px */
    --fs-3xl: 2.5rem;
    /* 40px */
    --fs-4xl: 3rem;
    /* 48px */
    --fs-5xl: 3.75rem;
    /* 60px */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;
    --lh-tight: 1.2;
    --lh-snug: 1.4;
    --lh-normal: 1.6;
    --lh-relaxed: 1.8;

    /* Spacing */
    --sp-1: 0.25rem;
    /* 4px */
    --sp-2: 0.5rem;
    /* 8px */
    --sp-3: 0.75rem;
    /* 12px */
    --sp-4: 1rem;
    /* 16px */
    --sp-5: 1.25rem;
    /* 20px */
    --sp-6: 1.5rem;
    /* 24px */
    --sp-8: 2rem;
    /* 32px */
    --sp-10: 2.5rem;
    /* 40px */
    --sp-12: 3rem;
    /* 48px */
    --sp-16: 4rem;
    /* 64px */
    --sp-20: 5rem;
    /* 80px */
    --sp-24: 6rem;
    /* 96px */
    --sp-32: 8rem;
    /* 128px */

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 100;
    --z-overlay: 200;
    --z-modal: 300;
    --z-toast: 400;
}

/* ── Modern CSS Reset ─────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    color: var(--clr-primary);
    background-color: var(--clr-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
video,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ff-heading);
    line-height: var(--lh-tight);
    color: var(--clr-primary);
}

/* ── Utility Classes ──────────────────────────────────────── */

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--sp-6);
    padding-right: var(--sp-6);
}

.container--wide {
    max-width: 1400px;
}

.container--narrow {
    max-width: 800px;
}

/* Visually Hidden (accessibility) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Section Spacing */
.section {
    padding-top: var(--sp-20);
    padding-bottom: var(--sp-20);
}

.section--sm {
    padding-top: var(--sp-12);
    padding-bottom: var(--sp-12);
}

.section--lg {
    padding-top: var(--sp-32);
    padding-bottom: var(--sp-32);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: var(--sp-16);
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--ff-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: var(--sp-3);
}

.section-title {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    color: var(--clr-primary);
    margin-bottom: var(--sp-4);
}

.section-subtitle {
    font-size: var(--fs-md);
    font-weight: var(--fw-regular);
    color: var(--clr-secondary);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--lh-relaxed);
}

/* Accent Divider */
.accent-divider {
    width: 48px;
    height: 3px;
    background: var(--clr-accent);
    border-radius: var(--radius-full);
    margin: var(--sp-5) auto var(--sp-6);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-6);
    font-family: var(--ff-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-md);
    transition: all var(--transition-smooth);
    letter-spacing: 0.02em;
    line-height: 1;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-white);
    border-color: var(--clr-accent);
}

.btn-primary:hover {
    background-color: var(--clr-accent-dark);
    border-color: var(--clr-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 122, 44, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background-color: var(--clr-white);
    color: var(--clr-primary);
    border-color: var(--clr-white);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--clr-primary);
    border-color: var(--clr-border);
}

.btn-outline-dark:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border-color: var(--clr-primary);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--clr-accent);
    padding-left: 0;
    padding-right: 0;
    border: none;
}

.btn-ghost:hover {
    color: var(--clr-accent-dark);
    gap: var(--sp-3);
}

.btn-lg {
    padding: var(--sp-4) var(--sp-8);
    font-size: var(--fs-base);
}

.btn-sm {
    padding: var(--sp-2) var(--sp-4);
    font-size: var(--fs-xs);
}

/* ── Scroll Fade-In Animation ──────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 {
    transition-delay: 0.1s;
}

.fade-in-delay-2 {
    transition-delay: 0.2s;
}

.fade-in-delay-3 {
    transition-delay: 0.3s;
}

.fade-in-delay-4 {
    transition-delay: 0.4s;
}

.fade-in-delay-5 {
    transition-delay: 0.5s;
}

/* ── Tag / Badge ──────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--sp-1) var(--sp-3);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    border-radius: var(--radius-full);
    background-color: var(--clr-accent-light);
    color: var(--clr-accent-dark);
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
    color: var(--clr-secondary);
    margin-bottom: var(--sp-8);
}

.breadcrumb a {
    color: var(--clr-secondary);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--clr-accent);
}

.breadcrumb span {
    color: var(--clr-border);
}

/* ── WhatsApp Floating Button ─────────────────────────────── */
.fab-whatsapp {
    position: fixed;
    bottom: var(--sp-6);
    right: var(--sp-6);
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: var(--z-toast);
    transition: all var(--transition-smooth);
}

.fab-whatsapp:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

.fab-whatsapp svg {
    width: 28px;
    height: 28px;
    fill: #FFFFFF;
}

/* ── Page Loader ──────────────────────────────────────────── */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--clr-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 40px;
    height: 40px;
    border: 3px solid var(--clr-border);
    border-top-color: var(--clr-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Toast Notification ───────────────────────────────────── */
.toast {
    position: fixed;
    bottom: var(--sp-8);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--clr-primary);
    color: var(--clr-white);
    padding: var(--sp-4) var(--sp-6);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    z-index: var(--z-toast);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: #1F6B40;
}

.toast.error {
    background: #991B1B;
}

/* ── Responsive Typography ────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --fs-3xl: 2rem;
        --fs-4xl: 2.5rem;
        --fs-5xl: 2.75rem;
    }

    .section {
        padding-top: var(--sp-16);
        padding-bottom: var(--sp-16);
    }

    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: var(--sp-4);
        padding-right: var(--sp-4);
    }

    .section {
        padding-top: var(--sp-12);
        padding-bottom: var(--sp-12);
    }
}