/* ============================================================================
 *  Rahim Traders — Complete Design Tokens, Utilities & Keyframe Animations
 * ============================================================================ */

:root {
    /* Brand & Surface Colors (Exact from original design) */
    --color-navy: #000059;
    --color-night: #060918;
    --color-footer: #0a0d12;
    --color-royal: #17336e;
    --color-cobalt: #0d214d;
    --color-ink: #12141a;
    --color-dark: #10131a;
    --color-ink-2: #3a3f4d;
    --color-ink-soft: #596073;
    --color-ink-3: #6e7587;
    --color-mid: #737a8c;
    --color-line-2: #cbd1df;
    --color-line: #e2e6f0;
    --color-divider: #eaedf5;
    --color-chip: #eef1f7;
    --color-lavender: #eef2f8;
    --color-paper: #f6f7fb;
    --color-sheet: #ffffff;
    --color-placeholder: #d9dfec;
    --color-periwinkle: #a9c1f5;
    --color-white-mid: rgba(255, 255, 255, 0.8);

    /* CMYK & Accents */
    --color-cyan: #12a3d6;
    --color-magenta: #e62686;
    --color-sun: #f5b82e;
    --color-step-off: rgba(255, 255, 255, 0.22);

    /* WhatsApp */
    --color-whatsapp: #25d366;
    --color-whatsapp-ink: #0f6b32;

    /* Hero Aurora Fields */
    --color-aurora-base: #132c63;
    --color-aurora-deep: #09173a;
    --color-aurora-sky: #1e4ea8;
    --color-aurora-teal: #14799e;
    --color-aurora-lilac: rgba(139, 92, 246, 0.35);

    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Styles */
html {
    font-family: var(--font-sans);
    color: var(--color-ink);
    background-color: var(--color-paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Pointer cursor on all buttons & links */
button,
[role="button"],
a {
    cursor: pointer;
}

.font-display {
    font-family: var(--font-display);
}

/* Typography Utilities */
.text-eyebrow {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.text-h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.text-h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* Color Helpers */
.bg-navy { background-color: var(--color-navy); }
.bg-night { background-color: var(--color-night); }
.bg-footer { background-color: var(--color-footer); }
.bg-royal { background-color: var(--color-royal); }
.bg-cobalt { background-color: var(--color-cobalt); }
.bg-ink { background-color: var(--color-ink); }
.bg-paper { background-color: var(--color-paper); }
.bg-sheet { background-color: var(--color-sheet); }
.bg-lavender { background-color: var(--color-lavender); }
.bg-chip { background-color: var(--color-chip); }
.bg-placeholder { background-color: var(--color-placeholder); }
.bg-cyan { background-color: var(--color-cyan); }
.bg-magenta { background-color: var(--color-magenta); }
.bg-sun { background-color: var(--color-sun); }
.bg-step-off { background-color: var(--color-step-off); }
.bg-whatsapp { background-color: var(--color-whatsapp); }

.text-ink { color: var(--color-ink); }
.text-dark { color: var(--color-dark); }
.text-ink-2 { color: var(--color-ink-2); }
.text-ink-3 { color: var(--color-ink-3); }
.text-mid { color: var(--color-mid); }
.text-sheet { color: var(--color-sheet); }
.text-line-2 { color: var(--color-line-2); }
.text-royal { color: var(--color-royal); }
.text-cobalt { color: var(--color-cobalt); }
.text-periwinkle { color: var(--color-periwinkle); }
.text-white-mid { color: var(--color-white-mid); }
.text-whatsapp-ink { color: var(--color-whatsapp-ink); }
.text-sun { color: var(--color-sun); }

.border-navy { border-color: var(--color-navy); }
.border-line { border-color: var(--color-line); }
.border-line-2 { border-color: var(--color-line-2); }
.border-lavender { border-color: var(--color-lavender); }
.border-sheet { border-color: var(--color-sheet); }
.border-sheet\/12 { border-color: rgba(255, 255, 255, 0.12); }
.border-sheet\/15 { border-color: rgba(255, 255, 255, 0.15); }
.border-sheet\/20 { border-color: rgba(255, 255, 255, 0.20); }
.border-sheet\/24 { border-color: rgba(255, 255, 255, 0.24); }
.border-sheet\/26 { border-color: rgba(255, 255, 255, 0.26); }
.border-sheet\/30 { border-color: rgba(255, 255, 255, 0.30); }
.border-sheet\/60 { border-color: rgba(255, 255, 255, 0.60); }
.border-night { border-color: var(--color-night); }
.bg-sheet\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-sheet\/6 { background-color: rgba(255, 255, 255, 0.06); }
.bg-sheet\/8 { background-color: rgba(255, 255, 255, 0.08); }
.bg-sheet\/10 { background-color: rgba(255, 255, 255, 0.10); }
.bg-sheet\/14 { background-color: rgba(255, 255, 255, 0.14); }
.bg-sheet\/15 { background-color: rgba(255, 255, 255, 0.15); }

.hover\:text-royal:hover { color: var(--color-royal); }
.hover\:text-periwinkle:hover { color: var(--color-periwinkle); }
.hover\:bg-paper:hover { background-color: var(--color-paper); }
.hover\:bg-sheet:hover { background-color: var(--color-sheet); }
.hover\:bg-lavender:hover { background-color: var(--color-lavender); }
.hover\:border-line-2:hover { border-color: var(--color-line-2); }
.hover\:border-ink-3:hover { border-color: var(--color-ink-3); }

/* Smooth Mobile Navigation Panel */
#mobile-menu {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition:
        grid-template-rows 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease,
        visibility 0.38s;
}

#mobile-menu.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
}

#mobile-menu > .mobile-menu-inner {
    overflow: hidden;
}

/* Custom Track Breakpoint (Desktop Tall Screens) */
@media (min-width: 1024px) and (min-height: 720px) {
    .track\:flex { display: flex; }
    .track\:h-screen { height: 100vh; }
    .track\:w-max { width: max-content; }
    .track\:w-\[640px\] { width: 640px; }
    .track\:w-\[440px\] { width: 440px; }
    .track\:shrink-0 { flex-shrink: 0; }
    .track\:flex-col { flex-direction: column; }
    .track\:justify-center { justify-content: center; }
    .track\:overflow-hidden { overflow: hidden; }
    .track\:py-0 { padding-top: 0; padding-bottom: 0; }
}

/* ============================================================================
 *  Keyframe Animations
 * ============================================================================ */

@keyframes aurora-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(6%, 8%) scale(1.08); }
}
@keyframes aurora-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-7%, 5%) scale(1.06); }
}
@keyframes aurora-c {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, -6%) scale(1.05); }
}
.animate-aurora-a { animation: aurora-a 16s ease-in-out infinite; }
.animate-aurora-b { animation: aurora-b 20s ease-in-out infinite; }
.animate-aurora-c { animation: aurora-c 18s ease-in-out infinite; }

