/* ═══════════════════════════════════════════
   Database Experts — Theme Stylesheet
   ═══════════════════════════════════════════ */

:root {
    /* Background hierarchy */
    --bg:           #ffffff;
    --bg-elevated:  #f7f8fa;
    --bg-card:      #ffffff;
    --bg-card-hover:#fafbfc;

    /* Borders */
    --border:       rgba(0,0,0,0.08);
    --border-accent:rgba(180,116,32,0.25);

    /* Text hierarchy */
    --text:         #1a1f2e;
    --text-muted:   #5a6578;
    --text-dim:     #939dae;

    /* Accent */
    --accent:       #c47b1a;
    --accent-light: #d4943a;
    --accent-glow:  rgba(196,123,26,0.08);
    --accent-blue:  #2d6fc5;
    --accent-blue-glow: rgba(45,111,197,0.06);

    /* Typography */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono:    'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    /* Layout */
    --container:    1200px;
    --container-narrow: 760px;
    --radius:       12px;
    --radius-sm:    8px;
}


/* ─── Reset & Base ─── */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Noise — subtle texture on light bg */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s;
}

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

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal !important;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.container--narrow {
    max-width: var(--container-narrow);
}


/* ─── Navigation ─── */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1rem 0;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}

.site-nav.scrolled {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #1a1f2e, #2d3548);
    border-radius: 8px;
    color: var(--accent);
}

.logo-text {
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
}

.logo-text strong {
    font-weight: 700;
}

.logo-text em {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}

/* WordPress menu output: ul.nav-links > li > a */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    display: block;
    padding: 0.5rem 1.1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.25s;
}

.nav-links li a:hover,
.nav-links li.current_page_item a,
.nav-links li.current-menu-item a {
    color: var(--text);
}

/* Last menu item as CTA */
.nav-links li:last-child a {
    margin-left: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--accent);
    color: #fff !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.25s;
}

.nav-links li:last-child a:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #1a1f2e;
    border-radius: 2px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.nav-toggle span:last-child { margin-bottom: 0; }


/* ─── Mobile Nav ─── */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(26,31,46,0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mobile-nav.active { display: flex; }

.mobile-nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li a {
    display: block;
    padding: 0.75rem 2rem;
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.25s;
}

.mobile-nav-links li a:hover { color: #fff; }


/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--accent-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(196,123,26,0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background: var(--bg-elevated);
}


/* ─── Section commons ─── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.section-label::before {
    content: '';
    width: 18px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 540px;
    line-height: 1.7;
}

.section-header {
    margin-bottom: 3.5rem;
}


/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: heroFloat 20s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 70%);
    animation: heroFloat 16s ease-in-out infinite reverse;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.05); }
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(#1a1f2e 1px, transparent 1px),
        linear-gradient(90deg, #1a1f2e 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at 55% 40%, black 15%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse at 55% 40%, black 15%, transparent 65%);
}

.hero-content {
    max-width: 780px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: fadeUp 0.8s ease both;
}

.hero-badge svg { color: var(--accent); }

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6.5vw, 5rem);
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.8s ease 0.1s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 540px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp 0.8s ease 0.3s both;
}

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


/* ─── Expertise Tags Bar ─── */
.expertise-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    overflow: hidden;
}

.expertise-tags {
    display: flex;
    gap: 1.5rem;
    animation: scroll 25s linear infinite;
    width: max-content;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.expertise-tag {
    white-space: nowrap;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 500;
    letter-spacing: 0.02em;
}


/* ─── Services ─── */
.services {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.25rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent) !important;
    transition: gap 0.25s;
}

.service-link:hover {
    gap: 0.6rem;
}


/* ─── Latest Posts ─── */
.latest-posts {
    padding: 6rem 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.posts-grid--blog {
    grid-template-columns: repeat(3, 1fr);
}

/* Featured first card spans full width */
.post-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
}

.post-card--featured .post-card-image {
    border-radius: var(--radius) 0 0 var(--radius);
}

.post-card--featured .post-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
}

.post-card--featured .post-card-title {
    font-size: 1.5rem;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.post-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.post-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--bg-elevated);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.04);
}

.post-card-body {
    padding: 1.5rem;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.post-category {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: color-mix(in srgb, var(--cat-color, var(--accent)) 12%, transparent);
    color: var(--cat-color, var(--accent));
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.post-reading-time {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.post-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.post-card-title a {
    transition: color 0.25s;
}

.post-card-title a:hover {
    color: var(--accent);
}

.post-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.post-card-footer time {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent) !important;
    transition: gap 0.25s;
}

.read-more-link:hover { gap: 0.5rem; }

.posts-more {
    text-align: center;
    margin-top: 3rem;
}


/* ─── Blog Index ─── */
.page-header {
    padding: 8rem 0 2.5rem;
    background: var(--bg);
}

.page-header .page-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.page-description {
    color: var(--text-muted);
    margin-top: 0.5rem;
}


/* ─── Category Filter ─── */
.category-filter {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 56px;
    z-index: 50;
    background: var(--bg);
}

.filter-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}

.filter-scroll::-webkit-scrollbar { display: none; }

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.25s;
}

