/*
Theme Name: ITN Connect
Theme URI: https://itnconnect.com
Author: ITN Connect
Description: Custom block theme for ITN Connect — telecommunications wiring, structured cabling, and network infrastructure services in Vancouver, WA and Portland, OR.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: itn-connect
*/

/* ==========================================================================
   Base / layout
   ========================================================================== */

* {
	box-sizing: border-box;
}

body {
	background: #F4F8F8;
}

@media (max-width: 1024px) {
	/* Lock phones/tablets down: no pinch/double-tap zoom, no sideways scroll.
	   Use overflow-x: clip (not hidden) — hidden turns body into its own
	   scroll container, which breaks position: sticky on the header. */
	html,
	body {
		overflow-x: clip;
		max-width: 100%;
		touch-action: pan-x pan-y;
	}
}

.itn-icon {
	width: 20px;
	height: 20px;
	display: inline-block;
	flex-shrink: 0;
}

/* ==========================================================================
   Topbar — scrolls away with the page; the header below it stays sticky
   ========================================================================== */

.itn-topbar {
	background: #FCF2EB;
	border-bottom: 1px solid #D2DFE2;
}

@media (max-width: 1023px) {
	.itn-topbar {
		display: none;
	}
}

.itn-topbar-inner {
	max-width: 1280px;
	margin: 0 auto;
	height: 36px;
	padding: 0 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-size: 12px;
	color: #4E5C61;
}

.itn-topbar-item {
	display: flex;
	align-items: center;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.itn-topbar-dot {
	flex-shrink: 0;
	color: #01626B;
	font-size: 1.3em;
	line-height: 1;
	margin-right: 0.4rem;
}

.itn-topbar-contact {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-shrink: 0;
}

.itn-topbar-contact a {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	text-decoration: none;
	white-space: nowrap;
}

.itn-topbar-label {
	color: #172326;
	font-weight: 400;
}

.itn-topbar-value {
	color: #01626B;
	font-weight: 700;
}

.itn-topbar-contact a:hover .itn-topbar-value {
	color: #0B4147;
}

.itn-topbar-contact a:focus-visible {
	outline: 2px solid #01626B;
	outline-offset: 2px;
	border-radius: 2px;
}

@media (max-width: 640px) {
	.itn-topbar-item {
		display: none;
	}

	.itn-topbar-inner {
		justify-content: center;
	}
}

/* ==========================================================================
   Header — sticks to the top once the topbar scrolls out of view
   ========================================================================== */

header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 40;
}

.itn-header {
	position: relative;
	background: rgba(244, 248, 248, 0.6);
	-webkit-backdrop-filter: blur(6px) saturate(1.4);
	backdrop-filter: blur(6px) saturate(1.4);
	border-top: 1px solid #01626B;
	border-bottom: 1px solid #01626B;
}

.itn-header-inner {
	position: relative;
	max-width: 1280px;
	margin: 0 auto;
	height: 64px;
	padding: 0 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.itn-header-brand {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	min-width: 0;
	text-decoration: none;
	border-radius: 8px;
}

.itn-header-brand:focus-visible {
	outline: 2px solid #01626B;
	outline-offset: 2px;
}

.itn-header-brand img {
	height: 40px;
	width: auto;
	object-fit: contain;
	flex-shrink: 0;
}

.itn-header-tagline {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	justify-self: start;
	gap: 2px;
	height: 40px;
	padding-left: 0.75rem;
	white-space: nowrap;
}

.itn-header-tagline::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 2px;
	height: 28px;
	background: rgba(1, 98, 107, 0.18);
}

.itn-header-tagline strong {
	font-size: 19px;
	line-height: 22px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #01626B;
	white-space: nowrap;
}

.itn-header-tagline small {
	font-size: 13.5px;
	line-height: 16px;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: #4E5C61;
	white-space: nowrap;
}

@media (min-width: 900px) {
	.itn-header-tagline {
		display: none;
	}
}

.itn-header-title {
	display: none;
	font-size: 28px;
	line-height: 40px;
	font-weight: 700;
	letter-spacing: -0.01em;
	white-space: nowrap;
	color: #01626B;
	background: linear-gradient(135deg, #0B4147 0%, #01626B 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.itn-header-nav {
	display: none;
	align-items: center;
	gap: 0.25rem;
	flex-shrink: 0;
}

.itn-header-nav a {
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: #01626B;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.itn-header-nav a:hover {
	background: rgba(2, 98, 107, 0.08);
}

.itn-header-nav a:focus-visible {
	outline: 2px solid #01626B;
	outline-offset: 2px;
}

/* Mobile menu toggle (hamburger) */
.itn-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	padding: 0;
	border: none;
	border-radius: 10px;
	background: rgba(2, 98, 107, 0.08);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	transition: background-color 0.15s ease;
}

