/* Synergy Neurotrace — supplementary styles (tokens live in theme.json). */

:root {
	--sn-radius: 14px;
	--sn-shadow: 0 10px 30px rgba(15, 42, 85, 0.08);
	--sn-shadow-hover: 0 16px 40px rgba(15, 42, 85, 0.14);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Header ---------- */
.sn-topbar { font-size: 0.85rem; padding-top: 0.45rem; padding-bottom: 0.45rem; }
.sn-topbar p { margin: 0; }
.sn-header { padding-top: 0.75rem; padding-bottom: 0.75rem; }
@media (max-width: 781px) {
	.sn-topbar .wp-block-group { justify-content: center; text-align: center; }
	.sn-topbar p:first-child { display: none; }
	.sn-header .wp-block-buttons.sn-header-cta { display: none; }
}

/* Inner page title banner */
.sn-page-hero {
	background: var(--wp--preset--gradient--hero);
	padding-top: clamp(2.5rem, 6vw, 4.5rem);
	padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
	margin-block-start: 0;
}
.sn-page-hero .wp-block-post-title,
.sn-page-hero .wp-block-query-title,
.sn-page-hero h1 { color: #fff; margin: 0; }
.sn-page-hero .wp-block-post-date { color: #DCE7F7; }
main.wp-block-group > * { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.sn-topbar a { color: inherit; text-decoration: none; }
.sn-topbar a:hover { text-decoration: underline; }

.sn-header {
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 1px 0 var(--wp--preset--color--line);
}
.admin-bar .sn-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sn-header { top: 0; } .sn-header { position: relative; } }

.sn-logo img { width: clamp(170px, 22vw, 240px); height: auto; display: block; }
.sn-header .wp-block-navigation a:hover { color: var(--wp--preset--color--primary); }

/* ---------- Sections ---------- */
.sn-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
/* Two plain white sections in a row: don't double the gap. */
.sn-section:not(.has-background):not(.sn-hero) + .sn-section:not(.has-background) { padding-top: 0; }
.sn-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	margin-bottom: 0.25rem;
}
.sn-on-dark .sn-eyebrow { color: #A9C6EE; }

/* ---------- Hero ---------- */
.sn-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(60rem 30rem at 85% 10%, rgba(68, 123, 198, 0.55), transparent 60%),
		radial-gradient(40rem 25rem at 0% 100%, rgba(94, 224, 193, 0.10), transparent 60%),
		linear-gradient(160deg, #0B1F40 0%, #0F2A55 45%, #1E4FA3 100%);
	padding-top: clamp(3.5rem, 8vw, 6.5rem);
	padding-bottom: clamp(7rem, 12vw, 10rem); /* room for overlapping cards */
}
.sn-hero::before { /* faint brain-network texture */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url("../images/hero-network.svg") left -160px bottom -120px / 640px no-repeat;
	opacity: 0.5;
}
.sn-hero h1 {
	color: #fff;
	font-size: clamp(2.2rem, 4.6vw, 3.6rem);
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin-top: 1rem;
}
.sn-hero .sn-accent {
	background: linear-gradient(90deg, #8EC1FF, #5EE0C1);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.sn-hero p { color: #C9D8EF; }
.sn-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 36rem; }
.sn-pill {
	display: inline-block;
	padding: 0.4rem 0.9rem 0.4rem 1.9rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #DCE7F7 !important;
	position: relative;
}
.sn-pill::before { /* live dot */
	content: "";
	position: absolute;
	left: 0.85rem; top: 50%;
	width: 7px; height: 7px;
	margin-top: -3.5px;
	border-radius: 50%;
	background: #5EE0C1;
	box-shadow: 0 0 0 4px rgba(94, 224, 193, 0.2);
}
.sn-hero-buttons { margin-top: 1.75rem; }
.sn-hero-trust { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin-top: 1.75rem; font-size: 0.92rem; color: #C9D8EF; }
.sn-hero-trust li { margin: 0; }
.sn-monitor img {
	width: 100%;
	height: auto;
	border-radius: 22px;
	box-shadow: 0 30px 80px rgba(3, 12, 30, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
	transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}
@media (max-width: 781px) {
	.sn-monitor img { transform: none; }
	.sn-hero-cols { gap: 2.5rem; }
}

/* Audience cards overlap the hero */
.sn-audiences { position: relative; z-index: 2; margin-top: clamp(-6rem, -8vw, -4rem) !important; }
.sn-link-card { position: relative; }
.sn-link-card h3 a { color: inherit; text-decoration: none; }
.sn-link-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--sn-radius); } /* whole card clickable */
.sn-link-card h3 a:focus-visible::after { outline: 3px solid var(--wp--preset--color--primary); outline-offset: 3px; }
.sn-more { margin-top: auto; font-weight: 600; color: var(--wp--preset--color--primary-dark); font-size: 0.92rem; }
.sn-more span { display: inline-block; transition: transform 0.2s ease; }
.sn-link-card:hover .sn-more span { transform: translateX(4px); }
.sn-link-card { display: flex; flex-direction: column; }

/* Line icons in a soft tile */
.sn-icon { margin: 0 0 0.25rem !important; }
.sn-icon img {
	width: 52px; height: 52px;
	padding: 12px;
	box-sizing: border-box;
	border-radius: 14px;
	background: var(--wp--preset--color--tint);
}
.has-tint-background-color .sn-icon img { background: #E1ECFA; }

/* Grids that wrap (core columns stay in one row on desktop) */
@media (min-width: 782px) {
	.wp-block-columns.sn-grid-3,
	.wp-block-columns.sn-grid-4 { display: grid; grid-template-columns: repeat(3, 1fr); }
	.wp-block-columns.sn-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
	.wp-block-columns.sn-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.sn-section-intro { max-width: 40rem; margin-inline: auto !important; color: var(--wp--preset--color--charcoal); }
.sn-mod-card ul { font-size: 0.92rem; margin-bottom: 0; }
.sn-mod-card li { margin-bottom: 0.5rem; }

/* Why us */
.sn-figures { gap: 2rem !important; margin-top: 1.5rem; }
.sn-figure { margin: 0; color: var(--wp--preset--color--charcoal); font-size: 0.9rem; }
.sn-figure strong {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2.1rem;
	line-height: 1.1;
	color: var(--wp--preset--color--primary-dark);
}
.sn-feature-grid { gap: 1.25rem !important; }
.sn-feature p { font-size: 0.93rem; margin-bottom: 0; }

/* CTA band */
.sn-cta-wrap { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.sn-cta {
	background:
		url("../images/hero-network.svg") right -60px center / 380px no-repeat,
		linear-gradient(120deg, #0F2A55, #1E4FA3 60%, #447BC6);
	border-radius: 24px;
	padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
	gap: 1.5rem !important;
	box-shadow: 0 24px 60px rgba(15, 42, 85, 0.25);
}
.sn-cta h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 0.4rem; }
.sn-cta p { color: #C9D8EF; margin: 0; }

/* Consistent card body copy */
.is-style-sn-card p { font-size: 0.97rem; }
.is-style-sn-card .sn-more { font-size: 0.92rem; }

/* Links: lighter underline everywhere, none in contact details */
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sn-contact-details a { text-decoration: none; font-weight: 500; }
.sn-contact-details a:hover { text-decoration: underline; }
.sn-contact-details p strong { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--charcoal); }
.sn-contact-details p:last-child strong { text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--wp--preset--color--navy); }

/* Header gains depth once scrolled (theme.js) */
.sn-header { transition: box-shadow 0.2s ease; }
.sn-header.is-scrolled { box-shadow: 0 8px 24px rgba(15, 42, 85, 0.08); }

/* Scroll reveal (only when theme.js runs and motion is allowed) */
.sn-js .sn-will-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.2s ease; }
.sn-js .sn-will-reveal.is-visible { opacity: 1; transform: none; }
.sn-js .is-style-sn-card.sn-will-reveal.is-visible:hover { transform: translateY(-3px); }

/* Header CTA + nav never wrap awkwardly */
.sn-header-cta .wp-block-button__link { white-space: nowrap; }
.sn-header .wp-block-navigation__container { gap: 0.4rem 1.4rem; }
@media (max-width: 1100px) { .sn-header .wp-block-buttons.sn-header-cta { display: none; } }

/* Card headings a touch smaller than section headings */
.is-style-sn-card h3 { font-size: clamp(1.15rem, 1.6vw, 1.3rem); }

/* Footer list matches the other columns */
.sn-footer .wp-block-list { font-size: var(--wp--preset--font-size--small); }


/* ---------- Buttons ---------- */
.wp-block-button.is-style-sn-ghost .wp-block-button__link {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}
.wp-block-button.is-style-sn-ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.12); }
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 2px; }

/* ---------- Cards ---------- */
.is-style-sn-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--sn-radius);
	box-shadow: var(--sn-shadow);
	padding: clamp(1.25rem, 3vw, 2rem);
	height: 100%;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.is-style-sn-card:hover { box-shadow: var(--sn-shadow-hover); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .is-style-sn-card:hover { transform: none; } }
.is-style-sn-card h3 { margin-top: 0.5rem; }

.sn-card-icon {
	width: 52px; height: 52px;
	display: grid; place-items: center;
	border-radius: 12px;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	font-family: var(--wp--preset--font-family--heading);
}

.sn-rounded img { border-radius: var(--sn-radius); box-shadow: var(--sn-shadow); }

/* Equal-height cards inside columns */
.sn-card-grid > .wp-block-column { display: flex; flex-direction: column; }
.sn-card-grid > .wp-block-column > .is-style-sn-card { flex: 1; }

/* ---------- Lists ---------- */
.is-style-sn-checks { list-style: none; padding-left: 0; }
.is-style-sn-checks li { position: relative; padding-left: 1.6rem; margin-bottom: 0.4rem; }
.is-style-sn-checks li::before {
	content: "";
	position: absolute; left: 0; top: 0.55em;
	width: 0.9rem; height: 0.5rem;
	border-left: 2px solid var(--wp--preset--color--primary);
	border-bottom: 2px solid var(--wp--preset--color--primary);
	transform: rotate(-45deg) translateY(-50%);
}
.sn-on-dark .is-style-sn-checks li::before { border-color: #A9C6EE; }

.sn-proc-card ul { font-size: 0.93rem; padding-left: 1.1rem; margin: 0; }
.sn-proc-card li { margin-bottom: 0.3rem; }
.sn-proc-card li::marker { color: var(--wp--preset--color--primary); }


/* ---------- Details (FAQ / procedure accordions) ---------- */
.wp-block-details {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	padding: 0.9rem 1.2rem;
	background: var(--wp--preset--color--base);
}
.wp-block-details summary { font-weight: 600; cursor: pointer; color: var(--wp--preset--color--navy); }

/* ---------- Team ---------- */
.sn-team .wp-block-post-featured-image img { border-radius: var(--sn-radius); }
.sn-team .wp-block-post-title { margin-bottom: 0.2rem; }
.sn-team .sn-meta { margin: 0; font-size: 0.92rem; color: var(--wp--preset--color--charcoal); }
.sn-team .sn-meta:empty { display: none; }
.sn-profile-meta p:empty { display: none; }

/* ---------- Testimonials ---------- */
.sn-quote { font-size: 1.15rem; font-style: italic; }

/* ---------- Footer ---------- */
.sn-footer a { color: #DCE7F7; text-decoration: none; }
.sn-footer a:hover { color: #fff; text-decoration: underline; }
.sn-footer .sn-footer-logo img { background: #fff; border-radius: 10px; padding: 10px 14px; width: 220px; height: auto; }
.sn-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); }

/* Floating WhatsApp / call buttons */
.sn-float {
	position: fixed;
	right: 1rem;
	bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
	z-index: 60;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.sn-float a {
	width: 54px; height: 54px;
	border-radius: 50%;
	display: grid; place-items: center;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
	color: #fff;
}
.sn-float a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sn-float .sn-wa { background: #25D366; }
.sn-float .sn-call { background: var(--wp--preset--color--primary-dark); }
.sn-float svg { width: 26px; height: 26px; fill: currentColor; }
@media (max-width: 600px) {
	.sn-float { right: 0.75rem; gap: 0.5rem; }
	.sn-float a { width: 46px; height: 46px; }
	.sn-float svg { width: 22px; height: 22px; }
}

/* ---------- Request form (Synergy Core shortcode) ---------- */
.sn-form { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sn-form .sn-full { grid-column: 1 / -1; }
.sn-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; color: var(--wp--preset--color--navy); }
.sn-form input,
.sn-form select,
.sn-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	font: inherit;
	background: #fff;
}
.sn-form input:focus,
.sn-form select:focus,
.sn-form textarea:focus { outline: 2px solid var(--wp--preset--color--primary); border-color: transparent; }
.sn-form button {
	background: var(--wp--preset--color--primary);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 0.85rem 2rem;
	font-weight: 600;
	cursor: pointer;
}
.sn-form button:hover { background: var(--wp--preset--color--primary-dark); }
.sn-notice { padding: 0.9rem 1.1rem; border-radius: 8px; margin-bottom: 1rem; }
.sn-notice.is-success { background: #E6F6EC; color: #145A2E; }
.sn-notice.is-error { background: #FDECEC; color: #8A1C1C; }
.sn-hp { position: absolute !important; left: -9999px !important; }
