/* SG Intel — component styles. Design tokens live in theme.json (--wp--preset--*). */

:root {
	--sg-navy: var(--wp--preset--color--navy);
	--sg-navy-2: var(--wp--preset--color--navy-2);
	--sg-gold: var(--wp--preset--color--gold);
	--sg-gold-dark: var(--wp--preset--color--gold-dark);
	--sg-platinum: var(--wp--preset--color--platinum);
	--sg-off-white: var(--wp--preset--color--off-white);
	--sg-radius: 10px;
	--sg-shadow: 0 1px 2px rgba(11, 23, 48, .06), 0 8px 24px rgba(11, 23, 48, .06);
	--sg-shadow-hover: 0 2px 4px rgba(11, 23, 48, .08), 0 16px 40px rgba(11, 23, 48, .12);
	--sg-ease: cubic-bezier(.22, .61, .36, 1);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Visible keyboard focus everywhere */
:where(a, button, summary, input, select, textarea):focus-visible {
	outline: 2px solid var(--wp--preset--color--blue);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---------- Header ---------- */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
/* Glass effect lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block of the fixed mobile menu overlay and clip it. */
.sg-header {
	position: relative;
	isolation: isolate;
	background: rgba(11, 23, 48, .92);
	border-bottom: 1px solid rgba(217, 223, 231, .12);
	padding-top: .85rem;
	padding-bottom: .85rem;
}
.sg-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
}
.sg-header__inner { gap: 1.5rem; }
.sg-header .wp-block-site-title a { color: var(--wp--preset--color--white); }
.sg-header .wp-block-site-title a::first-letter { color: var(--sg-gold); }
.sg-header__nav { gap: 1.75rem; }
.sg-header .wp-block-navigation a { color: var(--sg-platinum); transition: color .2s var(--sg-ease); }
.sg-header .wp-block-navigation a:hover,
.sg-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--white); }
.sg-header .wp-block-navigation .current-menu-item > a { box-shadow: inset 0 -2px 0 var(--sg-gold); }
.sg-header .wp-block-navigation__responsive-container-open,
.sg-header .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--white); font-size: .9375rem; font-weight: 600; }
.sg-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--sg-navy) !important;
	color: var(--wp--preset--color--white) !important;
	padding: 2rem clamp(1rem, 4vw, 2rem);
}
.sg-header .wp-block-navigation__responsive-container.is-menu-open a { color: var(--wp--preset--color--white); font-size: 1.25rem; }
.sg-btn-sm .wp-block-button__link { padding: .6rem 1.1rem; font-size: .875rem; }
@media (max-width: 960px) {
	.sg-header .sg-header__cta { display: none !important; }
}

/* Template parts and <main> sit flush (no root block-gap between header, main, footer) */
.wp-site-blocks > * { margin-block-start: 0 !important; }

/* ---------- Sections ---------- */
.sg-section { padding-top: var(--wp--preset--spacing--70); padding-bottom: var(--wp--preset--spacing--70); }
.sg-section--tight { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.sg-section--light { background: var(--sg-off-white); }

.sg-section--dark {
	position: relative;
	isolation: isolate;
	background: linear-gradient(135deg, var(--sg-navy) 0%, var(--sg-navy-2) 60%, var(--sg-navy) 100%);
	color: var(--sg-platinum);
}
.sg-section--dark::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(217, 223, 231, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(217, 223, 231, .045) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 75%);
	mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 75%);
	pointer-events: none;
}
.sg-section--dark :where(h1, h2, h3, h4) { color: var(--wp--preset--color--white); }
.sg-section--dark a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--white); }
.sg-section--dark .sg-eyebrow { color: var(--sg-gold); }
.sg-section--dark .wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--white);
	border-color: rgba(255, 255, 255, .55);
}
.sg-section--dark .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--sg-navy);
	border-color: var(--wp--preset--color--white);
}
.sg-section--dark .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
	color: var(--sg-navy);
}

/* ---------- Typography helpers ---------- */
.sg-eyebrow {
	color: var(--sg-gold-dark);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin-bottom: .25rem !important;
}
.sg-eyebrow::before {
	content: "";
	display: inline-block;
	width: 1.75rem;
	height: 2px;
	margin-right: .65rem;
	vertical-align: middle;
	background: currentColor;
}
.sg-lead { font-size: var(--wp--preset--font-size--medium); line-height: 1.6; }
.sg-microcopy { font-size: .875rem; opacity: .85; }
.sg-section-head { max-width: 760px; margin-bottom: var(--wp--preset--spacing--50) !important; }
.sg-section-head.has-text-align-center,
.sg-center { margin-left: auto !important; margin-right: auto !important; text-align: center; }
.sg-center .sg-eyebrow::before { display: none; }

