/*
Theme Name: eQualitie Deflect Demo
Theme URI: https://equalitie.org
Author: eQualitie
Author URI: https://equalitie.org
Description: A bold demo theme using the exact eQualitie brand colours with Deflect product information.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: equalitie-deflect
Tags: blog, portfolio, custom-colors, custom-logo, full-width-template, sticky-post, translation-ready
*/

/* ============================================================
   1. DESIGN TOKENS — extracted pixel-by-pixel from equalitie.org
   ============================================================ */

:root {
    /* ── Core eQualitie palette ──────────────────────────────── */
    --eq-bg:            #f0f9ff;   /* page background: icy blue-white      */
    --eq-navy:          #003355;   /* primary: headings, logo, nav text     */
    --eq-navy-dark:     #00223a;   /* darker navy for pressed states        */
    --eq-navy-mid:      #0a4a6e;   /* mid shade for secondary text          */
    --eq-navy-light:    #e8f4fd;   /* very light navy tint — hover surfaces */

    --eq-orange:        #f45400;   /* accent: CTAs, underlines, dots        */
    --eq-orange-dark:   #c94300;   /* pressed / hover orange                */
    --eq-orange-light:  #fff1e1;   /* light orange tint for badge fill      */
    --eq-orange-glow:   rgba(244, 84, 0, 0.15);

    --eq-blue:          #2f8fb7;   /* icon strokes, secondary accents       */
    --eq-blue-light:    #e0f4fc;   /* icon background tint                  */

    --eq-white:         #ffffff;   /* card surfaces, nav background         */
    --eq-border:        #d0e8f5;   /* dividers, card borders                */
    --eq-border-dark:   #b0d4ea;   /* stronger borders on hover             */

    /* ── Text ────────────────────────────────────────────────── */
    --text-primary:     #003355;   /* navy — headings & strong copy         */
    --text-secondary:   #2d5f7a;   /* body paragraphs                       */
    --text-muted:       #6a93a8;   /* captions, metadata, placeholders      */
    --text-on-orange:   #ffffff;
    --text-on-navy:     #ffffff;

    /* ── Typography ──────────────────────────────────────────── */
    --font-display: 'Nunito', 'DM Sans', sans-serif;
    --font-body:    'Source Sans 3', 'DM Sans', 'Helvetica Neue', sans-serif;
    --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

    /* ── Spacing ──────────────────────────────────────────────── */
    --gap-xs:  0.5rem;
    --gap-sm:  1rem;
    --gap-md:  2rem;
    --gap-lg:  4rem;
    --gap-xl:  6rem;

    /* ── Shape ────────────────────────────────────────────────── */
    --r-sm:  4px;
    --r-md:  8px;
    --r-lg:  16px;
    --r-xl:  24px;

    /* ── Motion ───────────────────────────────────────────────── */
    --ease:   cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 150ms var(--ease);
    --t-mid:  300ms var(--ease);

    /* ── Shadows ──────────────────────────────────────────────── */
    --shadow-sm: 0 1px 4px rgba(0, 51, 85, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 51, 85, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 51, 85, 0.16);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--eq-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--eq-orange); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--eq-orange-dark); }
a:focus-visible { outline: 2px solid var(--eq-orange); outline-offset: 3px; border-radius: var(--r-sm); }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.12;
    color: var(--eq-navy);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.25rem; color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */

.container         { width: min(1200px, 100% - 3rem); margin-inline: auto; }
.container--narrow { width: min(760px,  100% - 3rem); margin-inline: auto; }
.container--wide   { width: min(1400px, 100% - 3rem); margin-inline: auto; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: var(--gap-md); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--gap-md); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   4. DECORATIVE HELPERS
   ============================================================ */

/*
 * The signature eQualitie decoration: a short, thick orange bar
 * under section headings (visible under "Our Focus" in the screenshot).
 * Add class .eq-section-title to any heading element.
 */
.eq-section-title {
    display: inline-block;
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
}