.itn-menu-toggle:hover,
.itn-menu-toggle:focus-visible {
	background: rgba(2, 98, 107, 0.16);
}

.itn-menu-toggle:focus-visible {
	outline: 2px solid #01626B;
	outline-offset: 2px;
}

.itn-menu-toggle-box {
	position: relative;
	width: 18px;
	height: 13px;
}

.itn-menu-toggle-bar {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: #01626B;
	transition: transform 0.25s ease, opacity 0.2s ease, top 0.2s ease;
}

.itn-menu-toggle-bar:nth-child(1) {
	top: 0;
}

.itn-menu-toggle-bar:nth-child(2) {
	top: 5.5px;
}

.itn-menu-toggle-bar:nth-child(3) {
	top: 11px;
}

.itn-menu-toggle[aria-expanded="true"] .itn-menu-toggle-bar:nth-child(1) {
	top: 5.5px;
	transform: rotate(45deg);
}

.itn-menu-toggle[aria-expanded="true"] .itn-menu-toggle-bar:nth-child(2) {
	opacity: 0;
}

.itn-menu-toggle[aria-expanded="true"] .itn-menu-toggle-bar:nth-child(3) {
	top: 5.5px;
	transform: rotate(-45deg);
}

/* Mobile nav dropdown */
.itn-mobile-nav {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 0;
	padding: 0.75rem;
	background: rgba(244, 248, 248, 0.8);
	-webkit-backdrop-filter: blur(6px) saturate(1.4);
	backdrop-filter: blur(6px) saturate(1.4);
	border-bottom: 1px solid #01626B;
	box-shadow: 0 16px 32px rgba(6, 47, 52, 0.18);
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	transition: max-height 0.3s ease, opacity 0.25s ease;
}

.itn-mobile-nav.is-open {
	max-height: 320px;
	opacity: 1;
	pointer-events: auto;
}

.itn-mobile-nav-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	color: #172326;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.itn-mobile-nav-link:hover,
.itn-mobile-nav-link:focus-visible {
	background: rgba(2, 98, 107, 0.08);
	color: #01626B;
}

.itn-mobile-nav-link-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	border-radius: 10px;
	background: rgba(32, 184, 195, 0.16);
	color: #01626B;
}

.itn-mobile-nav-link-icon .itn-icon {
	width: 18px;
	height: 18px;
}

@media (max-width: 899px) {
	.itn-header-inner {
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		column-gap: 0.5rem;
	}
}

@media (min-width: 900px) {
	.itn-header-title {
		display: block;
	}

	.itn-header-nav {
		display: flex;
	}

	.itn-header-inner {
		height: 72px;
	}

	.itn-menu-toggle,
	.itn-mobile-nav {
		display: none;
	}
}

/* ==========================================================================
   Shared building blocks
   ========================================================================== */

.itn-section {
	padding: 2.5rem 1rem;
}

.itn-section-inner {
	max-width: 1280px;
	margin: 0 auto;
}

.itn-section--tight {
	max-width: 800px;
}

.itn-section-bordered {
	border-top: 1px solid #D2DFE2;
	border-bottom: 1px solid #D2DFE2;
}

@media (min-width: 768px) {
	.itn-section {
		padding: 4.5rem 2rem;
	}
}

.itn-eyebrow {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #01626B;
	display: block;
	margin-bottom: 0.25rem;
}

.itn-heading-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
}

.itn-h2 {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #172326;
	margin: 0;
}

@media (min-width: 768px) {
	.itn-h2 {
		font-size: 30px;
	}
}

.itn-lede {
	font-size: 13.5px;
	color: #4E5C61;
	margin: 0.25rem 0 0;
}

@media (min-width: 768px) {
	.itn-lede {
		font-size: 15px;
	}
}

@media (min-width: 768px) {
	.itn-lede--nowrap {
		white-space: nowrap;
	}
}

.itn-count-pill {
	font-size: 11px;
	font-weight: 600;
	color: #4E5C61;
	background: #FCF2EB;
	border: 1px solid #D2DFE2;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	white-space: nowrap;
}

/* Buttons */
.itn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	height: 46px;
	padding: 0 1.25rem;
	border-radius: 12px;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform 0.12s ease, background-color 0.15s ease;
	cursor: pointer;
}

.itn-btn:active {
	transform: scale(0.98);
}

.itn-btn--primary {
	background: #01626B;
	color: #FFFFFF;
	box-shadow: 0 1px 3px rgba(6, 47, 52, 0.04), 0 2px 6px rgba(6, 47, 52, 0.03);
}

