/* ==========================================================================
   TtMr — section components
   ========================================================================== */

/* ---- Hero ---- */
.section--hero {
	background: radial-gradient(120% 120% at 80% -10%, var(--steel-2) 0%, var(--ink) 55%);
	color: var(--text-invert); overflow: hidden; padding-block: clamp(5rem, 12vw, 9rem);
	min-height: clamp(560px, 82vh, 860px); display: flex; align-items: center;
}
.section--hero::before { content: none; }
.section--hero[style*="--hero-bg"]::after {
	content: ""; position: absolute; inset: 0; z-index: 0;
	background: var(--hero-bg) center/cover no-repeat; opacity: .22; mix-blend-mode: luminosity;
}
/* Háttérvideó: 16:9-es iframe középre méretezve, hogy mindig kitöltse a hero-t. */
.hero__video {
	position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.hero__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__video iframe {
	position: absolute; top: 50%; left: 50%;
	/* A scale túlnyújtja az iframe-et, így a YouTube felirat/vezérlők a látható területen kívülre esnek. */
	transform: translate(-50%, -50%) scale(1.4);
	width: 100vw; height: 56.25vw;            /* 16:9 a viewport szélességéből */
	min-width: 177.78vh; min-height: 100%;    /* 16:9 a hero magasságából */
	border: 0;
}
/* Sötétítő + vignettázó overlay, hogy a szöveg olvasható maradjon. */
.hero__video-overlay {
	position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background:
		linear-gradient(180deg, rgba(11,18,32,.55) 0%, rgba(11,18,32,.35) 45%, rgba(11,18,32,.7) 100%),
		radial-gradient(110% 120% at 75% 0%, rgba(11,18,32,.2) 0%, rgba(11,18,32,.78) 100%);
}
.section--hero > .container { position: relative; z-index: 2; }
.hero__inner { max-width: 920px; }
.hero__title { font-size: var(--fs-h1); font-weight: 700; margin-bottom: 1.25rem; background: linear-gradient(180deg, #fff 30%, #C7D6EA 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__subtitle {
	font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 600; color: var(--accent);
	max-width: 60ch; letter-spacing: -.01em; text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.hero .section__eyebrow { color: var(--accent); }
.hero .section__eyebrow::before { background: var(--accent); }

/* ---- Subheader (compact page header for inner pages) ---- */
.subheader {
	position: relative; overflow: hidden; isolation: isolate;
	color: var(--text-invert);
	background:
		linear-gradient(120deg, var(--ink) 0%, var(--steel) 58%, var(--steel-2) 100%);
	padding-block: clamp(3.25rem, 6vw, 5.25rem);
	border-bottom: 1px solid var(--line-soft);
}
/* Atmospheric glow — depth without a grid. */
.subheader::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(78% 130% at 90% -20%, rgba(56,189,248,.20) 0%, transparent 55%),
		radial-gradient(60% 120% at -5% 120%, rgba(37,99,235,.18) 0%, transparent 60%);
}
/* Fine baseline rule (datum line) with an accent fade. */
.subheader::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 1;
	background: linear-gradient(90deg, var(--blue) 0%, var(--accent) 22%, transparent 60%);
	opacity: .8;
}
/* Engineering / CAD line-art motif. */
.subheader__motif {
	position: absolute; top: 50%; right: clamp(-70px, -1vw, -10px); transform: translateY(-50%);
	width: clamp(240px, 32vw, 460px); color: var(--accent); opacity: .14; z-index: -1; pointer-events: none;
}
.subheader__motif svg { width: 100%; height: auto; display: block; }
@media (max-width: 720px) { .subheader__motif { opacity: .09; right: -90px; } }

.subheader > .container { position: relative; z-index: 1; }
.subheader__inner { max-width: 880px; }
.subheader__eyebrow {
	font-family: var(--font-mono); font-size: var(--fs-eyebrow); font-weight: 600;
	letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
	display: inline-flex; align-items: center; gap: .6em; margin-bottom: .9rem;
}
.subheader__eyebrow::before { content: ""; width: 1.8rem; height: 2px; background: var(--accent); display: inline-block; }
.subheader__title {
	font-family: var(--font-heading); font-weight: 700; line-height: 1.08;
	font-size: clamp(1.9rem, 4.2vw, 3.1rem);
	background: linear-gradient(180deg, #fff 35%, #C7D6EA 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.subheader__subtitle { margin-top: 1rem; font-size: var(--fs-lead); color: var(--text-invert-muted); max-width: 62ch; }

/* Breadcrumbs — monospace "path" styling. */
.crumbs {
	display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
	font-family: var(--font-mono); font-size: .8rem; letter-spacing: .02em;
	color: var(--text-invert-muted); margin-bottom: 1.15rem;
}
.crumbs__link { color: var(--text-invert-muted); text-decoration: none; transition: color var(--dur) var(--ease); }
.crumbs__link:hover { color: var(--accent); }
.crumbs__sep { color: rgba(148,163,184,.45); }
.crumbs__current { color: var(--text-invert); }

/* Staggered load reveal. */
.subheader__inner > * { animation: ttmr-sh-rise .7s var(--ease) both; }
.subheader__inner > .crumbs { animation-delay: .04s; }
.subheader__inner > .subheader__eyebrow { animation-delay: .11s; }
.subheader__inner > .subheader__title { animation-delay: .18s; }
.subheader__inner > .subheader__subtitle { animation-delay: .25s; }
@keyframes ttmr-sh-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .subheader__inner > * { animation: none; } }

/* ---- Service cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.card {
	position: relative; display: flex; flex-direction: column; gap: .65rem;
	padding: 1.9rem 1.7rem; border-radius: var(--radius); background: var(--white);
	border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--text);
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
	overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--blue), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
a.card:hover::before { transform: scaleX(1); }
.card__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--paper-2); color: var(--blue); margin-bottom: .35rem; }
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: var(--fs-h3); }
.card__motto { color: var(--text-muted); }
.card__arrow { display: inline-flex; margin-top: auto; padding-top: .9rem; color: var(--blue); transition: transform var(--dur) var(--ease); }
.card__arrow svg { width: 22px; height: 22px; }
a.card:hover .card__arrow { transform: translateX(6px); }

/* ---- Process steps ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps__item { position: relative; padding: 1.7rem; border-radius: var(--radius); background: rgba(255,255,255,.03); border: 1px solid var(--line-soft); }
.section--bg-paper .steps__item, .section--bg-white .steps__item { background: var(--white); border-color: var(--line); }
.steps__num { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 600; color: var(--blue); opacity: .9; line-height: 1; }
.section--bg-ink .steps__num, .section--bg-steel .steps__num { color: var(--accent); }
.steps__title { font-size: var(--fs-h3); margin: .8rem 0 .5rem; }
.steps__text { color: var(--text-muted); }
.section--bg-ink .steps__text, .section--bg-steel .steps__text { color: var(--text-invert-muted); }

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.stats__item { text-align: center; padding: 1.5rem 1rem; border-left: 1px solid var(--line-soft); }
.section--bg-paper .stats__item, .section--bg-white .stats__item { border-color: var(--line); }
.stats__item:first-child { border-left: 0; }
.stats__value { display: flex; align-items: baseline; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-stat); letter-spacing: -.03em; line-height: 1; }
.stats__suffix { color: var(--blue); margin-left: .1em; }
.section--bg-ink .stats__suffix, .section--bg-steel .stats__suffix { color: var(--accent); }
.stats__label { display: block; margin-top: .75rem; font-size: .98rem; color: var(--text-muted); }
.section--bg-ink .stats__label, .section--bg-steel .stats__label { color: var(--text-invert-muted); }
@media (max-width: 560px) { .stats__item { border-left: 0; border-top: 1px solid var(--line); } .stats__item:first-child { border-top: 0; } }

/* ---- Services detail (alternating) ---- */
.detail-list { display: flex; flex-direction: column; gap: clamp(3rem, 6vw, 5rem); }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.detail:nth-child(even) .detail__media { order: 2; }
.detail__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.detail__media img { width: 100%; height: 100%; object-fit: cover; }
.detail__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.detail__motto { font-family: var(--font-heading); font-size: var(--fs-lead); color: var(--blue); margin: .6rem 0 1rem; font-style: italic; }
.section--bg-ink .detail__motto, .section--bg-steel .detail__motto { color: var(--accent); }
.detail__text { color: var(--text-muted); }
.detail__text + .btn { margin-top: 1.25rem; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; } .detail:nth-child(even) .detail__media { order: 0; } }

/* ---- Testimonials ---- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.quote { display: flex; flex-direction: column; gap: 1.5rem; padding: 2rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.section--bg-ink .quote, .section--bg-steel .quote { background: rgba(255,255,255,.04); border-color: var(--line-soft); }
.quote__text { font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.45; font-weight: 500; position: relative; padding-top: 1.5rem; }
.quote__text::before { content: "\201D"; position: absolute; top: -.4rem; left: 0; font-size: 3.5rem; line-height: 1; color: var(--blue); opacity: .35; font-family: Georgia, serif; }
.section--bg-ink .quote__text::before, .section--bg-steel .quote__text::before { color: var(--accent); }
.quote__author { display: flex; align-items: center; gap: .9rem; margin-top: auto; }
.quote__avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote__logo { margin-left: auto; display: flex; align-items: center; padding-left: 1rem; }
.quote__logo img { width: auto; height: auto; max-height: 32px; max-width: 130px; object-fit: contain; display: block; }
.quote__name { font-family: var(--font-heading); font-weight: 600; display: block; }
.quote__position { font-size: .9rem; color: var(--text-muted); }
.section--bg-ink .quote__position, .section--bg-steel .quote__position { color: var(--text-invert-muted); }

/* ---- Partners (infinite logo marquee) ---- */
.marquee { position: relative; overflow: hidden; width: 100%;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
	        mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.marquee__track {
	display: flex; width: max-content; animation: ttmr-marquee 22s linear infinite;
	will-change: transform; transform: translateZ(0); backface-visibility: hidden;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.logos { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.marquee__group { flex: 0 0 auto; }
/* Egységes szélességű cellák; a logó középre igazítva (vízszintesen és függőlegesen). */
.logos__item {
	flex: 0 0 auto; width: clamp(150px, 18vw, 210px); height: 84px;
	display: grid; place-items: center; padding: 0 clamp(1rem, 2.5vw, 2rem);
	opacity: .82; filter: grayscale(1); transition: opacity var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.logos__item:hover { opacity: 1; filter: grayscale(0); }
.logos__item a { display: grid; place-items: center; width: 100%; height: 100%; }
/* Width-normalizált logók, magasságra korlátozva, hogy a magas arányúak se lógjanak ki. */
.logos__item img { width: 100%; height: auto; max-height: 56px; object-fit: contain; display: block; backface-visibility: hidden; }
@keyframes ttmr-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
	.marquee__group[aria-hidden="true"] { display: none; }
	.logos { flex-wrap: wrap; justify-content: center; }
}

/* ---- References ---- */
.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; }
.ref { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.ref:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.ref__media { position: relative; aspect-ratio: 4/3; background: var(--paper-2); overflow: hidden; }
.ref__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Inline image slider inside each card. */
.ref__slider { position: absolute; inset: 0; }
.ref__track { display: flex; height: 100%; transition: transform .45s var(--ease); }
.ref__slide { flex: 0 0 100%; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.ref__slide img { transition: transform var(--dur) var(--ease); }
.ref:hover .ref__slide img { transform: scale(1.04); }
.ref__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	display: inline-grid; place-items: center; width: 38px; height: 38px;
	border: 0; border-radius: 50%; background: rgba(11, 18, 32, .55); color: #fff; cursor: pointer;
	opacity: 0; transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease);
}
.ref__nav--prev { left: .6rem; }
.ref__nav--next { right: .6rem; }
.ref__nav svg { width: 20px; height: 20px; }
.ref__nav:hover { background: var(--blue); }
.ref:hover .ref__nav, .ref__nav:focus-visible { opacity: 1; }
.ref__count {
	position: absolute; right: .6rem; bottom: .6rem; z-index: 2;
	padding: .2rem .55rem; border-radius: 999px; background: rgba(11, 18, 32, .6); color: #fff;
	font-family: var(--font-heading); font-weight: 600; font-size: .78rem; line-height: 1; backdrop-filter: blur(3px);
}
/* On touch devices (no hover) keep the controls visible. */
@media (hover: none) { .ref__nav { opacity: .9; } }

/* ---- Lightbox (reference gallery slider) ---- */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; }
.lightbox.is-open { display: block; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(7,11,20,.92); }
.lightbox__stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(.5rem, 3vw, 2rem); padding: clamp(1rem, 5vw, 4rem); }
.lightbox__figure { margin: 0; max-width: min(1100px, 90vw); max-height: 86vh; display: flex; }
.lightbox__img { max-width: 100%; max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.lightbox__btn { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; flex: 0 0 auto; transition: background var(--dur) var(--ease); }
.lightbox__btn:hover { background: rgba(255,255,255,.22); }
.lightbox__btn svg { width: 26px; height: 26px; }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { position: absolute; top: clamp(.75rem, 2vw, 1.5rem); right: clamp(.75rem, 2vw, 1.5rem); width: 44px; height: 44px; }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__counter { position: absolute; left: 0; right: 0; bottom: clamp(.75rem, 3vw, 1.75rem); text-align: center; color: rgba(255,255,255,.85); font-family: var(--font-heading); font-weight: 600; letter-spacing: .03em; }
@media (max-width: 640px) {
	.lightbox__stage { gap: .25rem; padding: 1rem .5rem; }
	.lightbox__btn { width: 40px; height: 40px; }
}
.ref__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.ref__title { font-size: var(--fs-h3); }
.ref__text { color: var(--text-muted); font-size: .98rem; }

/* ---- CTA band ---- */
/* CTA — a contained rounded panel with a soft accent glow (no grid). */
.section--cta { background: transparent; color: #fff; }
.section--cta::before { content: none; }
.cta__inner {
	position: relative; overflow: hidden; isolation: isolate;
	display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
	padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 5vw, 3.5rem);
	border-radius: var(--radius-lg); color: #fff;
	background: linear-gradient(120deg, var(--ink) 0%, var(--steel) 52%, var(--blue-600) 128%);
	box-shadow: 0 26px 60px -28px rgba(37, 99, 235, .6);
}
.cta__inner::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(55% 130% at 92% -15%, rgba(56, 189, 248, .30), transparent 60%),
		radial-gradient(45% 120% at 0% 120%, rgba(37, 99, 235, .38), transparent 60%);
}
.cta__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.cta__text { color: rgba(255, 255, 255, .85); margin-top: .6rem; max-width: 52ch; }

/* ---- Contact ---- */
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* Centred CTA variant (no form): heading + phone/e-mail action buttons side by side. */
.contact__inner--center { display: block; max-width: 720px; margin-inline: auto; text-align: center; }
.contact__inner--center .section__eyebrow { justify-content: center; }
.contact__inner--center .section__lead { margin-inline: auto; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.contact__actions .btn svg { width: 19px; height: 19px; }
.contact__meta { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; align-items: center; margin-top: 1.5rem; font-size: .92rem; }
.contact__meta-item { display: inline-flex; align-items: center; gap: .45rem; }
.contact__meta svg { width: 17px; height: 17px; color: var(--accent); }
.section--bg-ink .contact__meta, .section--bg-steel .contact__meta { color: var(--text-invert-muted); }
.contact__meta a { color: inherit; }
.contact__meta a:hover { color: var(--accent); }
.contact__details { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact__details li { display: flex; flex-direction: column; gap: .15rem; }
.contact__label { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.section--bg-ink .contact__label, .section--bg-steel .contact__label { color: var(--text-invert-muted); }
.contact__details a { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: inherit; }
.contact__details a:hover { color: var(--blue); }
.contact__social { gap: .5rem; margin-top: .5rem; }

/* Social icon links (shared: contact section + footer uses its own class). */
.ttmr-social { display: flex; flex-wrap: wrap; gap: .7rem; }
.ttmr-social a {
	display: inline-grid; place-items: center; width: 40px; height: 40px;
	border-radius: 10px; background: rgba(11, 18, 32, .06); color: var(--text-muted);
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.ttmr-social a:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.ttmr-social svg { width: 19px; height: 19px; }
.ttmr-social--center { justify-content: center; margin-top: 1.4rem; }
.section--bg-ink .ttmr-social a, .section--bg-steel .ttmr-social a { background: rgba(255, 255, 255, .08); color: var(--text-invert-muted); }
.section--bg-ink .ttmr-social a:hover, .section--bg-steel .ttmr-social a:hover { background: var(--blue); color: #fff; }
.contact__form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow); }
.section--bg-ink .contact__form, .section--bg-steel .contact__form { color: var(--text); }
.contact__form input[type="text"], .contact__form input[type="email"], .contact__form textarea {
	width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
	font: inherit; background: var(--paper); margin-bottom: 1rem;
}
.contact__form textarea { min-height: 140px; resize: vertical; }

/* ---- Gravity Forms — themed to match the site (scoped to the contact card) ---- */
.contact__form .gform_wrapper { margin: 0; }
.contact__form .gform_title { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-h3); margin: 0 0 .3rem; color: var(--ink); }
.contact__form .gform_description { display: block; color: var(--text-muted); margin-bottom: 1.3rem; }
.contact__form .gform_required_legend { display: none; }
.contact__form .gform_fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact__form .gfield { margin: 0; }
.contact__form .gfield_label { display: block; font-family: var(--font-heading); font-weight: 600; font-size: .92rem; margin-bottom: .4rem; color: var(--ink); }
.contact__form .gfield_required { color: var(--blue); text-decoration: none; }
.contact__form input[type="text"],
.contact__form input[type="email"],
.contact__form input[type="tel"],
.contact__form input[type="url"],
.contact__form input[type="number"],
.contact__form select,
.contact__form textarea {
	width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
	font: inherit; background: var(--paper); color: var(--text); margin-bottom: 0;
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus {
	outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.contact__form .gfield_description { font-size: .85rem; color: var(--text-muted); margin-top: .35rem; }
.contact__form .gfield_error input, .contact__form .gfield_error textarea, .contact__form .gfield_error select { border-color: #dc2626; }
.contact__form .validation_message { color: #dc2626; font-size: .88rem; margin-top: .35rem; }
.contact__form .gform_validation_errors {
	background: rgba(220, 38, 38, .07); border: 1px solid rgba(220, 38, 38, .25);
	border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: 1.2rem; color: #b91c1c; font-size: .9rem;
}
/* Stack the injected captcha (full-width row) above the submit button. */
.contact__form .gform_footer { display: flex; flex-direction: column; align-items: flex-start; gap: 1.3rem; margin-top: 1.4rem; padding: 0; }
.contact__form .gform_button {
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--font-heading); font-weight: 600; font-size: .9rem; line-height: 1;
	padding: .72em 1.6em; border: 1.5px solid transparent; border-radius: 999px;
	background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); cursor: pointer;
	transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.contact__form .gform_button:hover { background: var(--blue-600); transform: translateY(-2px); }
.contact__form .gform_ajax_spinner { margin-left: .6rem; }

/* ---- Custom math captcha ---- */
.ttmr-captcha { width: 100%; }
.ttmr-captcha__label { display: block; font-family: var(--font-heading); font-weight: 600; font-size: .92rem; margin-bottom: .2rem; color: var(--ink); }
.ttmr-captcha__req { color: var(--blue); }
.ttmr-captcha__sum { margin: 0 0 .55rem; font-weight: 500; color: var(--text-muted); }
.ttmr-captcha__input {
	width: 100%; padding: .8rem 1rem; border: 1px solid var(--line);
	border-radius: var(--radius-sm); font: inherit; background: var(--paper); color: var(--text);
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ttmr-captcha__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.ttmr-captcha__error { color: #dc2626; font-size: .88rem; margin-top: .5rem; }

@media (max-width: 820px) { .contact__inner { grid-template-columns: 1fr; } }

/* ---- Error page ---- */
.section--error { text-align: center; min-height: 60vh; display: flex; align-items: center; }
.section--error .container { width: 100%; }
.section--error .section__eyebrow { justify-content: center; font-size: 1rem; }
.section--error .btn { margin-top: 2rem; }

/* ---- Image placeholder (blueprint) ---- */
.ph {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
	width: 100%; height: 100%; min-height: 220px; aspect-ratio: 4/3; color: #93A4BC;
	background-color: var(--steel);
	background-image:
		linear-gradient(var(--line-soft2) 1px, transparent 1px),
		linear-gradient(90deg, var(--line-soft2) 1px, transparent 1px);
	background-size: 28px 28px;
}
.detail__media .ph { aspect-ratio: 4/3; border-radius: inherit; }
.ph__icon { width: 46px; height: 46px; opacity: .8; }
.ph__label { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; }

/* ---- Scroll reveal ---- */
.section .section__head, .card, .steps__item, .stats__item, .quote, .detail, .ref { --rev-y: 22px; }
[data-reveal] { opacity: 0; transform: translateY(var(--rev-y, 22px)); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* ---- ISO page (certificate cards + standards badges) ---- */
.iso-section { max-width: 920px; margin: 0 auto; text-align: center; }
.iso-section h2 { font-size: var(--fs-h2); margin-top: 0; }
.iso-section p { color: var(--text-muted); max-width: 760px; margin-inline: auto; }

.iso-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; max-width: 1000px; margin: 2.75rem auto 0; }
.iso-card {
	text-align: left; padding: clamp(1.75rem, 3vw, 2.5rem);
	border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white);
	box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.iso-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.iso-card h3 { font-size: var(--fs-h3); margin: 0 0 .6rem; }
.iso-card > p { color: var(--text-muted); margin: 0; }
.iso-card .ttmr-check { margin-top: 1.4rem; }

.iso-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 780px; margin: 2.5rem auto 0; }
.iso-stats > div {
	padding: 1.7rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--white); box-shadow: var(--shadow-sm);
}
.iso-stats strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: var(--blue); margin-bottom: .25rem; }
.iso-stats span { color: var(--text-muted); font-size: .95rem; }

@media (max-width: 680px) {
	.iso-cards { grid-template-columns: 1fr; }
	.iso-stats { grid-template-columns: 1fr; }
}

/* ---- Accordion (collapsible items) ---- */
.acc { display: grid; gap: .9rem; }
.acc__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); overflow: hidden; }
.acc__head {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 1.15rem 1.4rem; cursor: pointer; list-style: none; user-select: none;
	font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; color: var(--ink);
	transition: background var(--dur) var(--ease);
}
.acc__head::-webkit-details-marker { display: none; }
.acc__head:hover { background: var(--paper-2); }
.acc__item[open] .acc__head { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.acc__chevron { width: 22px; height: 22px; flex: 0 0 auto; color: var(--blue); transition: transform var(--dur) var(--ease); }
.acc__item[open] .acc__chevron { transform: rotate(180deg); }
.acc__body { padding: 1.3rem 1.4rem 1.5rem; }
.acc__body > :first-child { margin-top: 0; }
