/* ============================================================
   Hi-Tech Engineering Industries — Home (Mockup 3)
   Scoped under .hitech-home
   ============================================================ */

/* Licensed brand fonts (Cerebri Sans / Intro) are registered from functions.php
   — @font-face is emitted only for .woff2 files that actually exist in
   /assets/fonts/, so there are no 404s until you add them. See fonts/README.txt.
   Until then everything falls back to Montserrat. */

/* Remove the browser-default body margin so the site sits edge-to-edge (no white border). */
html body { margin: 0; }

.hitech-home *,
.hitech-home *::before,
.hitech-home *::after { box-sizing: border-box; }

.hitech-home {
	/* ---- Official brand palette ----
	   Primary:   #1b47a7 (royal blue)  •  #c8282d (red)
	   Secondary: #33a2e0 (sky)  •  #ffffff  •  #000000            */
	--primary: #1b47a7;   /* brand primary blue */
	--navy:    #1b47a7;   /* dark stat cards / ecosystem core */
	--navy-d:  #163a8a;   /* gradient shade */
	--sky:     #33a2e0;   /* secondary — sky cards / buttons */
	--red:     #c8282d;   /* brand red accent */
	--band:    #33a2e0;   /* header / footer band — sky, to match the Canva mockup (use var(--primary) for a deeper navy) */
	--ink:     #0e1f45;   /* hero overlay base */
	--grey:    #f1f2f2;   /* light band */
	--text:    #1c1c1c;
	--muted:   #5b6470;
	--white:   #ffffff;

	/* ---- Brand type ----
	   Display: Intro (licensed) → Montserrat fallback
	   Body:    Cerebri Sans (licensed) → Montserrat fallback     */
	--font-display: "Intro", "Montserrat", system-ui, sans-serif;
	--font-body:    "Intro", "Montserrat", system-ui, sans-serif;

	font-family: var(--font-body);
	color: var(--text);
	line-height: 1.6;
	font-size: 17px;
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

.hitech-home img { max-width: 100%; display: block; }
.hitech-home a { text-decoration: none; color: inherit; }

.hh-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.hh-h2 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(28px, 3.4vw, 40px);
	line-height: 1.12;
	letter-spacing: -.01em;
	margin: 0 0 18px;
}
.hh-h2--red { color: var(--red); }
.hh-center { text-align: center; }

