/* NepsyNavi.fi — Design System v2.3 */

:root {
    --navi-forest: #2D6A4F;
    --navi-forest-light: #40916C;
    --navi-forest-dark: #1B4332;
    --navi-terracotta: #E07A5F;
    --navi-honey: #F2CC8F;
    --navi-family: #E07A5F;
    --navi-kids: #00B4D8;
    --navi-pro: #457B9D;
    --navi-cream: #FDFBF7;
    --navi-charcoal: #2D3436;
    --navi-muted: #6B7280;
    --navi-border: rgba(45, 106, 79, 0.10);
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --section-pad: clamp(64px, 9vw, 128px);
    --content-max: 1140px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.35s var(--ease-out);
}

* { box-sizing: border-box; }
body { font-family: var(--font-body) !important; color: var(--navi-charcoal); background: var(--navi-cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* Scroll reveal */
.js-loaded .scroll-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out); }
.js-loaded .scroll-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Sticky header */
.site-header { position: sticky !important; top: 0; z-index: 999; background: rgba(253, 251, 247, 0.92) !important; backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border-bottom: 1px solid rgba(45, 106, 79, 0.06) !important; box-shadow: none !important; transition: all 0.4s var(--ease-out) !important; }
.site-header.header-scrolled { background: rgba(253, 251, 247, 0.97) !important; box-shadow: 0 1px 24px rgba(0,0,0,0.06) !important; border-bottom-color: transparent !important; }
.site-branding .site-title, .site-branding .site-title a { font-family: var(--font-display) !important; font-size: 1.35rem !important; color: var(--navi-forest) !important; text-decoration: none !important; }
.primary-menu-container .menu > li > a { font-family: var(--font-body) !important; font-size: 0.85rem !important; font-weight: 600 !important; letter-spacing: 0.03em !important; color: var(--navi-muted) !important; transition: var(--transition) !important; position: relative !important; }
.primary-menu-container .menu > li > a::after { content: ''; position: absolute; bottom: -2px; left: 50%; width: 0; height: 2px; background: var(--navi-forest); border-radius: 1px; transition: all 0.3s var(--ease-out); transform: translateX(-50%); }
.primary-menu-container .menu > li > a:hover { color: var(--navi-forest) !important; }
.primary-menu-container .menu > li > a:hover::after { width: 20px; }

/* Kill Kadence wrappers on ALL pages with custom sections */
.page .entry-content, .page .site-container .content-area, .page .site-container .site-main, .page .site-container .content-wrap, .page .content-area article, .page .entry-content-wrap { max-width: none !important; padding: 0 !important; margin: 0 !important; }
.page .site-main { margin: 0 !important; }

/* Hide page title when hero section exists */
.nepsy-page .entry-header, .nepsy-page .page-header { display: none !important; }

/* Hide page title on section pages that have .nepsy-hero */
.page:has(.nepsy-hero) .entry-header,
.page:has(.nepsy-hero) .page-header { display: none !important; }

/* Fallback for browsers without :has — hide via JS class */
.nepsy-section-page .entry-header,
.nepsy-section-page .page-header { display: none !important; }

