/*
Theme Name: RivalClaw
Theme URI: https://rivalclaw.com
Author: RivalClaw Domains
Author URI: https://rivalclaw.com
Description: A premium dark domain portfolio theme with blog capabilities.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rivalclaw
Tags: dark, portfolio, blog, e-commerce, custom-menu
*/

/* =============================================
   ROOT & RESET
   ============================================= */
:root {
    --brand-orange: #ff5722;
    --brand-red: #e11d48;
    --brand-dark: #0a0a0a;
    --brand-panel: #171717;
    --brand-panel-2: #1f1f1f;
    --text-primary: #f5f5f5;
    --text-secondary: #a3a3a3;
    --text-muted: #525252;
    --border-subtle: rgba(255,255,255,0.07);
    --border-medium: rgba(255,255,255,0.12);
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 10px;
    --radius-sm: 6px;
    --max-width: 1280px;
    --transition: all 0.25s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--brand-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: radial-gradient(circle at 50% 0%, #2a1612 0%, var(--brand-dark) 55%);
    background-repeat: no-repeat;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

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

.text-gradient {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 48px 0; }

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--brand-dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-orange); }

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

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

.site-logo .logo-icon {
    width: 30px;
    height: 30px;
    color: var(--brand-orange);
    flex-shrink: 0;
}

.site-logo .logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.03em;
    color: var(--text-primary);
}

.site-logo .logo-text span { color: var(--brand-orange); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 4px;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links .current-menu-item a,
.nav-links .current-page-ancestor a {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-medium);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
    cursor: pointer;
}

.btn-nav:hover {
    border-color: var(--brand-orange);
    background: rgba(255,87,34,0.1);
    color: var(--text-primary);
}

/* Mobile menu toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 1.5px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--transition);
}

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

/* Mobile nav dropdown */
.mobile-nav {
    display: none;
    border-top: 1px solid var(--border-subtle);
    background: var(--brand-dark);
    padding: 12px 0;
}

.mobile-nav.is-open { display: block; }

.mobile-nav ul { padding: 0 24px; }

.mobile-nav ul li a {
    display: block;
    padding: 10px 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.mobile-nav ul li:last-child a { border-bottom: none; }
.mobile-nav ul li a:hover { color: var(--text-primary); }

/* =============================================
   HERO — FRONT PAGE
   ============================================= */
.hero {
    padding: 140px 24px 80px;
    text-align: center;
}

.hero-inner { max-width: 760px; margin: 0 auto; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-medium);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--brand-orange);
    margin-bottom: 28px;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-orange);
    flex-shrink: 0;
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,87,34,0.5); }
    50% { box-shadow: 0 0 0 6px rgba(255,87,34,0); }
}

.hero h1 { margin-bottom: 20px; }
.hero .hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* Featured domain card in hero */
.featured-card {
    max-width: 520px;
    margin: 0 auto;
    background: rgba(255,87,34,0.04);
    border: 1px solid rgba(255,87,34,0.25);
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 24px rgba(255,87,34,0.08);
    transition: var(--transition);
}

.featured-card:hover { border-color: rgba(255,87,34,0.55); }

@media (min-width: 520px) {
    .featured-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 0; }
}

.featured-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.featured-ping {
    position: relative;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.featured-ping::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--brand-orange);
    opacity: 0.7;
    animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
}

.featured-ping::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 50%;
    background: var(--brand-orange);
}

@keyframes ping {
    0% { transform: scale(1); opacity: 0.7; }
    75%, 100% { transform: scale(2.2); opacity: 0; }
}

.featured-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-orange);
    margin-bottom: 2px;
}

.featured-domain {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1;
}

.featured-domain span { color: var(--brand-orange); }

.featured-card-right {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
}

@media (min-width: 520px) {
    .featured-card-right {
        border-top: none;
        padding-top: 0;
    }
}

.featured-price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--text-primary);
    color: #000;
}

.btn-primary:hover {
    background: var(--brand-orange);
    color: #fff;
}

.btn-outline {
    background: rgba(255,87,34,0.12);
    color: var(--brand-orange);
    border: 1px solid rgba(255,87,34,0.4);
}

.btn-outline:hover {
    background: var(--brand-orange);
    color: #fff;
    border-color: var(--brand-orange);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.3);
}

.btn svg { flex-shrink: 0; }

