/*!
Theme Name: MC Warren
Theme URI: https://mcwarren.com
Author: Michael-Christopher Warren
Description: Government Affairs & External Affairs professional theme for Michael-Christopher Warren.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: Proprietary
Text Domain: mcwarren
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --mcw-primary: #041534;
    --mcw-primary-container: #1b2a4a;
    --mcw-secondary: #755b00;
    --mcw-gold: #C9A84C;
    --mcw-surface: #fdf9f2;
    --mcw-on-primary: #ffffff;
    --mcw-on-surface: #1c1c18;
    --mcw-on-surface-variant: #45464e;
    --mcw-secondary-fixed: #ffe08f;
    --mcw-outline-variant: #c5c6cf;
}

/* ============================================================
   BASE
   ============================================================ */
body::selection,
body *::selection {
    background: rgba(117, 91, 0, 0.2);
}

/* ============================================================
   SITE WRAPPER
   ============================================================ */
.mcw-site {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--mcw-surface);
    color: var(--mcw-on-surface);
}

/* ============================================================
   HERO TEXTURE
   ============================================================ */
.mcw-hero-rule {
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 48px,
        rgba(255, 255, 255, 0.03) 49px,
        transparent 50px
    );
}

/* ============================================================
   DOT GRID
   ============================================================ */
.mcw-dot-grid {
    background-image: radial-gradient(
        circle,
        rgba(201, 168, 76, 0.15) 1px,
        transparent 1px
    );
    background-size: 24px 24px;
}

/* ============================================================
   EDITORIAL ASYMMETRY GRID
   ============================================================ */
.mcw-editorial-asymmetry {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .mcw-editorial-asymmetry {
        grid-template-columns: 1fr 1.5fr;
    }
}

/* ============================================================
   MATERIAL SYMBOLS
   ============================================================ */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

/* ============================================================
   FILTER LINKS
   ============================================================ */
.mcw-filter-link {
    position: relative;
}

.mcw-filter-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--mcw-gold);
    transition: width 0.3s ease;
}

.mcw-filter-link.active::after {
    width: 100%;
}

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.mcw-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 100;
    background: transparent;
}

.mcw-progress-bar {
    height: 3px;
    background-color: #C9A84C;
    width: 0;
    transition: width 0.1s linear;
}

/* ============================================================
   DROP CAP
   ============================================================ */
.mcw-drop-cap::first-letter {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    line-height: 1;
    padding-right: 12px;
    color: #C9A84C;
    font-weight: 700;
    margin-top: 0.05em;
}

/* ============================================================
   ARTICLE CONTENT
   ============================================================ */
.mcw-article-content p {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--mcw-on-surface);
}