.itn-btn--primary:hover {
	background: #0B4147;
	color: #FFFFFF;
}

.itn-btn--secondary {
	background: #FFFFFF;
	color: #172326;
	border-color: #D2DFE2;
}

.itn-btn--secondary:hover {
	background: #FCF2EB;
	color: #172326;
}

.itn-btn--on-dark {
	background: rgba(255, 255, 255, 0.06);
	color: #FFFFFF;
	border-color: rgba(255, 255, 255, 0.45);
}

.itn-btn--on-dark:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #FFFFFF;
}

.itn-btn--block {
	width: 100%;
}

.itn-btn:focus-visible {
	outline: 2px solid #01626B;
	outline-offset: 2px;
}

.itn-btn--on-dark:focus-visible {
	outline-color: #FFFFFF;
}

/* Pill badge (hero kicker) */
.itn-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: #0B4147;
	border: 1px solid rgba(32, 184, 195, 0.5);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #20B8C3;
}

.itn-pill-dot {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: #20B8C3;
	animation: itn-pulse-dot 2s ease-out infinite;
}

@keyframes itn-pulse-dot {
	0% {
		box-shadow: 0 0 0 0 rgba(32, 184, 195, 0.55);
	}
	70% {
		box-shadow: 0 0 0 7px rgba(32, 184, 195, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(32, 184, 195, 0);
	}
}

/* Card */
.itn-card {
	background: #FFFFFF;
	border: 1px solid #D2DFE2;
	border-radius: 16px;
	box-shadow: 0 2px 8px -2px rgba(23, 35, 38, 0.06), 0 1px 3px rgba(23, 35, 38, 0.04);
	padding: 1.25rem;
}

/* Chip */
.itn-chip {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 500;
	color: #172326;
	background: #FCF2EB;
	border: none;
	padding: 0.3rem 0.65rem;
	border-radius: 8px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

/* Two source images per background (here and .itn-cta-band below): the
   "-mobile" file is a separate crop/compression, not just a smaller version
   of the desktop one, so keep both in sync if either photo changes. */
.itn-hero {
	position: relative;
	background:
		linear-gradient(135deg, rgba(6, 47, 52, 0.8) 0%, rgba(11, 65, 71, 0.8) 55%, rgba(1, 98, 107, 0.8) 100%),
		url('assets/images/hero-bg-mobile.jpg') 20% center / cover no-repeat;
	color: #FFFFFF;
	padding: 2.5rem 1rem 2rem;
	overflow: hidden;
}

@media (min-width: 768px) {
	.itn-hero {
		background-image:
			linear-gradient(135deg, rgba(6, 47, 52, 0.8) 0%, rgba(11, 65, 71, 0.8) 55%, rgba(1, 98, 107, 0.8) 100%),
			url('assets/images/hero-bg.jpg');
		background-position: center;
		padding: 5rem 2rem;
	}
}

.itn-cta-band {
	position: relative;
	background:
		linear-gradient(135deg, rgba(6, 47, 52, 0.8) 0%, rgba(11, 65, 71, 0.8) 55%, rgba(1, 98, 107, 0.8) 100%),
		url('assets/images/cta-bg-mobile.jpg') center / cover no-repeat;
}

@media (min-width: 768px) {
	.itn-cta-band {
		background-image:
			linear-gradient(135deg, rgba(6, 47, 52, 0.8) 0%, rgba(11, 65, 71, 0.8) 55%, rgba(1, 98, 107, 0.8) 100%),
			url('assets/images/cta-bg.jpg');
	}
}

.itn-hero--compact {
	padding: 2rem 1rem 1.5rem;
}

@media (min-width: 768px) {
	.itn-hero--compact {
		padding: 2.75rem 2rem 2.5rem;
	}
}

/* Mobile & tablet: extend the hero up behind the sticky header instead of
   being pushed down by it, so it sits flush with the top of the screen. */
@media (max-width: 767px) {
	.itn-hero {
		margin-top: -64px;
		padding-top: calc(1rem + 64px);
	}

	.itn-hero--compact {
		padding-top: calc(1.25rem + 64px);
		padding-bottom: 1.25rem;
	}
}

@media (min-width: 768px) and (max-width: 899px) {
	.itn-hero {
		margin-top: -64px;
		padding-top: calc(5rem + 64px);
	}

	.itn-hero--compact {
		padding-top: calc(2.75rem + 64px);
	}
}

@media (min-width: 900px) and (max-width: 1023px) {
	.itn-hero {
		margin-top: -72px;
		padding-top: calc(5rem + 72px);
	}

	.itn-hero--compact {
		padding-top: calc(2.75rem + 72px);
	}
}

/* On the Contact/Services pages the compact hero is the page's post content,
   which core wraps in a `display: flow-root` container — that containment
   swallows the hero's own negative margin above, so the pull-up has to move
   to the wrapper instead for the hero to reach the header the same way the
   homepage hero (a direct, unwrapped template child) already does. */
@media (max-width: 767px) {
	.wp-block-post-content:has(> .itn-hero) {
		margin-top: -64px;
	}

	.wp-block-post-content > .itn-hero {
		margin-top: 0;
	}
}

@media (min-width: 768px) and (max-width: 899px) {
	.wp-block-post-content:has(> .itn-hero) {
		margin-top: -64px;
	}

	.wp-block-post-content > .itn-hero {
		margin-top: 0;
	}
}

@media (min-width: 900px) and (max-width: 1023px) {
	.wp-block-post-content:has(> .itn-hero) {
		margin-top: -72px;
	}

	.wp-block-post-content > .itn-hero {
		margin-top: 0;
	}
}

.itn-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 1040px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.itn-hero .itn-hero-inner {
	max-width: 1180px;
}

.itn-hero-columns {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

@media (min-width: 1024px) {
	.itn-hero-columns {
		display: grid;
		grid-template-columns: 1.05fr 0.95fr;
		align-items: stretch;
		gap: 3rem;
	}
}

.itn-hero-content {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.itn-hero-kicker {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-weight: 700;
	color: #C5ECF0;
	display: none;
	margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
	.itn-hero-kicker {
		display: block;
	}
}

.itn-hero h1 {
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
	margin: 0;
	color: #FFFFFF;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
	.itn-hero h1 {
		font-size: 48px;
	}
}

.itn-hero p.itn-hero-sub {
	font-size: 14.5px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
	margin: 0;
	max-width: 640px;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
	.itn-hero p.itn-hero-sub {
		font-size: 17px;
	}
}

@media (min-width: 768px) {
	.itn-hero p.itn-hero-sub.itn-hero-sub--wide {
		max-width: 800px;
	}
}

.itn-hero-ctas {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.625rem;
	padding-top: 0.25rem;
	max-width: 420px;
}

@media (min-width: 640px) {
	.itn-hero-ctas {
		grid-template-columns: auto auto;
	}
}

.itn-stat-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
	padding: 0.875rem;
	border-radius: 14px;
	background: rgba(11, 65, 71, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.14);
	text-align: center;
	margin-top: 0.5rem;
}

.itn-stat {
	padding: 0.25rem;
}

.itn-stat + .itn-stat {
	border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.itn-stat-value {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	color: #FFFFFF;
}

.itn-stat-value--accent {
	color: #20B8C3;
}

.itn-stat-label {
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.65);
	margin-top: 0.25rem;
}

/* Hero — right-hand support card; mostly solid shell, inner rows stay solid too */
.itn-hero-card {
	background: linear-gradient(135deg, rgba(11, 65, 71, 0.82) 0%, rgba(1, 98, 107, 0.78) 100%);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 18px;
	padding: 1.125rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 0.625rem;
}

.itn-hero-card-header {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	padding-bottom: 0.625rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.itn-hero-card-icon {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: rgba(32, 184, 195, 0.16);
	color: #20B8C3;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.itn-hero-card-icon svg {
	width: 18px;
	height: 18px;
}

.itn-hero-card-heading {
	flex: 1;
	min-width: 0;
}

.itn-hero-card-title {
	font-size: 14.5px;
	font-weight: 700;
	color: #FFFFFF;
	line-height: 1.25;
}

.itn-hero-card-subtitle {
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.7);
	margin-top: 0.1rem;
}

.itn-hero-card-badge {
	flex-shrink: 0;
	background: rgba(32, 184, 195, 0.16);
	border: 1px solid rgba(32, 184, 195, 0.5);
	color: #20B8C3;
	font-size: 10px;
	font-weight: 700;
	padding: 0.25rem 0.55rem;
	border-radius: 999px;
	white-space: nowrap;
}

.itn-hero-card-list {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: space-between;
	gap: 0.375rem;
}

.itn-hero-card-item {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	background: #12464D;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	padding: 0.5rem 0.75rem;
}

.itn-hero-card-item-icon {
	color: #20B8C3;
	flex-shrink: 0;
	display: flex;
}

.itn-hero-card-item-icon svg {
	width: 16px;
	height: 16px;
}

.itn-hero-card-item-text {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.3;
}

.itn-hero-card-item-text strong {
	color: #FFFFFF;
	font-weight: 700;
}

.itn-hero-card-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.625rem;
	flex-wrap: wrap;
	background: rgba(18, 70, 77, 0.65);
	border: 1px solid rgba(32, 184, 195, 0.5);
	border-radius: 10px;
	padding: 0.55rem 0.75rem;
}

.itn-hero-card-cta-text {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 12px;
	font-weight: 600;
	color: #FFFFFF;
}

.itn-hero-card-cta-dot {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: #20B8C3;
	flex-shrink: 0;
}

.itn-hero-card-cta-link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 12px;
	font-weight: 700;
	color: #20B8C3;
	text-decoration: none;
}

.itn-hero-card-cta-link svg {
	width: 14px;
	height: 14px;
}

.itn-hero-card-cta-link:hover {
	color: #C5ECF0;
}

.itn-hero-card-cta-link:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
	border-radius: 4px;
}

