/* Tubing Testers theme — main styles */
:root {
	--tt-blue: #005DAB;
	--tt-navy: #06254A;
	--tt-accent: #FFC72C;
	--tt-tint: #EEF3F9;
	--tt-ink: #1B2533;
	--tt-muted: #C9D6E6;
	--tt-line: #D5DFEA;
	--tt-slab: Rockwell, "Rockwell Std", "Arvo", Georgia, serif;
	--tt-body: Arial, Helvetica, sans-serif;
	--tt-wrap: 1280px;
}

*, *::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; }
.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; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 16px 26px; font-size: 18px; text-transform: uppercase; text-decoration: none; letter-spacing: .3px; border: 3px solid transparent; line-height: 1; transition: background-color .15s, color .15s, transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 12px 20px; font-size: 17px; min-height: 44px; }
.btn--accent { background: var(--tt-accent); color: var(--tt-navy); }
.btn--accent:hover { background: #fff; color: var(--tt-navy); }
.btn--blue { background: var(--tt-blue); color: #fff; }
.btn--blue:hover { background: var(--tt-navy); color: #fff; }
.btn--outline-light { border-color: #fff; color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--tt-blue); }
.btn--outline-blue { border-color: var(--tt-blue); color: var(--tt-blue); }
.btn--outline-blue:hover { background: var(--tt-blue); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.tag { display: inline-flex; align-self: flex-start; background: var(--tt-accent); color: var(--tt-navy); font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; padding: 8px 14px; line-height: 1.2; }
.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--tt-blue); }
.eyebrow--accent { color: var(--tt-accent); }
.eyebrow--light { color: #fff; }
.more { font-weight: 700; font-size: 17px; }
.more--light { color: #fff; }
.more--light:hover { color: var(--tt-accent); }
.lead { font-size: 18px; line-height: 1.65; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* Top bar */
.topbar { background: var(--tt-navy); color: #fff; font-size: 14px; font-weight: 700; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.topbar__phones { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a span { color: var(--tt-accent); }
.topbar a:hover span { text-decoration: underline; }

/* Header */
.site-header { background: #fff; border-bottom: 6px solid var(--tt-blue); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.site-logo img { height: 76px; width: auto; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; align-items: center; }
.site-nav a { color: var(--tt-blue); text-decoration: none; font-size: 19px; text-transform: uppercase; letter-spacing: .5px; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--tt-navy); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: var(--tt-accent); }
.site-nav .menu li { position: relative; }
.site-nav .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: -16px; min-width: 230px; background: #fff; border-top: 4px solid var(--tt-accent); box-shadow: 0 12px 24px rgba(6, 37, 74, .15); display: none; }
.site-nav .sub-menu a { display: block; padding: 10px 16px; font-size: 16px; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: var(--tt-blue); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle__bar { display: block; width: 24px; height: 3px; background: #fff; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--tt-blue); min-height: 600px; }
.hero__copy { display: flex; flex-direction: column; justify-content: center; gap: 28px; color: #fff; padding: 80px 64px 80px max(24px, calc((100vw - var(--tt-wrap)) / 2 + 24px)); }
.hero__title { font-size: clamp(44px, 5.5vw, 72px); line-height: 1.02; letter-spacing: -.5px; }
.hero__lede { font-size: 20px; line-height: 1.55; max-width: 560px; }
.hero__media { position: relative; min-height: 420px; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Stats */
.stats { background: var(--tt-navy); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.stat { border-top: 4px solid var(--tt-accent); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.stat__num { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; }
.stat__label { font-size: 15px; color: var(--tt-muted); }

/* Sections */
.section { padding: 96px 0; }
.section--tint { background: var(--tt-tint); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; }
.section-title { font-size: clamp(34px, 4vw, 52px); color: var(--tt-navy); line-height: 1.05; }
.section-title--md { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: #fff; color: var(--tt-ink); text-decoration: none; box-shadow: 0 2px 0 var(--tt-line); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--tt-accent); color: var(--tt-ink); }
.card img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.card__bar { background: var(--tt-blue); color: #fff; padding: 18px 22px; display: flex; gap: 14px; align-items: baseline; }
.card__num { color: var(--tt-accent); font-size: 22px; }
.card h3 { font-family: var(--tt-body); font-size: 21px; font-weight: 700; }
.card p { padding: 20px 22px 8px; font-size: 16px; line-height: 1.55; }
.card__more { padding: 8px 22px 24px; font-weight: 700; color: var(--tt-blue); margin-top: auto; }

/* Split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split--top { align-items: start; }
.split__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.offset-shadow { box-shadow: 20px 20px 0 var(--tt-accent); }
.split--flip .split__media { order: 2; }
.split--flip .offset-shadow { box-shadow: -20px 20px 0 var(--tt-accent); }

/* HSE */
.hse { background: var(--tt-blue); color: #fff; padding: 96px 0; }
.hse .section-title { color: #fff; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.checks li { background: var(--tt-navy); padding: 16px 18px; display: flex; gap: 12px; align-items: center; font-weight: 700; line-height: 1.3; }
.checks svg { color: var(--tt-accent); flex: none; }
.badges-wrap { margin-top: 56px; display: flex; flex-direction: column; gap: 20px; }
.badges { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.badge { background: #fff; padding: 12px; min-height: 96px; display: flex; align-items: center; justify-content: center; }
.badge img { max-height: 80px; width: auto; object-fit: contain; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery a { display: block; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }

/* Inner pages */
.page-hero { background: var(--tt-blue); color: #fff; padding: 72px 0 64px; border-bottom: 8px solid var(--tt-accent); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 20px; }
.page-hero__title { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; }
.page-hero__lede { font-size: 19px; max-width: 720px; }
.service-list { display: flex; flex-direction: column; gap: 112px; }
.service__num { color: var(--tt-blue); font-size: 22px; background: var(--tt-accent); align-self: flex-start; padding: 4px 12px; color: var(--tt-navy); }
.facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { background: var(--tt-navy); color: #fff; font-weight: 700; font-size: 15px; padding: 10px 14px; }
.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; }
.entry-content img { height: auto; }
.post-item + .post-item { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--tt-line); }

/* CTA + footer */
.cta { background: var(--tt-accent); color: var(--tt-navy); }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-top: 64px; padding-bottom: 64px; }
.cta h2 { font-size: clamp(30px, 3.4vw, 44px); max-width: 620px; }
.cta__phones { display: flex; flex-wrap: wrap; gap: 16px; }
.cta__phone { display: flex; flex-direction: column; gap: 4px; padding: 16px 24px; color: #fff; text-decoration: none; }
.cta__phone .slab { font-size: 24px; }
.cta__phone:hover { color: #fff; transform: translateY(-2px); }
.cta__phone--navy { background: var(--tt-navy); }
.cta__phone--blue { background: var(--tt-blue); }
.cta__label { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--tt-muted); }
.site-footer { background: var(--tt-navy); color: #fff; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 72px; padding-bottom: 40px; }
.site-footer__grid > div { display: flex; flex-direction: column; gap: 12px; }
.site-footer__brand img { width: 240px; }
.site-footer__brand p { color: var(--tt-muted); max-width: 320px; }
.site-footer__title { font-size: 18px; text-transform: uppercase; color: var(--tt-accent); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--tt-accent); }
.site-footer__social { display: inline-flex; gap: 8px; align-items: center; }
.site-footer__bottom { border-top: 1px solid #1E3E66; color: var(--tt-muted); font-size: 14px; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }

/* Responsive */
@media (max-width: 1100px) {
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.badges { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-nav .menu { gap: 24px; }
}
@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; order: 3; }
	.site-header__call { margin-left: auto; }
	.site-header__inner { flex-wrap: wrap; }
	.site-nav { display: none; order: 4; width: 100%; }
	.site-nav.is-open { display: block; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--tt-line); }
	.site-nav .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--tt-line); }
	.site-nav .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 16px; }
}
@media (max-width: 820px) {
	.hero, .split { grid-template-columns: minmax(0, 1fr); }
	.hero__copy { padding: 56px 24px; }
	.hero__media { min-height: 280px; }
	.split { gap: 40px; }
	.split--flip .split__media { order: 0; }
	.stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.topbar__addr { display: none; }
	.section, .hse { padding: 64px 0; }
	.service-list { gap: 72px; }
}
@media (max-width: 560px) {
	.cards, .site-footer__grid, .checks { grid-template-columns: minmax(0, 1fr); }
	.badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-logo img { height: 56px; }
	.site-header__call { display: none; }
	.nav-toggle { margin-left: auto; }
	.offset-shadow, .split--flip .offset-shadow { box-shadow: 12px 12px 0 var(--tt-accent); }
}
