/*
Theme Name: SMS ActiveR
Theme URI: https://sms-activater.com
Description: Custom classic theme for sms-activater.com - shared header/footer/menu and the provider review template (single-review.php). Design tokens shared with homepage snippet #43. Display layer for the smsactiver-reviews plugin (data layer).
Author: SMS ActiveR
Version: 0.1.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: smsactiver
*/

        /* =====================================================================
           SMS ActiveR — provider review page (template, mobile-first)
           Reuses the design tokens of homepage snippet #43.
           ===================================================================== */

        /* --- DESIGN TOKENS (same as snippet #43) --- */
        :root {
            --primary: #EA580C;
            --primary-hover: #C2410C;
            --primary-soft: #FFF1E8;
            --secondary: #F59E0B;

            --bg-body: #F8FAFC;
            --surface: #FFFFFF;
            --surface-muted: #F1F5F9;

            --ink: #0F172A;
            --ink-soft: #475569;
            --muted: #64748B;
            --on-primary: #FFFFFF;

            --border: #E2E8F0;

            --success: #047857;
            --success-bg: #ECFDF5;
            --danger: #DC2626;
            --danger-bg: #FEF2F2;
            --info: #2563EB;
            --info-bg: #EFF6FF;

            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;

            --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.06);
            --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.10), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
            --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 4px 10px -4px rgba(15, 23, 42, 0.08);

            --container: 1200px;
            --container-narrow: 820px;   /* article column */
            --header-h: 64px;
            --space-section: 56px;
            --focus-ring: 0 0 0 3px rgba(234, 88, 12, 0.35);
        }

        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; }
        body {
            font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
            background-color: var(--bg-body);
            color: var(--ink);
            line-height: 1.6;
            font-size: 16px;
            -webkit-font-smoothing: antialiased;
        }
        h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 800; color: var(--ink); }
        a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
        ul { list-style: none; }
        img { max-width: 100%; display: block; }
        button { cursor: pointer; border: none; font-family: inherit; font-size: inherit; background: none; }

        a:focus-visible, button:focus-visible, .faq-question:focus-visible {
            outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm);
        }

        .container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
        .narrow { max-width: var(--container-narrow); }
        section.section-padding { padding-top: var(--space-section); padding-bottom: var(--space-section); }

        /* --- BUTTONS --- */
        .btn {
            display: inline-flex; align-items: center; justify-content: center; gap: 8px;
            min-height: 44px; padding: 11px 20px; border-radius: var(--radius-sm);
            font-weight: 700; font-size: 0.95rem; white-space: nowrap;
            transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        }
        .btn-primary { background: var(--primary); color: var(--on-primary); }
        .btn-primary:hover { background: var(--primary-hover); }
        .btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
        .btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

        /* --- HEADER (same as #43) --- */
        header {
            min-height: var(--header-h); background: var(--surface);
            border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100;
        }
        .header-inner { display: flex; justify-content: space-between; align-items: center; min-height: var(--header-h); gap: 12px; }
        .logo { font-weight: 800; font-size: 1.15rem; color: var(--ink); display: flex; align-items: center; gap: 8px; }
        .logo i { color: var(--primary); }
        .logo .tagline { font-size: 0.78rem; font-weight: 400; color: var(--muted); margin-left: 6px; display: none; }
        .nav-menu { display: none; gap: 8px; align-items: center; }
        .nav-link {
            display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
            border-radius: var(--radius-sm); font-weight: 600; color: var(--ink); font-size: 0.95rem;
        }
        .nav-link:hover { color: var(--primary); background: var(--primary-soft); }
        .header-actions { display: flex; align-items: center; gap: 8px; }
        .nav-toggle {
            display: inline-flex; align-items: center; justify-content: center;
            width: 44px; height: 44px; border-radius: var(--radius-sm); color: var(--ink); font-size: 1.2rem;
        }
        .nav-toggle:hover { background: var(--surface-muted); }
        .mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 8px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
        .mobile-nav.open { display: flex; }
        .mobile-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); font-weight: 600; color: var(--ink); }
        .mobile-nav a:hover { background: var(--primary-soft); color: var(--primary); }

        /* --- BREADCRUMB --- */
        .breadcrumb { font-size: 0.85rem; color: var(--muted); padding: 16px 0 0; }
        .breadcrumb a:hover { color: var(--primary); }
        .breadcrumb i { font-size: 0.65rem; margin: 0 6px; opacity: 0.6; }

        /* --- ARTICLE HERO --- */
        .review-hero { padding: 24px 0 8px; }
        .review-eyebrow {
            display: inline-flex; align-items: center; gap: 6px;
            background: var(--primary-soft); color: var(--primary);
            font-weight: 700; font-size: 0.78rem; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
        }
        .review-hero h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); margin-bottom: 14px; max-width: 22ch; }
        .review-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 0.85rem; color: var(--muted); }
        .review-meta .rating { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ink); }
        .review-meta .stars { color: var(--secondary); letter-spacing: 1px; }
        .review-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }

        /* --- VERDICT / AT-A-GLANCE CARD --- */
        .verdict-card {
            background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
            box-shadow: var(--shadow-md); padding: 24px; margin: 24px 0;
        }
        .verdict-card h2 { font-size: 1.2rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
        .verdict-card h2 i { color: var(--primary); }
        .spec-grid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--border); }
        .spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
        .spec-row .k { color: var(--muted); }
        .spec-row .v { font-weight: 600; text-align: right; }
        .verdict-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

        .badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
        .badge-yes { background: var(--success-bg); color: var(--success); }
        .badge-no { background: var(--danger-bg); color: var(--danger); }
        .badge-neutral { background: var(--surface-muted); color: #334155; }

        /* --- ARTICLE BODY --- */
        .prose h2 { font-size: clamp(1.4rem, 4vw, 1.85rem); margin: 40px 0 14px; }
        .prose h3 { font-size: 1.18rem; margin: 26px 0 10px; }
        .prose p { color: var(--ink-soft); margin-bottom: 16px; max-width: 70ch; }
        .prose ul.bullet-list li {
            position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--ink-soft); max-width: 70ch;
        }
        .prose ul.bullet-list li::before { content: "\2713"; position: absolute; left: 0; top: 1px; color: var(--primary); font-weight: 700; }

        /* "Screenshot" placeholder — stands in for a real product screenshot */
        .shot {
            margin: 18px 0; border: 1px solid var(--border); border-radius: var(--radius-md);
            background: var(--surface-muted); overflow: hidden; box-shadow: var(--shadow-sm);
        }
        .shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
        .shot-bar .dot3 { width: 10px; height: 10px; border-radius: 50%; }
        .shot-body { padding: 36px 16px; text-align: center; color: var(--muted); font-size: 0.85rem; }
        .shot-body i { font-size: 1.8rem; display: block; margin-bottom: 8px; color: #94A3B8; }

        /* Step list with numbers */
        .steps { counter-reset: step; margin: 8px 0 16px; list-style: none; padding-left: 0; }
        .steps li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 16px; color: var(--ink-soft); max-width: 70ch; }
        .steps li::before {
            content: counter(step); position: absolute; left: 0; top: 0;
            width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff;
            font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
        }
        .steps li strong { color: var(--ink); }

        /* Pros / Cons */
        .pc-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 18px 0; }
        .pc-box { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; background: var(--surface); }
        .pc-box h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 1.05rem; }
        .pc-box.pros h4 { color: var(--success); }
        .pc-box.cons h4 { color: var(--danger); }
        .pc-box li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 0.92rem; color: var(--ink-soft); }
        .pc-box.pros li::before { content: "\2713"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
        .pc-box.cons li::before { content: "\2715"; position: absolute; left: 0; color: var(--danger); font-weight: 700; }

        /* Callout (yellow promo-style box like cpa.ru) */
        .callout {
            display: flex; gap: 14px; background: #FFFBEB; border: 1px solid #FDE68A;
            border-radius: var(--radius-md); padding: 18px 20px; margin: 22px 0;
        }
        .callout i { color: var(--secondary); font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
        .callout p { margin: 0; color: #78350F; font-size: 0.95rem; }
        .callout a { color: var(--primary); font-weight: 700; text-decoration: underline; }

        /* Price table */
        .price-table-wrap { border: 1px solid var(--border); border-radius: var(--radius-md); overflow-x: auto; box-shadow: var(--shadow-sm); margin: 16px 0; }
        table.price { width: 100%; border-collapse: collapse; min-width: 460px; }
        table.price th, table.price td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
        table.price th { background: var(--surface-muted); color: var(--muted); font-size: 0.8rem; }
        table.price tbody tr:last-child td { border-bottom: none; }

        /* How we tested — methodology box */
        .method { background: var(--info-bg); border: 1px solid #BFDBFE; border-radius: var(--radius-md); padding: 20px; margin: 18px 0; }
        .method h3 { font-size: 1.1rem; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; color: var(--ink); }
        .method h3 i { color: var(--info); }
        .method ul { display: grid; grid-template-columns: 1fr; gap: 8px; }
        .method li { position: relative; padding-left: 26px; font-size: 0.92rem; color: var(--ink-soft); }
        .method li::before { content: "\f0c8"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: var(--info); font-size: 0.75rem; top: 3px; }
        @media (min-width: 600px) { .method ul { grid-template-columns: 1fr 1fr; } }

        /* Comparison table (test results) — our service highlighted */
        .cmp-wrap { border: 1px solid var(--border); border-radius: var(--radius-md); overflow-x: auto; box-shadow: var(--shadow-sm); margin: 16px 0; }
        table.cmp { width: 100%; border-collapse: collapse; min-width: 560px; }
        table.cmp th, table.cmp td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
        table.cmp thead th { background: var(--surface-muted); color: var(--muted); font-size: 0.78rem; font-weight: 700; }
        table.cmp tbody th { font-weight: 600; color: var(--ink); }
        table.cmp .col-ours { background: var(--primary-soft); color: var(--ink); font-weight: 700; }
        table.cmp thead .col-ours { background: var(--primary); color: #fff; }
        table.cmp tbody tr:last-child td, table.cmp tbody tr:last-child th { border-bottom: none; }
        .cmp-note { font-size: 0.8rem; color: var(--muted); margin: 6px 0 0; }

        /* Review quotes */
        .quote { border-left: 3px solid var(--primary); background: var(--surface); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 14px 0; box-shadow: var(--shadow-sm); }
        .quote p { margin-bottom: 8px; color: var(--ink); }
        .quote .who { font-size: 0.82rem; color: var(--muted); }
        .quote .who .stars { color: var(--secondary); }

        /* =====================================================================
           ALTERNATIVES / INTERNAL LINKING BLOCK  (our service first)
           ===================================================================== */
        .alts { background: var(--surface-muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
        .alts .section-head { margin-bottom: 22px; }
        .alts .section-head h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); margin-bottom: 8px; }
        .alts .section-head p { color: var(--muted); max-width: 65ch; }
        .alt-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
        .alt-card {
            position: relative; background: var(--surface); border: 1px solid var(--border);
            border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm);
            display: flex; flex-direction: column;
        }
        .alt-card.is-top { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-sm); }
        .alt-flag {
            position: absolute; top: -11px; left: 20px;
            background: var(--primary); color: #fff; font-size: 0.72rem; font-weight: 700;
            padding: 3px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px;
        }
        .alt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
        .alt-name { font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
        .alt-name i { color: var(--primary); }
        .alt-rating { font-size: 0.82rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
        .alt-rating .stars { color: var(--secondary); }
        .alt-desc { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 12px; flex-grow: 1; }
        .alt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
        .alt-tag { font-size: 0.74rem; font-weight: 600; color: #334155; background: var(--surface-muted); border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px; }
        .alt-actions { display: flex; gap: 8px; }
        .alt-actions .btn { flex: 1; }
        .btn-outline { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
        .btn-outline:hover { border-color: var(--primary); color: var(--primary); }

        /* Related reading links */
        .related { margin-top: 28px; }
        .related h3 { font-size: 1.1rem; margin-bottom: 12px; }
        .related-links { display: grid; grid-template-columns: 1fr; gap: 10px; }
        .related-link {
            display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border);
            border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 600; font-size: 0.92rem; color: var(--ink);
        }
        .related-link:hover { border-color: var(--primary); color: var(--primary); }
        .related-link i { color: var(--primary); }

        /* --- FAQ --- */
        .faq-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 4px 20px; }
        .faq-item { border-bottom: 1px solid var(--border); }
        .faq-item:last-child { border-bottom: none; }
        .faq-question { width: 100%; text-align: left; padding: 18px 0; font-size: 1.02rem; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
        .faq-question i { transition: transform 0.3s ease; color: var(--muted); flex-shrink: 0; }
        .faq-question.active i { transform: rotate(180deg); color: var(--primary); }
        .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; color: var(--muted); }
        .faq-answer.open { padding-bottom: 18px; }

        /* --- FOOTER --- */
        footer { background: var(--surface); border-top: 1px solid var(--border); padding: 36px 0; margin-top: 0; font-size: 0.9rem; color: var(--muted); }
        .footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
        .footer-col h5 { color: var(--ink); margin-bottom: 14px; font-weight: 700; font-size: 0.95rem; }
        .footer-col a { display: inline-flex; min-height: 32px; align-items: center; }
        .footer-col a:hover { color: var(--primary); }
        .disclosure { font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--border); margin-top: 24px; padding-top: 16px; max-width: 80ch; }

        /* =================== RESPONSIVE =================== */
        @media (min-width: 480px) {
            .container { padding: 0 20px; }
            .footer-grid { grid-template-columns: repeat(2, 1fr); }
        }
        @media (min-width: 768px) {
            :root { --space-section: 72px; }
            .logo .tagline { display: inline; }
            .nav-menu { display: flex; }
            .nav-toggle { display: none; }
            .mobile-nav { display: none !important; }
            .pc-grid { grid-template-columns: 1fr 1fr; }
            .spec-grid { grid-template-columns: 1fr 1fr; column-gap: 28px; }
            .alt-grid { grid-template-columns: repeat(2, 1fr); }
            .related-links { grid-template-columns: 1fr 1fr; }
            .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
        }
        @media (min-width: 960px) {
            .alt-grid { grid-template-columns: repeat(3, 1fr); }
        }
        @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
    
        /* ===== SVG-sprite adapter (theme uses inline .icon SVG, not Font Awesome <i>) ===== */
        .icon { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }
        .logo .icon { color: var(--primary); }
        .verdict-card h2 .icon { color: var(--primary); }
        .callout .icon { color: var(--secondary); font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
        .shot-body .icon { font-size: 1.8rem; display: block; margin-bottom: 8px; color: #94A3B8; }
        .method h3 .icon { color: var(--info); }
        .alt-name .icon { color: var(--primary); }
        .related-link .icon { color: var(--primary); }
        .breadcrumb .icon { font-size: 0.65rem; margin: 0 6px; opacity: 0.6; }
        .faq-question .icon { transition: transform 0.3s ease; color: var(--muted); flex-shrink: 0; }
        .faq-question.active .icon { transform: rotate(180deg); color: var(--primary); }
        /* method marker: reference uses FA 0c8 (a FILLED square); draw it filled in CSS */
        .method li::before { content: ""; font-family: inherit; position: absolute; left: 0; top: 4px; width: 11px; height: 11px; background: var(--info); border-radius: 3px; }

        /* ===== Theme-only classes the reference <style> does NOT define =====
           Exist in header.php/footer.php (real WP nav + a11y helpers) but not in the
           reference HTML. Lost when style.css was rebuilt from the reference; without
           them the a11y <h2>"Main Menu" shows as plain bold text and the nav <ul>
           stacks vertically (the broken header on the screenshot). */
        .visuallyhidden {
            position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
            overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
        }
        .skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--surface); color: var(--ink); padding: 0 14px; min-height: 46px; display: inline-flex; align-items: center; border-radius: var(--radius-sm); }
        .skip-link:focus { left: 8px; top: 8px; }
        .nav-list { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
        .nav-list a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 12px; border-radius: var(--radius-sm); font-weight: 600; color: var(--ink); font-size: 0.95rem; }
        .nav-list a:hover { color: var(--primary); background: var(--primary-soft); }
        .mobile-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
        .mobile-nav-list a { display: flex; align-items: center; min-height: 46px; padding: 0 12px; border-radius: var(--radius-sm); font-weight: 600; color: var(--ink); }
        .mobile-nav-list a:hover { background: var(--primary-soft); color: var(--primary); }
