/* ============================================================
   CSU Theme — Computer Specialists Unlimited
   Mobile-first. Accessible. Older-user friendly.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
	--c-navy:     #0a2540;
	--c-navy-2:   #133b66;
	--c-red:      #c8102e;
	--c-red-2:    #9c0c24;
	--c-bg:       #ffffff;
	--c-bg-alt:   #f5f7fa;
	--c-border:   #d8dee6;
	--c-text:     #1a1a1a;
	--c-text-2:   #4a4a4a;
	--c-muted:    #6a7382;
	--c-link:     #133b66;
	--c-link-hov: #c8102e;

	--fs-base:    18px;
	--fs-sm:      16px;
	--fs-lg:      20px;
	--fs-xl:      24px;
	--fs-2xl:     32px;
	--fs-3xl:     40px;
	--fs-4xl:     52px;

	--ff-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--lh:      1.6;
	--lh-tight: 1.2;

	--sp-1: 0.5rem;
	--sp-2: 1rem;
	--sp-3: 1.5rem;
	--sp-4: 2rem;
	--sp-5: 3rem;
	--sp-6: 4rem;
	--sp-7: 6rem;

	--radius:   8px;
	--radius-l: 12px;

	--shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06), 0 1px 4px rgba(10, 37, 64, 0.05);
	--shadow:    0 4px 6px rgba(10, 37, 64, 0.07), 0 8px 24px rgba(10, 37, 64, 0.08);

	--container: 1200px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--ff-body);
	font-size: var(--fs-base);
	line-height: var(--lh);
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-link); text-decoration: underline; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--c-link-hov); }
a:focus-visible { outline: 3px solid var(--c-red); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { line-height: var(--lh-tight); margin: 0 0 var(--sp-2); color: var(--c-navy); }
h1 { font-size: var(--fs-3xl); font-weight: 800; }
h2 { font-size: var(--fs-2xl); font-weight: 700; }
h3 { font-size: var(--fs-xl); font-weight: 700; }
p  { margin: 0 0 var(--sp-2); }
ul, ol { padding-left: 1.25em; }

button {
	font-family: inherit;
	font-size: inherit;
	cursor: pointer;
}

.visually-hidden, .skip-link {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: static;
	width: auto; height: auto;
	margin: 0; clip: auto;
	background: var(--c-red); color: #fff; padding: var(--sp-2);
	display: inline-block; font-weight: 700;
}

.text-center { text-align: center; }

/* ---------- Container ---------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--sp-3);
}

/* ---------- Topbar (contact strip) ---------- */
.topbar {
	background: var(--c-navy);
	color: #fff;
	font-size: var(--fs-sm);
	padding: var(--sp-1) 0;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar__inner {
	display: flex;
	flex-direction: column;
	gap: var(--sp-1);
	align-items: center;
	text-align: center;
}
.topbar__phone {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-weight: 700;
	font-size: var(--fs-base);
}
.topbar__phone:hover { color: #fff; text-decoration: underline; }
.topbar__address, .topbar__hours { margin: 0; font-style: normal; color: #cfd8e3; }

@media (min-width: 768px) {
	.topbar__inner {
		flex-direction: row;
		justify-content: space-between;
	}
}

/* ---------- Header ---------- */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--c-border);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: var(--shadow-sm);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-2);
	padding: var(--sp-2) var(--sp-3);
}
.site-header__brand .custom-logo { max-height: 60px; width: auto; }
.site-title {
	font-size: var(--fs-lg);
	font-weight: 800;
	color: var(--c-navy);
	text-decoration: none;
	letter-spacing: -0.01em;
}

