/**
 * Theme Name: Kadence Child
 * Description: Kadence Child theme — Modern portfolio for joalweingartt.com
 * Author: Jose Alvarez Weingartt
 * Template: kadence
 * Text Domain: kadence-child
 */

/* ═══════════════════════════════════════════
   MODERN LIGHT SCHEME
   ═══════════════════════════════════════════ */
:root {
    --bg-primary: #f8f9fc;
    --bg-white: #ffffff;
    --bg-navy: #1a1d2e;
    --bg-navy-light: #252a3e;
    --accent-primary: #ff6310;
    --accent-primary-hover: #e05508;
    --accent-primary-soft: rgba(255, 99, 16, 0.08);
    --accent-secondary: #0077b6;
    --accent-cyan: #00b4d8;
    --text-dark: #1a1d2e;
    --text-body: #4a4f60;
    --text-muted: #82889a;
    --border-subtle: rgba(0, 0, 0, 0.05);
    --border-visible: rgba(0, 0, 0, 0.1);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 4px 20px rgba(255, 99, 16, 0.25);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════
   GLOBAL
   ═══════════════════════════════════════════ */
body {
    background-color: var(--bg-primary);
    color: var(--text-body);
    font-family: 'Lexend', sans-serif;
}

a {
    color: var(--accent-secondary);
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-primary);
}

/* ═══════════════════════════════════════════
   SMOOTH SCROLL REVEAL
   ═══════════════════════════════════════════ */
.stk-block-column,
.stk-container,
.stk-block-feature,
section > .stk-block {
    animation: fadeInUp 0.6s ease-out backwards;
}

.stk-block:nth-child(1) { animation-delay: 0s; }
.stk-block:nth-child(2) { animation-delay: 0.1s; }
.stk-block:nth-child(3) { animation-delay: 0.2s; }
.stk-block:nth-child(4) { animation-delay: 0.3s; }
.stk-block:nth-child(5) { animation-delay: 0.4s; }

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

/* ═══════════════════════════════════════════
   HEADER — Clean static
   ═══════════════════════════════════════════ */
#masthead, .site-header {
    position: relative !important;
    top: auto !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

#masthead.item-is-fixed, .site-header {
    position: relative !important;
    top: auto !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

#header .site-title,
.ct-site-title a,
.site-branding .site-title a,
[class*="site-title"] a,
[class*="site-branding"] a {
    font-family: 'Lexend', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.3rem !important;
    color: var(--text-dark) !important;
    letter-spacing: -0.01em;
}

.header-navigation li.menu-item>a {
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.92rem;
    transition: color var(--transition);
}

.header-navigation .menu > li {
    margin: 0 8px;
}

.header-navigation li.menu-item>a:hover,
.header-navigation li.current-menu-item>a {
    color: var(--accent-primary);
}

#header .menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 1px;
    transition: width var(--transition);
}

#header .menu > li > a:hover::after,
#header .menu > li.current-menu-item > a::after {
    width: 100%;
}