/* =============================================
   PORTFOLIO SECTION
   ============================================= */
.portfolio-section { padding: 24px 0 100px; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.section-meta { font-size: 0.85rem; color: var(--text-muted); }

/* Category filter pills */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.filter-pill {
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border-medium);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.filter-pill:hover {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.3);
}

.filter-pill.active {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
}

/* Domain grid */
.domain-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) { .domain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .domain-grid { grid-template-columns: repeat(3, 1fr); } }

/* Domain card */
.domain-card {
    background: var(--brand-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.domain-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-orange);
    box-shadow: 0 12px 32px -10px rgba(255,87,34,0.25);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.card-domain {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.card-domain span { color: var(--brand-orange); }

.card-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
}

.tag-apparel    { background: rgba(34,197,94,0.1); color: #4ade80; }
.tag-business   { background: rgba(59,130,246,0.1); color: #60a5fa; }
.tag-web3       { background: rgba(168,85,247,0.1); color: #c084fc; }
.tag-ecommerce  { background: rgba(236,72,153,0.1); color: #f472b6; }
.tag-tech       { background: rgba(99,102,241,0.1); color: #818cf8; }
.tag-design     { background: rgba(234,179,8,0.1);  color: #facc15; }
.tag-fitness    { background: rgba(239,68,68,0.1);  color: #f87171; }
.tag-default    { background: rgba(255,255,255,0.06); color: var(--text-secondary); }

.card-bottom {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-price-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.card-price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-primary);
    line-height: 1;
}

/* No results */
.no-results {
    display: none;
    text-align: center;
    padding: 80px 0;
    color: var(--text-muted);
    font-size: 1rem;
    grid-column: 1 / -1;
}

.no-results.visible { display: block; }

/* =============================================
   TRUST SECTION
   ============================================= */
.trust-section {
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--brand-panel);
    padding: 80px 0;
    text-align: center;
}

.trust-section h3 {
    font-size: 1.6rem;
    margin-bottom: 48px;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }

.trust-item {}

.trust-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--brand-orange);
}

.trust-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.trust-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.65;
}

/* =============================================
   BLOG — ARCHIVE / INDEX
   ============================================= */
.blog-section { padding: 120px 0 100px; }

.blog-header {
    margin-bottom: 56px;
}

.blog-header h1 { margin-bottom: 12px; }
.blog-header p { font-size: 1rem; color: var(--text-secondary); }

.post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
    background: var(--brand-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,87,34,0.4);
    box-shadow: 0 12px 32px -10px rgba(255,87,34,0.2);
}

.post-card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--brand-panel-2);
}

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

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

.post-card-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.post-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-orange);
}

.post-sep { color: var(--text-muted); font-size: 0.7rem; }

.post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.post-card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.35;
    transition: color 0.2s;
}

.post-card:hover .post-card-title { color: var(--brand-orange); }

.post-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 0;
    flex-grow: 1;
}

.post-card-footer {
    padding: 0 24px 22px;
    display: flex;
    justify-content: flex-end;
}

.post-read-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.post-read-more:hover { color: var(--brand-orange); }

.post-read-more svg { width: 14px; height: 14px; transition: transform 0.2s; }
.post-read-more:hover svg { transform: translateX(3px); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 64px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    background: transparent;
    transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    background: rgba(255,87,34,0.08);
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    pointer-events: none;
}

/* =============================================
   SINGLE POST
   ============================================= */
.single-post { padding: 120px 0 100px; }

.single-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

@media (min-width: 1024px) {
    .single-layout { grid-template-columns: 1fr 320px; }
}

.single-content {}

.post-header { margin-bottom: 36px; }

.post-header .post-card-meta { margin-bottom: 16px; }

.post-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 20px;
}

.post-header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.post-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand-panel-2);
    flex-shrink: 0;
}

.post-author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.post-author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.post-read-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: auto;
}

.post-featured-image {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 40px;
    aspect-ratio: 16/9;
    background: var(--brand-panel-2);
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post body content */
.entry-content {
    font-size: 1.0rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--text-primary);
    margin-top: 2.2em;
    margin-bottom: 0.75em;
}

.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }

.entry-content p { margin-bottom: 1.4em; }

