/*
Theme Name: DrSeinfeld Clinical Authority
Theme URI: https://drseinfeld.shop
Description: Mobile-first clinical authority theme for peptide and health education
Author: Ginspire Health LLC
Version: 3.0.0
Text Domain: drseinfeld-clinical
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Brand Colors */
    --blue: #0066CC;
    --blue-dark: #004A99;
    --blue-light: #E8F2FF;
    --blue-hover: #0055AA;
    --gold: #B8922E;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Semantic */
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --bg-primary: #ffffff;
    --bg-secondary: #F9FAFB;
    --border: #E5E7EB;
    --red: #EF4444;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --container-max: 1100px;
    --container-pad: 20px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 50px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ============================================
   HEADER / NAV (mobile-first)
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 12px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 13px;
    font-family: var(--font-body);
}

.site-logo__text {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.site-logo__badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--blue);
    background: var(--blue-light);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.02em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    background: var(--blue-light);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 0.15s;
}
.shop-link:hover { background: var(--blue); color: var(--white); }

.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 1px;
    transition: all 0.2s;
}
.mobile-toggle span:last-child { width: 14px; }

/* Desktop nav - hidden on mobile */
.main-nav {
    display: none;
    gap: 24px;
    align-items: center;
}
.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
}
.main-nav a:hover { color: var(--text-primary); }
.main-nav .nav-shop-btn {
    font-weight: 700;
    color: var(--blue);
}
.main-nav .nav-shop-btn:hover { color: var(--blue-dark); }

/* Mobile nav overlay */
.main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 62px;
    background: var(--white);
    padding: 24px 20px;
    gap: 0;
    z-index: 99;
    border-top: 1px solid var(--border);
}
.main-nav.is-open a {
    padding: 16px 0;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--gray-100);
    color: var(--text-primary);
}
.main-nav.is-open .nav-shop-btn {
    margin-top: 16px;
    background: var(--blue);
    color: var(--white);
    text-align: center;
    padding: 16px;
    border-radius: var(--radius-md);
    border-bottom: none;
}

/* Desktop search in header */
.header-search { display: none; }

@media (min-width: 768px) {
    .header-inner { padding: 16px 0; }
    .mobile-toggle { display: none; }
    .main-nav {
        display: flex !important;
        position: static;
        background: none;
        padding: 0;
        flex-direction: row;
    }
    .main-nav a {
        padding: 0;
        font-size: 14px;
        border-bottom: none;
    }
    .site-logo__text { font-size: 20px; }
    .header-search {
        display: flex;
        align-items: center;
        position: relative;
    }
    .header-search svg {
        position: absolute;
        left: 12px;
        width: 16px;
        height: 16px;
        color: var(--gray-400);
        pointer-events: none;
    }
    .header-search input {
        width: 180px;
        padding: 8px 12px 8px 36px;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-sm);
        font-size: 13px;
        font-family: var(--font-body);
        outline: none;
        transition: all 0.2s;
    }
    .header-search input:focus {
        border-color: var(--blue);
        box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
        width: 240px;
    }
    :root { --container-pad: 32px; }
}
@media (min-width: 1024px) {
    :root { --container-pad: 40px; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: 36px 0 28px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--blue-light);
    color: var(--blue);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
    display: inline-block;
}

.hero h1 {
    font-size: 32px;
    line-height: 1.12;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}
.hero h1 em {
    font-style: italic;
    color: var(--blue);
}

.hero__subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .hero {
        padding: 64px 0 48px;
        text-align: center;
    }
    .hero h1 { font-size: 48px; }
    .hero__subtitle {
        font-size: 17px;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 32px;
    }
}
@media (min-width: 1024px) {
    .hero { padding: 80px 0 56px; }
    .hero h1 { font-size: 52px; }
}

/* ============================================
   HERO SEARCH
   ============================================ */
.hero-search {
    position: relative;
    max-width: 560px;
    margin-bottom: 24px;
}
@media (min-width: 768px) {
    .hero-search { margin-left: auto; margin-right: auto; margin-bottom: 36px; }
}

