/*
Theme Name: Kynvo
Theme URI: https://kynvo.com
Author: Kynvo
Description: Kynvo growth partner theme. Home, Approach and Contact pages.
Version: 3.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kynvo
*/

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .045; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
::selection { background: #DD6629; color: #fff; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.kv-orange { color: var(--wp--preset--color--accent); }

.wp-site-blocks > * + * { margin-block-start: 0 !important; }
main.wp-block-group > * + * { margin-block-start: 0; }

/* ---------- Header ---------- */
.kv-header { position: sticky; top: 0; z-index: 50; background: rgba(244,241,235,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(20,20,20,.08); }
.admin-bar .kv-header { top: 32px; }
.kv-logo img { width: 116px; height: auto; display: block; }
.kv-header .wp-block-navigation a { position: relative; }
.kv-header .wp-block-navigation a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--wp--preset--color--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.kv-header .wp-block-navigation a:hover::after { transform: scaleX(1); }
.kv-header .wp-block-button__link { padding: .72rem 1.35rem !important; font-size: .8125rem !important; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--base) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-family: var(--wp--preset--font-family--display); font-size: 2.75rem; }

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link { transition: background-color .25s ease, color .25s ease, transform .25s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }

/* ---------- Labels ---------- */
.kv-label { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--accent); display: flex; align-items: center; gap: .6rem; }
.kv-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Hero ---------- */
.kv-hero { position: relative; overflow: hidden; }
.kv-hero h1 { font-size: clamp(3.5rem, 7vw, 8rem); }
.kv-hero-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2F8A57; box-shadow: 0 0 0 4px rgba(47,138,87,.15); flex: none; }
.kv-hero-note { display: flex; align-items: center; gap: .9rem; font-size: .875rem; color: var(--wp--preset--color--muted); }
.kv-hero-note b { color: var(--wp--preset--color--contrast); }
.kv-avatars { display: inline-flex; }
.kv-avatars i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--wp--preset--color--base); margin-left: -8px; background: var(--c); }
.kv-avatars i:first-child { margin-left: 0; }

/* ---------- Ticker ---------- */
.kv-ticker { overflow: hidden; white-space: nowrap; }
.kv-ticker-track { display: inline-flex; animation: kv-marquee 40s linear infinite; will-change: transform; }
.kv-ticker-track span { font-family: var(--wp--preset--font-family--display); font-size: clamp(1.6rem, 3.2vw, 2.9rem); text-transform: uppercase; line-height: 1; padding: 0 1.4rem; display: inline-flex; align-items: center; gap: 2.8rem; }
.kv-ticker-track span::after { content: ""; width: .42em; height: .42em; background: var(--wp--preset--color--accent); transform: rotate(45deg); }
@keyframes kv-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.kv-stat { border-left: 1px solid var(--wp--preset--color--line); padding-left: 1.5rem; }
.kv-stat-num { font-family: var(--wp--preset--font-family--display); font-size: clamp(4rem, 7.5vw, 7rem); line-height: .9; }

/* ---------- Statement ---------- */
.kv-statement { font-family: var(--wp--preset--font-family--display); text-transform: uppercase; font-size: clamp(2.8rem, 6.6vw, 6.75rem); line-height: .94; }

/* ---------- Art frames ---------- */
.kv-art-cap { font-size: .8125rem; color: var(--wp--preset--color--muted); }
.kv-art-cap b { margin-right: .35rem; }
.kv-art-cap b { color: var(--wp--preset--color--contrast); }