.mcw-article-content h2,
.mcw-article-content h3 {
    position: relative;
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.mcw-article-content h2::before,
.mcw-article-content h3::before {
    content: '';
    display: block;
    width: 2.5rem;
    height: 2px;
    background-color: var(--mcw-gold);
    margin-bottom: 1rem;
}

.mcw-article-content blockquote {
    padding-left: 2rem;
    border-left: 4px solid var(--mcw-secondary);
    background-color: #f7f3ec;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    padding-right: 2.5rem;
    font-style: italic;
    font-family: 'Newsreader', serif;
    font-size: 1.5rem;
    line-height: 1.4;
    margin: 2rem 0;
}

.mcw-article-content .wp-block-pullquote {
    background-color: var(--mcw-primary);
    padding: 3rem;
    color: #ffffff;
    margin: 2rem 0;
}

/* ============================================================
   GLASS NAV
   ============================================================ */
.mcw-glass-nav {
    background: rgba(253, 249, 242, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ============================================================
   SINGLE POST TYPOGRAPHY (Playfair Display overrides)
   ============================================================ */
.mcw-single-post .font-headline,
.mcw-single-post h1,
.mcw-single-post h2,
.mcw-single-post h3 {
    font-family: 'Playfair Display', serif;
}

/* ============================================================
   SINGLE ARTICLE — BACK NAV BAR
   ============================================================ */
.mcw-article-nav-bar {
    max-width: 680px;
    margin: 24px auto 40px;
    padding: 0 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mcw-back-link {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(27, 42, 74, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.mcw-back-link:hover { color: #C9A84C; }

.mcw-article-cat-tag {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C9A84C;
    text-decoration: none;
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 6px 12px;
}

/* ============================================================
   SINGLE ARTICLE — GOLD RULE
   ============================================================ */
.mcw-article-rule {
    width: 100%;
    height: 1px;
    background: #C9A84C;
    margin: 40px 0;
    opacity: 0.4;
}

/* ============================================================
   SINGLE ARTICLE — BODY TYPOGRAPHY
   ============================================================ */
.mcw-article-body {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.85;
    color: #4a5568;
    max-width: 680px;
    margin: 0 auto;
}

.mcw-article-body p {
    margin-bottom: 28px;
}

.mcw-article-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: #1B2A4A;
    margin-top: 56px;
    margin-bottom: 20px;
    padding-top: 24px;
    border-top: 1px solid #C9A84C;
}

.mcw-article-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: #1B2A4A;
    margin-top: 40px;
    margin-bottom: 16px;
}

.mcw-article-body strong {
    font-weight: 600;
    color: #1B2A4A;
}

.mcw-article-body em {
    color: #1B2A4A;
}

.mcw-article-body blockquote {
    margin: 40px 0;
    padding: 24px 32px;
    border-left: 3px solid #C9A84C;
    background: #F5F1EA;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
    color: #1B2A4A;
}

.mcw-article-body ol,
.mcw-article-body ul {
    margin: 28px 0;
    padding-left: 0;
    list-style: none;
}

.mcw-article-body ol {
    counter-reset: mcw-counter;
}

.mcw-article-body ol li {
    counter-increment: mcw-counter;
    padding-left: 40px;
    position: relative;
    margin-bottom: 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    line-height: 1.75;
}

.mcw-article-body ol li::before {
    content: counter(mcw-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: #C9A84C;
    top: 4px;
    letter-spacing: 0.1em;
}

.mcw-article-body ul li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
}

.mcw-article-body ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #C9A84C;
    font-family: 'DM Mono', monospace;
}

/* ============================================================
   SINGLE ARTICLE — DROP CAP
   ============================================================ */
.mcw-article-body > p:first-of-type::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    font-weight: 700;
    color: #C9A84C;
    float: left;
    line-height: 0.75;
    margin-right: 8px;
    margin-top: 8px;
}

/* ============================================================
   SINGLE ARTICLE — CALLOUT BOX
   ============================================================ */
.mcw-callout {
    background: #1B2A4A;
    padding: 32px 40px;
    margin: 40px 0;
}

.mcw-callout-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C9A84C;
    margin-bottom: 12px;
    display: block;
}

.mcw-callout p {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ============================================================
   SINGLE ARTICLE — BY APPOINTMENT ONLY SPECIFICITY FIX
   ============================================================ */
body.single .mcw-by-appointment,
body.single footer .mcw-by-appointment {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45) !important;
    display: inline !important;
    visibility: visible !important;
}

/* ============================================================
   INTELLIGENCE — GRID (3 columns)
   ============================================================ */
.mcw-intel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

@media (max-width: 1024px) {
    .mcw-intel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .mcw-intel-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   INTELLIGENCE — CARD EXCERPT
   ============================================================ */
.mcw-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

/* ============================================================
   INTELLIGENCE — READ TIME
   ============================================================ */
.mcw-read-time {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(27, 42, 74, 0.4);
    display: block;
    margin-top: 12px;
}

/* ============================================================
   INTELLIGENCE — FORTHCOMING CARDS
   ============================================================ */
.mcw-card--forthcoming {
    cursor: default;
    pointer-events: none;
}

.mcw-card--forthcoming .mcw-card-title {
    font-style: italic;
    color: rgba(27, 42, 74, 0.25);
    font-weight: 400;
}

.mcw-card--forthcoming .mcw-card-excerpt {
    color: rgba(27, 42, 74, 0.2);
}

/* ============================================================
   INTELLIGENCE — NO POSTS EMPTY STATE
   ============================================================ */
.mcw-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 20px;
    color: rgba(27, 42, 74, 0.35);
}

/* ============================================================
   REGULATOR INDEX — HERO SUBHEAD (Fix 1)
   ============================================================ */
.mcw-ri-subhead {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 22px;
    color: #C9A84C !important;
    display: block;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ============================================================
   REGULATOR INDEX — STATE GRID LABEL (Fix 2)
   ============================================================ */
.mcw-state-label {
    color: rgba(27, 42, 74, 0.65);
    font-size: 15px;
}

@media (max-width: 640px) {
    .mcw-state-label {
        font-size: 13px;
    }
}

/* ============================================================
   CUSTOMIZER IMAGES — PHOTO & PLACEHOLDER CLASSES
   ============================================================ */
.mcw-photo-placeholder {
    position: relative;
    display: block;
}

.mcw-hero-photo {
    background-color: #1b2a4a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcw-hero-photo span {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(253, 249, 242, 0.2);
}

.mcw-about-photo {
    background-color: #ece8e1;
}

.mcw-about-hero-photo {
    background-color: #ece8e1;
    min-height: 300px;
}

.mcw-author-photo-placeholder {
    background-color: #041534;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ============================================================
   FOOTER — BY APPOINTMENT ONLY (Fix 5)
   ============================================================ */
.mcw-by-appointment {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}