.header-button .button {
    background: linear-gradient(135deg, var(--accent-primary), #ff7e35);
    color: #fff;
    border-radius: var(--radius-full);
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.84rem;
    box-shadow: 0 4px 14px rgba(255, 99, 16, 0.2);
    transition: all var(--transition);
}

.header-button .button:hover {
    background: linear-gradient(135deg, var(--accent-primary-hover), #ff6310);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: #fff;
}

/* ═══════════════════════════════════════════
   STACKABLE SCHEME OVERRIDE
   ═══════════════════════════════════════════ */
.stk--background-scheme--scheme-default-3 {
    --stk-block-background-color: var(--bg-primary);
    --stk-heading-color: var(--text-dark);
    --stk-text-color: var(--text-body);
    --stk-link-color: var(--accent-primary);
    --stk-accent-color: var(--accent-primary);
    --stk-subtitle-color: var(--accent-primary);
    --stk-button-background-color: var(--accent-primary);
    --stk-button-text-color: #ffffff;
    --stk-button-outline-color: var(--text-dark);
}

/* ═══════════════════════════════════════════
   DARK BLOCK OVERRIDES → Modern navy
   ═══════════════════════════════════════════ */
[style*="background-color:#1E262E"],
[style*="background-color: #1E262E"],
[style*="background-color:#14151c"],
[style*="background-color: #14151c"] {
    background-color: var(--bg-navy) !important;
    background-image: linear-gradient(180deg, rgba(255, 99, 16, 0.03) 0%, transparent 50%) !important;
}

[style*="background-color:#0f0e17"],
[style*="background-color: #0f0e17"],
[style*="background-color:#101117"],
[style*="background-color: #101117"] {
    background-color: var(--bg-primary) !important;
}

/* Texto blanco sobre fondos navy */
[style*="background-color:#1E262E"] h1,
[style*="background-color:#1E262E"] h2,
[style*="background-color:#1E262E"] h3,
[style*="background-color:#1E262E"] h4,
[style*="background-color:#1E262E"] h5,
[style*="background-color:#1E262E"] .stk-block-heading__text,
[style*="background-color:#1E262E"] .stk-block-text__text,
[style*="background-color:#1E262E"] p {
    color: #ffffff;
}

[style*="background-color:#ff6310"],
[style*="background-color: #ff6310"] {
    background: linear-gradient(135deg, var(--accent-primary), #ff7e35) !important;
}

/* ═══════════════════════════════════════════
   HEADINGS
   ═══════════════════════════════════════════ */
.stk-block-heading__text,
h1, h2, h3, h4, h5, h6,
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
    color: var(--text-dark);
}

.stk-block-heading__text {
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* ═══════════════════════════════════════════
   TEXT
   ═══════════════════════════════════════════ */
p, .stk-block-text__text {
    color: var(--text-body);
}

[style*="color:#687279"] {
    color: var(--text-muted) !important;
}

[style*="color:#c8cad1"],
[style*="color: #c8cad1"] {
    color: var(--text-body) !important;
}

.has-palette-color-3-color {
    color: var(--text-muted) !important;
}

.has-palette-color-4-color {
    color: var(--text-dark) !important;
}

.has-palette-color-4-background-color {
    background: linear-gradient(180deg, var(--bg-navy) 0%, var(--bg-navy-light) 100%) !important;
    color: #fff !important;
}

.has-palette-color-4-background-color h1, .has-palette-color-4-background-color h2,
.has-palette-color-4-background-color h3, .has-palette-color-4-background-color h4,
.has-palette-color-4-background-color h5, .has-palette-color-4-background-color p,
.has-palette-color-4-background-color .stk-block-heading__text,
.has-palette-color-4-background-color .stk-block-text__text {
    color: #ffffff;
}

/* ═══════════════════════════════════════════
   BUTTONS — Modern pill with gradient
   ═══════════════════════════════════════════ */
.stk-block-button .stk-button,
.wp-block-button__link,
.wp-block-button__link,
.header-button .button {
    background: linear-gradient(135deg, var(--accent-primary), #ff7e35);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 13px 30px;
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(255, 99, 16, 0.18);
}

.stk-block-button .stk-button::after,
.wp-block-button__link::after,
.wp-block-button__link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.stk-block-button .stk-button:hover::after,
.wp-block-button__link:hover::after,
.wp-block-button__link:hover::after {
    opacity: 1;
}

.stk-block-button .stk-button:hover,
.wp-block-button__link:hover,
.wp-block-button__link:hover {
    background: linear-gradient(135deg, var(--accent-primary-hover), #ff6310);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.stk-block-button .stk-button--ghost {
    background: var(--bg-white);
    border: 1.5px solid var(--border-visible);
    color: var(--text-dark);
    box-shadow: none;
}

.stk-block-button .stk-button--ghost:hover {
    background: var(--bg-navy);
    border-color: var(--bg-navy);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.stk-block-button .stk-button--ghost::after {
    display: none;
}

/* ═══════════════════════════════════════════
   CARDS & CONTAINERS
   ═══════════════════════════════════════════ */
.stk-container {
    border-radius: var(--radius-md);
}

.stk-block:not(.stk-block-heading):not(.stk-block-button):not(.stk-block-text):not(.stk-block-icon) {
    border-radius: var(--radius-md);
    transition: transform var(--transition), box-shadow var(--transition);
}

/* ═══════════════════════════════════════════
   IMAGES
   ═══════════════════════════════════════════ */
.stk-block-image img,
.stk-img-wrapper img,
.wp-block-image img,
.entry-content img {
    border-radius: var(--radius-sm);
    transition: transform 0.4s ease;
}

.stk-block-image:hover img,
.wp-block-image:hover img {
    transform: scale(1.03);
}

/* ═══════════════════════════════════════════
   CAROUSEL
   ═══════════════════════════════════════════ */
.stk-block-carousel__dots .stk-block-carousel__dot {
    background: var(--text-muted);
    opacity: 0.25;
    width: 8px;
    height: 8px;
    transition: all var(--transition);
}

.stk-block-carousel__dots .stk-block-carousel__dot.active {
    background: var(--accent-primary);
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════
   CONTACT FORM (WPForms)
   ═══════════════════════════════════════════ */
.wpforms-container input,
.wpforms-container textarea,
.wpforms-container select {
    background: var(--bg-primary);
    border: 1.5px solid var(--border-visible);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    padding: 15px 18px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.wpforms-container input:focus,
.wpforms-container textarea:focus,
.wpforms-container select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-primary-soft);
    outline: none;
    background: var(--bg-white);
}

.wpforms-container label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.wpforms-submit {
    background: linear-gradient(135deg, var(--accent-primary), #ff7e35) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 15px 36px !important;
    font-size: 0.95rem !important;
    transition: all var(--transition) !important;
    width: 100% !important;
    box-shadow: 0 4px 14px rgba(255, 99, 16, 0.18);
}

.wpforms-submit:hover {
    background: linear-gradient(135deg, var(--accent-primary-hover), #ff6310) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ═══════════════════════════════════════════
   FOOTER — Navy elegant
   ═══════════════════════════════════════════ */
#colophon, .site-footer {
    background: linear-gradient(180deg, var(--bg-navy) 0%, #141720 100%);
    border-top: none;
    color: rgba(255, 255, 255, 0.65);
    padding-top: 60px;
}

.site-footer .widget-title {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.site-footer a:hover {
    color: var(--accent-primary);
}

.site-footer .site-footer-copyright {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.82rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

/* ═══════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #d0d3dd; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* ═══════════════════════════════════════════
   MOBILE PANEL
   ═══════════════════════════════════════════ */
.ct-panel {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
}

.ct-panel .menu-item a {
    color: var(--text-dark);
    font-size: 1.05rem;
    font-weight: 500;
}

.ct-panel .current-menu-item a {
    color: var(--accent-primary);
}

/* ═══════════════════════════════════════════
   BLOCKQUOTE / CODE
   ═══════════════════════════════════════════ */
blockquote {
    border-left: 3px solid var(--accent-primary);
    background: var(--bg-white);
    color: var(--text-body);
    padding: 28px 32px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-sm);
    margin: 32px 0;
}

code, pre {
    background: var(--bg-primary);
    color: var(--accent-secondary);
    border-radius: var(--radius-sm);
    padding: 2px 8px;
    font-size: 0.9em;
}

pre {
    padding: 20px 24px;
    overflow-x: auto;
}

/* ═══════════════════════════════════════════
   TRENDING / RELATED POSTS
   ═══════════════════════════════════════════ */
.ct-trending-block {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.ct-trending-block a {
    color: var(--text-dark);
}

.ct-trending-block a:hover {
    color: var(--accent-primary);
}

/* ═══════════════════════════════════════════
   GLOBAL ENHANCEMENTS
   ═══════════════════════════════════════════ */
html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--accent-primary-soft);
    color: var(--accent-primary);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1023px) {
    .stk-block-heading .stk-block-heading__text {
        font-size: clamp(1.6rem, 4vw, 2.4rem) !important;
    }
}

@media (max-width: 689px) {
    .stk-block .stk-container {
        padding: 24px 20px !important;
    }

    .stk-block-heading .stk-block-heading__text {
        font-size: clamp(1.4rem, 5vw, 1.8rem) !important;
    }

    .header-button .button {
        padding: 8px 18px;
        font-size: 0.82rem;
    }

    .stk-block-button .stk-button {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
}

/* ═══════════════════════════════════════════
   HOMEPAGE TEMPLATE (nh-*)
   ═══════════════════════════════════════════ */
.nh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Section Title ──────────────────────── */
.nh-section-title {
    font-family: 'Lexend', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.nh-section-title span {
    color: var(--accent-primary);
}

.nh-section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 48px;
}

.nh-section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ─── Buttons ───────────────────────────── */
.nh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.nh-btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #ff7e35);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 99, 16, 0.18);
}

.nh-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: #fff;
}

.nh-btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-visible);
    color: var(--text-dark);
}

.nh-btn-outline:hover {
    background: var(--bg-navy);
    border-color: var(--bg-navy);
    color: #fff;
    box-shadow: var(--shadow-md);
}

/* ═══════════ HERO ═══════════ */
.nh-hero {
    padding: 140px 0 100px;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-primary) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.nh-hero-bg-dots {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: radial-gradient(circle, var(--accent-primary) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.nh-hero-bg-glow {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-primary-soft) 0%, transparent 70%);
    pointer-events: none;
}

.nh-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.nh-hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.nh-hero-greeting {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: var(--accent-primary-soft);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nh-hero-name {
    font-family: 'Lexend', sans-serif;
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.nh-hero-name span {
    color: inherit;
}

.nh-hero-tags {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.nh-hero-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 32px;
}

.nh-hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.nh-hero-clients {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.nh-hero-clients span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nh-hero-clients span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    opacity: 0.5;
}

.nh-hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.nh-hero-frame {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 360px;
}

.nh-hero-frame-border {
    position: absolute;
    inset: -6px;
    border-radius: calc(var(--radius-lg) + 4px);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan), var(--accent-primary));
    opacity: 0.3;
    z-index: -1;
    animation: borderGlow 4s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

.nh-hero-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
}

@media (max-width: 1023px) {
    .nh-hero-image {
        order: -1;
    }

    .nh-hero-frame {
        max-width: 260px;
    }
}

@media (max-width: 689px) {
    .nh-hero-frame {
        max-width: 220px;
    }
}

/* ═══════════ STATS ═══════════ */
.nh-stats {
    background: linear-gradient(180deg, var(--bg-navy) 0%, #141720 100%);
    padding: 70px 0;
    margin-top: -1px;
}

.nh-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.nh-stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.nh-stat-icon {
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.nh-stat-number {
    font-family: 'Lexend', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.nh-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══════════ SKILLS ═══════════ */
.nh-skills {
    padding: 90px 0;
}

.nh-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.nh-skill-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
}

.nh-skill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary-soft);
}

.nh-skill-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.nh-skill-card h3 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.nh-skill-card p {
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 16px;
    line-height: 1.6;
}

.nh-skill-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nh-skill-tags span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: var(--accent-primary-soft);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

/* ═══════════ ABOUT ═══════════ */
.nh-about {
    background: var(--bg-primary);
    padding: 90px 0;
}

.nh-about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.nh-about-text h2 {
    font-family: 'Lexend', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.nh-about-text h2 span {
    color: var(--accent-primary);
}

.nh-about-text p {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 16px;
}

.nh-about-text .nh-btn {
    margin-top: 10px;
}

.nh-about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.nh-highlight-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
}

.nh-highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.nh-highlight-number {
    display: block;
    font-family: 'Lexend', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.nh-highlight-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ═══════════ PROJECTS ═══════════ */
.nh-projects {
    padding: 90px 0;
    background: var(--bg-white);
}

.nh-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.nh-project-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
}

.nh-project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary-soft);
}

.nh-project-img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--accent-primary-soft);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.nh-project-card h3 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.nh-project-card p {
    font-size: 0.88rem;
    color: var(--text-body);
    margin-bottom: 16px;
    line-height: 1.6;
}

.nh-project-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: var(--accent-primary-soft);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══════════ TECH CAROUSEL ═══════════ */
.nh-techs {
    padding: 70px 0 90px;
    background: var(--bg-primary);
}

.nh-techs-track {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.nh-techs-carousel {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: nhScrollTechs 30s linear infinite;
    padding: 10px 0;
}

.nh-techs-carousel span {
    font-family: 'Lexend', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: all var(--transition);
}

.nh-techs-carousel span:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

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

.nh-techs-track:hover .nh-techs-carousel {
    animation-play-state: paused;
}

/* ═══════════ CONTACT — Wowrack style ═══════════ */
.nh-contact {
    padding: 90px 0;
    background: var(--bg-primary);
}

.nh-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.nh-contact-info .nh-section-title,
.nh-contact-info .nh-section-desc {
    text-align: left;
    margin-left: 0;
}

.nh-contact .nh-section-title {
    color: var(--text-dark);
}

.nh-contact .nh-section-desc {
    color: var(--text-body);
}

.nh-contact-pretitle {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.nh-contact-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(32, 41, 69, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.nh-contact .nh-contact-item {
    color: var(--text-body);
}

.nh-contact .nh-contact-item strong {
    color: var(--text-muted);
}

.nh-contact .nh-contact-item span {
    color: var(--text-dark);
}

.nh-contact-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0 0;
    padding: 28px 0 0;
    border-top: 1px solid var(--border-subtle);
}

.nh-contact-trust-item {
    text-align: center;
}

.nh-contact-trust-number {
    display: block;
    font-family: 'Lexend', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}

.nh-contact-trust-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nh-contact-form-wrapper {
    position: relative;
}

.nh-contact-form-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
}

[data-theme="dark"] .nh-contact {
    background: var(--bg-primary);
}

[data-theme="dark"] .nh-contact .nh-section-title {
    color: var(--text-dark);
}

[data-theme="dark"] .nh-contact-trust {
    border-top-color: var(--border-subtle);
}

[data-theme="dark"] .nh-contact-item-icon {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .nh-contact .nh-contact-item span {
    color: var(--text-dark);
}

/* ═══════════ RESPONSIVE CONTACT ═══════════ */
@media (max-width: 1023px) {
    .nh-contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nh-contact-form-card {
        padding: 36px;
    }
}

@media (max-width: 689px) {
    .nh-contact {
        padding: 60px 0;
    }

    .nh-contact-form-card {
        padding: 24px;
    }

    .nh-contact-trust {
        gap: 10px;
    }

    .nh-contact-trust-number {
        font-size: 1.2rem;
    }
}

.nh-contact-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}

.nh-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-body);
}

.nh-contact-item svg {
    flex-shrink: 0;
    color: var(--accent-primary);
}

.nh-contact-item strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 2px;
}

.nh-contact-item span {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.nh-social {
    display: flex;
    gap: 10px;
}

.nh-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}

.nh-social a:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-2px);
}