/* ---------- Path cards ---------- */
.kv-path { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 22px; overflow: hidden; height: 100%; }
.kv-path-art { background: linear-gradient(160deg, #F1ECE4, #E6DED2); padding: clamp(1.25rem, 3vw, 2.5rem); border-bottom: 1px solid var(--wp--preset--color--line); }
.kv-path.is-alt .kv-path-art { background: linear-gradient(160deg, #F8E6D9, #EFD6C4); }
.kv-path-num { font-family: var(--wp--preset--font-family--display); font-size: 1.1rem; color: var(--wp--preset--color--accent); letter-spacing: .04em; }

/* ---------- Pillars ---------- */
.kv-pillars { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.kv-pillars > * { margin: 0 !important; }
.kv-pillar { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease; }
.kv-pillar:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(40,25,10,.35); }
.kv-pillar-art { line-height: 1.35; border-bottom: 1px solid var(--wp--preset--color--line); }
.kv-pillar-body { display: grid !important; grid-template-columns: auto 1fr; column-gap: 1.25rem; align-items: baseline; }
.kv-pillar-body > * { margin: 0 !important; }
.kv-pillar-num { font-family: var(--wp--preset--font-family--display); font-size: 1.1rem; color: var(--wp--preset--color--accent); grid-row: span 2; }
.kv-pillar.is-accent { background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); color: #fff; justify-content: space-between; }
.kv-pillar.is-accent h3, .kv-pillar.is-accent p { color: #fff !important; }
.kv-plus { font-family: var(--wp--preset--font-family--display); font-size: clamp(10rem, 22vw, 20rem) !important; line-height: .7; color: #fff; margin: 0; }
.kv-plus-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.kv-plus-list span { border: 1.5px solid rgba(255,255,255,.55); border-radius: 99px; padding: .4rem .9rem; font-size: .875rem; font-weight: 600; }

/* ---------- Phases ---------- */
.kv-phase { border-top: 1px solid var(--wp--preset--color--line); }
.kv-phase-num { font-family: var(--wp--preset--font-family--display); font-size: clamp(4.5rem, 9vw, 8.5rem); line-height: .85; color: var(--wp--preset--color--accent); }

/* ---------- Checklist ---------- */
.kv-checklist { list-style: none; padding-left: 0; }
.kv-checklist li { position: relative; padding: 1rem 0 1rem 2.25rem; border-bottom: 1px solid var(--wp--preset--color--line); margin: 0; }
.kv-checklist li::before { content: "→"; position: absolute; left: 0; top: 1rem; color: var(--wp--preset--color--accent); font-weight: 700; }

/* ---------- FAQ ---------- */
.kv-faq .wp-block-details { border-top: 1px solid var(--wp--preset--color--line); padding: 1.5rem 0; margin: 0; }
.kv-faq .wp-block-details:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }
.kv-faq summary { font-family: var(--wp--preset--font-family--display); text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.1; cursor: pointer; list-style: none; position: relative; padding-right: 3.5rem; }
.kv-faq summary::-webkit-details-marker { display: none; }
.kv-faq summary::after { content: "+"; position: absolute; right: 0; top: -.1em; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); display: grid; place-items: center; font-family: var(--wp--preset--font-family--sans); font-size: 1.25rem; color: var(--wp--preset--color--accent); transition: transform .25s ease, background .25s ease; }
.kv-faq details[open] summary::after { transform: rotate(45deg); background: var(--wp--preset--color--accent); color: #fff; border-color: var(--wp--preset--color--accent); }
.kv-faq .wp-block-details > p { margin-top: 1rem; color: var(--wp--preset--color--muted); max-width: 44rem; }

/* ---------- CTA ---------- */
.kv-cta { position: relative; overflow: hidden; }
.kv-cta h2 { font-size: clamp(3.6rem, 10vw, 10rem); line-height: .88; color: #fff !important; }
.kv-cta .wp-block-button__link { background: var(--wp--preset--color--contrast) !important; color: #fff !important; }
.kv-cta .wp-block-button__link:hover { background: #fff !important; color: var(--wp--preset--color--contrast) !important; }
.kv-cta::after { content: ""; position: absolute; right: -4%; bottom: -18%; width: 38%; aspect-ratio: 1; pointer-events: none; opacity: .12; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19 19 5M8 5h11v11' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat; }
.kv-cta > * { position: relative; z-index: 1; }

/* ---------- Calendly ---------- */
.kv-calendly-frame { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(40,25,10,.3); }
.kv-calendly .calendly-inline-widget { min-width: 320px; height: 760px; }
.kv-calendly-placeholder { min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; gap: .9rem; color: var(--wp--preset--color--muted); }
.kv-calendly-placeholder strong { color: var(--wp--preset--color--contrast); font-family: var(--wp--preset--font-family--display); text-transform: uppercase; font-size: 2rem; font-weight: 400; line-height: 1; }
.kv-placeholder { border: 1.5px dashed #C9C0B3 !important; }
.kv-tag { display: inline-block; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--wp--preset--color--accent-soft); color: #A9471A; padding: .35rem .75rem; border-radius: 100px; }

/* ---------- Footer ---------- */
.kv-footer, .kv-footer a, .kv-footer p { color: #F4F1EB; }
.kv-footer .has-muted-color { color: #A39C93 !important; }
.kv-footer a:hover { color: var(--wp--preset--color--accent); }
.kv-footer .kv-label { color: var(--wp--preset--color--accent); }
.kv-footer .kv-footer-mark { color: transparent !important; line-height: .9 !important; margin-bottom: -.2em !important; }
.kv-footer { overflow: hidden; }
.kv-footer-mark { font-family: var(--wp--preset--font-family--display); text-transform: uppercase; font-size: min(32vw, 29rem) !important; text-align: center; line-height: .78; letter-spacing: -.005em; color: transparent; -webkit-text-stroke: 1.5px #4A4642; user-select: none; }

/* ---------- Scroll reveal ---------- */
.kv-js .kv-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.kv-js .kv-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.kv-ticker-track { animation: none !important; }
	.kv-js .kv-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.kv-pillars { grid-template-columns: 1fr; }
}
@media (max-width: 781px) {
	.kv-header .kv-header-cta { display: none; }
	.kv-stats { display: grid !important; grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem !important; }
	.kv-stat { border-left: 0; border-top: 1px solid var(--wp--preset--color--line); padding: 1.25rem 0 0; }
	.kv-hide-mobile { display: none !important; }
}