/* ---------- Hero ---------- */
.sg-hero { padding-top: var(--wp--preset--spacing--70); padding-bottom: var(--wp--preset--spacing--70); }
.sg-hero h1 { max-width: 16ch; }
.sg-hero .sg-lead { max-width: 58ch; }
.sg-page-hero { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.sg-page-hero h1 { max-width: 22ch; }
.sg-diagram svg { display: block; width: 100%; height: auto; }

/* ---------- Strip ---------- */
.sg-strip {
	border-top: 1px solid rgba(217, 223, 231, .14);
	padding-top: 1.75rem;
	margin-top: var(--wp--preset--spacing--60) !important;
}
.sg-strip p {
	margin: 0;
	color: var(--wp--preset--color--white);
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: .75rem;
}
.sg-strip p::before {
	content: "";
	flex: none;
	width: .55rem;
	height: .55rem;
	border-radius: 50%;
	background: var(--sg-gold);
	box-shadow: 0 0 0 4px rgba(185, 155, 98, .2);
}

/* ---------- Cards ---------- */
.sg-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--sg-platinum);
	border-radius: var(--sg-radius);
	padding: clamp(1.5rem, 3vw, 2rem);
	box-shadow: var(--sg-shadow);
	transition: transform .35s var(--sg-ease), box-shadow .35s var(--sg-ease), border-color .35s var(--sg-ease);
	height: 100%;
}
.sg-card:hover { transform: translateY(-4px); box-shadow: var(--sg-shadow-hover); border-color: rgba(185, 155, 98, .55); }
.sg-card h3 { margin-top: 0; }
.sg-card > :last-child { margin-bottom: 0; }
.sg-card--accent { border-top: 3px solid var(--sg-gold); }
.sg-card .sg-card__num {
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .1em;
	color: var(--sg-gold-dark);
	margin-bottom: .25rem;
}
.sg-card a.sg-card__link,
.sg-card .sg-card__link a {
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--blue);
}
.sg-card .sg-card__link a::after { content: " →"; transition: margin-left .2s var(--sg-ease); }
.sg-card:hover .sg-card__link a::after { margin-left: .2rem; }
.sg-section--dark .sg-card {
	background: rgba(255, 255, 255, .04);
	border-color: rgba(217, 223, 231, .14);
	box-shadow: none;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.sg-section--dark .sg-card:hover { border-color: rgba(185, 155, 98, .6); background: rgba(255, 255, 255, .07); }
.sg-section--dark .sg-card .sg-card__num { color: var(--sg-gold); }

/* ---------- Steps (six-phase approach) ---------- */
.sg-steps { counter-reset: sg-step; }
.sg-step { position: relative; padding-top: 3.25rem !important; counter-increment: sg-step; }
.sg-step::before {
	content: counter(sg-step, decimal-leading-zero);
	position: absolute;
	top: 1.5rem;
	left: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	font-size: .875rem;
	letter-spacing: .08em;
	color: var(--sg-gold-dark);
}
.sg-section--dark .sg-step::before { color: var(--sg-gold); }

/* ---------- Lists ---------- */
.sg-checklist { list-style: none; padding-left: 0 !important; }
.sg-checklist li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.sg-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .55em;
	width: .7rem;
	height: .7rem;
	border-radius: 2px;
	background: var(--sg-gold);
	transform: rotate(45deg);
}

/* ---------- Notices / boundary text ---------- */
.sg-boundary {
	border-left: 3px solid var(--sg-gold);
	background: var(--sg-off-white);
	padding: 1rem 1.25rem;
	font-size: .9375rem;
	border-radius: 0 6px 6px 0;
}
.sg-section--light .sg-boundary { background: var(--wp--preset--color--white); }

/* ---------- FAQ ---------- */
.wp-block-details summary { font-weight: 600; color: var(--sg-navy); cursor: pointer; list-style: none; position: relative; padding-right: 2rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--sg-gold-dark);
	transition: transform .25s var(--sg-ease);
}
.wp-block-details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

/* ---------- Form placeholder ---------- */
.sg-form-placeholder {
	border: 2px dashed var(--sg-platinum);
	border-radius: var(--sg-radius);
	padding: 2rem;
	text-align: center;
	color: var(--wp--preset--color--slate);
	background: var(--sg-off-white);
}