.nh-contact-form {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-subtle);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1023px) {
    .nh-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nh-hero-image {
        order: -1;
    }

    .nh-hero-name {
        font-size: 2.4rem;
    }

    .nh-hero-frame {
        max-width: 280px;
    }

    .nh-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }

    .nh-about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nh-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 689px) {
    .nh-hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .nh-hero-name {
        font-size: 2rem;
    }

    .nh-hero-role {
        font-size: 1.05rem;
    }

    .nh-hero-ctas {
        flex-direction: column;
    }

    .nh-hero-ctas .nh-btn {
        width: 100%;
        justify-content: center;
    }

    .nh-section-title {
        font-size: 1.6rem;
    }

    .nh-stats-grid {
        gap: 32px 16px;
    }

    .nh-stat-number {
        font-size: 2.2rem;
    }

    .nh-skills-grid,
    .nh-projects-grid {
        grid-template-columns: 1fr;
    }

    .nh-about-highlights {
        grid-template-columns: 1fr 1fr;
    }

    .nh-contact-form {
        padding: 24px;
    }
}

/* ═══════════════════════════════════════════
    PAGE HERO (Sobre mi, Proyectos, etc.)
   ═══════════════════════════════════════════ */
.nh-page-hero {
    padding: 100px 0 70px;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-primary) 100%);
    text-align: center;
}