.eq-section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 48px; height: 4px;
    background: var(--eq-orange);
    border-radius: 2px;
}

/* Badge / pill label */
.eq-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 99px;
    border: 1px solid var(--eq-orange);
    color: var(--eq-orange);
    background: var(--eq-orange-light);
    margin-bottom: var(--gap-sm);
}

.eq-badge--navy {
    border-color: var(--eq-navy);
    color: var(--eq-navy);
    background: var(--eq-navy-light);
}

.eq-badge--blue {
    border-color: var(--eq-blue);
    color: var(--eq-blue);
    background: var(--eq-blue-light);
}

/* Decorative orange circle — appears as a visual accent in the live site */
.eq-dot {
    display: inline-block;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--eq-orange);
    flex-shrink: 0;
}

.eq-dot--lg { width: 52px; height: 52px; }

.eq-divider {
    border: none;
    height: 1px;
    background: var(--eq-border);
    margin: var(--gap-lg) 0;
}

/* ============================================================
   5. HEADER & NAVIGATION
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--eq-white);
    border-bottom: 1px solid var(--eq-border);
    box-shadow: var(--shadow-sm);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-md);
    padding: 1rem 0;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    text-decoration: none;
}

.site-header__logo img { height: 36px; width: auto; }

/* Text fallback that mirrors the live logo style */
.site-header__logo-text {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    color: var(--eq-navy);
    line-height: 1;
    text-decoration: none;
}

/* Orange underbar beneath the wordmark — visible in the screenshot */
.site-header__logo-text::after {
    content: '';
    display: block;
    width: 28px; height: 3px;
    background: var(--eq-orange);
    border-radius: 2px;
    margin-top: 3px;
}

/* Deflect product pill in the header */
.site-header__product-badge {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--eq-blue);
    border: 1px solid var(--eq-blue);
    border-radius: var(--r-sm);
    padding: 2px 7px;
    background: var(--eq-blue-light);
    margin-left: 0.5rem;
}

/* Primary nav */
.primary-nav { display: flex; align-items: center; gap: 0.1rem; }

.primary-nav a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--eq-navy);
    padding: 0.4rem 0.85rem;
    border-radius: var(--r-md);
    position: relative;
    transition: color var(--t-fast), background var(--t-fast);
}

/* Orange underline on hover/active — matches the live nav indicator */
.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 3px;
    background: var(--eq-orange);
    border-radius: 2px 2px 0 0;
    transition: width var(--t-mid);
}

.primary-nav a:hover { color: var(--eq-orange); }
.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after { width: calc(100% - 1.7rem); }
.primary-nav .current-menu-item > a { color: var(--eq-navy); font-weight: 700; }
.primary-nav .btn { margin-left: var(--gap-sm); }

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--r-sm);
}

.menu-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--eq-navy);
    border-radius: 1px;
    transition: var(--t-mid);
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .primary-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--eq-white);
        border-bottom: 2px solid var(--eq-orange);
        padding: var(--gap-sm) 1.5rem var(--gap-md);
        box-shadow: var(--shadow-md);
    }

    .primary-nav.is-open { display: flex; }

    .primary-nav a {
        font-size: 1rem;
        padding: 0.65rem 0;
        width: 100%;
        border-radius: 0;
        border-bottom: 1px solid var(--eq-border);
    }

    .primary-nav a::after { display: none; }
    .primary-nav a:last-child { border-bottom: none; }
}

/* ============================================================
   6. BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.7rem 1.5rem;
    border-radius: var(--r-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--t-mid), color var(--t-mid),
                border-color var(--t-mid), transform var(--t-fast), box-shadow var(--t-mid);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Orange fill — primary eQualitie CTA */
.btn-primary {
    background: var(--eq-orange);
    color: var(--text-on-orange);
    border-color: var(--eq-orange);
}

.btn-primary:hover {
    background: var(--eq-orange-dark);
    border-color: var(--eq-orange-dark);
    color: var(--text-on-orange);
    box-shadow: 0 4px 16px var(--eq-orange-glow);
}

