/*
Theme Name: GeneratePress Child - barAffiliate
Theme URI: https://olivedrab-jellyfish-931738.hostingersite.com
Description: Child theme for barAffiliate (VERDICT.-style product testing/buying guide publication). Implements the Enterprise Master Blueprint 2026 design system.
Author: barAffiliate
Template: generatepress
Version: 1.1.0
*/

:root {
    /* Color tokens - Section 9 */
    --ink: #1B2230;
    --bone: #F6F4EE;
    --slate: #5B6472;
    --amber: #D98E04;
    --amber-deep: #B97A03;
    --amber-soft: #F3D9A0;
    --field-green: #2F6B4F;
    --field-green-soft: #E4EEE8;
    --alert-red: #B23A2E;
    --hairline: #DCD6C9;

    /* Typography - Section 10 */
    --font-display: 'Source Serif 4', Georgia, serif;
    --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

    /* Spacing - Section 12 */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;

    /* Shape / elevation */
    --radius: 6px;
    --shadow-card: 0 2px 4px rgba(27,34,48,0.06), 0 8px 24px rgba(27,34,48,0.08);
    --shadow-card-hover: 0 4px 10px rgba(27,34,48,0.10), 0 16px 32px rgba(27,34,48,0.14);
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; }

body {
    background-color: var(--bone);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
}

::selection {
    background-color: var(--amber);
    color: var(--ink);
}

h1, h2, h3, h4, .site-title, .entry-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.15;
}

h1, .entry-title { font-size: 44px; }
h2 { font-size: 28px; line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.25; }

/* Editorial section markers - gives headings a distinct signature */
.entry-content h2,
.page-content h2 {
    position: relative;
    padding-left: 20px;
    margin-top: var(--space-5);
}

.entry-content h2::before,
.page-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 5px;
    background-color: var(--amber);
    border-radius: 2px;
}

@media (max-width: 768px) {
    h1, .entry-title { font-size: 30px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }
    body { font-size: 15px; }
}

/* ---------- Header / Nav / Footer ---------- */

.site-header,
.main-navigation,
.site-footer {
    background-color: var(--ink);
    color: var(--bone);
}

.site-header { border-bottom: 3px solid var(--amber); }

.site-footer {
    border-top: 3px solid var(--amber);
    padding-top: var(--space-4);
}

.main-navigation a,
.site-footer a {
    color: var(--bone);
}

.main-navigation a:hover,
.site-footer a:hover {
    color: var(--amber);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--amber);
    box-shadow: inset 0 -2px 0 var(--amber);
}

/* Header title contrast fix */
.site-title, .main-title,
.site-title a, .main-title a,
.site-description {
    color: var(--bone) !important;
}
.site-title a:hover, .main-title a:hover {
    color: var(--amber) !important;
}

/* ---------- Links ---------- */

a {
    color: var(--ink);
    text-decoration-color: var(--amber);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.entry-content a:not(.button):not(.wp-block-button__link):hover,
.page-content a:not(.button):not(.wp-block-button__link):hover {
    color: var(--amber-deep);
}

/* ---------- Primary CTA button (Section 12) ---------- */
/* Elevated specificity + !important to win against GeneratePress core styles */

html body .button,
html body button,
html body input[type="submit"],
html body a.wp-block-button__link,
html body .wp-block-button__link {
    background-color: var(--amber) !important;
    color: var(--ink) !important;
    border: none !important;
    border-radius: var(--radius) !important;
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
    padding: 12px 28px !important;
    min-height: 44px;
    min-width: 44px;
    box-shadow: var(--shadow-card);
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

html body .button:hover,
html body button:hover,
html body input[type="submit"]:hover,
html body a.wp-block-button__link:hover,
html body .wp-block-button__link:hover {
    background-color: var(--amber-deep) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-card-hover);
}

/* Outline / secondary button variant (Gutenberg "outline" style) */
html body .is-style-outline .wp-block-button__link {
    background-color: transparent !important;
    color: var(--ink) !important;
    border: 2px solid var(--ink) !important;
    box-shadow: none;
}

html body .is-style-outline .wp-block-button__link:hover {
    background-color: var(--ink) !important;
    color: var(--bone) !important;
    border-color: var(--ink) !important;
}

.button:focus,
button:focus,
input[type="submit"]:focus,
a:focus {
    outline: 2px solid var(--amber);
    outline-offset: 2px;
}

/* ---------- Verdict Stamp ---------- */
.verdict-stamp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 3px double var(--ink);
    background: var(--bone);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    transform: rotate(-8deg);
    text-align: center;
    box-shadow: 0 0 0 4px var(--amber-soft), var(--shadow-card);
}

/* ---------- Trust strip ---------- */
.trust-strip {
    background-color: var(--ink);
    color: var(--bone);
    padding: var(--space-3) var(--space-2);
    font-family: var(--font-body);
    border-top: 1px solid var(--amber);
    border-bottom: 1px solid var(--amber);
}

/* ---------- Pros / cons ---------- */
.pros-list, .cons-list { list-style: none; padding-left: 0; }

.pros-list li, .cons-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
}

.pros-list li { color: var(--field-green); }
.cons-list li { color: var(--alert-red); }

.pros-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--field-green);
}

.cons-list li::before {
    content: "\2715";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--alert-red);
}

/* ---------- Winner callout box ---------- */
.winner-callout {
    position: relative;
    border: 1px solid var(--hairline);
    background: var(--field-green-soft);
    border-left: 6px solid var(--field-green);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: var(--space-3);
    margin: var(--space-4) 0;
    box-shadow: var(--shadow-card);
}

/* ---------- Data / price styling ---------- */
.price, .spec-data {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 18px;
    color: var(--ink);
}

/* ---------- Disclosure line ---------- */
.affiliate-disclosure {
    font-size: 16px;
    color: var(--slate);
    background: var(--hairline);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius);
}

/* ---------- Blockquote / editorial pull-quote ---------- */
blockquote,
.wp-block-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 22px;
    line-height: 1.4;
    color: var(--ink);
    border-left: 4px solid var(--amber);
    padding: var(--space-2) var(--space-3);
    margin: var(--space-4) 0;
    background: rgba(217,142,4,0.05);
}

/* ---------- Hairlines ---------- */
hr {
    border: none;
    border-top: 1px solid var(--hairline);
    margin: var(--space-4) 0;
}

/* ---------- Desk taxonomy / archive pages ---------- */
.taxonomy-desk .page-header,
.archive .page-header {
    border-bottom: 4px solid var(--amber);
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-4);
}

.desk-badge,
.taxonomy-desk .term-badge {
    display: inline-block;
    background: var(--ink);
    color: var(--bone);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