.hero-search input {
    width: 100%;
    padding: 18px 60px 18px 20px;
    font-size: 16px;
    font-family: var(--font-body);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    outline: none;
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
    -webkit-appearance: none;
}
.hero-search input:focus {
    border-color: var(--blue);
    box-shadow: 0 4px 24px rgba(0,102,204,0.12);
}
.hero-search input::placeholder {
    color: var(--gray-400);
}

#heroSearchBtn {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    width: 48px;
    background: var(--blue);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
#heroSearchBtn:hover { background: var(--blue-dark); }
#heroSearchBtn svg { pointer-events: none; }

.search-results-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 360px;
    overflow-y: auto;
    z-index: 50;
}
.search-results-dropdown.active { display: block; }
.search-results-dropdown a {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.1s;
}
.search-results-dropdown a:hover { background: var(--blue-light); }
.search-results-dropdown a:last-child { border-bottom: none; }
.search-results-dropdown .search-cat {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

/* ============================================
   TRUST BADGES
   ============================================ */
.trust-badges {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.trust-badges::-webkit-scrollbar { display: none; }

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}
.trust-badge__icon { font-size: 14px; }

@media (min-width: 768px) {
    .trust-badges { justify-content: center; gap: 32px; overflow: visible; }
}

/* ============================================
   CATEGORY PILLS (horizontal scroll)
   ============================================ */
.category-pills {
    padding: 16px 0 20px;
}
.category-pills__track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.category-pills__track::-webkit-scrollbar { display: none; }

.category-pill {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    transition: all 0.15s;
    display: inline-block;
}
.category-pill--active {
    background: var(--blue);
    color: var(--white);
}
.category-pill--inactive {
    background: var(--gray-100);
    color: var(--gray-600);
}
.category-pill--inactive:hover {
    background: var(--gray-200);
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .category-pills { padding: 0 0 28px; }
    .category-pills__track { justify-content: center; flex-wrap: wrap; overflow: visible; }
}

/* ============================================
   SECTION HELPERS
   ============================================ */
.section { padding: 32px 0; }
.section--cream { background: var(--gray-50); }
.section__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}
.section__header h2 {
    font-size: 22px;
    margin: 0;
}
.section__header a {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
}

@media (min-width: 768px) {
    .section { padding: 48px 0; }
    .section__header h2 { font-size: 28px; }
}

/* ============================================
   TOPIC CARDS (Explore by Topic grid)
   ============================================ */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.topic-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}
.topic-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.topic-card__icon {
    width: 40px;
    height: 40px;
    background: var(--blue-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.topic-card__icon svg {
    width: 20px;
    height: 20px;
    color: var(--blue);
}

.topic-card h3 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.topic-card p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}
.topic-card__link {
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
}

@media (min-width: 768px) {
    .topic-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .topic-card { padding: 24px; }
    .topic-card h3 { font-size: 16px; }
}
@media (min-width: 1024px) {
    .topic-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ============================================
   ARTICLE CARDS (mobile: stack, desktop: grid)
   ============================================ */
.article-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s;
    position: relative;
}
.article-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.article-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--gray-100);
}
.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.article-card:hover .article-card__image img {
    transform: scale(1.03);
}

.article-card__body { padding: 16px 18px 18px; }

.article-card__cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}
.article-card__cat a {
    color: var(--blue);
    text-decoration: none;
}

.article-card__title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}
.article-card__title a {
    color: var(--text-primary);
    text-decoration: none;
}
.article-card__title a:hover { color: var(--blue); }

.article-card__excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.article-card__trending {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--red);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

/* Featured card on homepage (first article) */
.article-card--featured .article-card__title { font-size: 20px; }

@media (min-width: 768px) {
    .article-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .article-card--featured {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .article-card--featured .article-card__image { aspect-ratio: auto; }
    .article-card--featured .article-card__body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
    .article-card--featured .article-card__title { font-size: 24px; }
    .article-card--featured .article-card__excerpt { -webkit-line-clamp: 3; }
    .article-card__title { font-size: 18px; }
}
@media (min-width: 1024px) {
    .article-grid { grid-template-columns: repeat(3, 1fr); }
    .article-card--featured { grid-column: span 3; grid-template-columns: 1.2fr 1fr; }
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    padding: 36px 0;
    text-align: center;
}
.cta-banner h2 {
    font-size: 22px;
    color: var(--white);
    margin-bottom: 10px;
}
.cta-banner p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    max-width: 480px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    background: var(--white);
    color: var(--blue-dark);
    font-weight: 700;
    font-size: 15px;
    font-family: var(--font-body);
    padding: 16px 32px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}