/* Navy outline */
.btn-outline {
    background: transparent;
    color: var(--eq-navy);
    border-color: var(--eq-navy);
}

.btn-outline:hover {
    background: var(--eq-navy);
    color: var(--text-on-navy);
}

/* Ghost text button */
.btn-ghost {
    background: transparent;
    color: var(--eq-orange);
    border-color: transparent;
    padding-left: 0;
}

.btn-ghost:hover { color: var(--eq-orange-dark); }

/* Navy fill — for dark section CTAs */
.btn-navy {
    background: var(--eq-navy);
    color: var(--text-on-navy);
    border-color: var(--eq-navy);
}

.btn-navy:hover { background: var(--eq-navy-dark); border-color: var(--eq-navy-dark); }

/* White — for CTAs on navy backgrounds */
.btn-white {
    background: var(--eq-white);
    color: var(--eq-navy);
    border-color: var(--eq-white);
}

.btn-white:hover {
    background: var(--eq-orange);
    color: var(--eq-white);
    border-color: var(--eq-orange);
}

/* Outline on dark backgrounds */
.btn-outline-light {
    background: transparent;
    color: var(--eq-white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-light:hover { border-color: var(--eq-orange); color: var(--eq-orange); }

/* ============================================================
   7. HERO SECTION
   ============================================================ */

.hero {
    position: relative;
    overflow: hidden;
    padding: var(--gap-xl) 0 var(--gap-lg);
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: var(--eq-bg);
}

/* Dot-grid texture — clean and airy, consistent with eQualitie's light aesthetic */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,51,85,0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Large decorative orange circle bottom-right — matches the live site's orange dot accent */
.hero::after {
    content: '';
    position: absolute;
    bottom: -80px; right: -80px;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: var(--eq-orange);
    opacity: 0.07;
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
    align-items: center;
}

.hero__content { max-width: 600px; }

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    margin-bottom: var(--gap-md);
}

.hero__eyebrow-line {
    width: 36px; height: 3px;
    background: var(--eq-orange);
    border-radius: 2px;
}

.hero__eyebrow-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--eq-orange);
    font-weight: 600;
}

.hero__title    { margin-bottom: var(--gap-md); color: var(--eq-navy); }

.hero__description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: var(--gap-md);
    max-width: 520px;
    line-height: 1.75;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--gap-sm); align-items: center; }

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero__graphic {
    width: 100%;
    aspect-ratio: 1;
    max-width: 400px;
    border: 1px solid var(--eq-border);
    border-radius: var(--r-xl);
    background: var(--eq-white);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Orange top-bar on the graphic card */
.hero__graphic::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--eq-orange);
}

.hero__graphic img {
    width: 65%; height: auto;
    padding: var(--gap-md);
}

/* Decorative orange dot beside the graphic — mirroring live site */
.hero__visual .eq-dot--lg {
    position: absolute;
    bottom: -16px; right: -16px;
    opacity: 0.85;
}

@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { display: none; }
    .hero { min-height: auto; padding: var(--gap-lg) 0; }
}

/* ============================================================
   8. STATS BAR
   ============================================================ */

.stats-bar { background: var(--eq-navy); padding: var(--gap-md) 0; }

.stats-bar__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: var(--gap-md);
}

.stat { text-align: center; flex: 1; min-width: 140px; }

.stat__number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1;
    color: var(--eq-orange);
    letter-spacing: -0.03em;
}

.stat__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.65);
    margin-top: 0.35rem;
    font-family: var(--font-mono);
}

/* ============================================================
   9. SECTION STYLES
   ============================================================ */

.section           { padding: var(--gap-xl) 0; }
.section--white    { background: var(--eq-white); }
.section--navy     { background: var(--eq-navy); }
.section--navy p   { color: rgba(255,255,255,0.75); }
.section--navy h2,
.section--navy h3  { color: var(--eq-white); }