/* Hero */
.nepsy-hero { position: relative; min-height: min(90vh, 700px); display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 24px 72px; background: radial-gradient(ellipse 90% 70% at 50% 35%, rgba(45,106,79,0.06) 0%, transparent 60%), radial-gradient(ellipse 50% 40% at 85% 15%, rgba(224,122,95,0.04) 0%, transparent 60%), radial-gradient(ellipse 40% 35% at 15% 75%, rgba(242,204,143,0.05) 0%, transparent 60%), linear-gradient(180deg, var(--navi-cream) 0%, #f4efe6 40%, #eef3ee 70%, var(--navi-cream) 100%); overflow: hidden; }
.nepsy-hero::before { content: ''; position: absolute; top: calc(8% - var(--parallax-y, 0px)); right: -4%; width: 420px; height: 420px; border: 1.5px solid rgba(45,106,79,0.07); border-radius: 50%; pointer-events: none; animation: float 22s ease-in-out infinite; }
.nepsy-hero::after { content: ''; position: absolute; bottom: calc(2% + var(--parallax-y, 0px) * 0.5); left: -6%; width: 320px; height: 320px; border: 1.5px solid rgba(224,122,95,0.05); border-radius: 50%; pointer-events: none; animation: float 28s ease-in-out infinite reverse; }

@keyframes float { 0%, 100% { transform: translate(0,0) scale(1) rotate(0deg); } 33% { transform: translate(12px,-18px) scale(1.02) rotate(2deg); } 66% { transform: translate(-8px,10px) scale(0.98) rotate(-1deg); } }

.nepsy-hero .hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.nepsy-hero .hero-label { display: inline-block; font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--navi-forest); background: rgba(45,106,79,0.07); padding: 10px 24px; border-radius: 100px; margin-bottom: 28px; border: 1px solid rgba(45,106,79,0.08); }
.nepsy-hero h1 { font-family: var(--font-display) !important; font-size: clamp(2.2rem, 5.5vw, 3.8rem) !important; font-weight: 400 !important; line-height: 1.15 !important; color: var(--navi-charcoal) !important; margin: 0 0 24px 0 !important; padding: 0 !important; }
.nepsy-hero h1 em { font-style: normal; color: var(--navi-forest); position: relative; white-space: nowrap; }
.nepsy-hero h1 em::after { content: ''; position: absolute; left: -2px; bottom: 2px; width: calc(100% + 4px); height: 10px; background: rgba(242,204,143,0.45); border-radius: 5px; z-index: -1; }
.nepsy-hero .hero-subtitle { font-size: clamp(1rem, 1.7vw, 1.15rem); line-height: 1.8; color: var(--navi-muted); max-width: 520px; margin: 0 auto 40px; }
.nepsy-hero .hero-cta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: white !important; background: var(--navi-forest); padding: 16px 36px; border-radius: 100px; text-decoration: none !important; transition: var(--transition); box-shadow: 0 4px 24px rgba(45,106,79,0.2); position: relative; overflow: hidden; }
.nepsy-hero .hero-cta::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent); transition: left 0.6s ease; }
.nepsy-hero .hero-cta:hover { background: var(--navi-forest-light); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(45,106,79,0.3), 0 0 0 4px rgba(45,106,79,0.08); }
.nepsy-hero .hero-cta:hover::before { left: 100%; }

.hero-scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--navi-muted); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.5; animation: bounce 2s ease-in-out infinite; }
.hero-scroll-hint .scroll-line { width: 1px; height: 28px; background: linear-gradient(to bottom, var(--navi-muted), transparent); }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* Pathways */
.nepsy-pathways { padding: var(--section-pad) 24px; background: white; }
.nepsy-pathways .section-header { text-align: center; max-width: 520px; margin: 0 auto 56px; }
.nepsy-pathways .section-label { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--navi-forest); margin-bottom: 14px; }
.nepsy-pathways h2 { font-family: var(--font-display) !important; font-size: clamp(1.8rem, 3.5vw, 2.5rem) !important; font-weight: 400 !important; color: var(--navi-charcoal) !important; margin-bottom: 12px !important; }
.nepsy-pathways .section-desc { color: var(--navi-muted); font-size: 1rem; line-height: 1.75; }
.pathways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--content-max); margin: 0 auto; }