/* Nav toggle (mobile) */
.nav-toggle {
	background: none;
	border: 2px solid var(--c-navy);
	border-radius: var(--radius);
	width: 48px;
	height: 48px;
	padding: 0;
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
}
.nav-toggle__bar {
	display: block;
	width: 22px;
	height: 3px;
	background: var(--c-navy);
	border-radius: 2px;
	transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.primary-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border-bottom: 1px solid var(--c-border);
	padding: var(--sp-2) 0;
	box-shadow: var(--shadow);
}
.primary-nav.is-open { display: block; }
.primary-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.primary-nav__list li {
	border-bottom: 1px solid var(--c-border);
}
.primary-nav__list li:last-child { border-bottom: 0; }
.primary-nav__list a {
	display: block;
	padding: var(--sp-2) var(--sp-3);
	color: var(--c-navy);
	text-decoration: none;
	font-weight: 600;
	min-height: 48px;
	font-size: var(--fs-lg);
}
.primary-nav__list a:hover, .primary-nav__list a:focus { background: var(--c-bg-alt); color: var(--c-red); }

.primary-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	background: var(--c-bg-alt);
}
.primary-nav__list .sub-menu a {
	padding-left: var(--sp-5);
	font-weight: 400;
	font-size: var(--fs-base);
}

@media (min-width: 1024px) {
	.nav-toggle { display: none; }
	.primary-nav {
		display: block;
		position: static;
		padding: 0;
		border: 0;
		box-shadow: none;
	}
	.primary-nav__list {
		display: flex;
		gap: var(--sp-1);
		align-items: center;
		flex-wrap: nowrap;
	}
	.primary-nav__list li {
		border: 0;
		position: relative;
		flex-shrink: 0;
	}
	.primary-nav__list a {
		padding: var(--sp-2) 0.875rem;
		font-size: var(--fs-base);
		min-height: auto;
		white-space: nowrap;
	}
	.primary-nav__list .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 240px;
		background: #fff;
		border: 1px solid var(--c-border);
		box-shadow: var(--shadow);
		border-radius: var(--radius);
		z-index: 10;
	}
	.primary-nav__list li:hover > .sub-menu,
	.primary-nav__list li:focus-within > .sub-menu {
		display: block;
	}
	.primary-nav__list .sub-menu a {
		padding: var(--sp-2);
		font-size: var(--fs-sm);
		white-space: normal;
	}
}

/* Slightly larger tap target on big screens but still compact */
@media (min-width: 1280px) {
	.primary-nav__list a {
		padding: var(--sp-2) var(--sp-2);
	}
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	padding: 0.875rem 1.5rem;
	font-weight: 700;
	font-size: var(--fs-base);
	text-decoration: none;
	border-radius: var(--radius);
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color .15s, color .15s, transform .05s;
	min-height: 48px;
	line-height: 1.3;
	text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 1.125rem 2rem; font-size: var(--fs-lg); }

.btn--primary {
	background: var(--c-red);
	color: #fff;
	border-color: var(--c-red);
}
.btn--primary:hover, .btn--primary:focus {
	background: var(--c-red-2);
	border-color: var(--c-red-2);
	color: #fff;
}

.btn--ghost {
	background: transparent;
	color: var(--c-navy);
	border-color: var(--c-navy);
}
.btn--ghost:hover, .btn--ghost:focus {
	background: var(--c-navy);
	color: #fff;
}

/* Ghost button on dark backgrounds (hero, footer, CTA) */
.hero .btn--ghost,
.cta .btn--ghost,
.site-footer .btn--ghost {
	color: #fff;
	border-color: #fff;
}
.hero .btn--ghost:hover, .hero .btn--ghost:focus,
.cta .btn--ghost:hover,  .cta .btn--ghost:focus,
.site-footer .btn--ghost:hover, .site-footer .btn--ghost:focus {
	background: #fff;
	color: var(--c-navy);
}

