/* ==========================================================================
   Propel Business Solutions — Core (tokens, base, buttons, header, footer, motion)
   Section/block styles live in blocks.css
   ========================================================================== */

:root {
	--navy: #032E65;
	--navy-700: #0A3D80;
	--navy-900: #021C40;
	--ink: #04142E;
	--teal: #109794;
	--teal-600: #0C7E7B;
	--teal-300: #4FD1C5;
	--teal-100: #D9F3F1;
	--mint: #EEF8F7;
	--bg: #F6F8FB;
	--paper: #FFFFFF;
	--text: #3A4A63;
	--muted: #6B7A90;
	--line: rgba(3, 46, 101, .09);
	--line-strong: rgba(3, 46, 101, .16);
	--warn: #EA580C;

	--r-sm: 14px;
	--r: 22px;
	--r-lg: 30px;
	--r-xl: 40px;

	--shadow-sm: 0 1px 2px rgba(4, 20, 46, .05), 0 4px 14px rgba(4, 20, 46, .04);
	--shadow: 0 18px 40px -18px rgba(4, 20, 46, .2), 0 2px 6px rgba(4, 20, 46, .04);
	--shadow-lg: 0 50px 100px -40px rgba(3, 46, 101, .38);

	--font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Inter Tight", "Inter", system-ui, sans-serif;
	--font-serif: "Instrument Serif", Georgia, serif;

	--ease: cubic-bezier(.22, 1, .36, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);

	--gutter: clamp(20px, 5vw, 48px);
	--section: clamp(96px, 12vw, 184px);
	--inset: 12px;
	--head-gap: clamp(48px, 6vw, 88px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
p { margin: 0; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	color: var(--ink);
	font-weight: 600;
	letter-spacing: -.035em;
	line-height: 1.06;
	margin: 0;
	text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 7.2vw, 6.2rem); letter-spacing: -.048em; line-height: .98; }
h2 { font-size: clamp(2.15rem, 4.8vw, 4rem); letter-spacing: -.042em; }
h3 { font-size: clamp(1.22rem, 1.7vw, 1.5rem); letter-spacing: -.022em; line-height: 1.22; }
h4 { font-size: 1.05rem; letter-spacing: -.01em; }
h1 em, h2 em, h3 em, .is-style-pp-scrub em {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -.01em;
	color: var(--teal);
	padding-right: .04em;
}
p { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* ---------- Buttons (block styles + theme .pp-btn) ---------- */
.wp-block-buttons { gap: 12px; }
.wp-block-button__link, .pp-btn {
	--bh: 56px;
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 14px;
	min-height: var(--bh);
	padding: 0 10px 0 26px;
	border-radius: 999px;
	font-family: var(--font);
	font-weight: 600; font-size: 1rem; letter-spacing: -.01em; line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	color: #fff;
	background: var(--teal);
	border: 1px solid transparent;
	box-shadow: 0 12px 30px -12px rgba(16,151,148,.75);
	transition: background .35s var(--ease), color .35s var(--ease), border-color .35s, box-shadow .35s var(--ease);
	will-change: transform;
	cursor: pointer;
}
.wp-block-button__link::after, .pp-btn::after {
	content: "";
	width: calc(var(--bh) - 16px); height: calc(var(--bh) - 16px);
	flex: none;
	border-radius: 50%;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C7E7B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M7 7h10v10'/%3E%3C/svg%3E") center / 15px no-repeat;
	transition: transform .5s var(--ease);
}
.wp-block-button__link:hover::after, .pp-btn:hover::after { transform: rotate(45deg); }
.wp-block-button__link:hover, .pp-btn:hover { background: var(--teal-600); color: #fff; box-shadow: 0 16px 40px -12px rgba(16,151,148,.9); }

.is-style-pp-navy .wp-block-button__link { background: var(--navy); box-shadow: 0 12px 26px -12px rgba(3,46,101,.7); }
.is-style-pp-navy .wp-block-button__link::after { background-color: var(--teal); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M7 7h10v10'/%3E%3C/svg%3E"); }
.is-style-pp-navy .wp-block-button__link:hover { background: var(--navy-900); }

.is-style-pp-outline .wp-block-button__link, .pp-btn-outline { background: var(--paper); color: var(--navy); border-color: var(--line-strong); box-shadow: none; }
.is-style-pp-outline .wp-block-button__link::after, .pp-btn-outline::after { background-color: var(--mint); }
.is-style-pp-outline .wp-block-button__link:hover, .pp-btn-outline:hover { background: var(--paper); color: var(--navy); border-color: var(--navy); }

.is-style-pp-ghost .wp-block-button__link { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.24); box-shadow: none; backdrop-filter: blur(10px); padding-right: 26px; }
.is-style-pp-ghost .wp-block-button__link::after { display: none; }
.is-style-pp-ghost .wp-block-button__link:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.45); color: #fff; }
/* Ghost used on a light background → outline look */
.is-style-pp-section .is-style-pp-ghost .wp-block-button__link,
.is-style-pp-section-white .is-style-pp-ghost .wp-block-button__link { color: var(--navy); border-color: var(--line-strong); background: transparent; }

.pp-btn-lg { --bh: 60px; }
.pp-btn-block, .pp-block-btn, .pp-block-btn .wp-block-button__link { width: 100%; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--teal), var(--teal-300)); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: fixed; top: 20px; left: 0; right: 0; z-index: 100;
	padding: 0 calc(var(--gutter) * .6 + var(--inset));
	transition: transform .55s var(--ease);
	pointer-events: none;
}
.admin-bar .site-header { top: 52px; }
.site-header.is-hidden { transform: translateY(-160%); }
.nav-pill {
	pointer-events: auto;
	position: relative;
	max-width: 1320px; margin: 0 auto;
	display: flex; align-items: center; gap: 18px;
	height: 68px;
	padding: 0 8px 0 22px;
	border-radius: 22px;
	background: rgba(4, 22, 52, .26);
	backdrop-filter: blur(22px) saturate(1.5);
	-webkit-backdrop-filter: blur(22px) saturate(1.5);
	border: 1px solid rgba(255,255,255,.14);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
	transition: background .45s var(--ease), border-color .45s, box-shadow .45s;
}
.site-header.is-solid .nav-pill { background: rgba(255,255,255,.88); border-color: rgba(3,46,101,.08); box-shadow: 0 16px 40px -18px rgba(2,28,64,.35), inset 0 1px 0 #fff; }
.brand { position: relative; display: block; width: 152px; height: 34px; flex: none; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .4s; }
.logo-on-light { opacity: 0; }
.is-solid .logo-on-dark { opacity: 0; }
.is-solid .logo-on-light { opacity: 1; }

.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto; align-self: stretch; }
.nav-item { position: static; display: flex; align-items: center; }
.has-mega:hover::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; }
.nav-link {
	position: relative;
	display: inline-flex; align-items: center; gap: 6px;
	height: 42px; padding: 0 14px;
	font-size: .92rem; font-weight: 500;
	color: rgba(255,255,255,.84);
	border-radius: 12px;
	transition: color .25s, background .25s;
}
.nav-link:hover, .nav-item:hover > .nav-link, .nav-item.is-open > .nav-link { color: #fff; background: rgba(255,255,255,.1); }
.is-solid .nav-link { color: var(--text); }
.is-solid .nav-link:hover, .is-solid .nav-item:hover > .nav-link, .is-solid .nav-item.is-open > .nav-link { color: var(--navy); background: rgba(3,46,101,.06); }
.nav-link.is-active { color: #fff; }
.is-solid .nav-link.is-active { color: var(--navy); }
.nav-link.is-active::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 16px; height: 2px; border-radius: 2px; background: var(--teal-300); transform: translateX(-50%); }
.chev { transition: transform .35s var(--ease); opacity: .7; }
.nav-item:hover .chev, .nav-item.is-open .chev { transform: rotate(180deg); }

/* Mega menu */
.mega {
	position: absolute; top: calc(100% + 14px); left: 50%;
	width: min(980px, 100%);
	transform: translate(-50%, 10px) scale(.985);
	transform-origin: top center;
	opacity: 0; visibility: hidden;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 26px;
	box-shadow: 0 40px 90px -30px rgba(2,28,64,.45);
	transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s .3s;
	overflow: hidden;
}
.mega-sm { width: min(760px, 100%); }
.nav-item:hover .mega, .nav-item.is-open .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s; }
.mega-inner { display: grid; grid-template-columns: 1fr 260px; gap: 14px; padding: 16px; }
.mega-inner.mega-tiles-wrap { grid-template-columns: 1fr; }
.mega-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.mega-col { padding: 16px; border-radius: 18px; transition: background .25s; }
.mega-col:hover { background: var(--bg); }
.mega-col-head { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; color: var(--ink); letter-spacing: -.01em; margin-bottom: 8px; }
.mega-ico { position: relative; width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--mint); transition: background .3s; }
.mega-ico::after { content: ""; position: absolute; inset: 9px; background: var(--teal-600); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; transition: background .3s; }
.mega-col:hover .mega-ico, .mega-tile:hover .mega-ico { background: var(--navy); }
.mega-col:hover .mega-ico::after, .mega-tile:hover .mega-ico::after { background: #fff; }
.mega-link { display: block; padding: 5px 0 5px 48px; font-size: .9rem; color: var(--muted); transition: color .2s, transform .3s var(--ease); }
.mega-link:hover { color: var(--teal-600); transform: translateX(3px); }
.mega-feature { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; padding: 24px; border-radius: 20px; background: radial-gradient(120% 100% at 100% 0%, #0A4E96, var(--navy) 50%, var(--navy-900)); color: rgba(220,234,248,.8); font-size: .88rem; min-height: 250px; }
.mega-feature::before { content: ""; position: absolute; width: 240px; height: 240px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(79,209,197,.55), transparent 65%); animation: float 8s ease-in-out infinite; }
.mega-feature-tag { align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-300); padding: 4px 10px; border: 1px solid rgba(79,209,197,.4); border-radius: 999px; margin-bottom: auto; position: relative; }
.mega-feature strong { font-family: var(--font-display); font-size: 1.3rem; color: #fff; letter-spacing: -.02em; line-height: 1.15; position: relative; }
.mega-feature-cta { font-weight: 600; color: #fff; margin-top: 6px; }
.mega-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 30px; background: var(--bg); border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.mega-foot a { font-weight: 600; color: var(--navy); }
.mega-foot a:hover { color: var(--teal-600); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mega-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; transition: background .25s; }
.mega-tile:hover { background: var(--bg); }
.mega-tile strong { display: block; font-family: var(--font-display); color: var(--ink); font-weight: 600; font-size: .96rem; letter-spacing: -.01em; }
.mega-tile small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }
.nav-cta { --bh: 48px; font-size: .92rem; padding-left: 20px; padding-right: 6px; }
.burger { display: none; width: 48px; height: 48px; border-radius: 15px; background: rgba(255,255,255,.12); position: relative; transition: background .3s; }
.is-solid .burger { background: var(--navy); }
.burger span { position: absolute; left: 15px; right: 15px; height: 2px; background: #fff; border-radius: 2px; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 27px; }
.menu-open .burger { background: rgba(255,255,255,.14); }
.menu-open .burger span:first-child { top: 23px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 23px; transform: rotate(-45deg); }
.menu-open .site-header .nav-pill { background: transparent; border-color: transparent; box-shadow: none; }
.menu-open .logo-on-dark { opacity: 1 !important; }
.menu-open .logo-on-light { opacity: 0 !important; }
.menu-open .nav-cta { opacity: 0; pointer-events: none; }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 90; background: radial-gradient(120% 80% at 100% 0%, #0A4A8F 0%, var(--navy-900) 55%, #010E24 100%); clip-path: circle(0% at calc(100% - 60px) 54px); transition: clip-path .8s var(--ease-io), visibility 0s .8s; visibility: hidden; overflow-y: auto; }
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 60px) 54px); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s; }
.menu-open { overflow: hidden; }
.mobile-menu-inner { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; padding: 120px 28px 36px; max-width: 560px; margin: 0 auto; }
.m-nav { display: flex; flex-direction: column; }
.m-nav > a, .m-nav summary { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; font-size: clamp(1.7rem, 8vw, 2.4rem); line-height: 1.5; color: #fff; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); cursor: pointer; list-style: none; }
.m-nav summary::-webkit-details-marker { display: none; }
.m-nav > a, .m-nav > details { opacity: 0; transform: translateY(26px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.menu-open .m-nav > a, .menu-open .m-nav > details { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .05s); }
.m-nav > a:hover, .m-nav summary:hover { color: var(--teal-300); }
.m-plus { position: relative; width: 22px; height: 22px; }
.m-plus::before, .m-plus::after { content: ""; position: absolute; left: 2px; right: 2px; top: 10px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.m-plus::after { transform: rotate(90deg); }
details[open] .m-plus::after { transform: rotate(0); }
.m-sub { display: grid; gap: 2px; padding: 10px 0 18px; }
.m-sub a { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: rgba(220,234,248,.8); font-size: 1rem; }
.m-sub .mega-ico { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.08); }
.m-sub .mega-ico::after { inset: 7px; background: var(--teal-300); }
.m-sub a:hover { color: #fff; }
.m-sub .m-all { color: var(--teal-300); font-weight: 600; }
.m-foot { display: grid; gap: 14px; }
.mobile-menu-note { color: rgba(255,255,255,.55); font-size: .9rem; text-align: center; }

@media (max-width: 1240px) { .nav-link { padding: 0 10px; font-size: .88rem; } }
@media (max-width: 1100px) {
	.nav-links { display: none; }
	.burger { display: block; }
	.nav-links + .nav-actions { margin-left: auto; }
}
@media (max-width: 600px) {
	.site-header { top: 10px; padding: 0 10px; }
	.admin-bar .site-header { top: 56px; }
	.nav-pill { height: 62px; padding-left: 16px; border-radius: 18px; }
	.brand { width: 130px; }
	.nav-cta { display: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(220,234,248,.6); padding-top: clamp(72px, 9vw, 120px); overflow: hidden; position: relative; }
.footer-wrap { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
.footer-top { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-logo img { width: 196px; margin-bottom: 26px; }
.footer-brand p { max-width: 420px; font-size: .96rem; margin-bottom: 26px; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-family: var(--font-display); font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 500; letter-spacing: -.02em; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 4px; transition: color .3s, border-color .3s; overflow-wrap: anywhere; }
.footer-mail:hover { color: var(--teal-300); border-color: var(--teal-300); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 13px; }
.footer-col h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font); font-weight: 600; margin-bottom: 8px; }
.footer-col a { font-size: .94rem; transition: color .25s, transform .35s var(--ease); width: fit-content; }
.footer-col a:hover { color: #fff; transform: translateX(4px); }
.footer-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 30px 0; flex-wrap: wrap; font-size: .86rem; }
.footer-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-tags span { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); font-size: .76rem; }
.to-top { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 1.1rem; transition: background .3s, transform .4s var(--ease); }
.to-top:hover { background: var(--teal); transform: translateY(-3px); }
.footer-wordmark { text-align: center; line-height: .78; margin-bottom: -2.4vw; user-select: none; }
.footer-wordmark span { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 24vw, 23rem); letter-spacing: -.065em; background: linear-gradient(180deg, rgba(79,209,197,.38) 0%, rgba(255,255,255,.02) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; transform: translateY(var(--wm, 30%)); }
@media (max-width: 900px) {
	.footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.footer-cols { grid-template-columns: 1fr 1fr; }
	.footer-bottom { flex-direction: column; align-items: flex-start; padding-right: 60px; }
	.to-top { position: absolute; right: 0; top: 26px; }
}

/* ==========================================================================
   Motion primitives
   ========================================================================== */
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14px, 12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16,151,148,.45); } 50% { box-shadow: 0 0 0 8px rgba(16,151,148,0); } }

.pp-rv { opacity: 0; transform: translate3d(0, 44px, 0); filter: blur(8px); transition: opacity 1s var(--ease), transform 1.2s var(--ease), filter 1s var(--ease); transition-delay: var(--rv-d, 0s); }
.pp-rv.is-in { opacity: 1; transform: none; filter: none; }

.pp-split-h .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.pp-split-h .w > span { display: inline-block; transform: translateY(108%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.2s var(--ease); transition-delay: calc(var(--wi) * 55ms + .15s); }
.pp-split-h.is-in .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
	.pp-rv { opacity: 1; transform: none; filter: none; }
}
