/* ============================================================
   JEERA BRAND SYSTEM — Phase 3H (Brand Redesign)
   ------------------------------------------------------------
   Single source of truth for brand colors, typography, and
   Bootstrap overrides. Load this AFTER Bootstrap in every layout.

   Brand:
     Primary Red:   #C9161E
     Deep Red:      #A0121A
     Charcoal:      #171717
     Dark Charcoal: #111111
     White:         #FFFFFF
     Soft BG:       #FFF3F4
     Border:        #E5E5E7
     Muted Text:    #6B7280

   Usage ratio (per brand guide):
     70% white/light neutral
     20% charcoal/dark
     10% red accent
   ============================================================ */

:root {
    /* ── Core brand colors ─────────────────────────────── */
    --jeera-red:          #C9161E;
    --jeera-red-deep:     #A0121A;
    --jeera-red-soft:     #FBEDEE;
    --jeera-red-tint:     #F5D5D7;

    --jeera-charcoal:     #171717;
    --jeera-charcoal-2:   #111111;
    --jeera-white:        #FFFFFF;
    --jeera-soft:         #FFF3F4;
    --jeera-border:       #E5E5E7;
    --jeera-muted:        #6B7280;

    /* ── Semantic aliases ──────────────────────────────── */
    --jeera-primary:       var(--jeera-red);
    --jeera-primary-dark:  var(--jeera-red-deep);
    --jeera-primary-light: #DC3A42;
    --jeera-success:       #10B981;
    --jeera-warning:       #F59E0B;
    --jeera-danger:        var(--jeera-red);

    /* ── Neutral scale ─────────────────────────────────── */
    --jeera-slate-50:      #FFF3F4;
    --jeera-slate-100:     #F4F4F5;
    --jeera-slate-200:     #E5E5E7;
    --jeera-slate-400:     #A1A1AA;
    --jeera-slate-500:     #71717A;
    --jeera-slate-600:     #52525B;
    --jeera-slate-700:     #3F3F46;
    --jeera-slate-900:     #18181B;

    /* ── Radii ─────────────────────────────────────────── */
    --jeera-radius-sm:     6px;
    --jeera-radius:        10px;
    --jeera-radius-lg:     14px;
    --jeera-radius-xl:     20px;

    /* ── Shadows ───────────────────────────────────────── */
    --jeera-shadow-sm:     0 1px 2px rgba(17, 17, 17, 0.04);
    --jeera-shadow:        0 4px 12px rgba(17, 17, 17, 0.06);
    --jeera-shadow-md:     0 12px 32px -12px rgba(17, 17, 17, 0.12);
    --jeera-shadow-lg:     0 20px 48px -16px rgba(17, 17, 17, 0.16);
    --jeera-shadow-red:    0 12px 24px -8px rgba(201, 22, 30, 0.35);

    /* ── Typography ────────────────────────────────────── */
    --jeera-font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont,
                  'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --jeera-font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

body {
    font-family: var(--jeera-font);
    color: var(--jeera-charcoal);
    background-color: var(--jeera-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--jeera-font);
    color: var(--jeera-charcoal);
    font-weight: 700;
    letter-spacing: -0.015em;
}

h1, .h1 { letter-spacing: -0.025em; font-weight: 800; }
h2, .h2 { letter-spacing: -0.02em; font-weight: 800; }
h3, .h3 { font-weight: 700; }

p { line-height: 1.6; }

a {
    color: var(--jeera-red);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--jeera-red-deep);
}

code, pre, kbd, samp {
    font-family: var(--jeera-font-mono);
}

/* ============================================================
   BOOTSTRAP 5 OVERRIDES
   ============================================================ */

.btn {
    font-family: var(--jeera-font);
    font-weight: 600;
    border-radius: var(--jeera-radius);
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--jeera-red);
    border-color: var(--jeera-red);
    color: var(--jeera-white);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background-color: var(--jeera-red-deep);
    border-color: var(--jeera-red-deep);
    color: var(--jeera-white);
}

.btn-outline-primary {
    color: var(--jeera-red);
    border-color: var(--jeera-red);
    background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--jeera-red);
    border-color: var(--jeera-red);
    color: var(--jeera-white);
}

.btn-link { color: var(--jeera-red); }
.btn-link:hover { color: var(--jeera-red-deep); }

.bg-primary { background-color: var(--jeera-red) !important; }
.bg-danger  { background-color: var(--jeera-red) !important; }

.text-primary { color: var(--jeera-red) !important; }
.text-danger  { color: var(--jeera-red) !important; }
.text-muted   { color: var(--jeera-muted) !important; }

.link-primary { color: var(--jeera-red); }
.link-primary:hover { color: var(--jeera-red-deep); }

.border-primary { border-color: var(--jeera-red) !important; }

.badge.bg-primary { background-color: var(--jeera-red) !important; }

.form-control:focus,
.form-select:focus {
    border-color: var(--jeera-red);
    box-shadow: 0 0 0 0.2rem rgba(201, 22, 30, 0.15);
}