.pathway-card { position: relative; background: var(--navi-cream); border-radius: 20px; padding: 40px 30px 36px; border: 1px solid var(--navi-border); transition: all 0.4s var(--ease-out); overflow: hidden; text-decoration: none !important; color: inherit !important; display: flex; flex-direction: column; }
.pathway-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 20px 20px 0 0; transition: height 0.5s var(--ease-out); }
.pathway-card::after { content: ''; position: absolute; bottom: -60%; right: -20%; width: 200px; height: 200px; border-radius: 50%; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.pathway-card:hover { transform: translateY(-10px); box-shadow: 0 28px 72px rgba(0,0,0,0.1); border-color: transparent; }
.pathway-card:hover::before { height: 5px; }
.pathway-card:hover::after { opacity: 1; }

.pathway-card.family::before { background: var(--navi-family); }
.pathway-card.family::after { background: radial-gradient(circle, rgba(224,122,95,0.06), transparent 70%); }
.pathway-card.family .pathway-icon { background: rgba(224,122,95,0.1); color: var(--navi-family); }
.pathway-card.kids::before { background: var(--navi-kids); }
.pathway-card.kids::after { background: radial-gradient(circle, rgba(0,180,216,0.06), transparent 70%); }
.pathway-card.kids .pathway-icon { background: rgba(0,180,216,0.1); color: var(--navi-kids); }
.pathway-card.pro::before { background: var(--navi-pro); }
.pathway-card.pro::after { background: radial-gradient(circle, rgba(69,123,157,0.06), transparent 70%); }
.pathway-card.pro .pathway-icon { background: rgba(69,123,157,0.1); color: var(--navi-pro); }

.pathway-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 22px; transition: all 0.4s var(--ease-out); }
.pathway-card:hover .pathway-icon { transform: scale(1.12) rotate(-3deg); }
.pathway-card h3 { font-family: var(--font-display) !important; font-size: 1.4rem !important; font-weight: 400 !important; margin-bottom: 10px !important; color: var(--navi-charcoal) !important; }
.pathway-card p { color: var(--navi-muted); line-height: 1.7; margin-bottom: 20px; font-size: 0.92rem; flex-grow: 1; }
.pathway-link { font-size: 0.85rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.pathway-card.family .pathway-link { color: var(--navi-family); }
.pathway-card.kids .pathway-link { color: var(--navi-kids); }
.pathway-card.pro .pathway-link { color: var(--navi-pro); }
.pathway-card:hover .pathway-link { gap: 14px; }

/* B2B Section */
.nepsy-b2b { padding: var(--section-pad) 24px; background: var(--navi-cream); }
.b2b-inner { max-width: var(--content-max); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: start; }
.b2b-label { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--navi-pro); margin-bottom: 14px; }
.b2b-content h2 { font-family: var(--font-display) !important; font-size: clamp(1.6rem, 3vw, 2.1rem) !important; font-weight: 400 !important; color: var(--navi-charcoal) !important; margin-bottom: 16px !important; line-height: 1.3 !important; }
.b2b-content > p { color: var(--navi-muted); line-height: 1.85; font-size: 0.98rem; margin-bottom: 32px; }
.b2b-features { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.b2b-feature { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; background: white; border-radius: 16px; border: 1px solid var(--navi-border); transition: all 0.4s var(--ease-out); }
.b2b-feature:hover { transform: translateX(6px); box-shadow: 0 8px 32px rgba(0,0,0,0.05); border-color: rgba(69,123,157,0.2); }
.b2b-feature-icon { font-size: 1.4rem; flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(69,123,157,0.08); border-radius: 12px; }
.b2b-feature strong { display: block; font-size: 0.92rem; font-weight: 700; color: var(--navi-charcoal); margin-bottom: 4px; }
.b2b-feature span { font-size: 0.85rem; color: var(--navi-muted); line-height: 1.6; }
.b2b-cta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: white !important; background: var(--navi-pro); padding: 14px 30px; border-radius: 100px; text-decoration: none !important; transition: var(--transition); box-shadow: 0 4px 20px rgba(69,123,157,0.25); }
.b2b-cta:hover { background: #3a6a87; transform: translateY(-3px); box-shadow: 0 8px 32px rgba(69,123,157,0.35); }
.b2b-stats { display: flex; flex-direction: column; gap: 16px; padding-top: 40px; }
.b2b-stat { background: white; border: 1px solid var(--navi-border); border-radius: 16px; padding: 26px 24px; transition: all 0.4s var(--ease-out); }
.b2b-stat:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.06); border-color: rgba(69,123,157,0.15); }
.b2b-stat-number { font-family: var(--font-display); font-size: 2rem; color: var(--navi-pro); line-height: 1; margin-bottom: 6px; }
.b2b-stat-text { font-size: 0.82rem; color: var(--navi-muted); line-height: 1.5; }

/* Trust */
.nepsy-trust { padding: var(--section-pad) 24px; background: linear-gradient(135deg, var(--navi-forest-dark) 0%, #1a3a2a 50%, #162e22 100%); color: white; position: relative; overflow: hidden; }
.nepsy-trust::before { content: ''; position: absolute; top: -20%; right: -10%; width: 500px; height: 500px; border: 1px solid rgba(255,255,255,0.03); border-radius: 50%; pointer-events: none; }
.trust-inner { max-width: var(--content-max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 2; }
.trust-content h2 { font-family: var(--font-display) !important; font-size: clamp(1.6rem, 3vw, 2.1rem) !important; font-weight: 400 !important; margin-bottom: 18px !important; color: white !important; line-height: 1.3 !important; }
.trust-content p { color: rgba(255,255,255,0.65); line-height: 1.85; font-size: 0.98rem; }
.trust-credentials { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.trust-credentials .cred-avatar { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.trust-credentials .cred-name { font-weight: 700; font-size: 0.9rem; color: white; }
.trust-credentials .cred-title { font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-top: 3px; line-height: 1.4; }
.trust-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 26px 18px; text-align: center; transition: all 0.4s var(--ease-out); }
.stat-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); border-color: rgba(255,255,255,0.12); }
.stat-card .stat-number { font-family: var(--font-display); font-size: 2rem; color: var(--navi-honey); margin-bottom: 6px; line-height: 1; }
.stat-card .stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.45); line-height: 1.5; }