/* ==========================================================================
   Service cards
   ========================================================================== */

.itn-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.itn-grid--2 {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 900px) {
	.itn-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}
	.itn-grid--4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

.itn-service-card {
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
}

.itn-service-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.itn-service-card-icon-badge {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #E2F4F6;
	color: #01626B;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.itn-service-card-icon-badge .itn-icon {
	width: 22px;
	height: 22px;
	stroke-width: 2;
}

.itn-service-number {
	font-size: 13px;
	font-weight: 600;
	color: #4E5C61;
}

.itn-service-card h3 {
	font-size: 17px;
	font-weight: 700;
	color: #172326;
	margin: 0 0 0.5rem;
}

.itn-service-card p {
	font-size: 13.5px;
	color: #4E5C61;
	line-height: 1.5;
	margin: 0 0 1rem;
}

.itn-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: auto;
}

/* ==========================================================================
   Scenario (problem / solution) cards
   ========================================================================== */

.itn-scenario {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.itn-scenario-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
}

.itn-scenario-quote {
	font-size: 14.5px;
	font-weight: 700;
	color: #172326;
}

.itn-scenario-tag {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	color: #01626B;
	background: #E2F4F6;
	border: 1px solid rgba(32, 184, 195, 0.25);
	padding: 0.2rem 0.5rem;
	border-radius: 6px;
	white-space: nowrap;
	flex-shrink: 0;
}