.form-check-input:checked {
    background-color: var(--jeera-red);
    border-color: var(--jeera-red);
}

.form-check-input:focus {
    border-color: var(--jeera-red);
    box-shadow: 0 0 0 0.2rem rgba(201, 22, 30, 0.15);
}

.nav-pills .nav-link.active {
    background-color: var(--jeera-red);
}

.nav-tabs .nav-link.active {
    color: var(--jeera-red);
    border-color: var(--jeera-border) var(--jeera-border) var(--jeera-white);
}

.nav-tabs .nav-link:hover {
    color: var(--jeera-red);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--jeera-red);
    color: var(--jeera-white);
}

.page-link { color: var(--jeera-red); }
.page-link:hover { color: var(--jeera-red-deep); }

.page-item.active .page-link {
    background-color: var(--jeera-red);
    border-color: var(--jeera-red);
}

.progress-bar { background-color: var(--jeera-red); }

.alert-danger {
    color: var(--jeera-red-deep);
    background-color: var(--jeera-red-soft);
    border-color: var(--jeera-red-tint);
}

.spinner-border.text-primary,
.spinner-grow.text-primary {
    color: var(--jeera-red) !important;
}

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar-dark {
    background-color: var(--jeera-charcoal-2) !important;
}

.navbar-dark .navbar-brand {
    color: var(--jeera-white) !important;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.navbar-dark .navbar-brand:hover {
    color: var(--jeera-white) !important;
}

.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
    transition: color 0.15s ease;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link:focus {
    color: var(--jeera-white) !important;
}

.navbar-dark .nav-link.active {
    color: var(--jeera-white) !important;
}

.navbar-dark .nav-item .nav-link.active {
    position: relative;
}

.navbar-dark .nav-item .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: -4px;
    height: 2px;
    background: var(--jeera-red);
    border-radius: 2px;
}

/* ============================================================
   FORM CONTROLS
   ============================================================ */

.form-control,
.form-select {
    font-family: var(--jeera-font);
    border-color: var(--jeera-border);
    border-radius: var(--jeera-radius);
    color: var(--jeera-charcoal);
}

.form-control::placeholder {
    color: var(--jeera-muted);
}

.form-label {
    font-weight: 600;
    color: var(--jeera-charcoal);
    font-size: 0.875rem;
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
    border-color: var(--jeera-border);
    border-radius: var(--jeera-radius-lg);
}

.card-header {
    background-color: var(--jeera-white);
    border-bottom-color: var(--jeera-border);
}

/* ============================================================
   UTILITY HELPERS
   ============================================================ */

.jeera-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--jeera-red);
    color: var(--jeera-white);
    border: none;
    padding: 14px 28px;
    border-radius: var(--jeera-radius);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(17, 17, 17, 0.06);
}

.jeera-btn-primary:hover {
    background: var(--jeera-red-deep);
    color: var(--jeera-white);
    transform: translateY(-1px);
    box-shadow: var(--jeera-shadow-red);
}

.jeera-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--jeera-white);
    color: var(--jeera-charcoal);
    border: 1.5px solid var(--jeera-charcoal);
    padding: 14px 28px;
    border-radius: var(--jeera-radius);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.jeera-btn-secondary:hover {
    background: var(--jeera-charcoal);
    color: var(--jeera-white);
    transform: translateY(-1px);
}

.jeera-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--jeera-charcoal);
    border: 1.5px solid var(--jeera-border);
    padding: 12px 24px;
    border-radius: var(--jeera-radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.jeera-btn-ghost:hover {
    border-color: var(--jeera-charcoal);
    color: var(--jeera-charcoal);
}

.jeera-section {
    padding: 96px 0;
}

.jeera-section-soft {
    background-color: var(--jeera-soft);
}

@media (max-width: 768px) {
    .jeera-section {
        padding: 64px 0;
    }
}

.jeera-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--jeera-red);
    margin-bottom: 16px;
}

.jeera-section-header {
    text-align: center;
    margin-bottom: 56px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.jeera-section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--jeera-charcoal);
    margin-bottom: 16px;
    line-height: 1.15;
}

.jeera-section-header p {
    font-size: 1.125rem;
    color: var(--jeera-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .jeera-section-header h2 {
        font-size: 1.875rem;
    }
    .jeera-section-header p {
        font-size: 1rem;
    }
}

.jeera-section-dark {
    background-color: var(--jeera-charcoal-2);
    color: var(--jeera-white);
}

.jeera-section-dark h1,
.jeera-section-dark h2,
.jeera-section-dark h3,
.jeera-section-dark h4 {
    color: var(--jeera-white);
}

.jeera-section-dark p {
    color: rgba(255, 255, 255, 0.72);
}

.jeera-footer {
    background-color: var(--jeera-charcoal-2);
    color: rgba(255, 255, 255, 0.72);
    padding: 64px 0 24px;
    margin-top: 0;
}

.jeera-footer h5,
.jeera-footer h6 {
    color: var(--jeera-white);
    font-weight: 700;
    margin-bottom: 16px;
}

.jeera-footer a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.jeera-footer a:hover {
    color: var(--jeera-white);
}

.jeera-footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 40px 0 24px;
}

