/* ============================================
   EQUIPMENT PAGES — Shared Styles
   ============================================ */

/* ---- Section layout ---- */
.eq-section {
    padding: var(--section-pad) 0;
    border-bottom: 1px solid var(--border);
}
.eq-section:last-of-type {
    border-bottom: none;
}
.eq-section--alt {
    background: var(--bg-secondary);
}

/* ---- Page header glow ---- */
.eq-page-header--glow {
    position: relative;
    overflow: hidden;
}
.eq-page-header--glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* ---- Prose blocks ---- */
.eq-prose {
    max-width: 800px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}
.eq-prose p {
    margin-bottom: 16px;
}
.eq-prose p:last-child {
    margin-bottom: 0;
}
.eq-prose strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ---- Split layout (text + media side by side) ---- */
.eq-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.eq-split__text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}
.eq-split__text p {
    margin-bottom: 16px;
}
.eq-split__text p:last-child {
    margin-bottom: 0;
}
.eq-split__media .eq-figure {
    margin: 0;
}
.eq-split__media .eq-gallery-grid {
    height: 100%;
}

/* ---- Advantage / benefit cards ---- */
.eq-advantages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
}
.eq-advantage-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s,
                opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.eq-advantage-card.visible {
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.eq-section--alt .eq-advantage-card {
    background: var(--bg-primary);
}
.eq-advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
}
.eq-advantage-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.eq-advantage-card:hover::before {
    opacity: 1;
}
.eq-advantage-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.eq-advantage-card__icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}
.eq-advantage-card__stat {
    display: block;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--accent), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.eq-advantage-card p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ---- Figure containers ---- */
.eq-figure {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 32px 0;
}
.eq-section--alt .eq-figure {
    background: var(--bg-tertiary);
}
.eq-figure img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}
.eq-figure--clickable {
    cursor: zoom-in;
}
.eq-figure--clickable:hover img {
    transform: scale(1.02);
}

/* ---- Gallery grid ---- */
.eq-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.eq-gallery-grid .eq-figure {
    margin: 0;
}
.eq-gallery-grid .eq-figure img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ---- Sales channel cards ---- */
.eq-sales-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
}
.eq-sales-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s,
                opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.eq-sales-card.visible {
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.eq-sales-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
}
.eq-sales-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.eq-sales-card:hover::before {
    opacity: 1;
}
.eq-sales-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.eq-sales-card__icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}
.eq-sales-card__label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.eq-sales-card__text {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ---- Resources section ---- */
.eq-resources {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}
.eq-resource-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: border-color 0.25s,
                opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 700px;
}
.eq-section--alt .eq-resource-link {
    background: var(--bg-tertiary);
}
.eq-resource-link.visible {
    transition: border-color 0.25s, transform 0.25s;
}
.eq-resource-link:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}
.eq-resource-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--accent);
}
.eq-resource-link .play-icon {
    color: #ef4444;
}
.eq-resource-link span {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
    padding-left: 16px;
}

/* ---- CTA section ---- */
.eq-cta {
    padding: var(--section-pad) 0;
    text-align: center;
}
.eq-cta-inner {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(40px, 5vw, 64px);
    position: relative;
    overflow: hidden;
}
.eq-cta-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.eq-cta p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 28px;
}

/* ---- 3-column advantage grid variant ---- */
.eq-advantages--3col {
    grid-template-columns: repeat(3, 1fr);
}

/* ---- Chemical formula / equation display ---- */
.eq-formula {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 40px;
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.eq-section--alt .eq-formula {
    background: var(--bg-tertiary);
}
.eq-formula__reaction {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.eq-formula__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent);
    min-width: 36px;
}
.eq-formula__expr {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 20px;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.eq-formula__arrow {
    font-size: 22px;
    color: var(--accent);
    padding: 0 4px;
}

/* ---- Responsive video embed ---- */
.eq-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 40%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}
.eq-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .eq-advantages {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .eq-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .eq-sales-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (max-width: 768px) {
    .eq-advantages {
        grid-template-columns: 1fr;
    }
    .eq-sales-grid {
        grid-template-columns: 1fr;
    }
    .eq-sales-card {
        padding: 22px 20px;
    }
    .eq-gallery-grid {
        grid-template-columns: 1fr;
    }
    .eq-advantage-card {
        padding: 22px 20px;
    }
    .eq-advantage-card__stat {
        font-size: 24px;
    }
    .eq-resource-link {
        padding: 12px 16px;
        font-size: 13px;
    }
}