.nh-page-hero--with-image {
    text-align: left;
}

.nh-page-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.nh-page-hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.nh-page-hero-image {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.nh-page-hero-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--bg-white);
    outline: 1px solid var(--border-subtle);
}

.nh-page-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: var(--accent-primary-soft);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nh-page-title {
    font-family: 'Lexend', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 16px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.nh-page-title span {
    color: var(--accent-primary);
}

.nh-page-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.nh-page-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════ BIO ═══════════ */
.nh-bio {
    padding: 80px 0;
    background: var(--bg-primary);
}

.nh-bio-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.nh-bio-text h2 {
    font-family: 'Lexend', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.nh-bio-text h2 span {
    color: var(--accent-primary);
}

.nh-bio-text p {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 16px;
}

.nh-bio-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    position: sticky;
    top: 100px;
}

/* ═══════════ TECH STACK ═══════════ */
.nh-tech-stack {
    padding: 80px 0;
    background: var(--bg-white);
}

.nh-tech-stack--alt {
    background: var(--bg-primary);
}

.nh-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.nh-stack-grid--center {
    max-width: 900px;
    margin: 40px auto 0;
}

.nh-stack-group h3 {
    font-family: 'Lexend', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nh-stack-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nh-stack-tags span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-primary);
    background: var(--accent-primary-soft);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

/* ═══════════ TIMELINE ═══════════ */
.nh-experience {
    padding: 80px 0;
    background: var(--bg-primary);
}

.nh-timeline {
    position: relative;
    max-width: 760px;
    margin: 40px auto 0;
    padding-left: 32px;
}

.nh-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-visible);
}