/* Articles */
.nepsy-articles { padding: var(--section-pad) 24px; background: var(--navi-cream); }
.nepsy-articles .section-header { text-align: center; margin-bottom: 40px; }
.nepsy-articles h2 { font-family: var(--font-display) !important; font-size: clamp(1.6rem, 3vw, 2.1rem) !important; font-weight: 400 !important; color: var(--navi-charcoal) !important; }
.article-featured { max-width: 720px; margin: 0 auto; background: white; border-radius: 20px; overflow: hidden; border: 1px solid var(--navi-border); transition: all 0.4s var(--ease-out); display: block; text-decoration: none !important; color: inherit !important; position: relative; }
.article-featured::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 0; background: var(--navi-family); border-radius: 0 0 4px 0; transition: height 0.5s var(--ease-out); }
.article-featured:hover { transform: translateY(-6px); box-shadow: 0 24px 64px rgba(0,0,0,0.08); border-color: transparent; }
.article-featured:hover::before { height: 100%; }
.article-featured .article-body { padding: 40px 44px; }
.article-featured .article-cat { display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navi-family); background: rgba(224,122,95,0.07); padding: 7px 16px; border-radius: 100px; margin-bottom: 16px; }
.article-featured h3 { font-family: var(--font-display) !important; font-size: 1.45rem !important; font-weight: 400 !important; margin-bottom: 10px !important; color: var(--navi-charcoal) !important; }
.article-featured p { color: var(--navi-muted); line-height: 1.75; margin-bottom: 20px; font-size: 0.95rem; }
.article-read-more { font-weight: 700; font-size: 0.85rem; color: var(--navi-forest) !important; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.article-featured:hover .article-read-more { gap: 14px; color: var(--navi-family) !important; }

/* CTA */
.nepsy-cta { padding: var(--section-pad) 24px; background: radial-gradient(ellipse 70% 50% at 30% 50%, rgba(45,106,79,0.05) 0%, transparent 70%), radial-gradient(ellipse 60% 40% at 70% 60%, rgba(224,122,95,0.03) 0%, transparent 70%), linear-gradient(135deg, #f0ebe3 0%, #e8f0e9 100%); text-align: center; }
.nepsy-cta h2 { font-family: var(--font-display) !important; font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important; font-weight: 400 !important; color: var(--navi-charcoal) !important; margin-bottom: 14px !important; }
.nepsy-cta p { color: var(--navi-muted); font-size: 1.05rem; max-width: 460px; margin: 0 auto 36px; line-height: 1.75; }
.nepsy-cta .cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.nepsy-cta .btn-primary { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: white !important; background: var(--navi-forest); padding: 16px 34px; border-radius: 100px; text-decoration: none !important; transition: var(--transition); box-shadow: 0 4px 20px rgba(45,106,79,0.2); }
.nepsy-cta .btn-primary:hover { background: var(--navi-forest-light); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(45,106,79,0.3); }
.nepsy-cta .btn-secondary { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--navi-forest) !important; background: white; padding: 16px 34px; border-radius: 100px; text-decoration: none !important; transition: var(--transition); border: 1px solid var(--navi-border); }
.nepsy-cta .btn-secondary:hover { background: var(--navi-cream); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.05); }

/* Footer */
.site-footer { background: var(--navi-forest-dark) !important; color: rgba(255,255,255,0.5) !important; border: none !important; }
.site-footer a { color: var(--navi-honey) !important; }
.site-footer .site-info { color: rgba(255,255,255,0.4) !important; font-size: 0.85rem !important; }

/* Responsive */
@media (max-width: 900px) {
    .pathways-grid { grid-template-columns: 1fr; max-width: 460px; gap: 18px; }
    .trust-inner { grid-template-columns: 1fr; gap: 40px; }
    .b2b-inner { grid-template-columns: 1fr; gap: 32px; }
    .b2b-stats { padding-top: 0; }
}
@media (max-width: 600px) {
    .nepsy-hero { min-height: auto; padding: 40px 20px 52px; }
    .hero-scroll-hint { display: none; }
    .pathway-card { padding: 30px 24px 26px; }
    .trust-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 20px 14px; }
    .stat-card .stat-number { font-size: 1.7rem; }
    .article-featured .article-body { padding: 28px 24px; }
    .nepsy-cta .cta-buttons { flex-direction: column; align-items: center; }
    .b2b-feature { padding: 16px 18px; }
    .b2b-stats { flex-direction: row; flex-wrap: wrap; }
    .b2b-stat { flex: 1; min-width: 140px; padding: 20px 16px; }
    .b2b-stat-number { font-size: 1.7rem; }
}

/* Hero entry */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
.nepsy-hero .hero-inner > * { animation: fadeInUp 0.7s var(--ease-out) both; }
.nepsy-hero .hero-label { animation-delay: 0.05s; }
.nepsy-hero h1 { animation-delay: 0.15s; }
.nepsy-hero .hero-subtitle { animation-delay: 0.3s; }
.nepsy-hero .hero-cta { animation-delay: 0.45s; }

::selection { background: rgba(45,106,79,0.15); color: var(--navi-forest-dark); }