.btn-primary:hover { background: var(--gray-50); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-primary--blue {
    background: var(--blue);
    color: var(--white);
}
.btn-primary--blue:hover { background: var(--blue-dark); }

.btn-primary--full {
    width: 100%;
    text-align: center;
}

.btn-outline-light {
    display: inline-block;
    background: transparent;
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    font-family: var(--font-body);
    padding: 16px 32px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255,255,255,0.4);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); color: var(--white); }

@media (min-width: 768px) {
    .cta-banner { padding: 56px 0; border-radius: var(--radius-lg); margin: 0 var(--container-pad) 40px; }
    .cta-banner h2 { font-size: 28px; }
    .cta-banner p { font-size: 15px; }
}

/* ============================================
   ARTICLE HEADER (single post)
   ============================================ */
.article-header {
    padding: 28px 0 20px;
}
.article-header__cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
    display: block;
}
.article-header__cat a { color: inherit; text-decoration: none; }
.article-header h1 {
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 16px;
}
.article-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .article-header { padding: 48px 0 28px; max-width: 720px; margin: 0 auto; }
    .article-header h1 { font-size: 40px; }
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--blue);
    z-index: 200;
    transition: width 0.1s linear;
    width: 0%;
}

/* ============================================
   ARTICLE CONTENT
   ============================================ */
.content-layout {
    display: flex;
    gap: 40px;
}
.content-layout main { flex: 1; min-width: 0; }
.content-layout .sidebar { display: none; }

@media (min-width: 1024px) {
    .content-layout .sidebar { display: block; width: 300px; flex-shrink: 0; }
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-700);
}
.article-content h2 {
    font-size: 24px;
    margin: 2rem 0 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-200);
}
.article-content h3 {
    font-size: 19px;
    margin: 1.5rem 0 0.5rem;
}
.article-content p { margin-bottom: 1rem; }
.article-content ul, .article-content ol {
    margin: 0.75rem 0 1rem 1.5rem;
}
.article-content li { margin-bottom: 0.4rem; }
.article-content strong { color: var(--text-primary); font-weight: 600; }
.article-content em { font-style: italic; }
.article-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: var(--blue-dark); }
.article-content blockquote {
    border-left: 3px solid var(--blue);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--blue-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--gray-600);
}
.article-content sup {
    font-size: 0.7em;
    color: var(--blue);
    font-weight: 600;
}
.article-content img {
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

@media (min-width: 768px) {
    .article-content { font-size: 17px; }
    .article-content h2 { font-size: 28px; }
    .article-content h3 { font-size: 22px; }
}

/* ============================================
   PRODUCT BUY BOX (auto-inserted)
   ============================================ */
.product-box {
    border: 2px solid var(--blue);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 2rem 0;
    background: var(--white);
}
.product-box__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue);
    margin-bottom: 14px;
}
.product-box__body {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.product-box__image {
    width: 100px;
    flex-shrink: 0;
}
.product-box__image img {
    width: 100%;
    border-radius: var(--radius-sm);
}
.product-box__name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.product-box__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.product-box__price del {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 14px;
}
.product-box__features {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.btn-add-to-cart {
    display: inline-block;
    background: var(--blue);
    color: var(--white) !important;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-body);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.15s;
}
.btn-add-to-cart:hover { background: var(--blue-dark); color: var(--white) !important; }

.product-box__note {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ============================================
   CONSULTATION BOX
   ============================================ */
.consult-box {
    border: 2px solid var(--blue);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    background: var(--blue-light);
    margin: 2rem 0;
}
.consult-box__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 6px;
}
.consult-box__sub {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.5;
}
.btn-consult {
    display: inline-block;
    background: var(--blue);
    color: var(--white) !important;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-body);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.15s;
}
.btn-consult:hover { background: var(--blue-dark); color: var(--white) !important; }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar-widget {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar-widget__title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.sidebar-newsletter input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-body);
    margin-bottom: 8px;
    outline: none;
}
.sidebar-newsletter input:focus { border-color: var(--blue); }
.sidebar-newsletter button {
    width: 100%;
    padding: 12px;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.15s;
}
.sidebar-newsletter button:hover { background: var(--blue-dark); }