.itn-scenario p {
	font-size: 13px;
	color: #4E5C61;
	line-height: 1.55;
	margin: 0;
}

.itn-scenario-highlight {
	background: #E2F4F6;
	border: 1px solid rgba(32, 184, 195, 0.4);
	border-radius: 12px;
	padding: 0.875rem 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.itn-scenario-highlight strong {
	display: block;
	font-size: 14px;
	color: #172326;
}

.itn-scenario-highlight p {
	margin-top: 0.15rem;
}

/* ==========================================================================
   Who we work with / Why ITN Connect
   ========================================================================== */

.itn-segment-card {
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
}

.itn-segment-card-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #FCF2EB;
	color: #01626B;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
}

.itn-segment-card-icon .itn-icon {
	width: 22px;
	height: 22px;
	stroke-width: 2;
}

.itn-segment-card h3 {
	font-size: 16px;
	font-weight: 700;
	color: #172326;
	margin: 0 0 0.25rem;
}

.itn-segment-card p {
	font-size: 13px;
	color: #4E5C61;
	margin: 0 0 1rem;
	line-height: 1.4;
	padding-bottom: 1rem;
	border-bottom: 1px solid #D2DFE2;
}

.itn-segment-card-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
}

.itn-segment-card-list li {
	position: relative;
	padding-left: 1rem;
	font-size: 13px;
	font-weight: 500;
	color: #0B4147;
}

.itn-segment-card-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #01626B;
}

.itn-why-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.875rem;
}

.itn-why-icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #E2F4F6;
	color: #01626B;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.itn-why-item h3 {
	font-size: 14px;
	font-weight: 700;
	color: #172326;
	margin: 0 0 0.2rem;
}

.itn-why-item p {
	font-size: 12.5px;
	color: #4E5C61;
	margin: 0;
	line-height: 1.5;
}

/* ==========================================================================
   Reviews
   ========================================================================== */

.itn-review-stars {
	display: flex;
	gap: 0.15rem;
	color: #20B8C3;
}

.itn-review-stars .itn-icon {
	width: 14px;
	height: 14px;
}

.itn-review-card blockquote {
	font-size: 13px;
	color: #4E5C61;
	line-height: 1.6;
	font-style: italic;
	margin: 0.5rem 0 0;
}

.itn-review-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid #D2DFE2;
	font-size: 12px;
}