.section__header            { margin-bottom: var(--gap-lg); max-width: 640px; }
.section__header--center    { text-align: center; margin-inline: auto; }
.section__header--center .eq-section-title::after { left: 50%; transform: translateX(-50%); }

.section__title    { margin-bottom: 1rem; }
.section__subtitle { font-size: 1.1rem; color: var(--text-secondary); }

/* ============================================================
   10. FOCUS / FEATURE CARDS (matches the "Our Focus" card style)
   ============================================================ */

.focus-card {
    background: var(--eq-white);
    border: 1px solid var(--eq-border);
    border-radius: var(--r-lg);
    padding: var(--gap-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--t-mid), transform var(--t-mid), border-color var(--t-mid);
}

.focus-card::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 0;
    background: var(--eq-orange);
    transition: width var(--t-mid);
    border-radius: var(--r-lg) 0 0 var(--r-lg);
}

.focus-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--eq-orange);
}

.focus-card:hover::before { width: 4px; }

.focus-card__icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--eq-blue-light);
    border-radius: var(--r-md);
    margin-bottom: var(--gap-sm);
}

.focus-card__icon img,
.focus-card__icon svg { width: 28px; height: 28px; }

.focus-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--eq-navy);
    margin-bottom: 0.5rem;
}

.focus-card__text { font-size: 0.95rem; color: var(--text-secondary); }

/* ============================================================
   11. POST CARDS
   ============================================================ */

.card {
    background: var(--eq-white);
    border: 1px solid var(--eq-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--t-mid), transform var(--t-mid), box-shadow var(--t-mid);
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--eq-orange);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card__thumbnail {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--eq-navy-light);
    position: relative;
}

.card__thumbnail img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.card:hover .card__thumbnail img { transform: scale(1.04); }

.card__thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--eq-orange);
    opacity: 0;
    transition: opacity var(--t-mid);
}

.card:hover .card__thumbnail::after { opacity: 1; }

.card__body {
    padding: var(--gap-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card__meta {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    margin-bottom: var(--gap-sm);
    flex-wrap: wrap;
}

.card__category {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--eq-orange);
}

.card__date { font-size: 0.8rem; color: var(--text-muted); }

.card__title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-weight: 800;
}

.card__title a { color: var(--eq-navy); }
.card__title a:hover { color: var(--eq-orange); }

.card__excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex: 1;
    margin-bottom: var(--gap-sm);
}

.card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--gap-sm);
    border-top: 1px solid var(--eq-border);
    margin-top: auto;
}

.card__read-more {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--eq-orange);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.card__read-more::after { content: '→'; }
.card__read-more:hover  { color: var(--eq-orange-dark); }

/* ============================================================
   12. SINGLE POST CONTENT
   ============================================================ */

.entry-header {
    padding: var(--gap-lg) 0 var(--gap-md);
    border-bottom: 1px solid var(--eq-border);
    margin-bottom: var(--gap-lg);
}

.entry-header .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-sm);
    align-items: center;
    margin-bottom: var(--gap-sm);
}

.entry-meta__item {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.entry-meta__item a { color: var(--eq-orange); }

.entry-content {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 { color: var(--eq-navy); margin: 2rem 0 1rem; }

.entry-content h2 {
    padding-left: 1rem;
    border-left: 4px solid var(--eq-orange);
}

.entry-content p { margin-bottom: 1.5rem; }

.entry-content a {
    color: var(--eq-orange);
    border-bottom: 1px solid rgba(244,84,0,0.3);
}
.entry-content a:hover { color: var(--eq-orange-dark); border-bottom-color: var(--eq-orange-dark); }

.entry-content ul,
.entry-content ol {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.entry-content ol { list-style: decimal; }

.entry-content blockquote {
    border-left: 4px solid var(--eq-orange);
    padding: var(--gap-sm) var(--gap-md);
    margin: var(--gap-md) 0;
    background: var(--eq-orange-light);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--eq-navy);
}

.entry-content code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--eq-navy-light);
    color: var(--eq-navy);
    padding: 0.1em 0.4em;
    border-radius: var(--r-sm);
}

