/*
Theme Name: Eco Kadence Child
Theme URI: https://eco.nfl-therapy.com/
Description: Custom Emerald Titanium & Warm Ivory engineering child theme for NextGen Facility & Lighting (Kadence parent). Zero-CLS, 1-Line Header, pure technical typography.
Author: Marcus Lindqvist, PE, CEM
Author URI: https://eco.nfl-therapy.com/author/marcus-lindqvist/
Template: kadence
Version: 1.0.0
Text Domain: eco-kadence-child
*/

:root {
    --nfl-titanium-dark: #0b1f1a;
    --nfl-titanium-deep: #071512;
    --nfl-emerald-primary: #047857;
    --nfl-emerald-hover: #065f46;
    --nfl-emerald-soft: #ecfdf5;
    --nfl-solar-gold: #f59e0b;
    --nfl-solar-gold-light: #fbbf24;
    --nfl-warm-ivory: #f7f9f7;
    --nfl-card-bg: #ffffff;
    --nfl-text-main: #111827;
    --nfl-text-muted: #4b5563;
    --nfl-border: #d1fae5;
    --nfl-border-subtle: #e2e8f0;
}

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

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--nfl-warm-ivory) !important;
    color: var(--nfl-text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16.5px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

/* --- Strict 0 Images & 0 Tables inside Articles & Archives (Zero CLS Rule) --- */
.nfl-article-body img,
.nfl-article-body picture,
.nfl-article-body figure,
.nfl-article-body table,
.nfl-archive-card img,
.nfl-archive-card figure,
.entry-content img,
.entry-content table,
.post-thumbnail {
    display: none !important;
}

/* --- 1-Line Emerald Titanium Header (Desktop & Mobile) --- */
.nfl-one-line-header {
    background: linear-gradient(180deg, #0b1f1a 0%, #071512 100%);
    border-bottom: 2px solid var(--nfl-emerald-primary);
    box-shadow: 0 3px 12px rgba(7, 21, 18, 0.18);
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
}

.nfl-header-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nfl-brand-wrap {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.nfl-brand-logo {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nfl-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1 1 auto;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.nfl-nav-links::-webkit-scrollbar {
    display: none;
}

.nfl-nav-links li {
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.nfl-nav-links a {
    display: inline-block;
    padding: 6px 11px;
    color: #f7f9f7;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 5px;
    border: 1px solid rgba(16, 185, 129, 0.22);
    background: rgba(4, 120, 87, 0.18);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nfl-nav-links a:hover,
.nfl-nav-links a.active {
    background: var(--nfl-emerald-primary);
    border-color: var(--nfl-solar-gold-light);
    color: #ffffff;
}

.nfl-inline-search {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    background: #112a24;
    border: 1px solid rgba(251, 191, 36, 0.45);
    border-radius: 6px;
    overflow: hidden;
    height: 34px;
}

.nfl-inline-search input[type="search"] {
    background: transparent;
    border: none;
    color: #f7f9f7;
    padding: 0 10px;
    font-size: 12.5px;
    width: 155px;
    height: 100%;
    outline: none;
}

.nfl-inline-search input[type="search"]::placeholder {
    color: #9ca3af;
}

.nfl-inline-search button {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    color: #0b1f1a;
    border: none;
    padding: 0 11px;
    height: 100%;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nfl-inline-search button:hover {
    background: var(--nfl-solar-gold-light);
}

/* Mobile 1-Line Header Compact Scaling */
@media (max-width: 960px) {
    .nfl-header-inner {
        padding: 6px 8px;
        gap: 6px;
    }
    .nfl-brand-logo {
        height: 30px;
    }
    .nfl-nav-links {
        gap: 4px;
        justify-content: flex-start;
    }
    .nfl-nav-links a {
        padding: 4px 7px;
        font-size: 11px;
    }
    .nfl-inline-search {
        height: 28px;
    }
    .nfl-inline-search input[type="search"] {
        width: 82px;
        font-size: 11px;
        padding: 0 6px;
    }
    .nfl-inline-search button {
        padding: 0 7px;
        font-size: 10.5px;
    }
}

/* --- Main Container & Engineering Layout --- */
.nfl-main-wrap {
    max-width: 1160px;
    margin: 28px auto 52px;
    padding: 0 18px;
}

.nfl-hero-strip {
    background: linear-gradient(135deg, #0b1f1a 0%, #064e3b 100%);
    color: #f7f9f7;
    padding: 22px 26px;
    border-radius: 10px;
    border-left: 5px solid var(--nfl-solar-gold);
    margin-bottom: 26px;
    box-shadow: 0 4px 14px rgba(11, 31, 26, 0.08);
}

.nfl-hero-strip h1 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.nfl-hero-strip p {
    margin: 0;
    font-size: 14px;
    color: #d1fae5;
    line-height: 1.55;
}

/* --- Pure Text-Only Zero-CLS Archive Grid --- */
.nfl-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .nfl-archive-grid {
        grid-template-columns: 1fr;
    }
}

.nfl-archive-card {
    background: var(--nfl-card-bg);
    border: 1px solid var(--nfl-border-subtle);
    border-top: 3px solid var(--nfl-emerald-primary);
    border-radius: 8px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(11, 31, 26, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nfl-archive-card:hover {
    border-color: var(--nfl-emerald-primary);
    box-shadow: 0 6px 16px rgba(11, 31, 26, 0.08);
}

.nfl-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--nfl-text-muted);
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.nfl-cat-badge {
    background: var(--nfl-emerald-soft);
    color: var(--nfl-emerald-primary);
    border: 1px solid #a7f3d0;
    padding: 2px 9px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11.5px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nfl-archive-card h2 {
    margin: 0 0 10px;
    font-size: 18.5px;
    line-height: 1.38;
    font-weight: 700;
}

.nfl-archive-card h2 a {
    color: var(--nfl-titanium-dark);
    text-decoration: none;
}

.nfl-archive-card h2 a:hover {
    color: var(--nfl-emerald-primary);
}

.nfl-card-excerpt {
    font-size: 14.5px;
    color: #374151;
    line-height: 1.62;
    margin: 0 0 14px;
}

.nfl-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 11px;
    font-size: 12.5px;
    color: var(--nfl-text-muted);
}

.nfl-read-more {
    color: var(--nfl-emerald-primary);
    font-weight: 700;
    text-decoration: none;
}

.nfl-read-more:hover {
    text-decoration: underline;
}

/* --- Single Article View (Zero CLS, High-Authority Technical Typography) --- */
.nfl-single-article {
    background: var(--nfl-card-bg);
    border: 1px solid var(--nfl-border-subtle);
    border-top: 4px solid var(--nfl-titanium-dark);
    border-radius: 10px;
    padding: 36px 44px;
    max-width: 920px;
    margin: 0 auto;
    box-shadow: 0 4px 18px rgba(11, 31, 26, 0.05);
}

@media (max-width: 768px) {
    .nfl-single-article {
        padding: 22px 18px;
    }
}

.nfl-article-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 26px;
}

.nfl-article-title {
    margin: 12px 0 14px;
    font-size: 29px;
    line-height: 1.28;
    color: var(--nfl-titanium-dark);
    font-weight: 800;
    letter-spacing: -0.015em;
}

@media (max-width: 768px) {
    .nfl-article-title {
        font-size: 23px;
    }
}

.nfl-byline {
    font-size: 13.5px;
    color: var(--nfl-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.nfl-byline strong {
    color: var(--nfl-titanium-dark);
}

.nfl-article-body h2 {
    font-size: 22.5px;
    line-height: 1.35;
    color: var(--nfl-titanium-dark);
    margin: 30px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #d1fae5;
    font-weight: 800;
}

.nfl-article-body h3 {
    font-size: 19px;
    line-height: 1.4;
    color: #064e3b;
    margin: 28px 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--nfl-emerald-primary);
    font-weight: 700;
}

.nfl-article-body h4 {
    font-size: 16.5px;
    line-height: 1.45;
    color: var(--nfl-titanium-dark);
    margin: 20px 0 8px;
    font-weight: 700;
}

.nfl-article-body p {
    margin: 0 0 18px;
    color: #1f2937;
    font-size: 16.5px;
    line-height: 1.76;
}

.nfl-article-body ul,
.nfl-article-body ol {
    margin: 0 0 22px;
    padding-left: 24px;
}

.nfl-article-body li {
    margin-bottom: 10px;
    color: #1f2937;
    line-height: 1.7;
}

.nfl-article-body li strong {
    color: var(--nfl-titanium-dark);
}

/* Contextual Internal Engineering Link Callout */
.internal-context-link {
    display: inline;
    background-color: #ecfdf5;
    border-bottom: 2px solid #047857;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.internal-context-link a {
    color: #065f46;
    text-decoration: none;
    font-weight: 700;
}

.internal-context-link a:hover {
    color: #0b1f1a;
    text-decoration: underline;
}

/* Author Bio Box */
.nfl-author-box {
    margin-top: 34px;
    padding: 20px 24px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 5px solid var(--nfl-emerald-primary);
    border-radius: 8px;
}

.nfl-author-box h4 {
    margin: 0 0 6px;
    font-size: 15.5px;
    color: var(--nfl-titanium-dark);
}

.nfl-author-box p {
    margin: 0;
    font-size: 13.8px;
    color: #374151;
    line-height: 1.6;
}

/* Pagination */
.nfl-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nfl-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid var(--nfl-border-subtle);
    color: var(--nfl-titanium-dark);
    font-weight: 700;
    font-size: 13.5px;
    border-radius: 6px;
    text-decoration: none;
}

.nfl-pagination .page-numbers.current,
.nfl-pagination .page-numbers:hover {
    background: var(--nfl-emerald-primary);
    color: #ffffff;
    border-color: var(--nfl-emerald-primary);
}

/* --- Footer --- */
.nfl-site-footer {
    background: var(--nfl-titanium-dark);
    color: #d1d5db;
    border-top: 3px solid var(--nfl-emerald-primary);
    padding: 36px 18px 28px;
    margin-top: 60px;
}

.nfl-footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.nfl-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.nfl-footer-menu a {
    color: #f7f9f7;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
}

.nfl-footer-menu a:hover {
    color: var(--nfl-solar-gold-light);
    text-decoration: underline;
}

.nfl-footer-copy {
    font-size: 12.5px;
    color: #9ca3af;
    max-width: 780px;
    line-height: 1.6;
}