/* ---------- Hero ---------- */
.hero {
	background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-2) 100%);
	color: #fff;
	padding: var(--sp-6) 0;
}
.hero h1, .hero h2 { color: #fff; }
.hero__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: var(--fs-sm);
	font-weight: 700;
	color: #cfd8e3;
	margin: 0 0 var(--sp-2);
}
.hero__title {
	font-size: var(--fs-3xl);
	margin: 0 0 var(--sp-3);
}
.hero__title-accent { color: #ffba49; }
.hero__lead {
	font-size: var(--fs-lg);
	color: #e2e8f0;
	max-width: 60ch;
	margin: 0 0 var(--sp-3);
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	margin-bottom: var(--sp-4);
}
.hero__trust {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	font-size: var(--fs-sm);
	color: #cfd8e3;
}
.hero__trust strong { color: #fff; font-size: var(--fs-base); display: block; }

@media (min-width: 768px) {
	.hero { padding: var(--sp-7) 0; }
	.hero__title { font-size: var(--fs-4xl); }
}

/* ---------- Sections ---------- */
.section { padding: var(--sp-6) 0; }
.section--alt { background: var(--c-bg-alt); }
.section__header { text-align: center; max-width: 720px; margin: 0 auto var(--sp-5); }
.section__title { font-size: var(--fs-2xl); margin: 0 0 var(--sp-2); }
.section__lead { font-size: var(--fs-lg); color: var(--c-text-2); }

@media (min-width: 768px) {
	.section__title { font-size: var(--fs-3xl); }
}

/* ---------- Grid + Cards ---------- */
.grid { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
@media (min-width: 640px)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
	display: block;
	padding: var(--sp-3);
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-l);
	color: var(--c-text);
	text-decoration: none;
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover, .card:focus {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
	border-color: var(--c-navy);
	color: var(--c-text);
}
.card__title {
	font-size: var(--fs-lg);
	color: var(--c-navy);
	margin: 0 0 var(--sp-1);
}
.card p { color: var(--c-text-2); margin: 0; }
.card__more {
	display: inline-block;
	margin-top: var(--sp-2);
	color: var(--c-red);
	font-weight: 700;
}
.card--service { min-height: 200px; }

/* ---------- Steps ---------- */
.steps {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: var(--sp-4);
	counter-reset: step;
}
@media (min-width: 768px) {
	.steps { grid-template-columns: repeat(3, 1fr); }
}
.steps__item {
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-l);
	padding: var(--sp-3);
	position: relative;
}
.steps__num {
	display: inline-flex;
	align-items: center; justify-content: center;
	width: 48px; height: 48px;
	background: var(--c-red); color: #fff;
	font-size: var(--fs-xl); font-weight: 800;
	border-radius: 50%;
	margin-bottom: var(--sp-2);
}
.steps__title {
	font-size: var(--fs-xl);
	margin: 0 0 var(--sp-1);
}
.steps p { color: var(--c-text-2); margin: 0; }

/* ---------- Features ---------- */
.feature {
	padding: var(--sp-3);
	background: #fff;
	border-left: 4px solid var(--c-red);
	border-radius: var(--radius);
}
.feature__title {
	font-size: var(--fs-xl);
	margin: 0 0 var(--sp-1);
}
.feature p { margin: 0; color: var(--c-text-2); }

/* ---------- Testimonials ---------- */
.testimonial {
	background: var(--c-bg-alt);
	padding: var(--sp-3);
	border-radius: var(--radius-l);
	border-left: 4px solid var(--c-navy);
	margin: 0;
}
.testimonial p {
	font-style: italic;
	color: var(--c-text);
	margin: 0 0 var(--sp-2);
}
.testimonial cite {
	font-style: normal;
	font-weight: 700;
	color: var(--c-navy);
}

/* ---------- CTA section ---------- */
.cta {
	background: var(--c-navy);
	color: #fff;
	padding: var(--sp-6) 0;
}
.cta h2, .cta__title { color: #fff; }
.cta__inner { text-align: center; }
.cta__lead {
	font-size: var(--fs-lg);
	color: #cfd8e3;
	margin: 0 auto var(--sp-3);
	max-width: 50ch;
}
.cta__actions {
	display: flex;
	gap: var(--sp-2);
	justify-content: center;
	flex-wrap: wrap;
}
.cta--inline {
	background: var(--c-bg-alt);
	color: var(--c-text);
	padding: var(--sp-4);
	border-radius: var(--radius-l);
	margin-top: var(--sp-5);
}
.cta--inline h2 { color: var(--c-navy); }
.cta--inline .cta__lead { color: var(--c-text-2); }
.cta--inline .btn--ghost { color: var(--c-navy); border-color: var(--c-navy); }
.cta--inline .btn--ghost:hover, .cta--inline .btn--ghost:focus { background: var(--c-navy); color: #fff; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
	padding: var(--sp-5) var(--sp-3) var(--sp-3);
	max-width: var(--container);
	margin: 0 auto;
	text-align: center;
}
.page-title { margin: 0 0 var(--sp-2); }
.page-lead {
	font-size: var(--fs-lg);
	color: var(--c-text-2);
	max-width: 60ch;
	margin: 0 auto;
}
.page-content {
	padding: var(--sp-3);
	max-width: 800px;
	margin: 0 auto;
	font-size: var(--fs-lg);
}
.page-content > * + * { margin-top: var(--sp-3); }
.page-content h2 { font-size: var(--fs-2xl); margin-top: var(--sp-5); }
.page-content h3 { font-size: var(--fs-xl); margin-top: var(--sp-4); }
.page-content ul, .page-content ol { padding-left: 1.5em; }
.page-content li { margin-bottom: var(--sp-1); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
	font-size: var(--fs-sm);
	color: var(--c-muted);
	margin-bottom: var(--sp-2);
}
.breadcrumbs a { color: var(--c-link); }

/* ---------- Search form ---------- */
.search-form {
	display: flex;
	gap: var(--sp-1);
	max-width: 480px;
	margin: var(--sp-3) auto 0;
}
.search-field {
	flex: 1;
	padding: 0.875rem 1rem;
	font-size: var(--fs-base);
	border: 2px solid var(--c-border);
	border-radius: var(--radius);
	min-height: 48px;
}
.search-field:focus {
	outline: 0;
	border-color: var(--c-navy);
}

/* ---------- Forms (CF7) ---------- */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
	width: 100%;
	padding: 0.875rem 1rem;
	font-size: var(--fs-base);
	font-family: inherit;
	border: 2px solid var(--c-border);
	border-radius: var(--radius);
	min-height: 48px;
	background: #fff;
}
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus {
	outline: 0;
	border-color: var(--c-navy);
}
.wpcf7 label {
	display: block;
	font-weight: 700;
	margin-bottom: 0.25rem;
	color: var(--c-navy);
}
.wpcf7 p { margin: 0 0 var(--sp-2); }
.wpcf7 input[type="submit"] {
	background: var(--c-red);
	color: #fff;
	border: 0;
	padding: 1rem 2rem;
	font-size: var(--fs-lg);
	font-weight: 700;
	border-radius: var(--radius);
	cursor: pointer;
	min-height: 48px;
}
.wpcf7 input[type="submit"]:hover, .wpcf7 input[type="submit"]:focus {
	background: var(--c-red-2);
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--c-navy);
	color: #cfd8e3;
	padding: var(--sp-5) 0 0;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { text-decoration: underline; }
.site-footer__heading {
	color: #fff;
	font-size: var(--fs-lg);
	margin: 0 0 var(--sp-2);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.site-footer__grid {
	display: grid;
	gap: var(--sp-4);
	grid-template-columns: 1fr;
}
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: repeat(4, 1fr); } }

.site-footer address { font-style: normal; margin-bottom: var(--sp-2); }
.hours, .footer-links { list-style: none; padding: 0; margin: 0; }
.hours li, .footer-links li { padding: 0.25rem 0; }

.big-link {
	font-size: var(--fs-xl);
	font-weight: 800;
	color: #fff !important;
}
.site-footer .btn--ghost { color: #fff; border-color: #fff; }
.site-footer .btn--ghost:hover, .site-footer .btn--ghost:focus { background: #fff; color: var(--c-navy); }

.site-footer__bottom {
	margin-top: var(--sp-5);
	padding: var(--sp-2) 0;
	border-top: 1px solid var(--c-navy-2);
	font-size: var(--fs-sm);
}
.site-footer__bottom p { margin: 0.25rem 0; }
.site-footer__meta { color: #8da3bd; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Service page hero images */
.hero-image {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-l);
  margin-bottom: var(--sp-3);
  display: block;
}

/* Service card images */
.card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-m, 8px);
  margin-bottom: var(--sp-2);
  display: block;
}