.entry-content pre {
    background: var(--eq-navy);
    border: 1px solid var(--eq-border-dark);
    border-radius: var(--r-md);
    padding: var(--gap-md);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.entry-content pre code {
    background: none;
    padding: 0;
    font-size: 0.875rem;
    color: var(--eq-orange);
}

.entry-content img {
    border-radius: var(--r-md);
    border: 1px solid var(--eq-border);
    margin: var(--gap-md) 0;
}

.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }

.entry-content th {
    background: var(--eq-navy);
    color: var(--eq-white);
    padding: 0.6rem 1rem;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--eq-orange);
}

.entry-content td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--eq-border);
    color: var(--text-secondary);
}

.entry-content tr:hover td { background: var(--eq-navy-light); }

.entry-footer {
    margin-top: var(--gap-lg);
    padding-top: var(--gap-md);
    border-top: 1px solid var(--eq-border);
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-sm);
    align-items: center;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag-list a {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border: 1px solid var(--eq-border-dark);
    border-radius: 99px;
    color: var(--text-muted);
    transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}

.tag-list a:hover {
    border-color: var(--eq-orange);
    color: var(--eq-orange);
    background: var(--eq-orange-light);
}

/* ============================================================
   13. ARCHIVE / BLOG LISTING
   ============================================================ */

.archive-header { padding: var(--gap-lg) 0 var(--gap-md); }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: var(--gap-md);
    margin-bottom: var(--gap-lg);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: var(--gap-lg) 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--eq-border);
    border-radius: var(--r-md);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--eq-white);
    transition: var(--t-fast);
}

.pagination a:hover {
    border-color: var(--eq-orange);
    color: var(--eq-orange);
}

.pagination .current {
    background: var(--eq-orange);
    border-color: var(--eq-orange);
    color: var(--eq-white);
    font-weight: 700;
}

/* ============================================================
   14. SIDEBAR & WIDGETS
   ============================================================ */

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--gap-lg);
    align-items: start;
}

@media (max-width: 960px) {
    .content-with-sidebar { grid-template-columns: 1fr; }
    .sidebar { order: -1; }
}

.widget {
    background: var(--eq-white);
    border: 1px solid var(--eq-border);
    border-radius: var(--r-lg);
    padding: var(--gap-md);
    margin-bottom: var(--gap-md);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--eq-navy);
    margin-bottom: var(--gap-sm);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--eq-orange);
    display: block;
    width: 100%;
}

/* ============================================================
   15. CTA BAND — Deflect section
   ============================================================ */

.cta-band {
    background: var(--eq-navy);
    padding: var(--gap-xl) 0;
    position: relative;
    overflow: hidden;
}

/* Decorative orange circles — eQualitie's signature dot motif on dark bg */
.cta-band::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: var(--eq-orange);
    opacity: 0.12;
    pointer-events: none;
}

.cta-band::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: var(--eq-orange);
    opacity: 0.08;
    pointer-events: none;
}

.cta-band__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
}

.cta-band__title  { color: var(--eq-white); margin-bottom: var(--gap-sm); }
.cta-band__desc   { color: rgba(255,255,255,0.75); margin-bottom: var(--gap-md); font-size: 1.1rem; }
.cta-band__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--gap-sm); }

/* ============================================================
   16. FOOTER
   ============================================================ */

.site-footer {
    background: var(--eq-navy);
    color: rgba(255,255,255,0.8);
    padding: var(--gap-lg) 0 var(--gap-md);
}

.site-footer__top {
    display: grid;
    grid-template-columns: 280px repeat(3, 1fr);
    gap: var(--gap-lg);
    margin-bottom: var(--gap-lg);
}

@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__top { grid-template-columns: 1fr; } }

.footer-brand__logo {
    height: 32px; width: auto;
    margin-bottom: var(--gap-sm);
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-brand__tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    margin-top: var(--gap-xs);
    line-height: 1.5;
}