/* ============================================================
   JEERA BRAND v3D — Motion + Hero Utilities
   ============================================================ */

/* ── Scroll Reveal States ─────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ── Chart Bars ──────────────────────────────────────────── */
.bar-animate {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--jeera-red);
    border-radius: 100px;
}

/* ── Hover utilities ─────────────────────────────────────── */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--jeera-shadow-md);
}

.card-elevated {
    box-shadow: var(--jeera-shadow-lg);
}

/* ── DARK HERO ───────────────────────────────────────────── */
.hero-dark {
    position: relative;
    overflow: hidden;
    background: var(--jeera-charcoal-2);
    color: var(--jeera-white);
    padding: 96px 0 100px;
}

.hero-dark::before {
    content: '';
    position: absolute;
    top: -180px;
    right: -120px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(201, 22, 30, 0.18) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-dark::after {
    content: '';
    position: absolute;
    bottom: -260px;
    left: -180px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-dark > .container {
    position: relative;
    z-index: 1;
}

.hero-dark h1,
.hero-dark h2,
.hero-dark h3 {
    color: var(--jeera-white);
    letter-spacing: -0.03em;
}

.hero-dark h1 {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 24px;
}

.hero-dark h1 .accent {
    color: var(--jeera-red);
}

.hero-dark p.lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    margin: 0 0 32px;
    max-width: 560px;
}

@media (max-width: 992px) {
    .hero-dark { padding: 72px 0 80px; text-align: center; }
    .hero-dark h1 { font-size: 2.5rem; }
    .hero-dark p.lead { margin-left: auto; margin-right: auto; }
}

@media (max-width: 576px) {
    .hero-dark { padding: 56px 0 64px; }
    .hero-dark h1 { font-size: 2rem; }
    .hero-dark p.lead { font-size: 1.05rem; }
}

.hero-dark .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-dark .hero-eyebrow i {
    color: var(--jeera-red);
    font-size: 0.7rem;
}

.hero-dark .hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

.hero-dark .hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero-dark .hero-trust i {
    color: var(--jeera-red);
    font-size: 0.65rem;
}

.hero-dark .btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--jeera-red);
    color: var(--jeera-white);
    padding: 15px 30px;
    border-radius: var(--jeera-radius);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1.5px solid var(--jeera-red);
}

.hero-dark .btn-hero-primary:hover {
    background: var(--jeera-red-deep);
    border-color: var(--jeera-red-deep);
    color: var(--jeera-white);
    transform: translateY(-1px);
    box-shadow: var(--jeera-shadow-red);
}

.hero-dark .btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--jeera-white);
    padding: 15px 30px;
    border-radius: var(--jeera-radius);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.24);
}

.hero-dark .btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--jeera-white);
}

.hero-dark .hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 992px) {
    .hero-dark .hero-cta-row { justify-content: center; }
    .hero-dark .hero-trust { justify-content: center; }
}

.hero-dark .hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

@media (max-width: 992px) {
    .hero-dark .hero-visual {
        margin-top: 60px;
        min-height: 420px;
    }
}

@keyframes heroFloatA {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@keyframes heroFloatB {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

.float-slow { animation: heroFloatA 5s ease-in-out infinite; }
.float-med  { animation: heroFloatB 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .float-slow,
    .float-med { animation: none; }
}

/* ── Bento grid ──────────────────────────────────────────── */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.bento-item {
    background: white;
    border: 1.5px solid var(--jeera-border);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bento-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--jeera-shadow-md);
}

.bento-item.is-dark {
    background: var(--jeera-charcoal-2);
    color: white;
    border-color: var(--jeera-charcoal-2);
}

.bento-item.is-dark h3,
.bento-item.is-dark h4 { color: white; }
.bento-item.is-dark p { color: rgba(255, 255, 255, 0.72); }

.bento-item.is-cream {
    background: var(--jeera-soft);
    border-color: var(--jeera-border);
}

.bento-span-2 { grid-column: span 2; }
.bento-span-3 { grid-column: span 3; }
.bento-span-4 { grid-column: span 4; }
.bento-span-6 { grid-column: span 6; }

@media (max-width: 992px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento-span-2,
    .bento-span-3,
    .bento-span-4 { grid-column: span 2; }
    .bento-span-6 { grid-column: span 2; }
}

@media (max-width: 576px) {
    .bento { grid-template-columns: 1fr; }
    .bento-item { grid-column: span 1 !important; }
}

/* ── Stat block ──────────────────────────────────────────── */
.stat-big {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--jeera-charcoal);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.stat-big.is-white { color: white; }
.stat-big.is-red { color: var(--jeera-red); }

.stat-label {
    font-size: 0.85rem;
    color: var(--jeera-muted);
    font-weight: 500;
}

.stat-label.is-white { color: rgba(255, 255, 255, 0.6); }