/* ============================================================
   MinerCore — Typography & Visual Refinement Pass
   ─────────────────────────────────────────────────────────────
   PURPOSE: Fix visual clutter caused by oversized headings,
   excessively heavy font weights, and inconsistent spacing.
   Rule: zero content/logic changes — style only.
   ─────────────────────────────────────────────────────────────
   LOAD ORDER: 92 — loaded last to win all specificity wars.
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   1. GLOBAL HEADING SCALE — slightly tighter, more refined
   ══════════════════════════════════════════════════════════════ */

/* h1 — page titles: keep 700 weight, reduce max size slightly */
h1 {
    font-size: clamp(1.45rem, 2.8vw, 1.95rem);
    font-weight: var(--fw-bold);      /* 700 */
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* h2 — section titles: reduce from text-3xl (≈29px) → more refined */
h2 {
    font-size: clamp(1.2rem, 2.1vw, 1.55rem);
    font-weight: var(--fw-semibold);  /* 600 — not bold */
    letter-spacing: -0.015em;
    line-height: 1.3;
}

/* h3 — card titles, sub-sections */
h3 {
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    font-weight: var(--fw-semibold);  /* 600 */
    letter-spacing: -0.01em;
    line-height: 1.35;
}

/* h4 — minor headings */
h4 {
    font-size: clamp(0.92rem, 1.35vw, 1.05rem);
    font-weight: var(--fw-medium);   /* 500 */
    line-height: 1.4;
}

/* h5, h6 — labels, tiny headings */
h5, h6 {
    font-size: var(--text-base);
    font-weight: var(--fw-medium);   /* 500 */
    line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════
   2. BODY TEXT & PARAGRAPHS — refined reading comfort
   ══════════════════════════════════════════════════════════════ */

body {
    font-size: var(--text-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p {
    font-size: var(--text-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-relaxed);
    margin-bottom: 0.9rem;
}

/* strong/b — semi-bold only, NOT full bold */
strong, b {
    font-weight: var(--fw-semibold);  /* 600 — not 700 */
    color: var(--color-text-main);
}

/* ══════════════════════════════════════════════════════════════
   3. HOME SECTION HEADINGS — proportional scale
   ══════════════════════════════════════════════════════════════ */

/* Home h2 section titles were set to text-4xl — reduce */
.home .home-featured h2,
.home .home-technology h2,
.home .home-logistics h2,
.home .home-quality h2,
.home .home-news h2,
.home .home-faq h2,
.home .home-factory h2 {
    font-size: clamp(1.3rem, 2.2vw, 1.75rem) !important;
    font-weight: var(--fw-semibold) !important;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

/* Social proof bar stat items */
.home .social-proof-bar .stat-item h3 {
    font-size: clamp(1.4rem, 2.4vw, 1.95rem) !important;
    font-weight: var(--fw-semibold) !important;
}

/* Partners section title */
.home-partners__title {
    font-size: clamp(1.3rem, 2.2vw, 1.75rem) !important;
    font-weight: var(--fw-semibold) !important;
    letter-spacing: -0.025em;
}

/* ══════════════════════════════════════════════════════════════
   4. PRODUCT SINGLE PAGE — the main source of visual clutter
   ══════════════════════════════════════════════════════════════ */

/* Product title — was fw-extrabold (800): reduce to bold (700) */
.asic-product-title {
    font-size: clamp(1.25rem, 2.2vw, 1.75rem) !important;
    font-weight: var(--fw-bold) !important;   /* 700 — not 800 */
    letter-spacing: -0.015em !important;
    line-height: 1.28 !important;
}

/* Brand tag above product title */
.asic-brand-tag {
    font-size: var(--text-xs) !important;
    font-weight: var(--fw-semibold) !important;   /* was fw-bold */
    letter-spacing: 0.1em !important;
}

/* Price amount — was text-4xl, reduce */
.asic-price-block .price-amount {
    font-size: clamp(1.5rem, 2.8vw, 2rem) !important;
    font-weight: var(--fw-bold) !important;   /* 700 */
    letter-spacing: -0.02em !important;
}

/* Price currency symbol */
.asic-price-block .price-currency {
    font-size: clamp(1rem, 1.6vw, 1.3rem) !important;
    font-weight: var(--fw-semibold) !important;
}

/* Status pills — reduce weight */
.status-pill {
    font-size: var(--text-xs) !important;
    font-weight: var(--fw-semibold) !important;   /* was fw-bold */
    padding: 4px 12px !important;
}

/* Safe checkout label */
.safe-checkout-label {
    font-size: var(--text-xs) !important;
    font-weight: var(--fw-semibold) !important;   /* was fw-bold */
    letter-spacing: 0.06em !important;
}

/* Card section headings inside product page */
.asic-card-header h2 {
    font-size: var(--text-md) !important;
    font-weight: var(--fw-semibold) !important;
    letter-spacing: -0.01em !important;
}

/* Policy tabs header buttons */
.policy-tab-btn {
    font-size: var(--text-sm) !important;
    font-weight: var(--fw-medium) !important;   /* was fw-semibold */
}

/* Trust bar item heading */
.trust-content h4 {
    font-size: var(--text-sm) !important;
    font-weight: var(--fw-semibold) !important;   /* was fw-semibold — keep */
    line-height: 1.3 !important;
}

/* Metric cards */
.metric-value {
    font-size: var(--text-sm) !important;
    font-weight: var(--fw-semibold) !important;
}

/* Transparency title */
.transparency-title {
    font-size: 0.7rem !important;
    font-weight: var(--fw-semibold) !important;   /* was fw-bold */
    letter-spacing: 0.06em !important;
}

/* Transparency values */
.transparency-val {
    font-size: 0.82rem !important;
    font-weight: var(--fw-semibold) !important;   /* was 700 */
}

/* Support banner heading */
.support-banner-text h3 {
    font-size: var(--text-md) !important;
    font-weight: var(--fw-semibold) !important;
}

/* Price official label */
.price-official-label {
    font-size: var(--text-xs) !important;
    font-weight: var(--fw-semibold) !important;   /* was fw-bold */
}

/* Calc estimate card values */
.estimate-card .estimate-usd {
    font-size: var(--text-md) !important;
    font-weight: var(--fw-semibold) !important;   /* was fw-semibold — keep */
}

/* ══════════════════════════════════════════════════════════════
   5. ARCHIVE / CATALOG CARDS
   ══════════════════════════════════════════════════════════════ */

/* Miner card title — was fw-bold, text-xl */
.miner-card-title {
    font-size: var(--text-lg) !important;
    font-weight: var(--fw-semibold) !important;   /* was fw-bold */
    line-height: var(--lh-snug) !important;
}

/* Miner card price — was text-2xl (≈24px), too large */
.miner-card-price {
    font-size: clamp(1.1rem, 1.7vw, 1.35rem) !important;
    font-weight: var(--fw-semibold) !important;   /* was fw-bold */
    letter-spacing: -0.01em !important;
}

/* Archive card meta chips */
.miner-card-meta span {
    font-size: var(--text-xs) !important;
    font-weight: var(--fw-medium) !important;    /* was fw-semibold */
    padding: 5px 11px !important;
}

/* Archive card profitability box */
.miner-card-profitability {
    font-size: var(--text-sm) !important;
    font-weight: var(--fw-semibold) !important;   /* was fw-bold */
}

/* Badge pills */
.badge-pill {
    font-size: 0.65rem !important;
    font-weight: var(--fw-semibold) !important;   /* was fw-bold */
    padding: 4px 10px !important;
    letter-spacing: 0.04em !important;
}

/* Action buttons in archive cards */
.miner-card-actions .btn {
    font-size: var(--text-sm) !important;
    font-weight: var(--fw-semibold) !important;   /* was fw-bold */
}

/* ══════════════════════════════════════════════════════════════
   6. WOOCOMMERCE SHOP LOOP CARDS
   ══════════════════════════════════════════════════════════════ */

.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    font-size: var(--text-base) !important;
    font-weight: var(--fw-semibold) !important;
    line-height: 1.35 !important;
}

.woocommerce ul.products li.product .price {
    font-size: var(--text-lg) !important;
    font-weight: var(--fw-semibold) !important;
}

/* Shop archive h1 */
.post-type-archive-product .shop-hero h1 {
    font-size: var(--mc-pages-hero-title-sz-desk, clamp(1.4rem, 2.5vw, 2.1rem)) !important;
    letter-spacing: -0.035em !important;
    white-space: normal !important;
    line-height: 1.2 !important;
}

/* ══════════════════════════════════════════════════════════════
   7. COMPONENTS — buttons, badges, stats
   ══════════════════════════════════════════════════════════════ */

/* Primary / outline buttons */
.btn,
.btn-primary,
.btn-neon,
.btn-outline,
.btn-secondary {
    font-size: var(--text-sm) !important;
    font-weight: var(--fw-semibold) !important;  /* was fw-semibold — keep consistent */
}

/* Stat numbers (social proof) */
.stat-number {
    font-size: clamp(1.3rem, 2.2vw, 1.8rem) !important;
    font-weight: var(--fw-semibold) !important;
}

/* Countdown box numbers */
.countdown-box .num {
    font-size: var(--text-xl) !important;
    font-weight: var(--fw-semibold) !important;
}

/* Accordion header */
.accordion-header {
    font-size: var(--text-base) !important;
    font-weight: var(--fw-semibold) !important;
}

/* ══════════════════════════════════════════════════════════════
   8. HEADER & NAVIGATION — refined weight
   ══════════════════════════════════════════════════════════════ */

/* Nav links — medium weight for lighter feel */
.main-navigation a,
.main-nav a,
.nav-link {
    font-weight: var(--fw-medium) !important;   /* was semibold */
}

/* ══════════════════════════════════════════════════════════════
   9. WOOCOMMERCE MY ACCOUNT / FORM AREAS
   ══════════════════════════════════════════════════════════════ */

.woocommerce-account .woocommerce-MyAccount-navigation li a {
    font-size: var(--text-sm) !important;
    font-weight: var(--fw-semibold) !important;   /* was fw-bold */
}

/* ══════════════════════════════════════════════════════════════
   10. MINI-CART DRAWER
   ══════════════════════════════════════════════════════════════ */

.mini-cart-header h3 {
    font-size: var(--text-base) !important;
    font-weight: var(--fw-semibold) !important;   /* was fw-bold */
}

.mini-cart-dropdown .total {
    font-size: var(--text-base) !important;
    font-weight: var(--fw-semibold) !important;   /* was fw-bold */
}

/* ══════════════════════════════════════════════════════════════
   11. PAGE-SPECIFIC SECTIONS — FAQ, About, Support, etc.
   ══════════════════════════════════════════════════════════════ */

/* FAQ items */
.faq-item__question,
.faq-question,
.accordion-trigger {
    font-size: var(--text-base) !important;
    font-weight: var(--fw-semibold) !important;
}

/* Section eyebrows / labels */
.hero-badge,
[class$="-eyebrow"],
[class$="__eyebrow"],
[class$="-kicker"],
[class$="__kicker"],
[class$="-tag"],
[class$="__tag"] {
    font-size: 0.68rem !important;
    font-weight: var(--fw-semibold) !important;
    letter-spacing: 0.1em !important;
}

/* ══════════════════════════════════════════════════════════════
   12. PRODUCT HERO VARIATION PRICE & GENERAL PRICES
   ══════════════════════════════════════════════════════════════ */

/* General WC price */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: clamp(1.2rem, 2vw, 1.6rem) !important;
    font-weight: var(--fw-semibold) !important;
}

/* ══════════════════════════════════════════════════════════════
   13. RESPONSIVE ADJUSTMENTS
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.3rem, 5.5vw, 1.65rem);
        letter-spacing: -0.015em;
    }

    h2 {
        font-size: clamp(1.05rem, 4.5vw, 1.35rem);
    }

    h3 {
        font-size: clamp(0.95rem, 3.8vw, 1.15rem);
    }

    .asic-product-title {
        font-size: clamp(1.1rem, 5vw, 1.45rem) !important;
    }

    .asic-price-block .price-amount {
        font-size: clamp(1.3rem, 5.5vw, 1.75rem) !important;
    }

    .home .home-featured h2,
    .home .home-technology h2,
    .home .home-logistics h2,
    .home .home-quality h2,
    .home .home-news h2,
    .home .home-faq h2,
    .home .home-factory h2 {
        font-size: clamp(1.1rem, 5vw, 1.4rem) !important;
    }

    .miner-card-price {
        font-size: clamp(1rem, 4vw, 1.2rem) !important;
    }
}

@media (max-width: 480px) {
    h1 { font-size: clamp(1.15rem, 6vw, 1.45rem); }
    h2 { font-size: clamp(1rem, 5vw, 1.2rem); }
    h3 { font-size: clamp(0.9rem, 4.5vw, 1.05rem); }

    .asic-product-title {
        font-size: clamp(1rem, 5.5vw, 1.3rem) !important;
    }

    .stat-number {
        font-size: clamp(1.1rem, 5vw, 1.5rem) !important;
    }
}