.footer-brand__badges { display: flex; gap: var(--gap-xs); margin-top: var(--gap-sm); flex-wrap: wrap; }

.footer-brand__badges .eq-badge {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.08);
}

.footer-brand__badges .eq-badge--blue {
    border-color: rgba(47,143,183,0.5);
    color: #7ec8e3;
    background: rgba(47,143,183,0.1);
}

.footer-col__title {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--eq-orange);
    margin-bottom: var(--gap-sm);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: block;
}

.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer-nav a:hover { color: var(--eq-white); }

.site-footer__bottom {
    padding-top: var(--gap-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap-sm);
}

.site-footer__legal { font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.site-footer__legal a { color: rgba(255,255,255,0.45); }
.site-footer__legal a:hover { color: rgba(255,255,255,0.75); }

/* ============================================================
   17. FORMS
   ============================================================ */

.form-group { margin-bottom: var(--gap-sm); }

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--eq-navy);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    background: var(--eq-white);
    border: 1px solid var(--eq-border-dark);
    border-radius: var(--r-md);
    color: var(--eq-navy);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--eq-orange);
    box-shadow: 0 0 0 3px var(--eq-orange-glow);
}

.form-control::placeholder { color: var(--text-muted); }

.search-form { display: flex; gap: 0.5rem; }
.search-form .form-control { border-radius: var(--r-md) 0 0 var(--r-md); }
.search-form .btn          { border-radius: 0 var(--r-md) var(--r-md) 0; }

/* ============================================================
   18. COMMENTS
   ============================================================ */

.comments-area {
    margin-top: var(--gap-lg);
    padding-top: var(--gap-lg);
    border-top: 1px solid var(--eq-border);
}

.comments-title { font-size: 1.4rem; margin-bottom: var(--gap-md); }
.comment-list   { display: flex; flex-direction: column; gap: var(--gap-md); }

.comment {
    background: var(--eq-white);
    border: 1px solid var(--eq-border);
    border-radius: var(--r-lg);
    padding: var(--gap-md);
    box-shadow: var(--shadow-sm);
}

.comment__author {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    margin-bottom: var(--gap-sm);
}

.comment__author img {
    border-radius: 50%;
    width: 40px; height: 40px;
    border: 2px solid var(--eq-border);
}

.comment__author-name { font-weight: 700; font-size: 0.9rem; color: var(--eq-navy); }

.comment__date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.comment__text { font-size: 0.95rem; color: var(--text-secondary); }

/* ============================================================
   19. 404 PAGE
   ============================================================ */

.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--gap-xl) 0;
}

.error-404__code {
    font-family: var(--font-display);
    font-size: clamp(6rem, 20vw, 14rem);
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 3px var(--eq-orange);
    opacity: 0.15;
    user-select: none;
}

/* ============================================================
   20. SKIP LINK & ACCESSIBILITY
   ============================================================ */

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--eq-orange);
    color: var(--eq-white);
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: var(--r-md);
    z-index: 9999;
    font-size: 0.875rem;
}

.skip-link:focus { top: 1rem; }

/* ============================================================
   21. ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up { animation: fadeInUp 0.6s var(--ease) both; }
.animate-delay-1    { animation-delay: 0.1s; }
.animate-delay-2    { animation-delay: 0.2s; }
.animate-delay-3    { animation-delay: 0.3s; }

/* ============================================================
   22. WORDPRESS ALIGNMENT CLASSES
   ============================================================ */

.alignleft   { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright  { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }

.alignwide {
    margin-left:  calc(50% - 50vw + 1.5rem);
    margin-right: calc(50% - 50vw + 1.5rem);
}

.alignfull {
    margin-left:  calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

/* ============================================================
   23. RESPONSIVE UTILITIES
   ============================================================ */

@media (max-width: 768px) {
    :root { --gap-lg: 3rem; --gap-xl: 4rem; }
    .hide-mobile { display: none !important; }
    .section { padding: var(--gap-lg) 0; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}