.nh-timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.nh-timeline-dot {
    position: absolute;
    left: -28px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--accent-primary-soft);
    z-index: 1;
}

.nh-timeline-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
}

.nh-timeline-period {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: var(--accent-primary-soft);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}

.nh-timeline-card h3 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.nh-timeline-role {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.nh-timeline-card p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
}

.nh-timeline-card--image {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 24px;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.nh-timeline-body {
    padding: 24px 28px;
}

.nh-timeline-image {
    height: 100%;
    min-height: 180px;
}

.nh-timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ═══════════ PAGE CTA BOX ═══════════ */
.nh-page-cta {
    padding: 0 0 80px;
    background: var(--bg-primary);
}

.nh-page-cta .nh-container:last-child {
    padding-bottom: 0;
}

.nh-cta-box {
    background: linear-gradient(135deg, var(--bg-navy), var(--bg-navy-light));
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
}

.nh-cta-box h2 {
    font-family: 'Lexend', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.nh-cta-box p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 24px;
}

/* ═══════════ PROJECTS PAGE ═══════════ */
.nh-projects-page {
    padding: 80px 0;
    background: var(--bg-primary);
}

.nh-projects-featured {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 860px;
    margin: 0 auto;
}

.nh-project-featured {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
}

.nh-project-featured:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.nh-project-featured-img {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: var(--accent-primary-soft);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nh-project-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-primary);
    background: var(--accent-primary-soft);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}

.nh-project-featured-body h3 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.nh-project-featured-body > p {
    font-size: 0.93rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 16px;
}