.itn-review-footer strong {
	color: #172326;
}

.itn-review-footer span {
	color: #4E5C61;
}

.itn-rating-summary {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 13px;
	color: #4E5C61;
}

.itn-rating-summary strong {
	color: #172326;
	font-size: 13px;
}

/* ==========================================================================
   CTA / Quote panel
   ========================================================================== */

.itn-quote-panel {
	background: #FFFFFF;
	border: 1px solid #D2DFE2;
	border-radius: 20px;
	box-shadow: 0 2px 8px -2px rgba(23, 35, 38, 0.06), 0 1px 3px rgba(23, 35, 38, 0.04);
	padding: 1.5rem;
	max-width: 800px;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.itn-quote-panel {
		padding: 2.5rem;
	}
}

/* ==========================================================================
   Forms
   ========================================================================== */

.itn-form {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.itn-form-field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.itn-form-field label {
	font-size: 12px;
	font-weight: 600;
	color: #172326;
}

.itn-form-2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.625rem;
}

@media (max-width: 480px) {
	.itn-form-2col {
		grid-template-columns: 1fr;
	}
}

.itn-form input[type="text"],
.itn-form input[type="tel"],
.itn-form input[type="email"],
.itn-form select,
.itn-form textarea {
	width: 100%;
	font-family: inherit;
	font-size: 13.5px;
	color: #172326;
	background: #FCF2EB;
	border: 1px solid #D2DFE2;
	border-radius: 10px;
	padding: 0 0.75rem;
	height: 42px;
}

.itn-form textarea {
	height: 88px;
	padding: 0.65rem 0.75rem;
	resize: vertical;
}

@media (max-width: 1024px) {
	/* iOS auto-zooms into any focused field smaller than 16px — keep fields
	   at 16px on phones/tablets so focusing the form never triggers it. */
	.itn-form input[type="text"],
	.itn-form input[type="tel"],
	.itn-form input[type="email"],
	.itn-form select,
	.itn-form textarea {
		font-size: 16px;
	}
}

.itn-form input:focus,
.itn-form select:focus,
.itn-form textarea:focus {
	outline: none;
	background: #FFFFFF;
	border-color: #01626B;
	box-shadow: 0 0 0 1px #01626B;
}

.itn-pill-toggle-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.itn-pill-toggle {
	position: relative;
}

.itn-pill-toggle input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.itn-pill-toggle span {
	display: inline-flex;
	padding: 0.4rem 0.75rem;
	border-radius: 10px;
	border: 1px solid #D2DFE2;
	background: #FCF2EB;
	color: #4E5C61;
	font-size: 11.5px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s ease;
}

.itn-pill-toggle input:checked + span {
	background: #01626B;
	border-color: #01626B;
	color: #FFFFFF;
}

.itn-pill-toggle input:focus-visible + span {
	box-shadow: 0 0 0 2px #C5ECF0;
}

.itn-form-note {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem;
	border-radius: 10px;
	background: #FCF2EB;
	border: 1px solid #D2DFE2;
	color: #4E5C61;
	font-size: 11.5px;
}

.itn-form-note .itn-icon {
	color: #20B8C3;
}

.itn-upload-pill {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	padding: 0.625rem 1rem;
	border-radius: 12px;
	background: #FCF2EB;
	border: 1px solid rgba(1, 98, 107, 0.18);
	box-shadow: 0 2px 0 rgba(1, 98, 107, 0.14), 0 1px 3px rgba(23, 35, 38, 0.08);
	color: #172326;
	font-family: inherit;
	text-align: left;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.itn-upload-pill-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #E2F4F6;
	color: #01626B;
	flex-shrink: 0;
}

.itn-upload-pill-icon .itn-icon {
	width: 19px;
	height: 19px;
}

.itn-upload-pill-text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.itn-upload-pill-text strong {
	font-size: 13.5px;
	font-weight: 700;
	color: #172326;
}

.itn-upload-pill-text small {
	font-size: 11px;
	color: #4E5C61;
}

.itn-upload-pill:hover {
	background: #E2F4F6;
	border-color: rgba(1, 98, 107, 0.35);
	box-shadow: 0 2px 0 rgba(1, 98, 107, 0.22), 0 4px 10px rgba(23, 35, 38, 0.1);
}

.itn-upload-pill:active {
	box-shadow: 0 1px 0 rgba(1, 98, 107, 0.14), 0 1px 2px rgba(23, 35, 38, 0.06);
	transform: translateY(1px);
}

.itn-upload-pill:focus-visible {
	box-shadow: 0 0 0 2px #C5ECF0;
}

