/* Nerus Medical Solutions — Custom CSS */
/* Tailwind base is loaded via CDN in base.html for development.             */
/* For production, replace CDN with a compiled output.css via PostCSS.       */

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(28px) } to { opacity:1; transform:translateY(0) } }
@keyframes fadeIn   { from { opacity:0 } to { opacity:1 } }
@keyframes scaleIn  { from { transform:scale(.92); opacity:0 } to { transform:scale(1); opacity:1 } }
@keyframes lineGrow { from { width:0 } to { width:4rem } }

.anim-fade-up  { animation: fadeUp  .75s ease both; }
.anim-fade-in  { animation: fadeIn  .6s  ease both; }
.anim-scale-in { animation: scaleIn .6s  ease both; }
.delay-100 { animation-delay: .10s; }
.delay-200 { animation-delay: .20s; }
.delay-300 { animation-delay: .30s; }
.delay-400 { animation-delay: .40s; }
.delay-500 { animation-delay: .50s; }
.delay-600 { animation-delay: .60s; }

/* ── Hero grid texture ───────────────────────────────────────────── */
.hero-grid-bg {
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* ── Glass card ──────────────────────────────────────────────────── */
.glass {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.15);
}

/* ── Stat number (tabular figures) ──────────────────────────────── */
.stat-num { font-variant-numeric: tabular-nums; }

/* ── Section title underline animation ──────────────────────────── */
.section-title-line::after {
    content: '';
    display: block;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
    border-radius: 9999px;
    margin-top: 8px;
    animation: lineGrow .6s .3s ease forwards;
}

/* ── Shimmer button effect ───────────────────────────────────────── */
.btn-shimmer { position: relative; overflow: hidden; }
.btn-shimmer::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform .5s ease;
}
.btn-shimmer:hover::after { transform: translateX(100%); }

/* ── Manufacturer logo tile ──────────────────────────────────────── */
.mfr-logo-box { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.mfr-logo-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15,40,80,.1);
    border-color: #93c5fd;
}

/* ── Custom scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #3b82f6; border-radius: 3px; }

/* ── Wagtail rich-text output ─────────────────────────────────────── */
.rich-text h2 { font-size: 1.5rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.75rem; color: #1e3a5f; }
.rich-text h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.25rem; margin-bottom: 0.5rem; color: #1e3a5f; }
.rich-text p  { margin-bottom: 1rem; line-height: 1.75; color: #374151; }
.rich-text ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; color: #374151; }
.rich-text ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; color: #374151; }
.rich-text li { margin-bottom: 0.25rem; }
.rich-text a  { color: #2563eb; text-decoration: underline; }
.rich-text a:hover { color: #1d4ed8; }
.rich-text blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
}
.rich-text table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.rich-text th, .rich-text td { padding: 0.5rem 0.75rem; border: 1px solid #e5e7eb; text-align: left; }
.rich-text th { background: #f1f5f9; font-weight: 600; }

/* ── WhatsApp floating button ─────────────────────────────────────── */
.whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    width: 3.5rem;
    height: 3.5rem;
    background: #25D366;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ── Product card hover ───────────────────────────────────────────── */
.product-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ── Mobile nav toggle ────────────────────────────────────────────── */
#mobile-menu { transition: max-height 0.3s ease, opacity 0.3s ease; max-height: 0; overflow: hidden; opacity: 0; }
#mobile-menu.open { max-height: 400px; opacity: 1; }

/* ── Toast messages ───────────────────────────────────────────────── */
.toast-success { background: #d1fae5; border-left: 4px solid #10b981; color: #065f46; }
.toast-error   { background: #fee2e2; border-left: 4px solid #ef4444; color: #7f1d1d; }
.toast-info    { background: #dbeafe; border-left: 4px solid #3b82f6; color: #1e3a8a; }

/* ── Tab component ────────────────────────────────────────────────── */
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-btn.active { border-bottom: 2px solid #2563eb; color: #2563eb; font-weight: 600; }