/* ---------- Footer ---------- */
.sg-footer {
	background: var(--sg-navy);
	color: var(--sg-platinum);
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--40);
	font-size: .9375rem;
}
.sg-footer :where(h2, h3) { color: var(--wp--preset--color--white); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.sg-footer a { color: var(--sg-platinum); text-decoration: none; }
.sg-footer a:hover { color: var(--wp--preset--color--white); text-decoration: underline; }
.sg-footer .sg-footer__brand { color: var(--wp--preset--color--white); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sg-footer .sg-footer__brand::first-letter { color: var(--sg-gold); }
.sg-footer .sg-footer__promise { color: var(--sg-gold); font-weight: 600; }
.sg-footer ul { list-style: none; padding-left: 0 !important; margin: 0; }
.sg-footer li { margin-bottom: .5rem; }
.sg-footer__notice { font-size: .8125rem; line-height: 1.6; opacity: .9; }
.sg-footer__bottom {
	border-top: 1px solid rgba(217, 223, 231, .14);
	margin-top: var(--wp--preset--spacing--50) !important;
	padding-top: 1.5rem;
	font-size: .8125rem;
}

/* ---------- Scroll reveal (only when JS is available) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.sg-js .sg-reveal > * {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity .7s var(--sg-ease), transform .7s var(--sg-ease);
	}
	.sg-js .sg-reveal.is-visible > * { opacity: 1; transform: none; }
	.sg-js .sg-reveal.is-visible > *:nth-child(2) { transition-delay: .08s; }
	.sg-js .sg-reveal.is-visible > *:nth-child(3) { transition-delay: .16s; }
	.sg-js .sg-reveal.is-visible > *:nth-child(4) { transition-delay: .24s; }
	.sg-js .sg-reveal.is-visible > *:nth-child(5) { transition-delay: .32s; }
	.sg-js .sg-reveal.is-visible > *:nth-child(n+6) { transition-delay: .4s; }
}
/* Never hide content inside the block editor */
.editor-styles-wrapper .sg-reveal > * { opacity: 1 !important; transform: none !important; }

/* =====================================================================
   v0.2 — Smartech-inspired components, SG brand
   ===================================================================== */

/* ---------- Header over dark heroes (transparent → solid on scroll) ---------- */
.sg-overlay-header header.wp-block-template-part {
	position: fixed;
	left: 0;
	right: 0;
}
.sg-overlay-header .sg-header { background: transparent; border-bottom-color: transparent; transition: background .4s var(--sg-ease), border-color .4s var(--sg-ease), box-shadow .4s var(--sg-ease); }
.sg-overlay-header .sg-header::before { opacity: 0; transition: opacity .4s var(--sg-ease); }
.sg-overlay-header.sg-scrolled .sg-header,
.sg-header:has(.is-menu-open) {
	background: rgba(11, 23, 48, .9);
	border-bottom-color: rgba(217, 223, 231, .12);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.sg-overlay-header.sg-scrolled .sg-header::before { opacity: 1; }
/* Content below a fixed header: dark heroes reserve room for it */
.sg-overlay-header .sg-page-hero,
.sg-overlay-header main .sg-hero .wp-block-cover__inner-container { padding-top: 5.5rem; }

/* ---------- Navigation dropdowns ---------- */
.sg-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: rgba(11, 23, 48, .97) !important;
	border: 1px solid rgba(217, 223, 231, .14) !important;
	border-radius: 12px;
	padding: .5rem !important;
	min-width: 250px !important;
	box-shadow: 0 24px 48px rgba(0, 0, 0, .35);
	margin-top: .6rem;
}
.sg-header .wp-block-navigation .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	top: -.7rem;
	left: 0;
	right: 0;
	height: .7rem;
}
.sg-header .wp-block-navigation .wp-block-navigation__submenu-container a {
	display: block;
	padding: .55rem .85rem !important;
	border-radius: 8px;
	border-left: 2px solid transparent;
	font-size: .875rem;
}
.sg-header .wp-block-navigation .wp-block-navigation__submenu-container a:hover {
	background: rgba(255, 255, 255, .06);
	border-left-color: var(--sg-gold);
	color: var(--wp--preset--color--white);
}
.sg-header .wp-block-navigation__submenu-icon { color: var(--sg-gold); }

/* ---------- Scroll progress bar ---------- */
.sg-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 100;
	transform-origin: 0 50%;
	transform: scaleX(0);
	background: linear-gradient(90deg, var(--sg-gold), #E3CF9E, var(--wp--preset--color--blue));
	pointer-events: none;
}

/* ---------- Video / image hero (Cover block) ---------- */
.sg-hero.wp-block-cover { padding-top: 0; padding-bottom: 0; isolation: isolate; }
.sg-hero .wp-block-cover__background { background: linear-gradient(100deg, rgba(11, 23, 48, .96) 0%, rgba(11, 23, 48, .86) 45%, rgba(18, 34, 74, .55) 100%) !important; opacity: 1 !important; }
.sg-hero::after {
	content: "";
	position: absolute;
	inset: -20%;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(40% 35% at 75% 25%, rgba(185, 155, 98, .22), transparent 70%),
		radial-gradient(35% 30% at 20% 80%, rgba(37, 99, 235, .18), transparent 70%);
	animation: sg-mesh 18s ease-in-out infinite alternate;
}
@keyframes sg-mesh { to { transform: translate3d(-4%, 3%, 0) scale(1.08); } }
.sg-hero .wp-block-cover__inner-container { position: relative; z-index: 2; padding-bottom: var(--wp--preset--spacing--60); }
.sg-hero .wp-block-cover__video-background,
.sg-hero .wp-block-cover__image-background { filter: saturate(.85); }
.sg-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); letter-spacing: -.035em; max-width: 15ch; }