.filter-tag:hover {
    border-color: var(--text-dim);
    color: var(--text);
}

.filter-tag.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.filter-count {
    font-size: 0.7rem;
    opacity: 0.6;
}

.blog-layout {
    padding: 3rem 0 6rem;
}


/* ─── Pagination ─── */
.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.25s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.pagination .prev,
.pagination .next {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}


/* ─── Single Article ─── */
.article-header {
    padding-top: 7rem;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.article-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.article-meta-bottom {
    margin-bottom: 2.5rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-info img {
    border-radius: 50%;
}

.author-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

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

.article-hero {
    margin-bottom: 3rem;
}

.article-hero img {
    border-radius: var(--radius);
    width: 100%;
}


/* ─── Article Content (Gutenberg output) ─── */
.article-content {
    padding-bottom: 3rem;
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    font-weight: 400;
}

.article-content h3 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.article-content h4 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.85;
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(212,148,58,0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.25s;
}

.article-content a:hover {
    text-decoration-color: var(--accent);
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.article-content li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    border-left: 3px solid var(--accent);
    background: var(--bg-elevated);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content blockquote p {
    color: var(--text);
    font-style: italic;
    margin-bottom: 0;
}

.article-content code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    padding: 0.15em 0.4em;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--accent);
}

.article-content pre {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #1a1f2e;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow-x: auto;
}

.article-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.7;
    color: #e2e7ef;
}

.article-content img {
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
}

.article-content .wp-block-image {
    margin: 2rem 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.article-content th,
.article-content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    text-align: left;
}

.article-content th {
    background: var(--bg-elevated);
    font-weight: 600;
    color: var(--text);
}

.article-content td {
    color: var(--text-muted);
}


/* ─── Article Footer ─── */
.article-footer {
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.article-tag {
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: all 0.25s;
}

.article-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.post-nav-link {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.post-nav-link:hover {
    border-color: var(--border-accent);
    background: var(--bg-card);
}

.post-nav-next { text-align: right; }

.post-nav-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.post-nav-next .post-nav-label { justify-content: flex-end; }

.post-nav-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}


/* ─── Comments ─── */
.comments-section {
    padding: 3rem 0;
}

.comments-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.comment-list {
    list-style: none;
}

.comment-list .comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.comment-list .comment-author img {
    border-radius: 50%;
    float: left;
    margin-right: 1rem;
}

.comment-list .comment-meta {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-respond .comment-reply-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    outline: none;
    transition: border-color 0.25s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}


/* ─── Static Page ─── */
.single-page .page-header {
    padding-bottom: 3rem;
}


/* ─── 404 ─── */
.error-code {
    font-family: var(--font-display);
    font-size: clamp(5rem, 12vw, 10rem);
    color: var(--accent);
    line-height: 1;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.error-404 h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}


/* ─── Search Form ─── */
.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 1.5rem auto 0;
}

.search-input {
    flex: 1;
    padding: 0.7rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s;
}

.search-input:focus { border-color: var(--accent); }

.search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--bg);
    cursor: pointer;
    transition: background 0.25s;
}

.search-submit:hover { background: var(--accent-light); }

.no-results {
    text-align: center;
    padding: 4rem 0;
}

.no-results-icon {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.no-results h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}


/* ─── Footer ─── */
.site-footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.footer-logo .logo-mark {
    width: 28px;
    height: 28px;
}

.footer-logo .logo-mark svg {
    width: 14px;
    height: 14px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 320px;
}

.widget-title,
.footer-col h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    font-size: 0.88rem;
    color: var(--text-dim);
    transition: color 0.25s;
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-dim);
}


/* ─── Widgets ─── */
.widget {
    margin-bottom: 2rem;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 0.5rem;
}

.widget ul li a {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.widget ul li a:hover {
    color: var(--accent);
}


/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ─── WordPress alignment classes ─── */
.alignwide {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

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

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    text-align: center;
}


/* ─── Responsive ─── */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }

    .services-grid,
    .posts-grid,
    .posts-grid--blog {
        grid-template-columns: 1fr;
    }

    .post-card--featured {
        grid-template-columns: 1fr;
    }

    .post-card--featured .post-card-image {
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 7rem 0 4rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-filter {
        top: 52px;
    }
}
