/**
 * JNH — global “pleasant” pass: calmer surfaces, softer motion, consistent rhythm.
 * Loads last so it can tune earlier layers without editing dozens of templates.
 */

:root {
    --jnh-radius: 12px;
    --jnh-radius-sm: 8px;
    --jnh-page-bg: #f4f7fa;
    --jnh-surface: #ffffff;
    --jnh-shadow-soft: 0 4px 24px rgba(15, 35, 60, 0.06);
    --jnh-shadow-hover: 0 12px 36px rgba(15, 35, 60, 0.09);
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    background-color: var(--jnh-page-bg);
    color: var(--text-dark);
    line-height: 1.65;
}

/* Main content feels like one calm canvas */
.site-main,
#main.site-main {
    background-color: transparent;
}

/* Containers — breathing room */
.container {
    padding-left: clamp(16px, 4vw, 28px);
    padding-right: clamp(16px, 4vw, 28px);
}

/* Header: lighter separation, less “stamped” */
.site-header {
    box-shadow: 0 1px 0 rgba(15, 35, 60, 0.06), 0 8px 32px rgba(15, 35, 60, 0.04);
    border-bottom-color: rgba(26, 84, 144, 0.08);
}

.site-header.scrolled {
    box-shadow: 0 1px 0 rgba(15, 35, 60, 0.08), 0 12px 40px rgba(15, 35, 60, 0.06);
}

/* Primary buttons — one friendly system */
.btn-primary,
a.btn-primary,
button.btn-primary {
    border-radius: var(--jnh-radius-sm);
    padding: 0.65rem 1.35rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(26, 84, 144, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary:hover,
a.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(26, 84, 144, 0.28);
}

.btn-secondary {
    border-radius: var(--jnh-radius-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Tone down “flashy” card motion from earlier enhancement CSS */
.service-card:not(.jnh-hero-quick__card),
.stat-item {
    animation: none;
    border-radius: var(--jnh-radius);
    box-shadow: var(--jnh-shadow-soft);
    border-color: rgba(26, 84, 144, 0.07);
    background: var(--jnh-surface);
}

.service-card:hover,
.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--jnh-shadow-hover);
}

/* Inner pages: default article card feel */
.page .site-main article.post,
.page .site-main .entry-content-wrap,
.site-main .post-card {
    border-radius: var(--jnh-radius);
}

.site-main .post-card {
    box-shadow: var(--jnh-shadow-soft);
    border: 1px solid rgba(26, 84, 144, 0.06);
    overflow: hidden;
    background: var(--jnh-surface);
}

.site-main .post-card:hover {
    box-shadow: var(--jnh-shadow-hover);
}

/* Typography rhythm in long copy */
.entry-content,
.entry-content p,
.page .entry-content {
    line-height: 1.75;
}

.entry-content h2,
.entry-content h3 {
 margin-top: 1.75rem;
}

/* Links in body copy */
.entry-content a {
    color: var(--accent-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.entry-content a:hover {
    color: var(--primary-color);
    text-decoration-color: var(--primary-color);
}

/* Footer: calmer top edge */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.06);
}

/* Form controls — slightly softer */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
select,
textarea {
    border-radius: var(--jnh-radius-sm);
    border-color: rgba(26, 84, 144, 0.18);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 84, 144, 0.15);
    outline: none;
}

/* Section titles — a bit less loud on inner pages */
.section-title h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

/* Focus visibility for keyboard users */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}