/* Highlight (core format) rendered as gold gradient text */
.sg-hero mark.has-inline-color,
.sg-section--dark mark.has-inline-color,
.sg-cover mark.has-inline-color {
	background: linear-gradient(92deg, #D8BF8A 0%, var(--sg-gold) 55%, #E9D7AE 100%) !important;
	-webkit-background-clip: text !important;
	background-clip: text !important;
	color: transparent !important;
}

/* Pill eyebrow with pulse (hero tag) */
.sg-pill {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	padding: .45rem 1rem .45rem .8rem;
	border: 1px solid rgba(185, 155, 98, .45);
	border-radius: 100px;
	background: rgba(185, 155, 98, .1);
	color: #E3CF9E;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	width: fit-content;
}
.sg-pill::before {
	content: "";
	width: .5rem;
	height: .5rem;
	border-radius: 50%;
	background: var(--sg-gold);
	box-shadow: 0 0 0 0 rgba(185, 155, 98, .6);
	animation: sg-pulse 2.2s infinite;
}
@keyframes sg-pulse { 70% { box-shadow: 0 0 0 10px rgba(185, 155, 98, 0); } 100% { box-shadow: 0 0 0 0 rgba(185, 155, 98, 0); } }

/* Diagram as floating glass panel */
.sg-glass {
	background: rgba(11, 23, 48, .55);
	border: 1px solid rgba(217, 223, 231, .16);
	border-radius: 18px;
	padding: 1.25rem;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.sg-float { animation: sg-float 7s ease-in-out infinite; }
@keyframes sg-float { 50% { transform: translateY(-10px); } }

/* Hero strip as glass bar */
.sg-hero .sg-strip {
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(217, 223, 231, .14);
	border-radius: 14px;
	padding: 1.1rem 1.5rem;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

/* ---------- Icons (CSS masks; set with class sg-icon--name on a card) ---------- */
.sg-has-icon::before {
	content: "";
	display: block;
	width: 3rem;
	height: 3rem;
	margin-bottom: 1.1rem;
	border-radius: 12px;
	background:
		var(--sg-icon) center / 1.5rem 1.5rem no-repeat,
		linear-gradient(135deg, rgba(185, 155, 98, .18), rgba(37, 99, 235, .1));
	/* icon drawn with mask on a pseudo layer below */
}
.sg-has-icon { position: relative; }
.sg-has-icon::after {
	content: "";
	position: absolute;
	top: calc(clamp(1.5rem, 3vw, 2rem) + .75rem);
	left: calc(clamp(1.5rem, 3vw, 2rem) + .75rem);
	width: 1.5rem;
	height: 1.5rem;
	background: var(--sg-gold-dark);
	-webkit-mask: var(--sg-icon) center / contain no-repeat;
	mask: var(--sg-icon) center / contain no-repeat;
}
.sg-section--dark .sg-has-icon::after { background: var(--sg-gold); }
.sg-has-icon::before { background: linear-gradient(135deg, rgba(185, 155, 98, .2), rgba(37, 99, 235, .12)); }
.sg-icon--search    { --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
.sg-icon--link      { --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E"); }
.sg-icon--route     { --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='6' cy='19' r='2.5'/%3E%3Ccircle cx='18' cy='5' r='2.5'/%3E%3Cpath d='M8.5 19H15a3.5 3.5 0 0 0 0-7H9a3.5 3.5 0 0 1 0-7h6.5'/%3E%3C/svg%3E"); }
.sg-icon--shield    { --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 5 3.5 8 8 9 4.5-1 8-4 8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.sg-icon--cloud     { --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M7 18a4 4 0 0 1-.5-8A6 6 0 0 1 18 9a4.5 4.5 0 0 1-.5 9z'/%3E%3C/svg%3E"); }
.sg-icon--ai        { --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='M9 2v4M15 2v4M9 18v4M15 18v4M2 9h4M2 15h4M18 9h4M18 15h4'/%3E%3C/svg%3E"); }
.sg-icon--ops       { --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4M7 12l3-3 2 2 4-4'/%3E%3C/svg%3E"); }
.sg-icon--health    { --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E"); }
.sg-icon--people    { --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0'/%3E%3Cpath d='M16 4.5a3.5 3.5 0 0 1 0 7M18 14.5a6.5 6.5 0 0 1 3.5 5.5'/%3E%3C/svg%3E"); }
.sg-icon--doc       { --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6 2h8l4 4v16H6z'/%3E%3Cpath d='M14 2v4h4M9 12h6M9 16h6'/%3E%3C/svg%3E"); }
.sg-icon--chart     { --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 15l4-4 3 3 5-6'/%3E%3C/svg%3E"); }
.sg-icon--bell      { --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6 16V11a6 6 0 0 1 12 0v5l2 2H4z'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E"); }

/* ---------- Bento grid (first item spans 2×2 on wide screens) ---------- */
@media (min-width: 900px) {
	.sg-bento > :first-child { grid-column: span 2; grid-row: span 2; }
}
.sg-bento .sg-photo-card { height: 100%; min-height: 320px; }

/* ---------- Photo cards (Cover with image; industries grid) ---------- */
.sg-photo-card {
	border-radius: var(--sg-radius);
	overflow: hidden;
	align-items: flex-end !important;
	padding: clamp(1.25rem, 3vw, 1.75rem) !important;
	box-shadow: var(--sg-shadow);
	transition: transform .4s var(--sg-ease), box-shadow .4s var(--sg-ease);
}
.sg-photo-card .wp-block-cover__background {
	background: linear-gradient(180deg, rgba(11, 23, 48, .05) 0%, rgba(11, 23, 48, .55) 45%, rgba(11, 23, 48, .95) 100%) !important;
	opacity: 1 !important;
}
.sg-photo-card .wp-block-cover__image-background { transition: transform .8s var(--sg-ease); }
.sg-photo-card:hover { transform: translateY(-5px); box-shadow: var(--sg-shadow-hover); }
.sg-photo-card:hover .wp-block-cover__image-background { transform: scale(1.06); }
.sg-photo-card .wp-block-cover__inner-container { width: 100%; }
.sg-photo-card :where(h2, h3) { color: var(--wp--preset--color--white); margin: 0 0 .35rem; }
.sg-photo-card p { color: var(--sg-platinum); font-size: .9375rem; margin: 0; }
.sg-photo-card .sg-card__link a { color: #E3CF9E; font-weight: 600; text-decoration: none; }
.sg-photo-card .sg-card__link { margin-top: .75rem; }
.sg-photo-card .sg-card__link a::after { content: " →"; }

/* ---------- Timeline (six-phase approach) ---------- */
.sg-timeline { counter-reset: sg-step; position: relative; }
.sg-timeline > .sg-step {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 4.5rem .5rem 0 !important;
	text-align: center;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}
.sg-timeline > .sg-step::before {
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 3.25rem;
	height: 3.25rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 2px solid var(--sg-gold);
	background: var(--sg-navy);
	color: var(--sg-gold);
	box-shadow: 0 0 0 6px rgba(185, 155, 98, .12);
	z-index: 1;
	transition: background .3s var(--sg-ease), color .3s var(--sg-ease);
}
.sg-timeline > .sg-step:hover::before { background: var(--sg-gold); color: var(--sg-navy); }
.sg-timeline > .sg-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 1.6rem;
	left: calc(50% + 1.9rem);
	width: calc(100% - 3.8rem + var(--wp--style--block-gap, 1.25rem));
	height: 2px;
	background: linear-gradient(90deg, var(--sg-gold), rgba(185, 155, 98, .15));
}
.sg-timeline > .sg-step h3 { margin-bottom: .35rem; }
.sg-timeline > .sg-step p { font-size: .9375rem; }
@media (max-width: 899px) {
	.sg-timeline > .sg-step { text-align: left; padding: 0 0 0 4.5rem !important; min-height: 3.5rem; }
	.sg-timeline > .sg-step::before { left: 0; transform: none; }
	.sg-timeline > .sg-step:not(:last-child)::after { top: 3.4rem; left: 1.6rem; width: 2px; height: calc(100% - 2.6rem); background: linear-gradient(180deg, var(--sg-gold), rgba(185, 155, 98, .15)); }
}

/* ---------- Statement band (Cover with image) ---------- */
.sg-cover { padding-top: var(--wp--preset--spacing--70) !important; padding-bottom: var(--wp--preset--spacing--70) !important; }
.sg-cover .wp-block-cover__background { background: linear-gradient(110deg, rgba(11, 23, 48, .95) 0%, rgba(11, 23, 48, .82) 55%, rgba(18, 34, 74, .7) 100%) !important; opacity: 1 !important; }
.sg-cover :where(h2, h3) { color: var(--wp--preset--color--white); }
.sg-cover p { color: var(--sg-platinum); }
.sg-statement { font-size: clamp(1.75rem, 3.6vw, 2.75rem) !important; line-height: 1.2 !important; letter-spacing: -.02em; font-weight: 700; }

/* ---------- CTA contact chips (Smartech CTA phone/email) ---------- */
.sg-contact-chips { gap: 1rem !important; }
.sg-contact-chips p {
	margin: 0;
	padding: .9rem 1.5rem;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 100px;
	background: rgba(255, 255, 255, .06);
	font-weight: 700;
}
.sg-contact-chips a { color: var(--wp--preset--color--white) !important; text-decoration: none; }
.sg-contact-chips small { display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #E3CF9E; }

/* ---------- Section divider (gradient line) ---------- */
.sg-divider { height: 2px; border: 0; background: linear-gradient(90deg, transparent, var(--sg-gold), var(--wp--preset--color--blue), transparent); opacity: .5; }

@media (prefers-reduced-motion: reduce) {
	.sg-hero::after, .sg-float, .sg-pill::before { animation: none; }
}

/* Dark-context rules also apply to Cover-based sections (hero, statement/geography bands, photo cards) */
:is(.sg-hero, .sg-cover) .wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--white);
	border-color: rgba(255, 255, 255, .55);
}
:is(.sg-hero, .sg-cover) .wp-block-button.is-style-outline .wp-block-button__link:hover,
:is(.sg-hero, .sg-cover) .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
	color: var(--sg-navy);
}
:is(.sg-hero, .sg-cover) :where(h1, h2, h3) { color: var(--wp--preset--color--white); }
:is(.sg-hero, .sg-cover) p { color: var(--sg-platinum); }
:is(.sg-hero, .sg-cover) a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--white); }
.sg-hero .sg-microcopy { color: rgba(217, 223, 231, .8); }
.sg-photo-card { min-height: 380px !important; }

/* Navigation colors: core forces links to `color: inherit`, so color the containers they inherit from */
.sg-header .wp-block-navigation,
.sg-header .wp-block-navigation .wp-block-navigation__submenu-container { color: var(--sg-platinum); }
.sg-header .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover,
.sg-header .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:focus-visible { color: var(--wp--preset--color--white); }
.sg-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content.wp-block-navigation-item__content:hover { color: var(--wp--preset--color--white); background: rgba(255, 255, 255, .06); }
@media (max-width: 781px) {
	.sg-overlay-header .sg-page-hero,
	.sg-overlay-header main .sg-hero .wp-block-cover__inner-container { padding-top: 6.5rem; }
}

/* =====================================================================
   v0.3 — Home refinements
   ===================================================================== */

/* Tighter vertical rhythm (≈ -15–20%) */
.sg-section { padding-top: clamp(3.25rem, 7vw, 5.5rem); padding-bottom: clamp(3.25rem, 7vw, 5.5rem); }
.sg-cover { padding-top: clamp(3.75rem, 8vw, 6rem) !important; padding-bottom: clamp(3.75rem, 8vw, 6rem) !important; }
.sg-section-head { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem) !important; }

/* Bento: feature photo card spans two rows on the left, 2×2 cards on the right */
@media (min-width: 900px) {
	.sg-bento { grid-template-columns: 1.2fr 1fr 1fr !important; }
	.sg-bento > :first-child { grid-column: 1; grid-row: span 2; }
}

/* Footer v2 */
.sg-footer { padding-top: var(--wp--preset--spacing--60); }
.sg-footer__cta {
	gap: 1.5rem;
	padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem);
	margin-top: 0 !important;
	margin-left: auto !important;
	margin-right: auto !important;
	transform: translateY(-50%);
	margin-bottom: 0 !important;
	border-radius: 16px;
	background: linear-gradient(110deg, var(--sg-navy-2) 0%, #1A2F63 100%);
	border: 1px solid rgba(185, 155, 98, .35);
	box-shadow: 0 24px 50px rgba(0, 0, 0, .3);
}
.sg-footer__cta p { margin: 0; }
.sg-footer__cta-title { color: var(--wp--preset--color--white); font-size: var(--wp--preset--font-size--large); font-weight: 700; letter-spacing: -.01em; }
.sg-footer__cols { gap: 2rem; }
.sg-footer__contact li a { font-weight: 600; color: var(--wp--preset--color--white); }
.sg-footer__notice {
	margin-top: clamp(2rem, 4vw, 2.75rem) !important;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(217, 223, 231, .14);
	color: rgba(217, 223, 231, .78);
}
.sg-footer__bottom { margin-top: 1rem !important; border-top: 0; padding-top: 0; }
.sg-footer__bottom p:last-child { color: var(--sg-gold); letter-spacing: .12em; font-weight: 600; text-transform: uppercase; font-size: .75rem; }
/* The floating CTA overlaps the previous section: give the last section room */


/* =====================================================================
   v0.4 — Visible hero video + pointer effects (Smartech / Awwwards style)
   ===================================================================== */

/* Let the video breathe on the right, keep text side readable */
.sg-hero .wp-block-cover__background {
	background: linear-gradient(100deg, rgba(11, 23, 48, .95) 0%, rgba(11, 23, 48, .8) 38%, rgba(11, 23, 48, .42) 72%, rgba(18, 34, 74, .3) 100%) !important;
}
@media (min-width: 782px) and (prefers-reduced-motion: no-preference) {
	.sg-hero .wp-block-cover__video-background {
		transform: scale(1.06);
		animation: sg-video-blur 12s ease-in-out infinite alternate;
	}
}
@keyframes sg-video-blur {
	0%   { filter: blur(0) saturate(.95) brightness(.95); }
	50%  { filter: blur(2.5px) saturate(.85) brightness(.85); }
	100% { filter: blur(.5px) saturate(.95) brightness(.95); }
}
.sg-hero .sg-glass { background: rgba(11, 23, 48, .32); transition: transform .5s var(--sg-ease); will-change: transform; }

/* Cursor (native cursor stays visible) */
.sg-cursor-dot, .sg-cursor-ring {
	position: fixed;
	top: 0;
	left: 0;
	pointer-events: none;
	z-index: 9999;
	border-radius: 50%;
	opacity: 0;
	transition: opacity .2s ease, width .3s var(--sg-ease), height .3s var(--sg-ease), margin .3s var(--sg-ease), background-color .3s ease, border-color .3s ease;
}
.sg-cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--sg-gold); mix-blend-mode: difference; }
.sg-cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(185, 155, 98, .55); }
.sg-cursor-dot.is-visible, .sg-cursor-ring.is-visible { opacity: 1; }
.sg-cursor-ring.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--sg-gold); background: rgba(185, 155, 98, .08); }
.sg-cursor-ring.is-down { width: 30px; height: 30px; margin: -15px 0 0 -15px; }

/* Magnetic buttons ease back */
.wp-block-button__link { transition: transform .35s var(--sg-ease), background-color .25s ease, color .25s ease, border-color .25s ease; will-change: transform; }

/* Card spotlight following the pointer */
.sg-card, .sg-photo-card { --sg-mx: 50%; --sg-my: -200px; }
.sg-card { background-image: radial-gradient(420px circle at var(--sg-mx) var(--sg-my), rgba(185, 155, 98, .1), transparent 45%); }
.sg-section--dark .sg-card { background-image: radial-gradient(420px circle at var(--sg-mx) var(--sg-my), rgba(185, 155, 98, .16), transparent 45%); }
.sg-photo-card .wp-block-cover__inner-container::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(360px circle at var(--sg-mx) var(--sg-my), rgba(227, 207, 158, .18), transparent 50%);
}

/* Buttons inside the footer keep button colors (footer link color must not apply) */
.sg-footer .wp-element-button { color: var(--sg-navy) !important; text-decoration: none !important; }
.sg-footer .wp-element-button:hover { color: var(--sg-navy) !important; background: var(--wp--preset--color--white); border-color: var(--wp--preset--color--white); }

/* Centered sections center their buttons and flex rows too */
.sg-center .wp-block-buttons, .sg-center .sg-contact-chips { justify-content: center; }

/* v0.5 — video clearly visible (lighter veil) + pause/play control */
.sg-hero .wp-block-cover__background {
	background: linear-gradient(100deg, rgba(11, 23, 48, .88) 0%, rgba(11, 23, 48, .62) 40%, rgba(11, 23, 48, .25) 75%, rgba(18, 34, 74, .15) 100%) !important;
}
.sg-hero h1, .sg-hero .sg-lead { text-shadow: 0 2px 24px rgba(11, 23, 48, .55); }
.sg-hero .sg-glass { background: rgba(11, 23, 48, .45); }
.sg-video-toggle {
	position: absolute;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	z-index: 3;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .35);
	background: rgba(11, 23, 48, .55) center / 1rem no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Crect x='6' y='5' width='4' height='14' rx='1'/%3E%3Crect x='14' y='5' width='4' height='14' rx='1'/%3E%3C/svg%3E");
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	cursor: pointer;
	transition: background-color .25s ease, border-color .25s ease;
}
.sg-video-toggle.is-paused { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E"); }
.sg-video-toggle:hover { background-color: rgba(185, 155, 98, .55); border-color: var(--sg-gold); }

/* =====================================================================
   v0.6 — GSAP motion layer support
   ===================================================================== */
/* GSAP owns the reveal: neutralize the CSS-only fallback (inline GSAP styles take over) */
.sg-gsap .sg-reveal > * { opacity: 1; transform: none; transition: none; }
/* Timeline connectors drawn via --sg-line (animated by GSAP; 1 = fully drawn by default) */
.sg-timeline > .sg-step:not(:last-child)::after { transform: scaleX(var(--sg-line, 1)); transform-origin: 0 50%; }
@media (max-width: 899px) {
	.sg-timeline > .sg-step:not(:last-child)::after { transform: scaleY(var(--sg-line, 1)); transform-origin: 50% 0; }
}
/* SplitText masks must not clip descenders or the gradient highlight */
.sg-hero h1 .line-mask, .sg-hero h1 [class*="mask"] { padding-bottom: .08em; margin-bottom: -.08em; }
.sg-statement div, .sg-statement span { will-change: opacity; }
/* Parallax images get room to move */
.sg-cover, .sg-bento .sg-photo-card { overflow: hidden; }
/* Full-width sections sit flush (no block-gap between top-level sections in page content) */
.wp-block-post-content > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
/* Metric-matched fallback so the Inter swap does not shift layout (CLS) */
@font-face {
	font-family: "Inter Fallback";
	src: local("Arial"), local("Helvetica"), local("Liberation Sans");
	size-adjust: 107.06%;
	ascent-override: 90.49%;
	descent-override: 22.56%;
	line-gap-override: 0%;
}

/* =====================================================================
   v0.7 — Interior pages
   ===================================================================== */
/* Photo page headers (Cover) */
.sg-hero-photo.wp-block-cover { min-height: clamp(460px, 62vh, 640px); align-items: flex-end; padding-bottom: clamp(3rem, 7vw, 5rem) !important; }
.sg-hero-photo .wp-block-cover__background { background: linear-gradient(100deg, rgba(11, 23, 48, .94) 0%, rgba(11, 23, 48, .78) 45%, rgba(18, 34, 74, .5) 100%) !important; opacity: 1 !important; }
.sg-hero-photo :where(h1) { color: var(--wp--preset--color--white); max-width: 20ch; font-size: clamp(2.25rem, 4.6vw, 3.5rem); letter-spacing: -.03em; }
.sg-hero-photo p { color: var(--sg-platinum); }
.sg-hero-photo .sg-lead { max-width: 60ch; }
.sg-hero-photo .wp-block-button.is-style-outline .wp-block-button__link { color: var(--wp--preset--color--white); border-color: rgba(255, 255, 255, .55); }
.sg-hero-photo .wp-block-button .wp-block-button__link:hover { background: var(--wp--preset--color--white); border-color: var(--wp--preset--color--white); color: var(--sg-navy); }
.sg-overlay-header .sg-hero-photo.sg-page-hero { padding-top: 7rem !important; }

/* In-page chip navigation */
.sg-chips p { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; justify-content: center; }
.sg-chips a {
	padding: .55rem 1.1rem;
	border: 1px solid var(--sg-platinum);
	border-radius: 100px;
	background: var(--wp--preset--color--white);
	color: var(--sg-navy);
	font-weight: 600;
	font-size: .875rem;
	text-decoration: none;
	transition: all .25s var(--sg-ease);
}
.sg-chips a:hover { border-color: var(--sg-gold); background: var(--sg-navy); color: var(--wp--preset--color--white); }

/* Dark card + vertical mini-timeline (Contact "what happens next") */
.sg-card--dark { background: linear-gradient(160deg, var(--sg-navy) 0%, var(--sg-navy-2) 100%); border-color: rgba(217, 223, 231, .14); color: var(--sg-platinum); }
.sg-card--dark :where(h2, h3) { color: var(--wp--preset--color--white); }
.sg-card--dark h2 { font-size: var(--wp--preset--font-size--large); }
.sg-timeline--vertical { counter-reset: sg-step; }
.sg-timeline--vertical > .sg-step { text-align: left !important; padding: 0 0 1.25rem 4rem !important; min-height: 3.5rem; position: relative; }
.sg-timeline--vertical > .sg-step::before { left: 0 !important; top: 0 !important; transform: none !important; width: 2.75rem !important; height: 2.75rem !important; }
.sg-timeline--vertical > .sg-step:not(:last-child)::after { top: 3rem !important; left: 1.35rem !important; width: 2px !important; height: calc(100% - 3rem) !important; background: linear-gradient(180deg, var(--sg-gold), rgba(185, 155, 98, .15)) !important; transform: scaleY(var(--sg-line, 1)) !important; transform-origin: 50% 0 !important; }
.sg-timeline--vertical h3 { font-size: 1rem; margin: .35rem 0 .25rem; }
.sg-timeline--vertical p { font-size: .9375rem; }
.sg-card .sg-card__link a[href^="mailto:"], .sg-card .sg-card__link a[href^="tel:"] { font-size: 1.0625rem; }
.sg-card .sg-card__link a[href^="mailto:"]::after, .sg-card .sg-card__link a[href^="tel:"]::after { content: ""; }

/* v0.9 — Logo (core Site Logo block, dark-background version) */
.sg-logo { line-height: 0; }
.sg-logo img { height: auto; display: block; }
.sg-header .sg-logo img { width: 300px; }
@media (max-width: 1100px) { .sg-header .sg-logo img { width: 260px; } }
@media (max-width: 600px) { .sg-header .sg-logo img { width: 230px; } }
.sg-footer__logo img { width: 320px; max-width: 100%; }
.sg-footer__logo { margin-bottom: 1.25rem; }