.itn-form-notice {
	padding: 1rem 1.25rem;
	border-radius: 12px;
	border-left: 3px solid #20B8C3;
	background: #E2F4F6;
	font-size: 13px;
	color: #172326;
}

.itn-form-notice--error {
	background: #FCEAEA;
	border-left-color: #C0392B;
}

/* Quick-check popup: a <dialog> so the verification question floats as its
   own card instead of sitting inline in the form. The `open` attribute in
   the markup is a no-JS fallback (it renders centered but without a dimmed
   backdrop); JS closes it on load and reopens it with showModal() instead. */
.itn-math-dialog {
	padding: 0;
	border: none;
	background: transparent;
	max-width: 360px;
	width: calc(100% - 2rem);
}

.itn-math-dialog::backdrop {
	background: rgba(6, 47, 52, 0.55);
}

.itn-math-dialog-card {
	display: flex;
	flex-direction: column;
	gap: 1.125rem;
	background: #FFFFFF;
	border: 1px solid #D2DFE2;
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(6, 47, 52, 0.2);
	padding: 1.75rem;
}

.itn-math-dialog-heading {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.itn-math-dialog-heading .itn-icon {
	flex: none;
	width: 26px;
	height: 26px;
	color: #01626B;
	margin-top: 0.1rem;
}

.itn-math-dialog-title {
	margin: 0 0 0.2rem;
	font-size: 17px;
	font-weight: 700;
	color: #172326;
}

.itn-math-dialog-subtitle {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.4;
	color: #4E5C61;
}

/* The question (label/input) and the Cancel/Verify row are wrapped in
   #itn-math-dialog-question so JS can swap the whole thing out for the
   progress panel — but that wrapper is a plain block, not a flex child of
   .itn-math-dialog-card, so it never inherited the card's 1.125rem gap.
   Its two children were landing back-to-back with 0px between them while
   every other gap in the dialog used that same 1.125rem rhythm — the
   inconsistent spacing this rule fixes. */
#itn-math-dialog-question {
	display: flex;
	flex-direction: column;
	gap: 1.125rem;
}

.itn-math-dialog-card .itn-form-field label {
	font-size: 18px;
	font-weight: 600;
	color: #172326;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.itn-math-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.9em;
	padding: 0.15rem 0.65rem;
	border-radius: 999px;
	background: #E2F4F6;
	color: #01626B;
	font-weight: 700;
	font-size: 1em;
}

.itn-math-dialog-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.625rem;
}

@media (max-width: 480px) {
	.itn-math-dialog-actions {
		flex-direction: column-reverse;
	}

	.itn-math-dialog-actions .itn-btn {
		width: 100%;
	}
}

/* Upload/send progress panel: swaps in for the math question + actions
   inside the popup once submission starts, so the dialog never just sits
   there looking stuck while photos upload and the email goes out. */
