/* Healthcare IT Specialists theme CSS - hand-built utility set matching the approved design */

:root {
	--primary: #0B2A4A;
	--primary-rgb: 11, 42, 74;
	--accent: #00A88E;
	--accent-rgb: 0, 168, 142;
	--brand-orange: #E87722;
	--brand-orange-rgb: 232, 119, 34;
	--secondary: #F1F5F9;
	--foreground: #334155;
	--muted-foreground: #64748B;
	--border: #E2E8F0;
	--shadow-soft: 0 10px 30px -12px rgba(11, 42, 74, 0.18);
	--shadow-lift: 0 20px 50px -20px rgba(11, 42, 74, 0.28);
	--shadow-glow: 0 0 0 6px rgba(0, 168, 142, 0.18), 0 12px 30px -12px rgba(0, 168, 142, 0.45);
	--font-display: "Poppins", ui-sans-serif, system-ui, sans-serif;
	--font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background-color: #fff;
	color: var(--foreground);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--primary); letter-spacing: -0.01em; margin: 0; font-weight: 600; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
input, textarea { font: inherit; color: inherit; margin: 0; }
section { scroll-margin-top: 80px; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
template { display: none; }

/* ===== Layout ===== */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }
.top-1 { top: 0.25rem; }
.bottom-1 { bottom: 0.25rem; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-6 { bottom: 1.5rem; }
.right-6 { right: 1.5rem; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.-z-10 { z-index: -10; }
.-z-0 { z-index: 0; }
.isolate { isolation: isolate; }
.overflow-hidden { overflow: hidden; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.inline-grid { display: inline-grid; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.place-items-center { place-items: center; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-y-2 { row-gap: 0.5rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.divide-y > * + * { border-top-width: 1px; }
.divide-border > * + * { border-color: var(--border); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== Sizing ===== */
.h-full { height: 100%; }
.w-full { width: 100%; }
.w-auto { width: auto; }
.min-h-screen { min-height: 100vh; }
.h-1\.5 { height: 0.375rem; }
.w-1\.5 { width: 0.375rem; }
.h-2 { height: 0.5rem; }
.w-2 { width: 0.5rem; }
.h-2\.5 { height: 0.625rem; }
.h-4 { height: 1rem; }
.w-4 { width: 1rem; }
.h-5 { height: 1.25rem; }
.w-5 { width: 1.25rem; }
.h-6 { height: 1.5rem; }
.w-6 { width: 1.5rem; }
.h-7 { height: 1.75rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.w-10 { width: 2.5rem; }
.h-11 { height: 2.75rem; }
.w-11 { width: 2.75rem; }
.h-12 { height: 3rem; }
.w-12 { width: 3rem; }
.h-14 { height: 3.5rem; }
.w-14 { width: 3.5rem; }
.h-16 { height: 4rem; }
.w-32 { width: 8rem; }
.h-48 { height: 12rem; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

/* ===== Spacing ===== */
.p-1 { padding: 0.25rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-16 { padding-top: 4rem; }
.pt-20 { padding-top: 5rem; }
.pt-1\.5 { padding-top: 0.375rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-24 { padding-bottom: 6rem; }
.pr-5 { padding-right: 1.25rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.top-7 { top: 1.75rem; }

/* ===== Typography ===== */
.font-display { font-family: var(--font-display); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-eyebrow { letter-spacing: 0.18em; }
.leading-none { line-height: 1; }
.leading-snug { line-height: 1.375; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.whitespace-nowrap { white-space: nowrap; }
.hero-title { line-height: 1.05; }

/* ===== Colors ===== */
.text-white { color: #fff; }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/85 { color: rgba(255, 255, 255, 0.85); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-primary { color: var(--primary); }
.text-primary\/90 { color: rgba(var(--primary-rgb), 0.9); }
.text-accent { color: var(--accent); }
.text-brand-orange { color: var(--brand-orange); }
.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-rose-500 { color: #f43f5e; }
.text-rose-700 { color: #be123c; }
.bg-white { background-color: #fff; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-background { background-color: #fff; }
.bg-secondary { background-color: var(--secondary); }
.bg-primary { background-color: var(--primary); }
.bg-primary\/95 { background-color: rgba(var(--primary-rgb), 0.95); }
.bg-accent { background-color: var(--accent); }
.bg-accent\/5 { background-color: rgba(var(--accent-rgb), 0.05); }
.bg-accent\/10 { background-color: rgba(var(--accent-rgb), 0.1); }
.bg-brand-orange { background-color: var(--brand-orange); }
.bg-brand-orange\/10 { background-color: rgba(var(--brand-orange-rgb), 0.1); }
.bg-brand-orange\/15 { background-color: rgba(var(--brand-orange-rgb), 0.15); }
.bg-brand-orange\/70 { background-color: rgba(var(--brand-orange-rgb), 0.7); }
.bg-border { background-color: var(--border); }
.bg-rose-50 { background-color: #fff1f2; }
.bg-rose-100 { background-color: #ffe4e6; }
.fill-current { fill: currentColor; }

/* ===== Borders & radius ===== */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; }
.border-l-4 { border-left-width: 4px; }
.border-l-transparent { border-left-color: transparent; }
.border-border { border-color: var(--border); }
.border-border\/60 { border-color: rgba(226, 232, 240, 0.6); }
.border-accent { border-color: var(--accent); }
.border-accent\/30 { border-color: rgba(var(--accent-rgb), 0.3); }
.border-brand-orange\/40 { border-color: rgba(var(--brand-orange-rgb), 0.4); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-white\/40 { border-color: rgba(255, 255, 255, 0.4); }
.border-white\/60 { border-color: rgba(255, 255, 255, 0.6); }
.border-white\/70 { border-color: rgba(255, 255, 255, 0.7); }
.border-rose-200 { border-color: #fecdd3; }
.rounded-sm { border-radius: 0.75rem; }
.rounded-xl { border-radius: 1.25rem; }
.rounded-2xl { border-radius: 1.5rem; }
.rounded-3xl { border-radius: 1.75rem; }
.rounded-full { border-radius: 9999px; }
.ring-4.shadow-soft, .ring-4 { box-shadow: 0 0 0 4px #fff, var(--shadow-soft) !important; }
.ring-white { /* combined into .ring-4 */ }
.ring-1 { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.ring-inset, .ring-white\/20 { /* combined into .ring-1 */ }

/* ===== Effects ===== */
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-lift { box-shadow: var(--shadow-lift); }
.object-cover { object-fit: cover; }
.opacity-20 { opacity: 0.2; }
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, rgba(var(--primary-rgb), 0.9), rgba(var(--primary-rgb), 0.75), rgba(var(--primary-rgb), 0.55)); }
.hero-radial { background-image: radial-gradient(80% 60% at 20% 30%, rgba(var(--primary-rgb), 0.4), transparent 60%); }
.cta-radial { background-image: radial-gradient(60% 60% at 50% 50%, rgba(var(--accent-rgb), 0.2), transparent 70%); }

/* ===== Transitions ===== */
.transition-all { transition: all 0.15s ease; }
.transition-colors { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.transition-transform { transition: transform 0.15s ease; }
.duration-300 { transition-duration: 0.3s; }

/* ===== Hover & group states ===== */
.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-accent:hover { color: var(--accent); }
.hover\:text-white:hover { color: #fff; }
.hover\:text-brand-orange:hover { color: var(--brand-orange); }
.hover\:bg-white:hover { background-color: #fff; color: var(--primary); }
.hover\:bg-accent:hover { background-color: var(--accent); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:-translate-y-0\.5 { transform: translateY(-2px); }
.service-card:hover .group-hover\:rotate-3 { transform: scale(1.1) rotate(3deg); background-color: rgba(var(--brand-orange-rgb), 0.15); color: var(--brand-orange); }

/* ===== Forms ===== */
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--accent); }
input::placeholder, textarea::placeholder { color: #94A3B8; }
textarea { resize: vertical; }

/* ===== Animations ===== */
.animate-pulse { animation: hcs-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-ping { animation: hcs-ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes hcs-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes hcs-ping { 75%, 100% { transform: scale(1.6); opacity: 0; } }

/* ===================================================================
   Component styles (replaces the React app's framer-motion behaviors)
   =================================================================== */

/* Custom named utilities from the design */
.hover-lift { transition: transform 300ms ease, box-shadow 300ms ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.cta-glow { position: relative; transition: transform 200ms ease, box-shadow 300ms ease, filter 200ms ease; }
.cta-glow:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); filter: brightness(1.05); }
.nav-underline { position: relative; }
.nav-underline::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 100%;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 300ms ease;
}
.nav-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* Sticky header frosted state */
#site-header { box-shadow: 0 1px 0 0 rgba(11, 42, 74, 0.04); }
#site-header.is-scrolled {
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom-color: rgba(var(--primary-rgb), 0.08);
	box-shadow: var(--shadow-soft);
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in-view { opacity: 1; transform: none; }

/* Hero */
.hero-zoom { animation: hcs-hero-zoom 1.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.chip-float { opacity: 0; animation: hcs-chip-in 0.4s ease forwards, hcs-chip-float 3.6s ease-in-out 1s infinite; }
.scroll-bob { animation: hcs-bob 1.8s ease-in-out infinite; }
@keyframes hcs-hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes hcs-chip-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hcs-chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes hcs-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* Services tabs */
.tab-btn { color: rgba(var(--primary-rgb), 0.8); }
.tab-btn:hover { color: var(--primary); }
.tab-btn.is-active { background: var(--primary); color: #fff; }
.card-in { animation: hcs-card-in 0.35s ease both; }
@keyframes hcs-card-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Us vs Them toggle */
.vs-toggle { max-width: 280px; }
.vs-btn { color: rgba(var(--primary-rgb), 0.7); }
.vs-btn.is-active { color: #fff; }
.vs-knob { left: 4px; right: 50%; }
.vs-toggle.side-them .vs-knob { left: 50%; right: 4px; }
.pop-in { animation: hcs-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes hcs-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }

/* Imaging flow */
.flow-source.flow-dim { opacity: 0.5; border-color: var(--border); background: #fff; box-shadow: none; }
.flow-dot { animation: hcs-dot 1.8s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes hcs-dot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.6; } }

/* Process connector line */
.process-line {
	position: absolute;
	left: 6%;
	right: 6%;
	top: 1.75rem;
	border-top: 2px dashed rgba(var(--accent-rgb), 0.5);
}

/* Testimonials carousel */
.t-viewport {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.t-viewport::-webkit-scrollbar { display: none; }
.t-slide { scroll-snap-align: start; flex: 0 0 100%; }

/* About image card */
.about-card { transition: transform 300ms ease; }
.about-card:hover { transform: rotate(-1.5deg) translateY(-4px); }

/* FAQ */
.faq-item summary { cursor: pointer; }
.faq-item[open] { border-left-color: var(--brand-orange); box-shadow: var(--shadow-soft); }
.faq-item[open] .faq-chev { transform: rotate(180deg); color: var(--brand-orange); }
.faq-chev { transition: transform 0.3s ease; }

/* Form banners */
#back-to-top { transition: background-color 0.2s ease; }

/* ===== Responsive: sm (640px) ===== */
@media (min-width: 640px) {
	.sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sm\:col-span-2 { grid-column: span 2 / span 2; }
}

/* ===== Responsive: md (768px) ===== */
@media (min-width: 768px) {
	.md\:block { display: block; }
	.md\:inline-flex { display: inline-flex; }
	.md\:hidden { display: none; }
	.md\:h-20 { height: 5rem; }
	.md\:h-10 { height: 2.5rem; }
	.md\:h-3 { height: 0.75rem; }
	.md\:px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
	.md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
	.md\:p-8 { padding: 2rem; }
	.md\:p-10 { padding: 2.5rem; }
	.md\:pt-24 { padding-top: 6rem; }
	.md\:pb-36 { padding-bottom: 9rem; }
	.md\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
	.md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
	.md\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
	.md\:gap-3 { gap: 0.75rem; }
	.md\:gap-4 { gap: 1rem; }
	.md\:gap-10 { gap: 2.5rem; }
	.md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.md\:text-left { text-align: left; }
	.md\:text-base { font-size: 1rem; line-height: 1.5rem; }
	.md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
	.md\:text-5xl { font-size: 3rem; line-height: 1.1; }
	.md\:text-6xl { font-size: 3.75rem; line-height: 1.05; }
	.t-slide { flex: 0 0 60%; }
	.flow-grid { grid-template-columns: 1fr auto 1fr; }
}

/* ===== Responsive: lg (1024px) ===== */
@media (min-width: 1024px) {
	.lg\:flex { display: flex; }
	.lg\:hidden { display: none; }
	.lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.lg\:gap-10 { gap: 2.5rem; }
	.lg\:gap-16 { gap: 4rem; }
	.t-slide { flex: 0 0 45%; }
	.split-grid { grid-template-columns: 1.1fr 1fr; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
	.hero-zoom, .chip-float, .scroll-bob, .flow-dot, .animate-ping, .animate-pulse { animation: none; opacity: 1; }
	.reveal { transition: none; opacity: 1; transform: none; }
	html { scroll-behavior: auto; }
}

/* ===== WordPress compatibility ===== */
body.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar #site-header { top: 46px; }
}
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}