.sidebar-product {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    text-decoration: none;
    color: var(--text-primary);
}
.sidebar-product:last-child { border-bottom: none; }
.sidebar-product__img { width: 50px; flex-shrink: 0; }
.sidebar-product__img img { border-radius: 6px; }
.sidebar-product__name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.sidebar-product__price { font-size: 13px; font-weight: 700; color: var(--blue); }
.sidebar-product__link { font-size: 11px; font-weight: 600; color: var(--blue); }

.popular-article {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
}
.popular-article:last-child { border-bottom: none; }
.popular-article__num {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--blue-light);
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
}
.popular-article__title a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.35;
}
.popular-article__title a:hover { color: var(--blue); }

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    padding: 8px 0;
    font-size: 12px;
    color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .sep { margin: 0 6px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 40px 0 24px;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.footer-grid h4 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.footer-grid a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    padding: 4px 0;
    font-size: 13px;
    transition: color 0.15s;
}
.footer-grid a:hover { color: var(--white); }

.footer-brand__name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.footer-brand__desc {
    font-size: 13px;
    line-height: 1.6;
    max-width: 280px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: var(--gray-500);
}

.footer-disclaimer {
    font-size: 11px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ============================================
   ARCHIVE / CATEGORY HEADER
   ============================================ */
.archive-header {
    padding: 28px 0 8px;
}
.archive-header__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.archive-header h1 {
    font-size: 28px;
}
.archive-header__desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 8px;
}

@media (min-width: 768px) {
    .archive-header { padding: 48px 0 16px; }
    .archive-header h1 { font-size: 36px; }
}

/* ============================================
   SEARCH RESULTS PAGE
   ============================================ */
.search-header {
    padding: 28px 0 16px;
}
.search-header h1 { font-size: 24px; }
.search-header__query { color: var(--blue); }

/* ============================================
   404
   ============================================ */
.page-404 {
    text-align: center;
    padding: 64px 0;
}
.page-404 h1 { font-size: 56px; color: var(--gray-200); margin-bottom: 8px; }
.page-404 h2 { font-size: 24px; margin-bottom: 12px; }
.page-404 p { color: var(--text-secondary); margin-bottom: 24px; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination { padding: 2rem 0 0; text-align: center; }
.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--gray-100);
    text-decoration: none;
    transition: all 0.15s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--blue);
    color: var(--white);
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}
.comments-section h3 { font-size: 20px; margin-bottom: 1rem; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}
.comment-author { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.comment-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.comment-content p { font-size: 14px; color: var(--gray-600); }
.comment-respond { margin-top: 1.5rem; }
.comment-respond h3 { font-size: 18px; }
.comment-respond input,
.comment-respond textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-body);
    margin-bottom: 10px;
    outline: none;
}
.comment-respond input:focus,
.comment-respond textarea:focus { border-color: var(--blue); }
.comment-respond .submit {
    background: var(--blue);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
}
.comment-respond .submit:hover { background: var(--blue-dark); }

/* ============================================
   PAGE TEMPLATE STYLES
   ============================================ */
.page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 0;
}
.page-content h1 { font-size: 32px; margin-bottom: 1rem; }
.page-content h2 { font-size: 24px; margin: 2rem 0 0.75rem; }
.page-content p { font-size: 16px; line-height: 1.8; color: var(--gray-700); margin-bottom: 1rem; }

@media (min-width: 768px) {
    .page-content { padding: 48px 0; }
    .page-content h1 { font-size: 40px; }
}

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================
   TRUST BAR (above footer)
   ============================================ */
.trust-bar {
    background: var(--gray-50);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}
.trust-bar .container {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.trust-bar__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    white-space: nowrap;
}
.trust-bar__item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--blue);
}

@media (max-width: 767px) {
    .trust-bar .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .trust-bar__item { font-size: 12px; }
}

/* ============================================
   FOOTER LEGACY COMPAT
   ============================================ */
.footer-about__logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}
.footer-about__logo span { color: var(--blue); }
.footer-about p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
}
.footer-col h5 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0; }
.footer-consult-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    background: var(--blue);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
}
.footer-consult-btn:hover { background: var(--blue-dark); color: var(--white); }
