/* =========================================================
   YASHARA BIOSCIENCES — Per-Product Theme Overrides
   Each product maintains the global design system but uses
   distinct visual tokens so pages feel clearly differentiated.
   ========================================================= */

/* ---------------------------------------------------------
   FluorocellAI Theme
   Identity: precision optics, fluorescence, deep teal-to-navy
   Accent:   #0D7377 (teal) paired with global --red for CTAs
   --------------------------------------------------------- */
.theme-fluorocell {
    --product-accent:     #0D7377;
    --product-accent-mid: #0A5C5F;
    --product-accent-lt:  rgba(13,115,119,0.12);
    --product-bg-hero:    linear-gradient(135deg, #0B1F3A 0%, #083A3C 60%, #0D7377 100%);
    --product-bg-dark:    #083A3C;
    --product-stripe:     #0D7377;
}

.theme-fluorocell .site-header {
    border-bottom-color: var(--product-accent);
}
.theme-fluorocell .hero::after {
    background: var(--product-accent);
}
.theme-fluorocell .hero {
    background: var(--product-bg-hero);
}
.theme-fluorocell .eyebrow {
    color: var(--product-accent);
}
.theme-fluorocell .section-rule {
    background: var(--product-accent);
}
.theme-fluorocell .product-card:hover,
.theme-fluorocell .capability-item:hover {
    border-top-color: var(--product-accent);
}
.theme-fluorocell .card-link,
.theme-fluorocell .card-tag {
    color: var(--product-accent);
}
.theme-fluorocell .btn-product {
    background: var(--product-accent);
    color: #fff;
    border-color: var(--product-accent);
}
.theme-fluorocell .btn-product:hover {
    background: var(--product-accent-mid);
    border-color: var(--product-accent-mid);
    color: #fff;
}
.theme-fluorocell .stat-accent { color: var(--product-accent); }

/* Fluorocell: vertical scan-line texture on hero */
.theme-fluorocell .hero-bg-overlay {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(13,115,119,0.04) 2px,
        rgba(13,115,119,0.04) 4px
    );
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Timeline / pipeline diagram */
.fc-pipeline {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding: 0 2rem;
}
.fc-pipeline-step {
    flex: 1 0 140px;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--white);
    border-top: 3px solid var(--product-accent, #0D7377);
    position: relative;
}
.fc-pipeline-step::after {
    content: '→';
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--product-accent, #0D7377);
    z-index: 2;
}
.fc-pipeline-step:last-child::after { display: none; }
.fc-pipeline-step .step-num {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--product-accent, #0D7377);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.fc-pipeline-step h5 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.3rem;
    font-family: var(--font-sans);
}
.fc-pipeline-step p {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Benchmark table row highlight */
.benchmark-winner td:last-child {
    color: var(--product-accent, #0D7377);
    font-weight: 600;
}

/* ---------------------------------------------------------
   ComplianceCall Theme
   Identity: authority, regulation, institutional charcoal-slate
   Accent:   #2B4C7E (slate-blue) — conveys federal gravitas
   --------------------------------------------------------- */
.theme-compliance {
    --product-accent:     #2B4C7E;
    --product-accent-mid: #1E3A62;
    --product-accent-lt:  rgba(43,76,126,0.1);
    --product-bg-hero:    linear-gradient(160deg, #0B1F3A 0%, #1a2d50 50%, #2B4C7E 100%);
    --product-bg-dark:    #162238;
    --product-stripe:     #2B4C7E;
}

.theme-compliance .site-header {
    border-bottom-color: var(--product-accent);
}
.theme-compliance .hero::after {
    background: var(--product-accent);
}
.theme-compliance .hero {
    background: var(--product-bg-hero);
}
.theme-compliance .eyebrow {
    color: var(--product-accent);
}
.theme-compliance .section-rule {
    background: var(--product-accent);
}
.theme-compliance .module-item:hover {
    border-top-color: var(--product-accent);
}
.theme-compliance .capability-item:hover {
    border-left-color: var(--product-accent);
}
.theme-compliance .btn-product {
    background: var(--product-accent);
    color: #fff;
    border-color: var(--product-accent);
}
.theme-compliance .btn-product:hover {
    background: var(--product-accent-mid);
    border-color: var(--product-accent-mid);
    color: #fff;
}

/* Compliance: formal ledger grid pattern on hero */
.theme-compliance .hero-ledger-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(43,76,126,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43,76,126,0.07) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* Status badge variants */
.status-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 0;
}
.status-badge.compliant  { background: rgba(22,120,60,0.12);  color: #16783C; border: 1px solid rgba(22,120,60,0.3); }
.status-badge.attention  { background: rgba(196,120,0,0.12);  color: #8B6800; border: 1px solid rgba(196,120,0,0.3); }
.status-badge.deficiency { background: rgba(196,30,58,0.1);   color: #C41E3A; border: 1px solid rgba(196,30,58,0.25); }

/* Compliance: checklist rows */
.checklist-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.9rem;
}
.checklist-row:last-child { border-bottom: none; }
.checklist-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: rgba(43,76,126,0.1);
    border: 1.5px solid var(--product-accent, #2B4C7E);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    color: var(--product-accent, #2B4C7E);
    font-size: 0.7rem;
    font-weight: 700;
}

/* ---------------------------------------------------------
   PuroChem Theme
   Identity: chemical hazard, warning, industrial amber-charcoal
   Accent:   #B5451B (deep amber-orange) — GHS warning palette
   --------------------------------------------------------- */
.theme-purochem {
    --product-accent:     #B5451B;
    --product-accent-mid: #8C3414;
    --product-accent-lt:  rgba(181,69,27,0.1);
    --product-bg-hero:    linear-gradient(150deg, #0B1F3A 0%, #1C1008 55%, #3D1A0A 100%);
    --product-bg-dark:    #1C1008;
    --product-stripe:     #B5451B;
}

.theme-purochem .site-header {
    border-bottom-color: var(--product-accent);
}
.theme-purochem .hero::after {
    background: var(--product-accent);
}
.theme-purochem .hero {
    background: var(--product-bg-hero);
}
.theme-purochem .eyebrow {
    color: var(--product-accent);
}
.theme-purochem .section-rule {
    background: var(--product-accent);
}
.theme-purochem .capability-item:hover {
    border-left-color: var(--product-accent);
}
.theme-purochem .btn-product {
    background: var(--product-accent);
    color: #fff;
    border-color: var(--product-accent);
}
.theme-purochem .btn-product:hover {
    background: var(--product-accent-mid);
    border-color: var(--product-accent-mid);
    color: #fff;
}

/* PuroChem: diagonal hazard stripe on hero (subtle) */
.theme-purochem .hero-hazard-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 28px,
        rgba(181,69,27,0.04) 28px,
        rgba(181,69,27,0.04) 30px
    );
}

/* GHS Hazard band visual pill */
.ghs-band {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1.5px solid;
}
.ghs-band.band-1 { color: #8B0000; border-color: #8B0000; background: rgba(139,0,0,0.08); }
.ghs-band.band-2 { color: #B5451B; border-color: #B5451B; background: rgba(181,69,27,0.08); }
.ghs-band.band-3 { color: #B58A00; border-color: #B58A00; background: rgba(181,138,0,0.08); }
.ghs-band.band-4 { color: #2B6000; border-color: #2B6000; background: rgba(43,96,0,0.08); }
.ghs-band.band-5 { color: #4B5563; border-color: #4B5563; background: rgba(75,85,99,0.08); }
.ghs-band .band-dot {
    width: 8px; height: 8px; border-radius: 50%;
    flex-shrink: 0;
    background: currentColor;
}

/* Chemical timeline / change tracker */
.chem-timeline {
    position: relative;
    padding-left: 2rem;
}
.chem-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0; bottom: 0;
    width: 1.5px;
    background: var(--rule);
}
.chem-event {
    position: relative;
    padding: 0 0 1.75rem 1.25rem;
}
.chem-event::before {
    content: '';
    position: absolute;
    left: -1.55rem;
    top: 5px;
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid var(--product-accent, #B5451B);
    background: var(--off-white);
}
.chem-event.upgrade::before { background: var(--product-accent, #B5451B); }
.chem-event-date {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}
.chem-event-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.25rem;
    font-family: var(--font-sans);
}
.chem-event-body {
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.65;
}

/* ---------------------------------------------------------
   Shared cross-page components (robust additions)
   --------------------------------------------------------- */

/* Accordion / FAQ */
.faq-item {
    border-bottom: 1px solid var(--rule);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--navy);
    user-select: none;
    list-style: none;
    gap: 1rem;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-icon {
    flex-shrink: 0;
    width: 20px; height: 20px;
    border: 1.5px solid var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-family: var(--font-sans);
    line-height: 1;
    color: var(--navy);
    transition: transform 0.2s;
}
details[open] .faq-icon { transform: rotate(45deg); }
.faq-answer {
    padding: 0 0 1.25rem;
    font-size: 0.93rem;
    color: var(--text-mid);
    line-height: 1.8;
    max-width: 720px;
}

/* Large pull-quote */
.pull-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-style: italic;
    color: var(--navy);
    line-height: 1.55;
    border-left: 4px solid var(--red);
    padding-left: 2rem;
    margin: 3rem 0;
    max-width: 700px;
}

/* Numbered process steps */
.process-steps {
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.process-step {
    counter-increment: step;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--rule);
    align-items: flex-start;
}
.process-step:last-child { border-bottom: none; }
.process-step-num {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--red);
    line-height: 1;
    padding-top: 2px;
}
.process-step-num::before { content: counter(step, decimal-leading-zero); }
.process-step-content h4 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: var(--navy);
}
.process-step-content p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.75;
}

/* Two-tone info card */
.info-card {
    display: grid;
    grid-template-columns: 3px 1fr;
}
.info-card-stripe { background: var(--red); }
.info-card-body { background: var(--white); padding: 1.5rem 1.75rem; }
.info-card-body h4 { font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--navy); }
.info-card-body p  { font-size: 0.85rem; color: var(--text-mid); line-height: 1.65; }

/* Testimonial card */
.testimonial-card {
    background: var(--white);
    padding: 2.25rem 2rem;
    border-top: 3px solid var(--rule);
}
.testimonial-card blockquote {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}
.testimonial-card blockquote::before { content: '\201C'; }
.testimonial-card blockquote::after  { content: '\201D'; }
.testimonial-meta { display: flex; flex-direction: column; gap: 0.15rem; }
.testimonial-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.testimonial-role { font-size: 0.78rem; color: var(--text-light); }

/* Broad feature table (for about / comparison) */
.feature-compare {
    width: 100%;
    border-collapse: collapse;
}
.feature-compare th {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom: 2px solid var(--navy);
    padding: 0.75rem 1.25rem;
    text-align: left;
    background: var(--off-white);
}
.feature-compare td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--rule);
    font-size: 0.9rem;
    color: var(--text-mid);
    vertical-align: middle;
}
.feature-compare tr:last-child td { border-bottom: none; }
.check-y { color: #16783C; font-weight: 700; }
.check-n { color: var(--text-light); }

/* Sticky sidebar TOC (product pages) */
@media (min-width: 1040px) {
    .toc-layout {
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 4rem;
        align-items: start;
    }
    .toc-sidebar {
        position: sticky;
        top: 90px;
    }
}
.toc-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.toc-sidebar a {
    display: block;
    font-size: 0.78rem;
    color: var(--text-light);
    padding: 0.5rem 0 0.5rem 0.75rem;
    border-left: 2px solid var(--rule);
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s;
    line-height: 1.4;
}
.toc-sidebar a:hover,
.toc-sidebar a.active {
    color: var(--navy);
    border-left-color: var(--red);
}
.toc-sidebar-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

/* Wide stat card row */
.wide-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--rule);
}
.wide-stat {
    padding: 2.5rem 2rem;
    border-right: 1px solid var(--rule);
    text-align: center;
}
.wide-stat:last-child { border-right: none; }
.wide-stat-num {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.wide-stat-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
}
@media (max-width: 800px) {
    .wide-stats { grid-template-columns: 1fr 1fr; }
    .wide-stat { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 500px) {
    .wide-stats { grid-template-columns: 1fr; }
}

/* Responsive utilities for inline grids */
@media (max-width: 800px) {
    .responsive-3col { grid-template-columns: 1fr !important; }
    .toc-layout { display: block; }
    .toc-sidebar { display: none; }
}