.nh-project-tags-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.nh-project-tags-list span {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

/* ═══════════ RESPONSIVE: PAGES ═══════════ */
@media (max-width: 1023px) {
    .nh-page-title {
        font-size: 2rem;
    }

    .nh-bio-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nh-bio-highlights {
        position: static;
        grid-template-columns: repeat(4, 1fr);
    }

    .nh-project-featured {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nh-project-featured-img {
        width: 56px;
        height: 56px;
    }

    .nh-cta-box {
        padding: 40px 32px;
    }

    .nh-cta-box h2 {
        font-size: 1.5rem;
    }

    .nh-page-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nh-page-hero-image {
        order: -1;
    }

    .nh-timeline-card--image {
        grid-template-columns: 1fr;
    }

    .nh-timeline-image {
        min-height: 180px;
        max-height: 220px;
    }

    .nh-timeline-image img {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
}

@media (max-width: 689px) {
    .nh-page-hero {
        padding: 80px 0 50px;
    }

    .nh-page-title {
        font-size: 1.5rem;
    }

    .nh-page-subtitle {
        font-size: 0.95rem;
    }

    .nh-page-ctas {
        flex-direction: column;
    }

    .nh-page-ctas .nh-btn {
        width: 100%;
    }

    .nh-bio-highlights {
        grid-template-columns: 1fr 1fr;
    }

    .nh-timeline {
        padding-left: 24px;
    }

    .nh-timeline-card {
        padding: 18px 16px;
    }

    .nh-timeline-dot {
        left: -20px;
    }

    .nh-project-featured {
        padding: 24px;
    }

    .nh-cta-box {
        padding: 32px 20px;
    }
}

/* ═══════════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════════ */
[data-theme="dark"] {
    --bg-primary: #0f1119;
    --bg-white: #1a1d28;
    --bg-navy: #252a3e;
    --bg-navy-light: #2d3348;
    --text-dark: #e8eaf0;
    --text-body: #a0a4b8;
    --text-muted: #6b7084;
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-visible: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] body {
    background-color: var(--bg-primary);
}

[data-theme="dark"] #masthead, .site-header {
    background-color: rgba(15, 17, 25, 0.9) !important;
    border-bottom-color: var(--border-subtle);
}

[data-theme="dark"] .header-navigation li.menu-item>a {
    color: var(--text-body);
}

[data-theme="dark"] .nh-btn-outline {
    border-color: var(--border-visible);
    color: var(--text-dark);
}

[data-theme="dark"] .nh-btn-outline:hover {
    background: var(--bg-navy-light);
    border-color: var(--bg-navy-light);
}

[data-theme="dark"] .nh-hero {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-primary) 100%);
}

[data-theme="dark"] .nh-page-hero,
[data-theme="dark"] .nh-bio,
[data-theme="dark"] .nh-tech-stack--alt,
[data-theme="dark"] .nh-projects-page {
    background: var(--bg-primary);
}

[data-theme="dark"] .nh-tech-stack,
[data-theme="dark"] .nh-projects,
[data-theme="dark"] .nh-contact,
[data-theme="dark"] .nh-contact-page {
    background: var(--bg-white);
}

[data-theme="dark"] .nh-section-title,
[data-theme="dark"] .nh-page-title,
[data-theme="dark"] .nh-bio-text h2,
[data-theme="dark"] .nh-cv-section h2 {
    color: var(--text-dark);
}

[data-theme="dark"] .nh-skill-card,
[data-theme="dark"] .nh-project-card,
[data-theme="dark"] .nh-project-featured,
[data-theme="dark"] .nh-timeline-card,
[data-theme="dark"] .nh-cv-card,
[data-theme="dark"] .nh-contact-page-form {
    background: var(--bg-white);
    border-color: var(--border-subtle);
}

[data-theme="dark"] .nh-stack-tags span,
[data-theme="dark"] .nh-project-tags-list span {
    background: var(--bg-primary);
    color: var(--text-muted);
}

[data-theme="dark"] .nh-techs-carousel span {
    background: var(--bg-white);
    border-color: var(--border-subtle);
    color: var(--text-muted);
}

[data-theme="dark"] .nh-timeline-dot {
    border-color: var(--bg-primary);
}

[data-theme="dark"] .nh-page-hero-img,
[data-theme="dark"] .nh-hero-frame {
    border-color: var(--bg-white);
}

[data-theme="dark"] #colophon, .site-footer {
    background: linear-gradient(180deg, #0a0d14 0%, #06080d 100%);
}

[data-theme="dark"] .ct-panel {
    background: rgba(15, 17, 25, 0.98);
}

[data-theme="dark"] .wpforms-container input,
[data-theme="dark"] .wpforms-container textarea {
    background: var(--bg-white);
    border-color: var(--border-visible);
    color: var(--text-dark);
}

/* ═══════════ THEME TOGGLE ═══════════ */
#theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-visible);
    background: transparent;
    cursor: pointer;
    color: var(--text-dark);
    transition: all var(--transition);
}

