/* Tubing Testers Horizon (design idea 3) — main styles */
:root {
	--tt-blue: #005DAB;
	--tt-navy: #06254A;
	--tt-accent: #FFC72C;
	--tt-tint: #F1F4F8;
	--tt-panel: #E6EDF5;
	--tt-ink: #142033;
	--tt-muted: #5B6B80;
	--tt-line: #D5DFEA;
	--tt-slab: Rockwell, "Rockwell Std", "Arvo", Georgia, serif;
	--tt-body: Arial, Helvetica, sans-serif;
	--tt-wrap: 1200px;
	--tt-r: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--tt-ink); font-family: var(--tt-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tt-blue); }
a:hover { color: var(--tt-navy); }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
.slab { font-family: var(--tt-slab); font-weight: 700; }
.wrap { max-width: var(--tt-wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--tt-accent); color: var(--tt-navy); padding: 12px 16px; font-weight: 700; }
.skip-link:focus { left: 16px; top: 16px; }
:focus-visible { outline: 3px solid var(--tt-accent); outline-offset: 2px; }
[id] { scroll-margin-top: 24px; }

/* Utilities */
.stack { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.stack--sm { gap: 12px; }
.stack--lg { gap: 48px; align-items: stretch; }
.muted { color: var(--tt-muted); font-size: 17px; line-height: 1.7; }
.lead { font-size: 18px; line-height: 1.7; }
.section { padding: 104px 0; }
.section--tight { padding-top: 0; }
.section--flush-top { padding-top: 0; }
.section--tint { background: var(--tt-tint); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-title { font-size: clamp(34px, 4vw, 52px); line-height: 1.06; color: var(--tt-navy); }
.section-title--md { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; }
.section-title--sm { font-size: clamp(26px, 2.6vw, 34px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.split--top { align-items: start; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tt-accent); display: inline-block; flex: none; }
.dot--navy { background: var(--tt-navy); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--tt-navy); }
.eyebrow--light { color: #fff; }

/* Pills (buttons) */
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 12px 20px; border-radius: 8px; font-size: 15px; font-weight: 700; text-decoration: none; line-height: 1.1; transition: background-color .15s, color .15s, transform .15s; border: 1px solid transparent; }
.pill:hover { transform: translateY(-2px); }
.pill--blue { background: var(--tt-blue); color: #fff; }
.pill--blue:hover { background: var(--tt-navy); color: #fff; }
.pill--accent { background: var(--tt-accent); color: var(--tt-navy); }
.pill--accent:hover { background: #fff; color: var(--tt-navy); }
.pill--light { background: #fff; color: var(--tt-navy); }
.pill--light:hover { background: var(--tt-accent); color: var(--tt-navy); }
.pill--outline { border-color: var(--tt-navy); color: var(--tt-navy); }
.pill--outline:hover { background: var(--tt-navy); color: #fff; }
.pill--glass { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; }
.pill--glass:hover { background: #fff; color: var(--tt-navy); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; font-weight: 700; }
.tags li { display: inline-flex; align-items: center; gap: 8px; }
.tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tt-accent); }
.tags--light { color: #fff; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #fff; border: 1px solid var(--tt-line); border-radius: 6px; padding: 7px 12px; font-size: 14px; color: var(--tt-navy); }

/* Header overlays every page's photo hero */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.site-logo img { height: 60px; width: auto; }
.site-nav .menu { list-style: none; display: flex; gap: 32px; align-items: center; }
.site-nav a { color: #fff; text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: .3px; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--tt-accent); }
.site-nav .menu li { position: relative; }
.site-nav .sub-menu { list-style: none; padding: 8px 0; position: absolute; top: 100%; left: -16px; min-width: 220px; background: var(--tt-navy); border-radius: 8px; display: none; }
.site-nav .sub-menu a { display: block; padding: 10px 16px; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 8px; background: rgba(6, 37, 74, .5); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle__bar { display: block; width: 22px; height: 2px; background: #fff; }

/* Hero */
.hero, .page-hero { position: relative; color: #fff; background: var(--tt-navy); overflow: hidden; }
.hero { min-height: max(720px, 100vh); display: flex; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: rgba(6, 37, 74, .5); }
.hero__inner { position: relative; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 72px; padding-top: 140px; padding-bottom: 36px; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.hero__left { max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.hero__lede { font-size: 18px; line-height: 1.5; }
.hero__link { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; gap: 14px; border-bottom: 1px solid rgba(255, 255, 255, .5); padding-bottom: 6px; align-self: flex-start; }
.hero__link:hover { color: var(--tt-accent); border-color: var(--tt-accent); }
.hero__title { font-size: clamp(42px, 5.4vw, 72px); line-height: 1.04; text-align: right; }
.hero__foot { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; font-weight: 700; border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 18px; }
.hero__foot a { color: #fff; text-decoration: none; }
.hero__foot a:hover { color: var(--tt-accent); }
.page-hero { min-height: 520px; display: flex; }
.page-hero__inner { position: relative; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding-top: 140px; padding-bottom: 56px; }
.page-hero__title { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; }
.page-hero__lede { font-size: 18px; max-width: 640px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.stat { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--tt-line); padding-top: 24px; }
.stat__num { font-size: clamp(44px, 5vw, 64px); color: var(--tt-navy); line-height: 1; }
.stat__label { font-weight: 700; color: var(--tt-blue); }
.stat p { color: var(--tt-muted); font-size: 15px; max-width: 300px; }

/* Services panel */
.solutions { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: center; }
.solutions__panel { background: var(--tt-panel); border-radius: var(--tt-r); padding: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sol-card { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; color: #fff; text-decoration: none; background: var(--tt-navy); }
.sol-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sol-card:hover img { transform: scale(1.05); }
.sol-card:hover { color: #fff; }
.sol-card__plus { position: absolute; top: 12px; left: 12px; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--tt-navy); display: grid; place-items: center; font-weight: 700; font-size: 18px; line-height: 1; }
.sol-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: rgba(6, 37, 74, .88); display: flex; flex-direction: column; gap: 6px; }
.sol-card__title { font-weight: 700; font-size: 16px; }
.sol-card__text { font-size: 13px; line-height: 1.45; color: #DCE6F2; }

/* Safety at our core */
.core { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--tt-tint); border-radius: var(--tt-r); overflow: hidden; }
.core__copy { padding: 64px 56px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.core__list { list-style: none; width: 100%; }
.core__list li { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--tt-line); }
.core__list strong { color: var(--tt-navy); }
.core__list span { font-size: 15px; color: var(--tt-muted); }
.core__media { padding: 20px 20px 20px 0; }
.core__media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; border-radius: 10px; }

/* Badges */
.badges { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.badge { background: var(--tt-tint); border-radius: 10px; padding: 14px; min-height: 104px; display: flex; align-items: center; justify-content: center; }
.badge img { max-height: 76px; width: auto; object-fit: contain; }

/* Why us — angled cards */
.why__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 720px; margin: 0 auto; }
.why__cards { display: flex; justify-content: center; align-items: center; gap: 0; padding: 24px 0; }
.why-card { width: 320px; border-radius: var(--tt-r); padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 18px 40px rgba(6, 37, 74, .18); transition: transform .2s; }
.why-card img { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; }
.why-card h3 { font-family: var(--tt-slab); font-size: 22px; }
.why-card p { font-size: 15px; line-height: 1.55; }
.why-card--navy { background: var(--tt-navy); color: #fff; transform: rotate(-5deg) translateY(12px); margin-right: -14px; z-index: 1; }
.why-card--navy p { color: #DCE6F2; }
.why-card--white { background: #fff; border: 1px solid var(--tt-line); z-index: 2; position: relative; }
.why-card--white h3 { color: var(--tt-navy); }
.why-card--white p { color: var(--tt-muted); }
.why-card--blue { background: var(--tt-blue); color: #fff; transform: rotate(5deg) translateY(12px); margin-left: -14px; z-index: 1; }
.why-card:hover { transform: rotate(0) translateY(-4px); z-index: 3; }

/* Story / quote band */
.story { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); background: var(--tt-navy); border-radius: var(--tt-r); overflow: hidden; color: #fff; }
.story__img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; }
.story__body { padding: 56px; display: flex; flex-direction: column; gap: 20px; }
.story__mark { color: var(--tt-accent); font-size: 80px; line-height: .6; }
.story__quote { font-size: 22px; line-height: 1.5; }
.story__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.story__name { font-size: 34px; line-height: 1.1; }
.story__name span { display: block; font-family: var(--tt-body); font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--tt-accent); margin-top: 8px; }

/* Photo strip + gallery page */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.strip a, .gallery a { display: block; border-radius: 10px; overflow: hidden; }
.strip img, .gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.strip a:hover img, .gallery a:hover img { transform: scale(1.05); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

/* CTA band */
.cta-band { padding: 0 0 96px; }
.cta-band__card { position: relative; border-radius: var(--tt-r); overflow: hidden; background: var(--tt-navy); color: #fff; min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; padding: 56px; gap: 32px; }
.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cta-band__content { position: relative; max-width: 560px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.cta-band__title { font-size: clamp(34px, 4vw, 52px); line-height: 1.06; }
.cta-band__tags { position: relative; align-self: flex-end; }

/* Inner pages */
.service-list { display: flex; flex-direction: column; gap: 96px; }
.split__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--tt-r); }
.split--flip .split__media { order: 2; }
.service__num { font-size: 15px; font-family: var(--tt-body); color: var(--tt-navy); background: var(--tt-accent); border-radius: 6px; padding: 4px 10px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { background: var(--tt-tint); border: 1px solid var(--tt-line); color: var(--tt-navy); border-radius: 6px; font-weight: 700; font-size: 14px; padding: 8px 12px; }
.entry-content { font-size: 18px; line-height: 1.7; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3 { font-family: var(--tt-slab); color: var(--tt-navy); }
.entry-content h2 { font-size: 36px; }
.entry-content h3 { font-size: 26px; }
.post-item + .post-item { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--tt-line); }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--tt-line); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.site-footer__grid > div { display: flex; flex-direction: column; gap: 10px; }
.site-footer__brand img { width: 180px; }
.site-footer__brand p { color: var(--tt-muted); max-width: 300px; }
.site-footer__title { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--tt-navy); margin-bottom: 4px; }
.site-footer a { color: var(--tt-muted); text-decoration: none; }
.site-footer a:hover { color: var(--tt-blue); }
.site-footer__grid span { color: var(--tt-muted); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--tt-line); padding-top: 20px; padding-bottom: 28px; font-size: 13px; color: var(--tt-muted); }
.site-footer__social { display: inline-flex; gap: 8px; align-items: center; }

/* Responsive */
@media (max-width: 1100px) {
	.solutions { grid-template-columns: minmax(0, 1fr); }
	.badges { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.why-card { width: 290px; }
}
@media (max-width: 920px) {
	.nav-toggle { display: inline-flex; }
	.site-header__inner { flex-wrap: wrap; }
	.site-header__call { margin-left: auto; }
	.site-nav { display: none; order: 4; width: 100%; background: var(--tt-navy); border-radius: 10px; padding: 8px 16px; }
	.site-nav.is-open { display: block; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .menu a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
	.site-nav .sub-menu { position: static; display: block; padding: 0 0 0 16px; }
	.solutions__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.why__cards { flex-direction: column; gap: 20px; }
	.why-card, .why-card--navy, .why-card--blue { transform: none; margin: 0; width: 100%; max-width: 480px; }
}
@media (max-width: 820px) {
	.split, .core, .story { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.split--flip .split__media { order: 0; }
	.core { gap: 0; }
	.core__copy { padding: 40px 28px; }
	.core__media { padding: 0 20px 20px; }
	.core__media img { min-height: 260px; }
	.story__img { min-height: 260px; }
	.story__body { padding: 36px 28px; }
	.stats { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.hero__title { text-align: left; }
	.strip, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.section { padding: 72px 0; }
	.section--tight, .section--flush-top { padding-top: 0; }
	.cta-band__card { padding: 36px 28px; }
	.cta-band__tags { align-self: flex-start; }
	.service-list { gap: 64px; }
}
@media (max-width: 560px) {
	.site-header__call { display: none; }
	.nav-toggle { margin-left: auto; }
	.site-logo img { height: 48px; }
	.solutions__panel { grid-template-columns: minmax(0, 1fr); padding: 16px; }
	.sol-card { aspect-ratio: 4 / 3; }
	.badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.hero__foot span { display: none; }
}