.hh-eyebrow {
	display: inline-block;
	color: var(--red);
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 21px;
	letter-spacing: .04em;
	margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.hitech-home a.hh-btn { color: #fff; }
.hh-btn {
	display: inline-block;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 16px;
	color: #fff;
	background: var(--sky);
	padding: 14px 34px;
	border-radius: 999px;
	transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
	box-shadow: 0 10px 24px rgba(46,144,216,.35);
}
.hh-btn:hover { transform: translateY(-2px); background: #2b8fca; box-shadow: 0 14px 30px rgba(51,162,224,.45); }
.hh-btn--solid { background: var(--sky); }

/* ============ HEADER ============ */
.hh-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--band);
}
.hh-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	height: 88px;
}
.hh-logo {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 30px;
	letter-spacing: -.02em;
	line-height: 1;
	display: inline-flex; align-items: baseline;
}
.hh-logo__h, .hh-logo__e { color: #fff; }
.hh-logo__i { color: var(--red); position: relative; margin: 0 1px; }
.hh-nav { display: flex; gap: 30px; }
.hh-nav a {
	color: #eaf4fc;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 18px;
	transition: color .15s ease;
}
.hh-nav a:hover { color: #fff; }
.hh-burger { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hh-burger span { width: 24px; height: 2px; background: #fff; display: block; }

/* ============ HERO ============ */
.hh-hero {
	position: relative;
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
}
/* Floating brand card, bottom-right of the hero (matches the PDF). */
.hh-hero__card {
	position: absolute; bottom: 34px;
	right: max(24px, calc((100% - 1160px) / 2));
	display: flex; align-items: center; gap: 13px;
	background: rgba(255,255,255,.13);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	border: 1px solid rgba(255,255,255,.35);
	border-radius: 12px; padding: 13px 20px;
}
.hh-hero__card .hh-logo { font-size: 30px; }
.hh-hero__card-name {
	font-family: var(--font-display); font-weight: 700;
	font-size: 12px; letter-spacing: .07em; line-height: 1.25; color: #fff; text-align: left;
}
@media (max-width: 700px) { .hh-hero__card { display: none; } }
.hh-hero__inner {
	min-height: 520px;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 88px 28px;
}
.hh-hero__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(22px, 3vw, 36px);
	line-height: 1.14;
	letter-spacing: -.01em;
	margin: 0 0 14px;
	max-width: none;
	text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hh-hero__sub {
	font-size: clamp(16px, 2vw, 21px);
	font-weight: 500;
	margin: 0 0 32px;
	opacity: .95;
	letter-spacing: .01em;
}

/* ============ ABOUT ============ */
.hh-about { padding: 80px 0; }
.hh-about__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: start;
}
.hh-about__lead {
	font-size: 21px;
	line-height: 1.6;
	color: #2a2a2a;
	max-width: 40ch;
	margin: 0 0 38px;
}
.hh-chair { display: flex; align-items: center; gap: 12px; }
.hh-chair__img {
	width: 118px; height: 118px; border-radius: 50%;
	object-fit: cover; flex: 0 0 auto;
}
.hh-chair__meta { display: flex; flex-direction: column; line-height: 1.35; }
.hh-chair__meta strong { font-family: var(--font-display); font-size: 18px; }
.hh-chair__meta span { color: var(--muted); font-size: 15px; }

.hh-about__left { position: relative; }
.hh-about__right { position: relative; padding-top: 10px; }
.hh-quote-mark {
	font-family: var(--font-display);
	font-size: 164px; line-height: .6;
	color: var(--navy); opacity: .2;
	position: absolute; top: 10px; right: 40px; left: auto;
}
.hh-about__head {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.1;
	letter-spacing: -.02em;
	color: #10243f;
	margin: 0;
}

/* ============ QUALITY ============ */
.hh-quality { background: var(--grey); padding: 80px 0; }
.hh-quality__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}
.hh-quality__copy p { color: #3a3a3a; max-width: 42ch; }
.hh-badges {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px 28px;
	justify-items: center;
	align-items: center;
}
.hh-badge {
	width: 118px; height: 118px; object-fit: contain;
	filter: drop-shadow(0 6px 14px rgba(0,0,0,.12));
}

/* ============ STATS BENTO ============ */
.hh-stats { padding: 80px 0; }
.hh-bento {
	display: grid;
	grid-template-columns: 1.15fr 1fr 1fr;
	grid-template-rows: repeat(3, minmax(140px, 1fr));
	grid-template-areas:
		"prod    gears   quote"
		"prod    units   people"
		"laptop  units   four";
	gap: 12px;
	min-height: 460px;
}
.hh-card {
	border-radius: 16px;
	padding: 30px;
	overflow: hidden;
	display: flex; flex-direction: column;
	position: relative;
}
.hh-card--tall   { grid-area: prod;  }
.hh-photo-a      { grid-area: gears; }
.hh-card--wide   { grid-area: quote; }
.hh-card--sky    { grid-area: units; }
.hh-photo-people { grid-area: people; }
.hh-photo-b      { grid-area: laptop; }
.hh-card--num    { grid-area: four; }

.hh-card--navy { background: linear-gradient(160deg, var(--navy), var(--navy-d)); color: #fff; }
.hh-card--sky  { background: linear-gradient(160deg, #6fcbff, #45a9e6); color: var(--navy); }
.hitech-home .hh-card--sky a.hh-link { color: var(--navy); }
.hitech-home .hh-card--sky a.hh-link:hover { color: #0e2a5e; }
.hh-card--quote { background: linear-gradient(160deg, var(--navy), var(--navy-d)); color: #fff; justify-content: center; }
.hh-card--quote p { font-family: var(--font-display); font-weight: 500; font-size: clamp(16px,1.4vw,20px); line-height: 1.4; margin: 0; }
.hh-card--photo { background-size: cover; background-position: center; padding: 0; }

.hh-stat__num {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(46px, 5vw, 68px);
	line-height: 1;
	letter-spacing: -.02em;
}
.hh-stat__num--sm { font-size: clamp(40px, 4vw, 56px); }
/* "10 Million+" is long — size it so it never clips its card. */
.hh-card--sky .hh-stat__num { font-size: clamp(30px, 3.1vw, 42px); }
.hh-stat__label {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 21px;
	margin: 10px 0 12px;
}
.hh-card p { font-family: "Cerebri Sans", "Montserrat", system-ui, sans-serif; font-size: 15.5px; margin: 0; opacity: .92; }
.hh-card--tall { justify-content: flex-start; }
.hh-card--tall .hh-stat__num { margin-bottom: 6px; }
.hitech-home a.hh-link { color: #cfe6fb; }
.hh-link {
	margin-top: auto;
	font-family: var(--font-display); font-weight: 600;
	font-size: 15px;
	padding-top: 16px;
}
.hitech-home a.hh-link:hover { color: #fff; }

/* ============ ECOSYSTEM ============ */
.hh-eco { padding: 80px 0; }
.hh-eco__intro {
	text-align: center; max-width: 64ch; margin: 0 auto 50px;
	color: #3a3a3a; font-size: 18px;
}
.hh-eco__diagram {
	position: relative;
	width: min(680px, 92vw);
	aspect-ratio: 1 / 1;
	margin: 0 auto 50px;
}
.hh-eco__diagram::before {
	content: "";
	position: absolute; inset: 14%;
	border: 2px dashed #bcd6ee;
	border-radius: 50%;
}
.hh-eco__center {
	position: absolute; top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 30%; height: 30%;
	border-radius: 50%;
	background: linear-gradient(160deg, var(--navy), var(--navy-d));
	color: #fff;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center;
	box-shadow: 0 18px 40px rgba(12,77,162,.4);
}
.hh-eco__center span {
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(10px, 1.2vw, 13px); letter-spacing: .04em;
	margin-top: 8px;
}
.hh-node {
	position: absolute;
	width: 24%;
	transform: translate(-50%, -50%);
	display: flex; flex-direction: column; align-items: center;
	text-align: center;
}
.hh-node__num {
	width: 56px; height: 56px; border-radius: 50%;
	background: #fff;
	border: 2px solid #e1ecf7;
	box-shadow: 0 10px 26px rgba(12,77,162,.16);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font-display); font-weight: 700; font-size: 17px;
	color: var(--navy);
	margin-bottom: 10px;
}
.hh-node__label {
	font-family: var(--font-display); font-weight: 600;
	font-size: 13.5px; color: #1f3550; line-height: 1.25;
}
.hh-node--1 { top: 6%;  left: 50%; }
.hh-node--2 { top: 28%; left: 90%; }
.hh-node--3 { top: 72%; left: 90%; }
.hh-node--4 { top: 94%; left: 50%; }
.hh-node--5 { top: 72%; left: 10%; }
.hh-node--6 { top: 28%; left: 10%; }

/* ============ TRUSTED ============ */
.hh-trusted { padding: 80px 0; }
.hh-logos {
	margin-top: 46px;
	display: flex; flex-wrap: wrap;
	align-items: center; justify-content: center;
	gap: 40px 56px;
}
.hh-clogo {
	height: 48px; width: auto; object-fit: contain;
	opacity: .95;
	transition: transform .25s ease, opacity .25s ease;
}
.hh-clogo:hover { opacity: 1; transform: translateY(-2px); }

/* ============ FOOTER ============ */
.hh-footer { background: var(--band); color: #eaf4fc; padding: 38px 0 18px; }
.hh-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 28px;
}
.hh-logo--ftr { font-size: 38px; margin-bottom: 12px; display: inline-block; }
.hh-logo--ftr img { height: 46px; width: auto; }
.hh-logo--ftr .hh-logo__h, .hh-logo--ftr .hh-logo__e { color: #fff; }
.hh-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hh-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.hh-ico { opacity: .85; }
.hh-footer__col h4 {
	font-family: var(--font-display); font-weight: 700;
	font-size: 16px; color: #fff; margin: 0 0 11px;
}
.hh-footer__col a { display: block; margin-bottom: 7px; font-size: 14px; color: #dbedfa; transition: color .15s ease; }
.hh-footer__col a:hover { color: #fff; }

.hh-footer__bottom {
	margin-top: 26px; padding-top: 16px;
	border-top: 1px solid rgba(255,255,255,.25);
}
.hh-footer__name {
	font-family: var(--font-display); font-weight: 700;
	font-size: 19px; color: #fff; display: block; margin-bottom: 7px;
}
.hh-footer__legal {
	display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
	font-size: 14px; color: #d4e8f8;
}
.hh-footer__legal a { color: #eaf4fc; }
.hh-footer__legal span { margin-right: auto; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
	.hh-bento {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
		grid-template-areas:
			"prod   prod"
			"gears  quote"
			"units  people"
			"laptop four";
		min-height: 0;
	}
	.hh-card { min-height: 200px; }
	.hh-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
	.hh-nav { display: none; }
	.hh-burger { display: flex; }
	.hh-about__grid,
	.hh-quality__grid { grid-template-columns: 1fr; gap: 40px; }
	.hh-quote-mark { display: none; }
	.hh-eco__center span { font-size: 11px; }
	.hh-node__num { width: 46px; height: 46px; font-size: 15px; }
	.hh-node__label { font-size: 11.5px; }
}

@media (max-width: 600px) {
	.hitech-home { font-size: 16px; }
	.hh-about, .hh-quality, .hh-stats, .hh-eco, .hh-trusted, .cap-sec { padding: 54px 0; }
	.hh-badges { grid-template-columns: repeat(3, 1fr); gap: 14px; }
	.hh-badge { width: 84px; height: 84px; }
	.hh-bento {
		grid-template-columns: 1fr;
		grid-template-areas:
			"prod" "gears" "quote" "units" "people" "laptop" "four";
	}
	.hh-footer__grid { grid-template-columns: 1fr; }
	.hh-logos { gap: 26px 34px; }
	.hh-clogo { height: 36px; }
}

/* ============================================================
   TRANSITIONS & MOTION
   ============================================================ */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* ---- Scroll reveal (JS toggles .is-visible) ---- */
.hitech-home [data-reveal] {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
	will-change: opacity, transform;
}
.hitech-home [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---- Sticky header: shadow + shrink after scroll ---- */
.hh-header { transition: background .3s ease, box-shadow .3s ease; }
.hh-header.is-scrolled { box-shadow: 0 6px 24px rgba(14,31,69,.20); }

/* ---- Buttons: sheen on hover ---- */
.hh-btn { position: relative; overflow: hidden; }
.hh-btn::after {
	content: ""; position: absolute; top: 0; left: -120%;
	width: 60%; height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
	transform: skewX(-18deg); transition: left .6s var(--ease-out);
}
.hh-btn:hover::after { left: 140%; }

/* ---- Cards: lift on hover ---- */
.hh-card { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.hh-card--navy:hover, .hh-card--sky:hover, .hh-card--num:hover, .hh-card--tall:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 44px rgba(14,31,69,.22);
}
.hh-badge { transition: transform .35s var(--ease-out); }
.hh-badge:hover { transform: translateY(-4px) scale(1.05); }

/* ---- Ecosystem: rotating ring + node pop-in ---- */
.hh-eco__diagram::before { animation: hh-spin 70s linear infinite; }
@keyframes hh-spin { to { transform: rotate(360deg); } }
.hh-node {
	opacity: 0;
	transform: translate(-50%, -50%) scale(.82);
	transition: opacity .55s ease, transform .55s var(--ease-out);
}
.hh-eco__diagram.is-visible .hh-node { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hh-eco__diagram.is-visible .hh-node--1 { transition-delay: .05s; }
.hh-eco__diagram.is-visible .hh-node--2 { transition-delay: .15s; }
.hh-eco__diagram.is-visible .hh-node--3 { transition-delay: .25s; }
.hh-eco__diagram.is-visible .hh-node--4 { transition-delay: .35s; }
.hh-eco__diagram.is-visible .hh-node--5 { transition-delay: .45s; }
.hh-eco__diagram.is-visible .hh-node--6 { transition-delay: .55s; }
.hh-node__num { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.hh-node:hover .hh-node__num { transform: translateY(-3px) scale(1.08); box-shadow: 0 14px 30px rgba(27,71,167,.28); }

/* ---- Trusted-by: continuous logo marquee ---- */
.hh-marquee {
	margin-top: 46px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	        mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.hh-marquee__track {
	display: flex; align-items: center; gap: 64px; width: max-content;
	animation: hh-marquee 34s linear infinite;
}
.hh-marquee:hover .hh-marquee__track { animation-play-state: paused; }
@keyframes hh-marquee { to { transform: translateX(-50%); } }

/* ---- Mobile nav dropdown (burger) ---- */
@media (max-width: 860px) {
	.hh-nav {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; gap: 0;
		background: var(--band);
		padding: 6px 0 12px;
		box-shadow: 0 14px 30px rgba(14,31,69,.25);
	}
	.hh-header.is-open .hh-nav { display: flex; }
	.hh-nav a { padding: 13px 28px; }
	.hh-burger span { transition: transform .3s var(--ease-out), opacity .2s ease; }
	.hh-header.is-open .hh-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.hh-header.is-open .hh-burger span:nth-child(2) { opacity: 0; }
	.hh-header.is-open .hh-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---- Respect reduced-motion ---- */
@media (prefers-reduced-motion: reduce) {
	.hitech-home [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
	.hh-eco__diagram::before,
	.hh-marquee__track { animation: none !important; }
	.hh-node { opacity: 1 !important; transform: translate(-50%, -50%) !important; }
	.hh-pyramid-img { clip-path: none !important; transition: none !important; }
	.hh-btn::after { display: none; }
}

/* ---- Active nav item ---- */
.hh-nav a.is-active { color: #fff; position: relative; }
.hh-nav a.is-active::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
	height: 2px; background: #fff; border-radius: 2px;
}

/* ============================================================
   INNER PAGES — shared component library (.pg-*)
   ============================================================ */

/* ---- Page hero ---- */
.pg-hero {
	background: linear-gradient(135deg, var(--navy), var(--navy-d));
	background-size: cover; background-position: center;
	color: #fff; text-align: center;
	padding: 108px 28px 92px;
}
.pg-hero--image { background-blend-mode: normal; }
.pg-hero__title {
	font-family: var(--font-display); font-weight: 800;
	font-size: clamp(34px, 5vw, 58px); line-height: 1.05;
	letter-spacing: -.02em; margin: 0; text-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.pg-hero__sub {
	max-width: 60ch; margin: 18px auto 0;
	font-size: clamp(16px, 1.8vw, 20px); opacity: .94;
}

/* ---- Sections ---- */
.pg-sec { padding: 80px 0; }
.pg-sec--grey { background: var(--grey); }
.pg-sec--navy { background: linear-gradient(160deg, var(--navy), var(--navy-d)); color: #fff; }
.pg-sec--tight { padding: 56px 0; }

.pg-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.pg-head--left { margin-left: 0; text-align: left; }
.pg-eyebrow {
	display: inline-block; color: var(--red);
	font-family: var(--font-display); font-weight: 700;
	font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px;
}
.pg-h2 {
	font-family: var(--font-display); font-weight: 700; color: var(--red);
	font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 16px;
}
.pg-sec--navy .pg-h2 { color: #fff; }
.pg-lead { font-size: 18px; color: #3a3a3a; line-height: 1.7; margin: 0 auto; max-width: 68ch; }
.pg-sec--navy .pg-lead { color: #e8f0fb; }

/* ---- Clients logo grid: closing note ---- */
.pg-logos__more { text-align: center; margin: 34px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); color: var(--navy); letter-spacing: -.01em; }

/* ---- Legal / prose pages (Privacy Policy) ---- */
.pg-legal__wrap { max-width: 860px; }
.pg-legal .pg-head { text-align: left; margin: 0 0 34px; max-width: none; }
.pg-prose { color: #3a3a3a; font-size: 16px; line-height: 1.75; }
.pg-prose h3 { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 20px; margin: 34px 0 10px; }
.pg-prose p { margin: 0 0 16px; }
.pg-prose a { color: var(--red); text-decoration: none; }
.pg-prose a:hover { text-decoration: underline; }
@media (max-width: 640px) {
	.pg-prose { font-size: 15px; }
	.pg-prose h3 { font-size: 18px; margin-top: 26px; }
}

/* ---- Grid ---- */
.pg-grid { display: grid; gap: 26px; }
.pg-grid--2 { grid-template-columns: repeat(2, 1fr); }
.pg-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pg-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Card ---- */
.pg-card {
	background: #fff; border: 1px solid #e9edf3; border-radius: 16px;
	padding: 32px 28px;
	transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s ease, border-color .3s ease;
}
.pg-card__title, .pg-card__text, .pg-card__icon { transition: color .3s ease, background .3s ease; }
.pg-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(14,31,69,.2); background: var(--navy); border-color: var(--navy); }
.pg-card:hover .pg-card__title { color: #fff; }
.pg-card:hover .pg-card__text { color: #cfdcec; }
.pg-card:hover .pg-card__icon { background: rgba(255,255,255,.16); color: #fff; }
.pg-card__icon {
	width: 60px; height: 60px; border-radius: 14px;
	background: rgba(51,162,224,.12); color: var(--navy);
	display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.pg-card__icon svg { width: 30px; height: 30px; }
.pg-card__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0 0 10px; color: #12243f; }
.pg-card__text { font-size: 15.5px; color: #5b6470; margin: 0; line-height: 1.6; }

/* ---- Media split (image + text) ---- */
.pg-media { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pg-media + .pg-media { margin-top: 64px; }
.pg-media--reverse .pg-media__img { order: 2; }
.pg-media__img { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 46px rgba(14,31,69,.16); }
.pg-media__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-media__body h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px,2.4vw,30px); color: #12243f; margin: 0 0 14px; }
.pg-media__body p { color: #4a5563; font-size: 16.5px; line-height: 1.7; margin: 0 0 14px; }

/* ---- Process steps (01 / 02 / 03) ---- */
.pg-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.pg-step { position: relative; background: #fff; border: 1px solid #e9edf3; border-radius: 16px; padding: 34px 26px; }
.pg-step__num {
	font-family: var(--font-display); font-weight: 800; font-size: 40px;
	color: var(--sky); line-height: 1; display: block; margin-bottom: 14px;
}
.pg-step__title { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 0 0 10px; color: #12243f; }
.pg-step__text { font-size: 15px; color: #5b6470; margin: 0; line-height: 1.6; }

/* ---- Stats ---- */
.pg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.pg-stat { padding: 22px; }
.pg-stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 4.6vw, 60px); color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.pg-sec--navy .pg-stat__num { color: #fff; }
.pg-stat__label { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--red); margin-top: 8px; }
.pg-sec--navy .pg-stat__label { color: #bfe0f6; }

/* ---- Certificate rows ---- */
.pg-cert { display: grid; grid-template-columns: 380px 1fr; gap: 44px; align-items: center; background: #fff; border: 1px solid #e9edf3; border-radius: 18px; padding: 30px; }
.pg-cert + .pg-cert { margin-top: 26px; }
.pg-cert--reverse { grid-template-columns: 1fr 380px; }
.pg-cert--reverse .pg-cert__media { order: 2; }
.pg-cert__media { display: flex; align-items: center; justify-content: center; }
.pg-cert__media img { max-height: 430px; max-width: 100%; width: auto; border-radius: 6px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.16)); }
.pg-cert__title { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: #12243f; margin: 0 0 6px; }
.pg-cert__sub { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--navy); margin: 0 0 12px; }
.pg-cert__text { color: #4a5563; font-size: 15.5px; line-height: 1.65; margin: 0 0 14px; }
.pg-cert__valid { color: var(--red); font-weight: 600; font-size: 15px; margin: 0 0 16px; }
.pg-view {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-display); font-weight: 600; color: var(--navy);
	border-bottom: 2px solid var(--sky); padding-bottom: 2px; transition: gap .2s var(--ease-out);
}
.pg-view:hover { gap: 14px; }

/* ---- Facilities / units ---- */
.pg-facility { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid #e9edf3; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.pg-facility:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(14,31,69,.16); }
.pg-facility__img { aspect-ratio: 4/3; background: #d9e2ee center/cover no-repeat; }
.pg-facility__label { padding: 14px 20px 2px; font-family: var(--font-display); font-weight: 700; color: #12243f; }

/* ---- Team ---- */
.pg-person { text-align: center; }
.pg-person__img {
	width: 100%; aspect-ratio: 1/1; border-radius: 16px; object-fit: cover;
	background: linear-gradient(160deg, #dbe6f2, #c4d4e8); display: block; margin-bottom: 16px;
}
.pg-person__ph { display: flex; align-items: center; justify-content: center; color: #9fb2c9; }
.pg-person__ph svg { width: 46%; height: 46%; }
.pg-person__name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #12243f; }
.pg-person__role { color: #5b6470; font-size: 14.5px; margin-top: 3px; }

/* ---- Brand logo wall ---- */
.pg-logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.pg-logo {
	background: #fff; border: 1px solid #e9edf3; border-radius: 14px;
	aspect-ratio: 5/3; display: flex; align-items: center; justify-content: center; padding: 22px;
	transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.pg-logo:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(14,31,69,.12); }
.pg-logo img { max-height: 46px; max-width: 100%; width: auto; object-fit: contain; }
.pg-logo--text { font-family: var(--font-display); font-weight: 700; color: #8794a5; font-size: 15px; text-align: center; }
/* Bordered-table logo grid (Customers page — matches PDF) */
.pg-logos--table { gap: 1px; background: #e5e8ee; border: 1px solid #e5e8ee; border-radius: 12px; overflow: hidden; }
.pg-logos--table .pg-logo { border: 0; border-radius: 0; box-shadow: none; aspect-ratio: 4 / 3; padding: 10px; }
.pg-logos--table .pg-logo:hover { transform: none; box-shadow: none; background: #f7f9fc; }
.pg-logos--table .pg-logo img { max-height: 94px; max-width: 100%; }

/* ---- CTA band ---- */
.pg-cta { text-align: center; }
.pg-cta .pg-h2 { margin-bottom: 22px; }

/* ---- Contact ---- */
.pg-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pg-info { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 20px; }
.pg-info li { display: flex; gap: 14px; align-items: center; }
.pg-info__ic { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 10px; background: rgba(51,162,224,.12); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.pg-info__ic svg { width: 20px; height: 20px; }
.pg-info strong { display: block; font-family: var(--font-display); color: #12243f; font-size: 15px; }
.pg-info span { color: #5b6470; font-size: 15px; }
.pg-map { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: 16px; box-shadow: 0 18px 40px rgba(14,31,69,.14); }

/* ---- Form ---- */
.pg-form { background: #fff; border: 1px solid #e9edf3; border-radius: 20px; padding: 40px; box-shadow: 0 20px 50px rgba(14,31,69,.08); }
.pg-form__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 24px; }
.pg-field { display: flex; flex-direction: column; }
.pg-field--full { grid-column: 1 / -1; }
.pg-field label { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: #12243f; margin-bottom: 7px; }
.pg-field input, .pg-field select, .pg-field textarea {
	width: 100%; box-sizing: border-box; min-width: 0; max-width: 100%;
	font-family: inherit; font-size: 15px; color: #1c1c1c;
	background: #f4f6f9; border: 1px solid #e2e7ee; border-radius: 10px; padding: 13px 14px;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.pg-field input:focus, .pg-field select:focus, .pg-field textarea:focus {
	outline: 0; background: #fff; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(51,162,224,.16);
}
.pg-field textarea { resize: vertical; min-height: 120px; }
.pg-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #5b6470; margin: 20px 0 8px; }
.pg-consent a { color: var(--navy); text-decoration: underline; }
.pg-form .hh-btn { border: 0; cursor: pointer; margin-top: 12px; background: var(--navy); box-shadow: 0 10px 24px rgba(27,71,167,.3); }
.pg-form .hh-btn:hover { background: #163a8a; }

/* ---- Note ribbon (flags placeholder content to the team) ---- */
.pg-note {
	display: inline-block; background: #fff5e6; border: 1px solid #ffd591; color: #a8630a;
	font-size: 12.5px; border-radius: 8px; padding: 6px 12px; margin-top: 18px;
}

/* ---- Inner-page responsive ---- */
@media (max-width: 940px) {
	.pg-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.pg-logos { grid-template-columns: repeat(3, 1fr); }
	.pg-media, .pg-contact { grid-template-columns: 1fr; gap: 34px; }
	.pg-media--reverse .pg-media__img { order: 0; }
	.pg-cert { grid-template-columns: 1fr; gap: 24px; text-align: center; }
	.pg-cert--reverse .pg-cert__media { order: 0; }
	.pg-cert__media img { max-height: 180px; }
	.pg-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.pg-grid--2, .pg-grid--3, .pg-grid--4, .pg-stats { grid-template-columns: 1fr; }
	.pg-logos { grid-template-columns: repeat(2, 1fr); }
	.pg-form__grid { grid-template-columns: minmax(0, 1fr); }
	.pg-form { padding: 26px; }
	.pg-sec { padding: 54px 0; }
	.pg-hero { padding: 84px 22px 68px; }
}

/* ============================================================
   HOME — "One Roof" pyramid diagram
   ============================================================ */
/* ---- "One Roof" pyramid, built from CSS blocks ---- */
.pyr { position: relative; width: min(620px, 100%); box-sizing: border-box; margin: 40px auto 48px; padding-left: 44px; }
.pyr__stack { position: relative; }
.pyr__arrow {
	position: absolute; left: 0; top: 7%; bottom: 5%; width: 34px;
	background: linear-gradient(180deg, var(--navy), #16357e);
	clip-path: polygon(34% 100%, 34% 8%, 2% 8%, 50% 0, 98% 8%, 66% 8%, 66% 100%);
}
.pyr__stack::after {
	content: ""; position: absolute; left: 7%; right: 7%; bottom: -13px; height: 24px; z-index: -1;
	background: radial-gradient(ellipse at center, rgba(14,31,69,.22), rgba(14,31,69,0) 72%);
}
.pyr__apex {
	display: block; height: 90px; margin-bottom: 3px;
	background: linear-gradient(to bottom, #58b7ec, #35a4e0 55%, #1f89c8);
	clip-path: polygon(50% 0, 69% 100%, 31% 100%);
}
.pyr__b {
	height: 66px; margin-bottom: 4px;
	display: flex; align-items: center; justify-content: center;
}
/* Beveled 3D slab: light top edge, solid face, darker bottom lip. */
.pyr__b--lt { background: linear-gradient(to bottom, #58b7ec 0%, #35a4e0 13%, #35a4e0 77%, #1f89c8 77%); color: #0e2340; }
.pyr__b--dk { background: linear-gradient(to bottom, #2f62c1 0%, #2151ab 13%, #2151ab 77%, #163e8e 77%); color: #fff; }
.pyr__ico {
	width: 30px; height: 30px; flex: 0 0 auto; margin-right: 12px;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	-webkit-mask-size: contain; mask-size: contain;
	-webkit-mask-position: center; mask-position: center;
}
.pyr__t { display: flex; flex-direction: column; align-items: center; line-height: 1.15; text-align: center; }
.pyr__t small { font-family: var(--font-display); font-weight: 700; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin-bottom: 4px; }
.pyr__t b { font-family: var(--font-display); font-weight: 700; font-size: clamp(13px, 1.6vw, 16px); letter-spacing: -.01em; }

/* Staggered build-up (bottom stage first, up to the apex). Scroll-driven, so it
   never gets stuck hidden; degrades to fully visible where unsupported. */
/* Staggered build-up — each stage slides up into place, base -> apex, once the
   pyramid scrolls into view. Time-based so the one-by-one sequence is always
   clearly visible. Gated on data-reveal-done so it can't get stuck without JS. */
.hitech-home .pyr[data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
	.hitech-home .pyr[data-reveal-done] .pyr__apex,
	.hitech-home .pyr[data-reveal-done] .pyr__b {
		opacity: 0;
		transform: translateY(30px);
		transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
	}
	.hitech-home .pyr[data-reveal-done].is-visible .pyr__apex,
	.hitech-home .pyr[data-reveal-done].is-visible .pyr__b {
		opacity: 1;
		transform: none;
	}
	.hitech-home .pyr[data-reveal-done].is-visible .pyr__b--s0 { transition-delay: .05s; }
	.hitech-home .pyr[data-reveal-done].is-visible .pyr__b--s1 { transition-delay: .18s; }
	.hitech-home .pyr[data-reveal-done].is-visible .pyr__b--s2 { transition-delay: .31s; }
	.hitech-home .pyr[data-reveal-done].is-visible .pyr__b--s3 { transition-delay: .44s; }
	.hitech-home .pyr[data-reveal-done].is-visible .pyr__b--s4 { transition-delay: .57s; }
	.hitech-home .pyr[data-reveal-done].is-visible .pyr__b--s5 { transition-delay: .70s; }
	.hitech-home .pyr[data-reveal-done].is-visible .pyr__b--s6 { transition-delay: .83s; }
	.hitech-home .pyr[data-reveal-done].is-visible .pyr__apex  { transition-delay: .96s; }
}
@media (max-width: 600px) {
	.pyr { padding-left: 30px; }
	.pyr__arrow { width: 18px; }
	.pyr__b, .pyr__apex { height: 46px; }
	.pyr__ico { margin-right: 8px; }
	.pyr__ico { width: 22px; height: 22px; }
	.pyr__t b { font-size: 11px; }
}

.hh-pyramid {
	position: relative;
	width: min(680px, 94vw);
	margin: 44px auto 50px;
	padding-left: 46px;
}
.hh-pyramid__arrow {
	position: absolute; left: 4px; top: 7%; bottom: 12%;
	width: 26px;
	background: var(--navy);
	clip-path: polygon(35% 100%, 35% 34%, 8% 34%, 50% 0, 92% 34%, 65% 34%, 65% 100%);
}
.hh-pyr__row {
	height: 60px;
	margin-bottom: 4px;
	display: flex; align-items: center; justify-content: center;
	color: #fff;
}
.hh-pyr__row--sky  { background: linear-gradient(180deg, #3aa9e4, #2f9bd6); }
.hh-pyr__row--navy { background: linear-gradient(180deg, #2150ad, #17418f); }
.hh-pyr__ico { display: flex; margin-right: 12px; flex: 0 0 auto; }
.hh-pyr__ico svg { width: 24px; height: 24px; }
.hh-pyr__txt { display: flex; flex-direction: column; line-height: 1.12; }
.hh-pyr__txt small { font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; opacity: .82; }
.hh-pyr__txt b { font-family: var(--font-display); font-weight: 700; font-size: clamp(13px, 1.5vw, 16px); letter-spacing: .01em; }

@media (max-width: 600px) {
	.hh-pyramid { padding-left: 30px; }
	.hh-pyramid__arrow { width: 18px; }
	.hh-pyr__row { height: 52px; }
	.hh-pyr__ico { margin-right: 8px; }
	.hh-pyr__ico svg { width: 20px; height: 20px; }
	.hh-pyr__txt b { font-size: 12px; }
	.hh-pyr__txt small { font-size: 9px; }
}

/* ---- Testimonials (Certifications page) ---- */
.pg-quote { background: var(--grey); border: 1px solid #e5e9f0; border-radius: 16px; padding: 30px 28px; display: flex; flex-direction: column; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.pg-quote:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(14,31,69,.12); }
.pg-quote__mark { font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: .5; color: var(--sky); opacity: .4; margin-bottom: 6px; }
.pg-quote__text { color: #3a4553; font-size: 15.5px; line-height: 1.7; margin: 0 0 22px; }
.pg-quote__by { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.pg-quote__avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(160deg,#dbe6f2,#c4d4e8); display: flex; align-items: center; justify-content: center; color: #8aa0bd; flex: 0 0 auto; }
.pg-quote__avatar svg { width: 26px; height: 26px; }
.pg-quote__name { display: block; font-family: var(--font-display); font-weight: 700; color: #12243f; font-size: 15px; }
.pg-quote__role { display: block; color: #5b6470; font-size: 13px; }
.pg-testi { max-width: 840px; margin: 0 auto; }
.pg-quote__avatar { overflow: hidden; }
.pg-quote__avatar .hie-illus { width: 100%; height: 100%; aspect-ratio: 1; border-radius: 50%; }
/* Carousel dots */
.pg-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.pg-dots span { width: 8px; height: 8px; border-radius: 50%; background: #cdd6e2; }
.pg-dots span.is-on { background: var(--sky); width: 22px; border-radius: 5px; }

/* ============================================================
   ABOUT page — matches final PDF (page 2)
   ============================================================ */
/* home-style wide banner: 3:1 (1920x640) shape, whole image, dark mask + title */
.pg-hero--plain { position: relative; width: 100%; aspect-ratio: 1920 / 640; overflow: hidden; background: #0d1a34; }
.pg-hero--plain img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-hero--plain::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: linear-gradient(180deg, rgba(10,16,30,.06), rgba(10,16,30,.26)); }

/* Ghost-number stats */
.about-stats { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 5vw, 60px); flex-wrap: wrap; }
.about-stat { position: relative; display: inline-block; }
.about-stat__ghost {
	display: block;
	font-family: 'Montserrat', var(--font-display); font-weight: 800; font-size: 155px; line-height: 1;
	color: transparent; -webkit-text-stroke: 2px #dfe3ea; letter-spacing: -.02em;
}
.about-stat__front {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center; gap: 7px;
}
.about-stat__num {
	font-family: 'Montserrat', var(--font-display); font-weight: 800; font-size: 74px; line-height: 1;
	color: var(--navy); letter-spacing: -.02em;
}
.about-stat__label { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.about-stat__label .lt { color: #e39aa0; font-size: 13.5px; font-weight: 500; }
.about-stat__label .bd { color: var(--red); font-size: 17px; font-weight: 700; font-family: var(--font-display); }

.about-intro { max-width: 62ch; margin: 0 auto; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2vw, 23px); color: #12243f; line-height: 1.5; }
.pg-media__body .pg-chair__name { color: var(--red); margin-top: 2px; }

/* Green sky + cloud + hills illustration (image placeholder) */
.hie-illus { position: relative; overflow: hidden; border-radius: 14px; background: linear-gradient(to bottom, #c3e5f6, #eaf5fc); aspect-ratio: 4 / 3; }
.hie-illus svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hie-illus--tall { aspect-ratio: 4 / 5; }
.pg-media__img--chair { width: min(100%, 420px); justify-self: center; }
.pg-media__img--chair .hie-illus { height: 520px; aspect-ratio: auto; }
/* Online image placeholders fill their frames */
.hie-illus img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Certifications — golden certificate frame + centred body text */
.pg-cert__media img { border: 4px solid #c8a13a; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12), inset 0 0 0 2px #f4e7b6; }
.pg-cert__body { text-align: center; align-items: center; }
/* Testimonials — big photo on top, then name, designation, quote (stacked, centred) */
.pg-quote--v { text-align: center; align-items: center; }
.pg-quote__photo { display: block; width: 100%; max-width: 200px; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; margin: 0 auto 18px; }
.pg-quote__photo .hie-illus { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 16px; }
.pg-quote--v .pg-quote__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: #12243f; }
.pg-quote--v .pg-quote__role { display: block; color: #5b6470; font-size: 14px; }
.pg-quote--v .pg-quote__name { margin-top: 4px; }
.pg-quote--v .pg-quote__text { margin: 0 0 18px; font-size: 15.5px; line-height: 1.7; color: #3a4553; }
/* Certified-standards badges in a single row of 6 (About page) */
.hh-badges--row { grid-template-columns: repeat(6, 1fr); gap: 16px 12px; }
.hh-badges--row .hh-badge { width: 108px; height: 108px; }
@media (max-width: 760px) { .hh-badges--row { grid-template-columns: repeat(3, 1fr); } }
.hie-illus--person { aspect-ratio: 3 / 4; margin-bottom: 14px; }

/* Uploaded photos in the illustration slots (chairman / team) */
.hitech-photo-fill { display: block; width: 100%; object-fit: cover; }
.pg-media__img--chair .hitech-photo-fill { aspect-ratio: 4 / 5; }
.pg-person .hitech-photo-fill { aspect-ratio: 3 / 4; border-radius: 14px; margin-bottom: 14px; }
.pg-facility__img--illus { position: relative; padding: 0; }
.pg-facility__img--illus .hie-illus { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }

/* Mission — bordered box */
.pg-mission { max-width: 760px; margin: 0 auto; text-align: center; border: 1px solid #dfe4ec; border-radius: 16px; padding: 38px 34px; }
.pg-mission .pg-h2 { margin-bottom: 14px; }
.pg-mission p { color: #3a4553; font-size: 17px; line-height: 1.6; margin: 0; }

@media (max-width: 600px) {
	.about-stat__ghost { font-size: 84px; }
	.about-stat__num { font-size: 46px; }
}

/* ---- Contact form feedback ---- */
.pg-alert { border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; font-size: 15px; font-weight: 600; }
.pg-alert--ok { background: #e7f7ee; border: 1px solid #a6e0c0; color: #1c7a4a; }
.pg-alert--err { background: #fdecec; border: 1px solid #f3b4b4; color: #b23b3b; }
.pg-form__foot { text-align: center; font-size: 13px; color: #7a8595; margin: 16px 0 0; }
.pg-form__foot a { color: var(--navy); }

/* Contact page — matches final PDF (page 5) */
.contact-hero { height: clamp(220px, 30vw, 360px); }
.contact-hero__card { max-width: 780px; margin: -72px auto 0; position: relative; z-index: 2; background: #fff; border-radius: 16px; box-shadow: 0 22px 55px rgba(14,31,69,.12); padding: 32px 40px; text-align: center; }
.contact-hero__card .pg-h2 { margin-bottom: 10px; }
.contact-hero__card p { color: #4a5563; font-size: 16px; line-height: 1.6; margin: 0 auto; max-width: 62ch; }
.contact-grid { background: var(--grey); border-radius: 16px; padding: 34px 40px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
.contact-grid .pg-info { margin: 0; }
.contact-map .pg-map { margin-bottom: 14px; }
.contact-hq { color: #3a4553; font-size: 15px; line-height: 1.55; margin: 0; }
.contact-hq strong { color: #12243f; }
.pg-info__ic--wa { color: #25a35a; background: rgba(37,163,90,.12); }
.pg-info__ic--li { color: #0a66c2; background: rgba(10,102,194,.12); }
.pg-info__ic--wa svg, .pg-info__ic--li svg { width: 20px; height: 20px; }
/* Contact form inline validation */
.pg-err { display: block; color: #d63333; font-size: 12.5px; font-weight: 500; margin-top: 5px; }
.pg-form .is-invalid { border-color: #e46a6a !important; background: #fdf5f5; }
/* Facility unit — address reveals on hover */
.pg-facility__img { position: relative; }
/* address always shown, directly under the Unit label */
.pg-facility__addr {
	color: #5b6470; font-size: 13px; line-height: 1.45;
	padding: 0 20px 18px; margin-top: -6px;
}
.pg-facility:hover .pg-facility__img { box-shadow: 0 16px 34px rgba(14,31,69,.2); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================
   HOME refinements (v2.6) — real logo image, bigger hero, tighter bento
   ============================================================ */
.hh-logo img { height: 42px; width: auto; display: block; }
.hh-logo--ftr img { height: 52px; }
.hitech-home .hh-hero__title { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.12; max-width: 700px; font-weight: 800; text-shadow: 0 2px 14px rgba(4,14,34,.45); }
/* Bento as 3 flex columns (column masonry) — text cards fit content, photos flex to fill, all columns equal height. No forced empty space. */
.hitech-home .hh-bento { display: flex; gap: 12px; align-items: stretch; grid-template: none; min-height: 0; }
.hitech-home .hh-bento__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hitech-home .hh-bento__col:first-child { flex-grow: 1.12; }
.hitech-home .hh-bento .hh-card { flex: 0 0 auto; }
.hitech-home .hh-bento .hh-card--photo { flex: 1 1 200px; min-height: 200px; border-radius: 16px; margin: 0; width: 100%; }
.hitech-home .hh-bento .hh-card { padding: 24px 24px; }
.hitech-home .hh-bento .hh-card p { font-size: 14px; line-height: 1.45; }
.hitech-home .hh-bento .hh-stat__label { margin: 4px 0 5px; font-size: 18px; }
.hitech-home .hh-bento .hh-stat__num { font-size: clamp(40px, 4.2vw, 56px); }
.hitech-home .hh-bento .hh-stat__num--sm { font-size: clamp(32px, 3.2vw, 44px); }
.hitech-home .hh-card--tall .hh-stat__num { font-size: clamp(52px, 5.2vw, 74px); margin-bottom: 8px; }
.hitech-home .hh-card--sky .hh-stat__num { margin-bottom: 8px; }

/* Mobile: stack the 3 bento columns into one so the stat cards aren't squished.
   (The old grid-based mobile rules were overridden by the .hitech-home flex rules.) */
@media (max-width: 760px) {
	.hitech-home .hh-bento { flex-direction: column; }
	/* Flatten the 3 columns so all cards become one stack we can reorder. */
	.hitech-home .hh-bento__col { display: contents; }
	/* Alternate text card / photo / text card / photo ... */
	.hitech-home .hh-bento .hh-card--tall  { order: 1; }  /* 200+ */
	.hitech-home .hh-bento .hh-photo--1    { order: 2; }  /* photo */
	.hitech-home .hh-bento .hh-card--sky   { order: 3; }  /* 10 Million+ */
	.hitech-home .hh-bento .hh-photo--2    { order: 4; }  /* photo */
	.hitech-home .hh-bento .hh-card--quote { order: 5; }  /* Established 1986 */
	.hitech-home .hh-bento .hh-photo--3    { order: 6; }  /* photo */
	.hitech-home .hh-bento .hh-card--num   { order: 7; }  /* 4 Units */
	.hitech-home .hh-bento .hh-card--photo { flex: 0 0 200px; min-height: 200px; }
	.hitech-home .hh-bento .hh-stat__num { font-size: clamp(44px, 12vw, 60px); }
	.hitech-home .hh-bento .hh-card--sky .hh-stat__num { font-size: clamp(34px, 9vw, 46px); }
}
.hitech-home .hh-card--num { justify-content: center; padding: 14px 20px; }
.hitech-home .hh-card--quote p { font-size: 15px; line-height: 1.45; }
.hitech-home .hh-card--quote { padding: 16px 22px; }
.hitech-home .hh-link { margin-top: 14px; padding-top: 0; }
/* Pyramid Stage 6 IS the sharp pointed top (triangle) — icon stacked on top, text centered in the lower/wider part, no separate apex block. */
.pyr__b--s6 { flex-direction: column; height: 185px; justify-content: center; padding-top: 34px; background: linear-gradient(to bottom, #58b7ec 0, #35a4e0 12px, #35a4e0 calc(100% - 11px), #1f89c8 calc(100% - 11px)); }
.pyr__b--s6 .pyr__ico { margin-right: 0; margin-bottom: 2px; }
.pyr__b--s6 .pyr__t { text-align: center; align-items: center; max-width: 118px; }
.pyr__b--s6 .pyr__t b { line-height: 1.1; font-size: 14px; }

/* ============================================================
   PRODUCTS PAGE — per-category horizontal carousels
   ============================================================ */
.pg-products .pg-prodcat { margin-bottom: 54px; }
.pg-prodcat__title {
	font-family: var(--font-display); font-weight: 800;
	font-size: clamp(19px, 2.3vw, 26px); color: #d0342c;
	text-align: center; margin: 0 0 26px; letter-spacing: -.01em;
}
.pg-carousel { position: relative; display: flex; align-items: center; gap: 10px; }
.pg-carousel__track {
	display: flex; align-items: flex-start; gap: 22px; overflow-x: auto; scroll-behavior: smooth;
	scroll-snap-type: x mandatory; padding: 6px 4px 16px; flex: 1 1 auto;
	scrollbar-width: none;
}
.pg-carousel__track::-webkit-scrollbar { display: none; }
.pg-prod {
	/* exactly 4 cards per view (gap is 22px, so 3 gaps = 66px) — no partial 5th */
	flex: 0 0 calc((100% - 66px) / 4); scroll-snap-align: start;
	margin: 0; background: #fff; border: 1px solid #e7ebf1; border-radius: 14px;
	overflow: hidden; box-shadow: 0 6px 18px rgba(14,31,69,.06);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
	display: flex; flex-direction: column;
}
.pg-prod:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(14,31,69,.14); border-color: #cdd6e4; }
.pg-prodcat__soon { padding: 40px 24px; text-align: center; color: #8a94a6; font-size: 15px; background: #f7f9fc; border: 1px dashed #d5dce8; border-radius: 14px; }
.pg-prod__media {
	flex: 0 0 auto; height: 208px; background: #fff;
	display: flex; align-items: center; justify-content: center; padding: 22px;
}
.pg-prod__media img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
/* fixed-height name block so every card is exactly the same size */
.pg-prod__name {
	flex: 0 0 66px; height: 66px;
	background: #f7f9fc; border-top: 1px solid #edf1f6;
	font-family: var(--font-display); font-weight: 600; font-size: 13px;
	color: #16264a; text-align: center; line-height: 1.3; padding: 13px 12px 0;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pg-carousel__nav {
	flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
	border: 1px solid #d7deea; background: #fff; color: #16264a;
	font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 4px 12px rgba(14,31,69,.1); transition: background .2s, color .2s, transform .2s;
}
.pg-carousel__nav:hover { background: var(--navy); color: #fff; transform: scale(1.06); }
.pg-carousel__nav:disabled { opacity: .35; cursor: default; transform: none; }
@media (max-width: 980px) { .pg-prod { flex: 0 0 calc((100% - 44px) / 3); } } /* 3-up on tablet */
@media (max-width: 700px) { .pg-prod { flex: 0 0 calc((100% - 22px) / 2); } } /* 2-up */
@media (max-width: 640px) {
	.pg-carousel__nav { display: none; }
	.pg-prod { flex: 0 0 78vw; }
}

/* ============================================================
   R&D PAGE — Engineering Lifecycle zigzag timeline
   ============================================================ */
.rnd-hl { color: inherit; font-weight: inherit; }
.rnd-sec { padding: 80px 0; }
.rnd-sec--tight { padding-top: 8px; }

/* --- Serpentine path flow: stage renders positioned on the exact PDF path --- */
.rnd-flow {
	position: relative; max-width: 940px; margin: 40px auto 0;
	aspect-ratio: 1024 / 1536;
}
/* path drawn as 7 stacked segments that fade in one-by-one on scroll */
.rnd-seg {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: contain; object-position: top center; pointer-events: none;
	opacity: 0; transition: opacity .8s var(--ease-out);
}
.rnd-seg.is-visible { opacity: 1; }
/* Each stage is ONE connected unit — [render + badge + text] — hanging off its
   path dot to one side. Badge sits at the dot end, render at the outer end, so
   every render is unmistakably tied to its own stage. */
.rnd-node {
	position: absolute; top: var(--doty); transform: translateY(-50%);
	width: 44%; z-index: 2;
}
.rnd-node--l { right: calc(100% - var(--dotx) + 3.5%); }
.rnd-node--r { left: calc(var(--dotx) + 3.5%); }
/* inner holds the flex layout + the opacity-only fade (kept off the node so the
   fade's transform:none can't clobber the node's translateY(-50%) centering) */
.rnd-node__inner { display: flex; align-items: center; gap: 18px; }
.rnd-node--l .rnd-node__inner { flex-direction: row-reverse; }
.rnd-node--r .rnd-node__inner { flex-direction: row; }

/* badge + text = tight aligned group, badge at the dot end */
.rnd-node__label { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; max-width: 52%; }
.rnd-node--l .rnd-node__label { flex-direction: row-reverse; }
.rnd-node--r .rnd-node__label { flex-direction: row; }
.rnd-node--l .rnd-node__text { text-align: right; }
.rnd-node--r .rnd-node__text { text-align: left; }
.rnd-node__badge {
	flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font-display); font-weight: 800; font-size: 15px; color: #fff;
	background: var(--dotc); border: 3px solid #fff; box-shadow: 0 5px 14px rgba(14,31,69,.28);
}
.rnd-node__text { display: flex; flex-direction: column; }
.rnd-node__text small {
	font-family: var(--font-display); font-weight: 800; font-size: 11.5px;
	letter-spacing: .1em; text-transform: uppercase; color: var(--dotc); margin-bottom: 3px;
}
.rnd-node__text b { font-family: var(--font-display); font-weight: 800; font-size: clamp(13px,1.4vw,15.5px); color: #16264a; line-height: 1.18; }

/* render fixed at 58% of the unit so every stage image is the SAME, larger size */
.rnd-node__illus { flex: 0 0 58%; min-width: 0; }
.rnd-node__illus img { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 22px rgba(14,31,69,.13)); }

/* scrollable process-photo strip (reuses the .pg-carousel behaviour + auto-scroll) */
.rnd-gal { margin-top: 8px; }
.rnd-gal__item {
	flex: 0 0 clamp(240px, 30vw, 320px); scroll-snap-align: start; margin: 0;
	border-radius: 12px; overflow: hidden; box-shadow: 0 10px 26px rgba(14,31,69,.1);
}
.rnd-gal__item img { width: 100%; height: 215px; object-fit: cover; display: block; transition: transform .5s var(--ease-out); }
.rnd-gal__item:hover img { transform: scale(1.06); }
.rnd-closing {
	font-family: var(--font-display); font-weight: 500;
	font-size: clamp(19px,2.2vw,26px); color: #16264a; line-height: 1.4; margin: 40px auto 0; max-width: 760px;
}

@media (max-width: 760px) {
	/* stack the flow: drop the path, lay stages out as simple cards */
	.rnd-flow { aspect-ratio: auto; background: none; max-width: 460px; }
	.rnd-flow .rnd-seg { display: none; }
	.rnd-node { position: static; transform: none; width: auto; margin-bottom: 20px; }
	.rnd-node__inner { gap: 14px; }
	.rnd-node--l .rnd-node__inner, .rnd-node--r .rnd-node__inner { flex-direction: row; }
	.rnd-node--l .rnd-node__label, .rnd-node--r .rnd-node__label { flex-direction: row; max-width: 50%; }
	.rnd-node--l .rnd-node__text, .rnd-node--r .rnd-node__text { text-align: left; }
	.rnd-node__illus { flex: 0 0 40%; }
	.rnd-gallery { grid-template-columns: repeat(2, 1fr); }
	.rnd-gallery img { height: 150px; }
}

/* ---- Fade-ONLY scroll reveal on the R&D page (no rise/slide) ---- */
.page-template-template-hitech-rnd .hitech-home [data-reveal] {
	transform: none;
	transition: opacity .9s var(--ease-out);
}
.page-template-template-hitech-rnd .hitech-home [data-reveal].is-visible { transform: none; }

/* ===== Header logo lockup: mark + "Hi-Tech Engineering Industries" ===== */
.hh-header .hh-logo { align-items: center; }
.hh-header .hh-logo img { height: 54px; width: auto; }
.hh-logo__name {
	margin-left: 14px; padding-left: 14px;
	border-left: 2px solid rgba(255,255,255,.55);
	font-family: var(--font-display); font-weight: 700;
	font-size: 15.5px; line-height: 1.18; color: #fff; letter-spacing: .01em; white-space: nowrap;
}
@media (max-width: 600px) { .hh-logo__name { display: none; } }

/* ===== Capabilities page: alternating photo + text stages ===== */
.cap-sec { padding: 80px 0; }
.cap-stages { display: flex; flex-direction: column; gap: 44px; margin-top: 44px; }
.cap-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cap-row__img img { width: 100%; height: 340px; object-fit: cover; border-radius: 16px; box-shadow: 0 16px 34px rgba(14,31,69,.16); display: block; }
.cap-row__title { font-family: var(--font-display); font-weight: 800; color: var(--red); font-size: clamp(18px,2vw,22px); margin: 0 0 12px; line-height: 1.15; }
.cap-row__text p { color: #3b4557; font-size: 16px; line-height: 1.6; margin: 0; }
.cap-row__logo { margin-top: 20px; }
.cap-row__logo img { height: 42px; width: auto; display: inline-block; }
.cap-row--l .cap-row__text { order: 1; text-align: left; border-left: 4px solid var(--red); padding-left: 24px; }
.cap-row--l .cap-row__img  { order: 2; }
.cap-row--r .cap-row__text { order: 2; text-align: right; border-right: 4px solid #2a54c6; padding-right: 24px; }
.cap-row--r .cap-row__img  { order: 1; }
.cap-closing { padding-top: 6px; }
.cap-closing__lead { font-family: var(--font-display); font-weight: 700; font-size: clamp(15px,1.7vw,18px); color: #16264a; line-height: 1.55; max-width: 720px; margin: 0 auto; }
@media (max-width: 760px) {
	.cap-row { grid-template-columns: 1fr; gap: 16px; }
	.cap-row--l .cap-row__text, .cap-row--r .cap-row__text { order: 2; text-align: left; border-right: 0; border-left: 4px solid var(--red); padding: 0 0 0 20px; }
	.cap-row--l .cap-row__img, .cap-row--r .cap-row__img { order: 1; }
	.cap-row__img img { height: 220px; }
}

/* ===== Quality Assurance: two IS test-apparatus lists (Quality page) ===== */
.qa-sec .qa-grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 0;
	max-width: 900px; margin: 34px auto 0;
}
.qa-col { padding: 4px 34px; }
.qa-col:first-child { border-right: 1px solid #d9dfe8; }
.qa-col__title {
	font-family: var(--font-display); font-weight: 800; color: var(--red);
	text-align: center; font-size: clamp(18px, 2vw, 22px); margin: 0 0 16px;
}
.qa-list { list-style: none; margin: 0; padding: 0; text-align: center; }
.qa-list li {
	font-size: 14.5px; color: #2f3846; line-height: 1.5; padding: 4px 0;
}
.qa-list li::before { content: "\2022"; color: var(--red); margin-right: 8px; }
@media (max-width: 700px) {
	.qa-sec .qa-grid { grid-template-columns: 1fr; gap: 26px; }
	.qa-col { padding: 4px 10px; }
	.qa-col:first-child { border-right: 0; border-bottom: 1px solid #d9dfe8; padding-bottom: 26px; }
}

/* ===== Quality page: auto-rotating banner slideshow (no arrows) ===== */
.pg-hero-slider { position: relative; width: 100%; aspect-ratio: 1920 / 640; background: #0d1a34; overflow: hidden; }
.pg-hero-track { display: flex; height: 100%; width: 100%; will-change: transform; }
.pg-hero-slide { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-hero-slider::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: linear-gradient(180deg, rgba(10,16,30,.06), rgba(10,16,30,.26)); }

/* ===== Banner caption (e.g. "About Hi-Tech" over the Know us image) ===== */
.pg-hero--titled { line-height: normal; }
.pg-hero__caption { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 0 24px; }
.pg-hero__caption h1 {
	font-family: var(--font-display); font-weight: 800; color: #fff;
	font-size: clamp(30px, 5vw, 58px); letter-spacing: -.01em; margin: 0; text-align: center;
	text-shadow: 0 2px 22px rgba(0,0,0,.45);
}