.itn-upload-progress {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

/* Without this, the panel shows up immediately when the dialog opens
   (before Verify & Send is even clicked): an author stylesheet rule always
   wins over the browser's built-in `[hidden] { display: none }`, even one
   with equal selector specificity like `.itn-upload-progress` above, so the
   `display: flex` there was unconditionally overriding the hidden attribute. */
.itn-upload-progress[hidden] {
	display: none;
}

.itn-upload-progress-header {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.itn-upload-progress-spinner {
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 0.15rem;
	border-radius: 50%;
	border: 3px solid #C5ECF0;
	border-top-color: #01626B;
	animation: itn-spin 0.8s linear infinite;
}

.itn-upload-progress-title {
	margin: 0 0 0.15rem;
	font-size: 14.5px;
	font-weight: 700;
	color: #172326;
}

.itn-upload-progress-label {
	margin: 0;
	font-size: 12.5px;
	color: #4E5C61;
}

.itn-upload-progress-track {
	position: relative;
	height: 8px;
	border-radius: 999px;
	background: #E2F4F6;
	overflow: hidden;
}

.itn-upload-progress-bar {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 0%;
	border-radius: 999px;
	background: #01626B;
	transition: width 0.2s ease;
}

.itn-upload-progress-bar--indeterminate {
	width: 40% !important;
	animation: itn-progress-indeterminate 1.1s ease-in-out infinite;
}

@keyframes itn-progress-indeterminate {
	0% { left: -40%; }
	100% { left: 100%; }
}

@keyframes itn-spin {
	to { transform: rotate(360deg); }
}

.itn-form-success {
	padding: 1.5rem;
	border-radius: 14px;
	background: #E8F7F0;
	border: 1px solid rgba(22, 166, 106, 0.35);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
}

.itn-form-success .itn-icon {
	width: 32px;
	height: 32px;
	color: #16A66A;
}

.itn-form-success h3 {
	font-size: 17px;
	font-weight: 700;
	color: #172326;
	margin: 0;
}

.itn-form-success p {
	font-size: 13px;
	color: #4E5C61;
	margin: 0;
}

.itn-form-success-actions {
	display: flex;
	gap: 0.625rem;
	width: 100%;
	margin-top: 0.5rem;
}

.itn-form-success-actions .itn-btn {
	flex: 1;
	padding: 0 0.5rem;
	gap: 0.3rem;
	font-size: 12.5px;
	white-space: nowrap;
}

.itn-form-success-actions .itn-icon {
	width: 16px;
	height: 16px;
}

@media (max-width: 360px) {
	.itn-form-success-actions {
		flex-direction: column;
	}
}

/* ==========================================================================
   Contact info block
   ========================================================================== */

.itn-contact-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #4E5C61;
	margin: 0 0 0.4rem;
}

.itn-contact-value {
	font-size: 18px;
	margin: 0 0 1.5rem;
}

.itn-contact-value a {
	color: #172326;
	text-decoration: none;
}

.itn-contact-value a:hover {
	color: #01626B;
}

.itn-contact-value small {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: #4E5C61;
	margin-top: 0.15rem;
}

.itn-contact-pills {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.itn-contact-pill {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 46px;
	padding: 0 1.25rem;
	border-radius: 12px;
	background: #E2F4F6;
	border: 1px solid rgba(1, 98, 107, 0.25);
	color: #01626B;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.itn-contact-pill .itn-icon {
	color: #01626B;
	flex-shrink: 0;
}

.itn-contact-pill:hover {
	background: #CFEBEF;
	border-color: rgba(1, 98, 107, 0.4);
	color: #01626B;
}

.itn-contact-pill:active {
	transform: scale(0.98);
}

.itn-contact-pill:focus-visible {
	outline: 2px solid #01626B;
	outline-offset: 2px;
}

.itn-contact-mobile-cta {
	display: none;
}

.itn-contact-pills--row {
	flex-direction: row;
}

.itn-contact-pills--row .itn-contact-pill {
	flex: 1 1 0;
	min-width: 0;
	height: auto;
	min-height: 48px;
	padding: 0.5rem 0.75rem;
	font-size: 12.5px;
	white-space: normal;
	line-height: 1.25;
	justify-content: center;
	text-align: center;
}

.itn-contact-cards {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	max-width: 800px;
	margin: 0 auto;
}

.itn-contact-cards .itn-quote-panel {
	width: 100%;
	max-width: none;
	margin: 0;
}

.itn-contact-info-card {
	text-align: center;
}

.itn-contact-info-card .itn-contact-pills--row {
	max-width: 420px;
	margin: 0 auto;
}

@media (max-width: 767px) {
	.itn-contact-mobile-cta {
		display: block;
		max-width: 1280px;
		margin: 0 auto;
		padding: 1.25rem 1rem 0;
		text-align: center;
	}

	/* The mobile CTA bar above already shows the label + pills, so this
	   card would just repeat them here. */
	.itn-contact-info-card {
		display: none;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */

.itn-footer {
	background: #062F34;
	border-top: 1px solid #0B4147;
	color: rgba(255, 255, 255, 0.7);
	min-height: 64px;
	padding: 0.75rem 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	column-gap: 1.5rem;
	row-gap: 0.375rem;
	text-align: center;
}

.itn-footer-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-size: 12.5px;
	font-weight: 600;
	color: #FFFFFF;
}

.itn-footer-badge .itn-icon {
	color: #20B8C3;
}

.itn-footer-contact {
	font-size: 12.5px;
}

.itn-footer-contact a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	margin: 0 0.5rem;
}

.itn-footer-contact a:hover {
	color: #20B8C3;
}

.itn-footer-contact a:focus-visible {
	outline: 2px solid #20B8C3;
	outline-offset: 2px;
	border-radius: 2px;
}

.itn-footer-nav {
	font-size: 12px;
}

.itn-footer-nav a {
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	margin: 0 0.6rem;
}

.itn-footer-nav a:hover {
	color: #FFFFFF;
}

.itn-footer-nav a:focus-visible {
	outline: 2px solid #20B8C3;
	outline-offset: 2px;
	border-radius: 2px;
}

.itn-footer-badge-text--short {
	display: none;
}

@media (max-width: 899px) {
	.itn-footer-badge-text--full {
		display: none;
	}

	.itn-footer-badge-text--short {
		display: inline;
	}

	.itn-footer-nav {
		display: none;
	}
}