#theme-toggle-btn:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

#theme-toggle-btn .icon-dark { display: none; }
#theme-toggle-btn .icon-light { display: block; }
[data-theme="dark"] #theme-toggle-btn .icon-dark { display: block; }
[data-theme="dark"] #theme-toggle-btn .icon-light { display: none; }

/* ═══════════ CUSTOM FOOTER ═══════════ */
.nh-footer {
    background: linear-gradient(180deg, var(--bg-navy) 0%, #10131c 100%);
    color: rgba(255, 255, 255, 0.55);
    padding: 0;
    border-top: none;
}

.nh-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 48px;
    padding: 64px 0 48px;
}

.nh-footer-brand h3 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.nh-footer-brand h3 span {
    color: var(--accent-primary);
}

.nh-footer-brand p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 18px;
    max-width: 280px;
}

.nh-footer-social {
    display: flex;
    gap: 10px;
}

.nh-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all var(--transition);
}

.nh-footer-social a:hover {
    background: var(--accent-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.nh-footer-col h4 {
    font-family: 'Lexend', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nh-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nh-footer-col li {
    margin-bottom: 8px;
}

.nh-footer-col a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color var(--transition);
}

.nh-footer-col a:hover {
    color: var(--accent-primary);
}

.nh-footer-cta p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin-bottom: 18px;
}

.nh-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    text-align: center;
}

.nh-footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.2);
}

/* ═══════════ FORM STYLING ═══════════ */
.wpforms-container {
    margin: 0 !important;
}

.wpforms-container .wpforms-field {
    padding: 0 0 18px 0 !important;
}

.wpforms-container .wpforms-field-label {
    font-family: 'Lexend', sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    margin-bottom: 6px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container textarea,
.wpforms-container select {
    width: 100% !important;
    max-width: 100% !important;
    background: var(--bg-primary) !important;
    border: 1.5px solid var(--border-visible) !important;
    border-radius: var(--radius-sm) !important;
    padding: 14px 16px !important;
    font-family: 'Lexend', sans-serif !important;
    font-size: 0.92rem !important;
    color: var(--text-dark) !important;
    transition: all var(--transition) !important;
    box-shadow: none !important;
}

.wpforms-container input:focus,
.wpforms-container textarea:focus,
.wpforms-container select:focus {
    outline: none !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 4px var(--accent-primary-soft) !important;
}

.wpforms-container textarea {
    min-height: 130px !important;
    resize: vertical;
}

.wpforms-submit-container {
    text-align: left !important;
    padding-top: 4px !important;
}

button.wpforms-submit {
    width: 100% !important;
    background: linear-gradient(135deg, var(--accent-primary), #ff7e35) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--radius-full) !important;
    padding: 15px 36px !important;
    font-family: 'Lexend', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    cursor: pointer !important;
    transition: all var(--transition) !important;
    box-shadow: 0 4px 14px rgba(255, 99, 16, 0.18) !important;
}

button.wpforms-submit:hover {
    background: linear-gradient(135deg, var(--accent-primary-hover), #ff6310) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-glow) !important;
}

/* ═══════════ RESPONSIVE FOOTER ═══════════ */
@media (max-width: 1023px) {
    .nh-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
        padding: 48px 0 36px;
    }
}

@media (max-width: 689px) {
    .nh-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0 28px;
    }

    .nh-footer-brand p {
        max-width: 100%;
    }
}

/* ═══════════ CV PAGE ═══════════ */
.nh-cv {
    padding: 60px 0 80px;
    background: var(--bg-primary);
}

.nh-cv-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
}

.nh-cv-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nh-cv-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
}

.nh-cv-card h3 {
    font-family: 'Lexend', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.nh-cv-contact p {
    font-size: 0.88rem;
    color: var(--text-body);
    margin-bottom: 8px;
    line-height: 1.5;
}

.nh-cv-contact strong {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nh-cv-card .nh-stack-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nh-cv-card .nh-stack-tags span {
    font-size: 0.75rem;
}

.nh-cv-section {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    margin-bottom: 24px;
}

.nh-cv-section h2 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.nh-cv-section h2 span {
    color: var(--accent-primary);
}

.nh-cv-section p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
}

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

.nh-cv-job:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nh-cv-period {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: var(--accent-primary-soft);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}

.nh-cv-job h3 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.nh-cv-job p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
}

/* ═══════════ CONTACT PAGE ═══════════ */
.nh-contact-page {
    padding: 60px 0 80px;
    background: var(--bg-primary);
}

.nh-contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: start;
}

.nh-contact-items--hero {
    margin-top: 24px;
    margin-bottom: 0;
}

.nh-contact-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    text-align: center;
    margin-top: 28px;
}