/* Hero Product Wheel Rotation */
@keyframes wheel-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-wheel { animation: wheel-spin 55s linear infinite; }

/* Client Logos Marquee */
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.animate-marquee { animation: marquee 28s linear infinite; }

/* Service Card Liquid Hover Wave */
@keyframes liquid-wave {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.animate-liquid-wave { animation: liquid-wave 3.6s linear infinite; }

/* CTA Concentric Ring Pulse */
@keyframes ring-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.18; }
}
.animate-ring-pulse { animation: ring-pulse 3.6s ease-in-out infinite; }

/* Process Step 1: Chat Bubbles */
@keyframes chat-you {
    0%, 10% { opacity: 0; transform: translateY(10px); }
    20%, 88% { opacity: 1; transform: translateY(0); }
    96%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes chat-us {
    0%, 35% { opacity: 0; transform: translateY(10px); }
    45%, 88% { opacity: 1; transform: translateY(0); }
    96%, 100% { opacity: 0; transform: translateY(-6px); }
}
.animate-chat-you { animation: chat-you 5.5s ease-in-out infinite; }
.animate-chat-us { animation: chat-us 5.5s ease-in-out infinite; }

/* Process Step 2: Sketch Wipe */
@keyframes sketch-wipe {
    0%, 100% { clip-path: inset(0 70% 0 0); }
    50% { clip-path: inset(0 25% 0 0); }
}
@keyframes sketch-handle {
    0%, 100% { left: 30%; }
    50% { left: 75%; }
}
.animate-sketch-wipe { animation: sketch-wipe 4.2s ease-in-out infinite; }
.animate-sketch-handle { animation: sketch-handle 4.2s ease-in-out infinite; }

/* Process Step 3: Press Scan Line */
@keyframes press-scan {
    0%, 100% { top: 14%; }
    50% { top: 82%; }
}
.animate-press-scan { animation: press-scan 3.4s ease-in-out infinite; }

/* Process Step 4: Stack Drop & QC Pop */
@keyframes stack-drop {
    0%, 12% { opacity: 0; transform: translateY(-24px); }
    24%, 88% { opacity: 1; transform: translateY(0); }
    96%, 100% { opacity: 0; }
}
@keyframes qc-pop {
    0%, 42% { opacity: 0; transform: scale(0.7); }
    52%, 88% { opacity: 1; transform: scale(1); }
    96%, 100% { opacity: 0; }
}
.animate-stack-drop { animation: stack-drop 5s ease-out infinite both; }
.animate-qc-pop { animation: qc-pop 5s cubic-bezier(0.2, 1.4, 0.4, 1) infinite both; }

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    .animate-aurora-a,
    .animate-aurora-b,
    .animate-aurora-c,
    .animate-wheel,
    .animate-marquee,
    .animate-liquid-wave,
    .animate-ring-pulse,
    .animate-chat-you,
    .animate-chat-us,
    .animate-sketch-wipe,
    .animate-sketch-handle,
    .animate-press-scan,
    .animate-stack-drop,
    .animate-qc-pop {
        animation: none !important;
    }
}