.entry-content a {
    color: var(--brand-orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content a:hover { text-decoration: none; }

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.4em 1.4em;
    list-style: disc;
}

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

.entry-content li {
    color: var(--text-secondary);
    margin-bottom: 0.5em;
    padding-left: 4px;
}

.entry-content blockquote {
    border-left: 3px solid var(--brand-orange);
    margin: 2em 0;
    padding: 16px 24px;
    background: rgba(255,87,34,0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.entry-content blockquote p {
    color: var(--text-primary);
    font-style: italic;
    font-size: 1.05rem;
    margin: 0;
}

.entry-content img {
    border-radius: var(--radius);
    margin: 2em 0;
}

.entry-content code {
    background: var(--brand-panel);
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 0.875em;
    color: var(--brand-orange);
    font-family: 'Courier New', monospace;
}

.entry-content pre {
    background: var(--brand-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px;
    overflow-x: auto;
    margin: 1.8em 0;
}

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

.entry-content hr {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 2.5em 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8em 0;
    font-size: 0.9rem;
}

.entry-content th {
    background: var(--brand-panel);
    color: var(--text-primary);
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border: 1px solid var(--border-subtle);
}

.entry-content td {
    color: var(--text-secondary);
    padding: 10px 14px;
    border: 1px solid var(--border-subtle);
}

/* Post tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border-subtle);
}

.post-tags a {
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border-medium);
    color: var(--text-muted);
    transition: var(--transition);
}

.post-tags a:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

/* Post navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
}

.post-nav-item {
    padding: 18px;
    background: var(--brand-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    transition: var(--transition);
}

.post-nav-item:hover { border-color: rgba(255,87,34,0.4); }

.post-nav-item .nav-direction {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-nav-item .nav-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.3;
}

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

/* Sidebar */
.sidebar {}

.sidebar-widget {
    background: var(--brand-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.widget-recent-posts { list-style: none; }

.widget-recent-posts li {
    padding: 11px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.widget-recent-posts li:last-child { border-bottom: none; padding-bottom: 0; }

.widget-recent-posts a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
    transition: color 0.2s;
    display: block;
    margin-bottom: 4px;
}

.widget-recent-posts a:hover { color: var(--text-primary); }

.widget-recent-posts .post-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.widget-categories li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.widget-categories li:last-child { border-bottom: none; }

.widget-categories a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

.widget-categories a:hover { color: var(--brand-orange); }

.widget-categories .cat-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--brand-panel-2);
    padding: 1px 8px;
    border-radius: 999px;
}

/* CTA widget */
.widget-cta {
    background: rgba(255,87,34,0.05);
    border-color: rgba(255,87,34,0.2);
    text-align: center;
}

.widget-cta h4 {
    border-bottom-color: rgba(255,87,34,0.2);
    color: var(--brand-orange);
}

.widget-cta p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* -----------------------------------------------
   WP DEFAULT WIDGET OVERRIDES
   Targets the built-in Search, Recent Posts,
   Recent Comments widgets dropped into a sidebar
----------------------------------------------- */

/* Search widget */
.sidebar-widget .wp-block-search,
.sidebar-widget .widget_search form,
.sidebar-widget .search-form {
    display: flex;
    gap: 0;
}

.sidebar-widget .wp-block-search__input,
.sidebar-widget .search-field {
    flex: 1;
    background: var(--brand-dark);
    border: 1px solid var(--border-medium);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 9px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
}

.sidebar-widget .wp-block-search__input:focus,
.sidebar-widget .search-field:focus {
    border-color: var(--brand-orange);
}

.sidebar-widget .wp-block-search__input::placeholder,
.sidebar-widget .search-field::placeholder {
    color: var(--text-muted);
}

.sidebar-widget .wp-block-search__button,
.sidebar-widget .search-submit {
    background: var(--brand-orange);
    border: 1px solid var(--brand-orange);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 9px 14px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.sidebar-widget .wp-block-search__button:hover,
.sidebar-widget .search-submit:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
}

/* Recent Posts widget */
.sidebar-widget .widget_recent_entries ul {
    list-style: none;
}

.sidebar-widget .widget_recent_entries ul li {
    padding: 11px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-widget .widget_recent_entries ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-widget .widget_recent_entries ul li a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
    display: block;
    margin-bottom: 4px;
    transition: color 0.2s;
    text-decoration: none;
}

.sidebar-widget .widget_recent_entries ul li a:hover {
    color: var(--text-primary);
}

.sidebar-widget .widget_recent_entries ul li .post-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
}

/* Recent Comments widget */
.sidebar-widget .widget_recent_comments ul {
    list-style: none;
}

.sidebar-widget .widget_recent_comments ul li {
    padding: 11px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.sidebar-widget .widget_recent_comments ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* The commenter name link */
.sidebar-widget .widget_recent_comments .comment-author-link,
.sidebar-widget .widget_recent_comments ul li a:first-child {
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-widget .widget_recent_comments .comment-author-link:hover,
.sidebar-widget .widget_recent_comments ul li a:first-child:hover {
    color: var(--text-primary);
}

/* The post title link */
.sidebar-widget .widget_recent_comments ul li a:last-child {
    color: var(--brand-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.sidebar-widget .widget_recent_comments ul li a:last-child:hover {
    color: var(--text-primary);
}

/* "on" separator text */
.sidebar-widget .widget_recent_comments ul li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
}

/* -----------------------------------------------
   WP ADMIN BAR OFFSET
   When logged in, WP injects a 32px (desktop) or
   46px (mobile) toolbar. Offset the fixed site header.
----------------------------------------------- */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Also offset any scroll-target anchors */
.admin-bar #portfolio,
.admin-bar #comments {
    scroll-margin-top: 110px;
}

/* =============================================
   SINGLE PAGE (static pages)
   ============================================= */
.page-single { padding: 120px 0 100px; }

.page-layout {
    max-width: 820px;
    margin: 0 auto;
}

.page-header { margin-bottom: 40px; }

.page-header h1 { margin-bottom: 10px; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-info h2 { margin-bottom: 16px; }

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.7;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.contact-detail:last-child { border-bottom: none; }

.contact-detail-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255,87,34,0.08);
    border: 1px solid rgba(255,87,34,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-orange);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail-text .label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.contact-detail-text .value {
    font-size: 0.925rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* WP default form styles */
.wpcf7-form label,
.contact-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    background: var(--brand-panel);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.2s;
    outline: none;
    margin-bottom: 20px;
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(255,87,34,0.12);
}

.wpcf7-form textarea,
.contact-form textarea {
    height: 140px;
    resize: vertical;
}

.wpcf7-form input[type="submit"],
.contact-form input[type="submit"] {
    background: var(--text-primary);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 28px;
    margin-bottom: 0;
    transition: var(--transition);
    width: auto;
}

.wpcf7-form input[type="submit"]:hover,
.contact-form input[type="submit"]:hover {
    background: var(--brand-orange);
    color: #fff;
}

/* =============================================
   404 PAGE
   ============================================= */
.page-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

.page-404-inner { max-width: 520px; }

.error-code {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(5rem, 15vw, 9rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,87,34,0.3);
    margin-bottom: 8px;
}

.page-404 h2 {
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.page-404 p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* =============================================
   COMMENTS
   ============================================= */
.comments-area {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.comments-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 28px;
}

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

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.comment:last-child { border-bottom: none; }

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand-panel-2);
    flex-shrink: 0;
}

.comment-author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.comment-author-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.comment-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.comment-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.comment-reply-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 8px;
    display: inline-block;
    transition: color 0.2s;
}

.comment-reply-link:hover { color: var(--brand-orange); }

/* Comment form */
.comment-respond {
    margin-top: 40px;
    padding: 28px;
    background: var(--brand-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
}

.comment-reply-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.comment-form label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

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

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(255,87,34,0.1);
}

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

.comment-form input[type="submit"] {
    background: var(--text-primary);
    color: #000;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    border-radius: var(--radius-sm);
    padding: 11px 24px;
    transition: var(--transition);
}

.comment-form input[type="submit"]:hover {
    background: var(--brand-orange);
    color: #fff;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    border-top: 1px solid var(--border-medium);
    padding: 44px 0 32px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-logo { display: flex; align-items: center; gap: 8px; }

.footer-logo .logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.03em;
}

.footer-logo .logo-text span { color: var(--text-muted); }

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

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

/* =============================================
   RESPONSIVE HELPERS
   ============================================= */
@media (max-width: 639px) {
    .post-nav { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

/* WordPress alignment classes */
.alignleft  { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.aligncenter { display: block; margin: 1.5em auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