.nh-contact-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-primary-soft);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.nh-contact-card h3 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.nh-contact-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.nh-contact-page-form {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

/* ═══════════ SCROLL REVEAL ═══════════ */
.nh-section-title,
.nh-section-desc,
.nh-bio-grid > *,
.nh-skills-grid > *,
.nh-projects-grid > *,
.nh-timeline-item,
.nh-project-featured,
.nh-highlight-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.nh-section-title.revealed,
.nh-section-desc.revealed,
.nh-bio-grid > *.revealed,
.nh-skills-grid > *.revealed,
.nh-projects-grid > *.revealed,
.nh-timeline-item.revealed,
.nh-project-featured.revealed,
.nh-highlight-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════ RESPONSIVE: CV & CONTACT ═══════════ */
@media (max-width: 1023px) {
    .nh-cv-grid {
        grid-template-columns: 1fr;
    }

    .nh-cv-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .nh-contact-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 689px) {
    .nh-cv-sidebar {
        grid-template-columns: 1fr;
    }

    .nh-cv-section {
        padding: 24px;
    }

    .nh-contact-page-form {
        padding: 24px;
    }
}

/* ═══════════ TRENDING SECTION — HIDE ═══════════ */
.ct-trending-block,
[class*="trending-block"],
.ct-trending {
    display: none !important;
}

/* ═══════════════════════════════════════════
   BLOG — Cards & Post Layout
   ═══════════════════════════════════════════ */

/* ─── Blog Archive Header ────────────────── */
.hero-section[data-type="type-2"] {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-primary) 100%);
    padding: 100px 0 60px;
    text-align: center;
}

.hero-section[data-type="type-2"] .page-title {
    font-family: 'Lexend', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.hero-section[data-type="type-2"] .page-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 12px auto 0;
}

/* ─── Blog Entry Card ────────────────────── */
[data-archive="default"] article,
.entries article,
.ct-posts article {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all var(--transition);
}

[data-archive="default"] article:hover,
.entries article:hover,
.ct-posts article:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary-soft);
}

.ct-media-container img {
    transition: transform 0.5s ease;
}

article:hover .ct-media-container img {
    transform: scale(1.04);
}

.entry-title a {
    font-family: 'Lexend', sans-serif !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    transition: color var(--transition) !important;
}

.entry-title a:hover {
    color: var(--accent-primary) !important;
}

.entry-excerpt {
    color: var(--text-body);
    font-size: 0.92rem;
    line-height: 1.6;
}

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

.entry-meta a {
    color: var(--accent-primary);
}

.entry-meta li:not(:last-child):after {
    color: var(--border-visible);
}

/* ─── Post Tags / Categories ─────────────── */
.entry-tags a,
.ct-post-tags a {
    background: var(--accent-primary-soft);
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    transition: all var(--transition);
}

.entry-tags a:hover,
.ct-post-tags a:hover {
    background: var(--accent-primary);
    color: #fff;
}

/* ─── Pagination ─────────────────────────── */
.ct-pagination {
    gap: 8px;
}

.ct-pagination .page-numbers {
    font-family: 'Lexend', sans-serif;
    font-weight: 500;
    border-radius: var(--radius-full);
    padding: 8px 16px;
    transition: all var(--transition);
    color: var(--text-body);
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
}

.ct-pagination .page-numbers.current {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.ct-pagination .page-numbers:hover:not(.current) {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ─── Single Post ────────────────────────── */
.single-post .hero-section {
    background: var(--bg-primary);
    padding: 80px 0 40px;
}

.single-post .entry-header .page-title {
    font-family: 'Lexend', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.single-post .entry-content {
    color: var(--text-body);
    font-size: 1.02rem;
    line-height: 1.75;
}

.single-post .entry-content h2 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 40px;
}

.single-post .entry-content h3 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 28px;
}

.single-post .entry-content a {
    color: var(--accent-primary);
    font-weight: 500;
}

.single-post .entry-content pre {
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    font-size: 0.9rem;
    border: 1px solid var(--border-subtle);
}

.single-post .entry-content code {
    background: var(--accent-primary-soft);
    color: var(--accent-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.single-post .entry-content pre code {
    background: none;
    color: var(--text-body);
    padding: 0;
}

/* ─── Sidebar ────────────────────────────── */
.ct-sidebar .widget-title {
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
}

.ct-sidebar a {
    color: var(--text-body);
    transition: color var(--transition);
}

.ct-sidebar a:hover {
    color: var(--accent-primary);
}

/* ─── Author Box ─────────────────────────── */
.ct-author-box {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    padding: 28px;
}

.ct-author-box .ct-author-name {
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
}

/* ─── Comments ───────────────────────────── */
.ct-comments {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
}

.ct-comments .ct-comment-title {
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
}

.ct-has-avatar .ct-comment-content {
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    padding: 20px;
}

