/* Tucker Energy Services - main stylesheet (mobile first) */

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/lato-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/lato-latin-300.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/lato-latin-700.woff2") format("woff2");
}

:root {
  --dark-900: #16191d;
  --dark-800: #1f2328;
  --dark-700: #2f353d;
  --dark-600: #424a53;
  /* Brand accent. #ffd200 is too light for white text or for text on white,
     so use dark text on it, and --accent-ink for gold text on light backgrounds. */
  --accent: #ffd200;
  --accent-hover: #e6bd00;
  --accent-ink: #7a5d00;    /* 6.2:1 on white */
  --accent-tint: #fff8d6;
  --steel-700: #32383f;
  --steel-600: #57606a;
  --steel-300: #d0d7de;
  --steel-100: #f3f4f6;
  --white: #fff;
  --text: #1f2328;
  --muted: var(--steel-600);
  --focus: var(--dark-600);

  --font: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgb(22 25 29 / 6%), 0 8px 24px rgb(22 25 29 / 8%);
  --shadow-lg: 0 12px 40px rgb(22 25 29 / 16%);
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3rem, 8vw, 6rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem; /* Lato runs small; 17px body text */
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--dark-800); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.5rem); font-weight: 700; }
h2, .h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3, .h3 { font-size: 1.25rem; font-weight: 700; }
.h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--dark-600); text-underline-offset: .18em; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
/* On dark backgrounds the focus ring switches to the yellow accent */
.topbar, .hero, .section--dark, .cta-band, .site-footer { --focus: var(--accent); }
address { font-style: normal; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--dark-800); color: var(--white); padding: .75rem 1rem; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; font: inherit; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--dark-900); }
.btn-primary:hover { background: var(--accent-hover); color: var(--dark-900); }
.btn-outline { border-color: var(--dark-800); color: var(--dark-800); background: transparent; }
.btn-outline:hover { background: var(--dark-800); color: var(--white); }
.btn-ghost { border-color: rgb(255 255 255 / 70%); color: var(--white); background: transparent; }
.btn-ghost:hover { background: var(--white); color: var(--dark-800); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-row--center { justify-content: center; }

/* ---------- top bar & header ---------- */
.topbar { background: var(--dark-900); color: #cdd2d7; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 36px; }
.topbar-note { margin: 0; display: none; }
.topbar-links { display: flex; gap: 1.25rem; list-style: none; margin-left: auto; }
.topbar a { color: #eceef1; text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--steel-100); box-shadow: 0 1px 0 rgb(22 25 29 / 4%);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--dark-800); }
.logo-img { height: 48px; width: auto; }
@media (min-width: 960px) { .logo-img { height: 56px; } }
.logo-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px;
  background: var(--dark-800); color: var(--white); font-weight: 700; font-size: .95rem; letter-spacing: .04em;
  box-shadow: inset 0 -4px 0 var(--accent);
}
.logo-text { font-weight: 700; font-size: 1.05rem; line-height: 1.15; max-width: 12ch; }

.nav-toggle {
  display: none; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .75rem;
  border: 1px solid var(--steel-300); border-radius: var(--radius-sm); background: var(--white);
  font: inherit; font-weight: 700; color: var(--dark-800); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav-list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; }
.nav-list > li > a:not(.btn) {
  display: inline-block; padding: .6rem .25rem; font-weight: 700; color: var(--dark-800); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav-list > li > a:not(.btn):hover { color: var(--accent-ink); }
.nav-list > li > a[aria-current="page"]:not(.btn) { border-bottom-color: var(--accent); }
.has-submenu { position: relative; display: flex; align-items: center; }
.submenu-toggle {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 4px;
  background: transparent; color: var(--dark-800); cursor: pointer;
}
.submenu-toggle svg { transition: transform .2s; }
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.submenu { list-style: none; }
.link-meta { font-size: .85em; color: var(--muted); }
.site-footer .link-meta { color: #bcc2c9; }
.submenu a { display: block; padding: .5rem .75rem; color: var(--text); text-decoration: none; border-radius: 4px; font-size: .95rem; }
.submenu a:hover, .submenu a:focus-visible { background: var(--steel-100); color: var(--accent-ink); }

/* JS enhanced mobile navigation */
@media (max-width: 959px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; inset: 100% 0 auto 0; background: var(--white);
    border-bottom: 1px solid var(--steel-300); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 72px); overflow-y: auto; display: none;
  }
  .js .site-nav.is-open { display: block; }
  .js .nav-list { flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1.25rem; gap: 0; }
  .js .nav-list > li { border-bottom: 1px solid var(--steel-100); }
  .js .nav-list > li:last-child { border-bottom: 0; padding-top: 1rem; }
  .js .nav-list > li > a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 0; }
  .js .nav-list > li > a[aria-current="page"]:not(.btn) { color: var(--accent-ink); }
  .js .has-submenu { flex-wrap: wrap; justify-content: space-between; }
  .js .submenu-toggle { width: 44px; height: 44px; }
  .js .submenu { display: none; width: 100%; padding-bottom: .75rem; }
  .js .submenu.is-open { display: block; }
  .nav-cta { width: 100%; }
  .submenu-toggle { display: none; }
  .js .submenu-toggle { display: grid; }
  html:not(.js) .submenu { display: none; }
}
@media (min-width: 960px) {
  .topbar-note { display: block; }
  .logo-text { max-width: none; }
  .submenu {
    position: absolute; top: calc(100% + .25rem); left: -1rem; width: 320px; padding: .5rem;
    background: var(--white); border: 1px solid var(--steel-100); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .15s, transform .15s, visibility .15s;
  }
  .submenu--narrow { width: 300px; }
  .has-submenu:hover .submenu,
  .has-submenu:focus-within .submenu,
  .submenu.is-open { opacity: 1; visibility: visible; transform: none; }
  .has-submenu::after { content: ""; position: absolute; inset: 100% 0 auto; height: .5rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--white);
  background:
    linear-gradient(115deg, rgb(22 25 29 / 96%) 0%, rgb(31 35 40 / 90%) 45%, rgb(47 53 61 / 75%) 100%),
    repeating-linear-gradient(135deg, rgb(255 255 255 / 3%) 0 2px, transparent 2px 22px),
    var(--dark-800);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent) 40%, transparent);
}
.bg-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* Photo overlay: sits between the photo (z -2) and the text so headings stay readable */
.hero:has(.bg-photo)::before,
.section--dark:has(.bg-photo)::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(22 25 29 / 82%);
}
@media (min-width: 860px) {
  .hero:has(.bg-photo)::before {
    background: linear-gradient(100deg, rgb(22 25 29 / 94%) 0%, rgb(22 25 29 / 78%) 45%, rgb(22 25 29 / 30%) 100%);
  }
  .section--dark:has(.bg-photo)::before { background: rgb(22 25 29 / 82%); }
}
/* Focal points per photo */
.bg-photo--home { object-position: 75% 60%; }
.bg-photo--careers { object-position: 50% 30%; }
.bg-photo--about, .bg-photo--contact { object-position: 50% 45%; }
.bg-photo--service { object-position: 50% 55%; }
.hero-inner { position: relative; padding-block: clamp(3rem, 9vw, 5.5rem); }
.hero--home .hero-inner { padding-block: clamp(4rem, 13vw, 9rem); max-width: var(--container); }
.hero--home h1 { max-width: 18ch; }
.hero--compact .hero-inner { padding-block: clamp(2rem, 6vw, 3.5rem); }
.hero h1 { color: var(--white); }
.hero .lead { max-width: 62ch; font-size: clamp(1.05rem, 2vw, 1.25rem); color: #dfe2e6; }
.hero-title-row { display: flex; align-items: center; gap: 1rem; }
.hero-title-row .icon-lg { color: var(--accent); flex: none; }
.hero-title-row h1 { margin: 0; }
.hero .btn-row { margin-top: 2rem; }
.eyebrow {
  display: inline-block; margin-bottom: .9rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-ink);
}
.hero .eyebrow, .eyebrow--light { color: var(--accent); }

.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; gap: .25rem; margin-bottom: 1.25rem; font-size: .9rem; color: #bcc2c9; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: #8c949d; }
.breadcrumb a { color: #eceef1; }

/* ---------- stats ---------- */
.stats { background: var(--white); border-bottom: 1px solid var(--steel-100); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.stat { padding: 1.5rem 1rem; text-align: center; border-right: 1px solid var(--steel-100); border-bottom: 1px solid var(--steel-100); }
.stat:nth-child(2n) { border-right: 0; }
.stat dt { font-size: .85rem; color: var(--muted); font-weight: 700; }
.stat dd { margin: 0; order: -1; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; color: var(--dark-800); letter-spacing: -.02em; }
.stat { display: flex; flex-direction: column-reverse; }
@media (min-width: 720px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0; }
  .stat:nth-child(2n) { border-right: 1px solid var(--steel-100); }
  .stat:last-child { border-right: 0; }
}

/* ---------- sections & grids ---------- */
.section { padding-block: var(--section); position: relative; isolation: isolate; }
.section--muted { background: var(--steel-100); }
.section--dark { background: var(--dark-800); color: #dcdfe3; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section-head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }
.section-foot { margin: 2.5rem 0 0; text-align: center; }

.grid { display: grid; gap: 1.25rem; list-style: none; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid { gap: 1.5rem; }
}
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .split--wide-left { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .split--form { grid-template-columns: 1fr 1.6fr; align-items: start; }
}

/* ---------- cards ---------- */
.card {
  position: relative; background: var(--white); border: 1px solid var(--steel-100); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card--accent { border-top: 4px solid var(--accent); }
.service-card { display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-card h3 { margin-top: 1rem; font-size: 1.15rem; }
.service-card h3 a { color: var(--dark-800); text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.service-card h3 a:focus-visible { outline: none; }
.service-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.service-card p { color: var(--muted); margin-bottom: 1rem; }
.card-more { margin-top: auto; font-weight: 700; color: var(--accent-ink); font-size: .95rem; }
.icon { width: 24px; height: 24px; }
.icon-lg { width: 56px; height: 56px; }
.card-icon {
  width: 52px; height: 52px; padding: 12px; border-radius: 12px;
  background: linear-gradient(135deg, var(--dark-800), var(--dark-600)); color: var(--white);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.feature { padding: 1.5rem 0 0; border-top: 3px solid var(--dark-800); }
.feature p { color: var(--muted); }

.check-list { list-style: none; display: grid; gap: .75rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071a33' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.check-list--light li { color: #e4e7ea; }
.check-list--light strong { color: var(--white); }

.callout {
  display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.5rem; padding: 1rem;
  background: var(--steel-100); border-left: 4px solid var(--accent); border-radius: var(--radius-sm);
}
.callout .icon-lg { width: 36px; height: 36px; flex: none; color: var(--dark-700); }
.callout p { margin: 0; font-size: .95rem; }

/* detailed service pages */
.highlights { gap: 2rem 3rem; }
.highlight { padding-top: 1.25rem; border-top: 3px solid var(--accent); }
.highlight p { margin: 0; color: #dcdfe3; }
.portfolio-group h3 { margin-bottom: .35rem; }
.portfolio-desc { color: var(--muted); font-size: .95rem; }
.portfolio-items { list-style: none; display: grid; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--steel-100); }
.portfolio-items strong { color: var(--dark-800); }
.portfolio-sub { list-style: none; margin-top: .35rem; display: grid; gap: .2rem; }
.portfolio-sub li { position: relative; padding-left: 1.1rem; color: var(--steel-700); font-size: .95rem; }
.portfolio-sub li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--dark-700); }
.portfolio + .callout, .portfolio-outro + .callout { margin-top: 2rem; }
.split > .callout { grid-column: 1 / -1; margin-top: 0; }
.prose--wide { max-width: 80ch; }
.portfolio-item-text { margin: .25rem 0 0; color: var(--steel-700); font-size: .95rem; }
.portfolio-bullets { margin-top: .75rem; }
.portfolio-desc + .portfolio-desc { margin-top: -.25rem; }
.portfolio-outro { max-width: 760px; margin: 2rem auto 0; text-align: center; color: var(--muted); }
.highlight p + p { margin-top: .75rem; }
.closing-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.closing-inner p { margin: 0 auto; font-size: 1.1rem; color: #dcdfe3; }
.closing-inner p + p { margin-top: .75rem; }
.closing-title { color: var(--white); }
.closing-inner::before { content: ""; display: block; width: 56px; height: 4px; margin: 0 auto 1.5rem; background: var(--accent); border-radius: 2px; }
.service-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.service-photo--placeholder {
  display: grid; place-items: center; color: rgb(255 255 255 / 85%);
  background:
    repeating-linear-gradient(135deg, rgb(255 255 255 / 5%) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, var(--dark-800), var(--dark-600));
}
.service-photo--placeholder .icon { width: 30%; height: auto; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose h2:first-child, .prose .eyebrow + h2 { margin-top: 0; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }
.legal-preamble { font-weight: 700; font-size: .95rem; letter-spacing: .01em; }
.legal-address { margin: 0 0 1em; padding: 1rem 1.25rem; border-left: 4px solid var(--accent); background: var(--steel-100); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose ol { padding-left: 1.5rem; margin-bottom: 1em; }
.notice { padding: .75rem 1rem; background: var(--accent-tint); border: 1px solid var(--accent); border-radius: var(--radius-sm); font-size: .95rem; }

/* timeline */
.timeline { list-style: none; border-left: 3px solid var(--steel-300); padding-left: 1.5rem; display: grid; gap: 1.5rem; }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1.5rem - 9px); top: .35rem; width: 15px; height: 15px;
  border-radius: 50%; background: var(--accent); border: 3px solid var(--dark-800);
}
.timeline-year { display: block; font-weight: 700; color: var(--dark-800); font-size: 1.1rem; }
.timeline p { margin: 0; color: var(--muted); }

.values { margin-top: 2rem; }
.values li { padding: 1.25rem; border-left: 4px solid var(--dark-700); background: var(--white); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.values h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.values p { margin: 0; color: var(--muted); }

.person { text-align: center; }
.avatar {
  display: grid; place-items: center; width: 112px; height: 112px; margin: 0 auto 1rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--dark-700), var(--dark-900)); color: var(--white);
  font-weight: 700; font-size: 1.6rem; letter-spacing: .05em; box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--accent);
}
.person h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.person p { color: var(--muted); margin: 0; }

.cert {
  display: flex; flex-direction: column; gap: .2rem; padding: 1.25rem 1.5rem;
  border: 1px solid var(--steel-300); border-radius: var(--radius); background: var(--white);
}
.cert strong { font-size: 1.25rem; color: var(--dark-800); }
.cert span { color: var(--muted); }

.steps { counter-reset: step; list-style: none; }
.steps li { counter-increment: step; position: relative; padding: 1.5rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: .75rem;
  border-radius: 50%; background: var(--accent); color: var(--dark-900); font-weight: 700;
}
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }
.fine-print { margin-top: 2rem; font-size: .9rem; color: var(--muted); }

.badge {
  display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; background: var(--steel-100); color: var(--dark-700);
}

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(110deg, var(--dark-800), var(--dark-600)); color: #dfe2e6; padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta-inner { display: flex; flex-direction: column; gap: 1.5rem; }
.cta-band h2 { color: var(--white); font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .4rem; }
.cta-band p { margin: 0; }
@media (min-width: 860px) { .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- map ---------- */
.map { margin: 0 0 2rem; }
.map svg { width: 100%; height: auto; background: linear-gradient(180deg, #e3e6e9, #eef0f2); border-radius: var(--radius); border: 1px solid var(--steel-300); }
.map-land { fill: #c4c9cf; stroke: #f6f7f8; stroke-width: .6; }
.map-marker { cursor: pointer; }
.map-dot { fill: var(--dark-700); stroke: var(--white); stroke-width: 2.5; transition: fill .15s; }
.map-marker.is-hq .map-dot { fill: var(--accent); stroke: var(--dark-900); }
.map-pulse { fill: var(--accent); opacity: .25; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.map-marker:not(.is-hq) .map-pulse { fill: var(--dark-600); opacity: .18; }
.map-marker text { font: 700 15px var(--font); fill: var(--dark-900); paint-order: stroke; stroke: rgb(255 255 255 / 90%); stroke-width: 4px; stroke-linejoin: round; }
.map-marker:hover .map-dot, .map-marker:focus-visible .map-dot { fill: var(--accent); stroke: var(--dark-900); }
.map-marker:focus-visible { outline: none; }
.map-marker:focus-visible text { text-decoration: underline; }
.map figcaption { margin-top: .5rem; font-size: .85rem; color: var(--muted); text-align: center; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(1.6); opacity: 0; } }
@media (max-width: 719px) { .map-scroll { overflow-x: auto; border-radius: var(--radius); } .map-scroll svg { width: 720px; max-width: none; } }

.location-card h3 { margin: .6rem 0 .5rem; }
.location-card address { color: var(--muted); margin-bottom: .75rem; }
.location-name { margin: 0 0 .4rem; font-weight: 700; color: var(--dark-700); }
.location-phones { list-style: none; display: grid; gap: .2rem; font-weight: 700; }
.location-card:target { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- forms ---------- */
.form-card { padding: clamp(1.25rem, 4vw, 2.25rem); }
.form-grid { display: grid; gap: 1rem 1.25rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: .35rem; font-weight: 700; font-size: .95rem; color: var(--dark-800); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem; font: inherit; color: var(--text);
  background: var(--white); border: 1.5px solid var(--steel-300); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--dark-600); box-shadow: 0 0 0 3px rgb(66 74 83 / 20%); outline: none; }
.field [aria-invalid="true"] { border-color: #b91c1c; }
.field-error { margin: .35rem 0 0; color: #b91c1c; font-size: .9rem; font-weight: 700; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; align-items: start; }
.field--check input { width: 22px; min-height: 22px; height: 22px; margin-top: .2rem; accent-color: var(--dark-700); }
.field--check label { font-weight: 400; color: var(--text); }
.field--check .field-error { grid-column: 2; }
.req { color: #b91c1c; }
.form-note { font-size: .85rem; color: var(--muted); margin: 1rem 0; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1.25rem; padding: 1rem; border-radius: var(--radius-sm); font-weight: 700; }
.form-status.is-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.is-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.contact-form button[type="submit"][aria-busy="true"] { opacity: .7; cursor: progress; }

.contact-list { display: grid; gap: 1rem; margin: 0 0 1.5rem; }
.contact-list dt { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-list dd { margin: 0; font-size: 1.1rem; font-weight: 700; overflow-wrap: anywhere; }

/* ---------- careers ---------- */
.job-filters {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; padding: 1.25rem; margin-bottom: 1.5rem;
  background: var(--steel-100); border-radius: var(--radius);
}
.job-filters .field { flex: 1 1 220px; }
.job-count { color: var(--muted); font-weight: 700; }
.job-card { display: flex; flex-direction: column; gap: .75rem; }
.job-card h3 { margin: 0; font-size: 1.2rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; }
.job-card p { margin: 0; color: var(--muted); }
.job-card .job-closing { font-size: .9rem; }
.job-card .btn { align-self: flex-start; margin-top: auto; }
.job-detail { padding: clamp(1.25rem, 4vw, 2.5rem); background: var(--white); border: 1px solid var(--steel-100); border-radius: var(--radius); box-shadow: var(--shadow); }
.job-detail:focus { outline: none; }
.job-detail h2 { margin-top: .5rem; }
.job-detail h3 { margin-top: 1.75rem; font-size: 1.1rem; }
.job-detail .job-description p { max-width: 72ch; }
.job-detail .check-list { max-width: 72ch; }
.job-back { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.job-apply { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--steel-100); }
.empty-state {
  padding: 2.5rem 1.5rem; text-align: center; border: 2px dashed var(--steel-300); border-radius: var(--radius); background: var(--white);
}
.empty-state p { margin: 0 auto; max-width: 56ch; color: var(--muted); }

/* ---------- legal ---------- */
.legal-layout { display: grid; gap: 2rem; }
@media (min-width: 960px) { .legal-layout { grid-template-columns: 240px 1fr; gap: 4rem; } .legal-nav { position: sticky; top: 6rem; align-self: start; } }
.legal-nav ul { list-style: none; display: grid; gap: .25rem; }
.legal-nav a { display: block; padding: .5rem .75rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--dark-800); font-weight: 400; }
.legal-nav a:hover { background: var(--steel-100); }
.legal-nav a[aria-current="page"] { background: var(--dark-800); color: var(--white); }

/* ---------- status pages ---------- */
.status-page { padding-block: clamp(4rem, 12vw, 8rem); text-align: center; }
.status-inner { max-width: 640px; }
.status-code { font-size: clamp(3rem, 12vw, 6rem); font-weight: 700; line-height: 1; color: var(--dark-800); margin-bottom: 1rem; letter-spacing: -.03em; }
.status-page p { color: var(--muted); }
.status-page .btn-row { margin-top: 2rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark-900); color: #bcc2c9; font-size: .95rem; }
/* Brand on its own row on small screens; Company and Legal side by side.
   Wide screens: brand | (services) | company | legal on one row. */
.footer-grid { display: grid; gap: 2.5rem 2rem; padding-block: 3.5rem; }
@media (min-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-col--wide { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .footer-grid:not(:has(.footer-col--wide)) { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
  .footer-grid:not(:has(.footer-col--wide)) .footer-brand { grid-column: auto; }
}
@media (min-width: 1100px) {
  .footer-grid:has(.footer-col--wide) { grid-template-columns: 1.3fr 2fr 1fr 1fr; gap: 3rem; }
  .footer-brand, .footer-col--wide { grid-column: auto; }
}
.footer-brand p { max-width: 38ch; }
.logo--footer { color: var(--white); margin-bottom: 1rem; }
.logo--footer .logo-img { height: 60px; }
.logo--footer .logo-mark { background: var(--dark-700); }
.site-footer a { color: #eceef1; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-heading { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin: 0 0 1rem; }
.footer-links { list-style: none; display: grid; gap: .5rem; }
.footer-links + .footer-heading { margin-top: 2rem; }
@media (min-width: 540px) { .footer-links--cols { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 10%); font-size: .85rem; }
.footer-bottom-inner { display: flex; flex-direction: column; gap: .25rem; padding-block: 1.25rem; }
.footer-bottom p { margin: 0; }
@media (min-width: 860px) { .footer-bottom-inner { flex-direction: row; justify-content: space-between; } }

/* ---------- print ---------- */
@media print {
  .topbar, .site-header, .site-footer, .cta-band, .nav-toggle, .legal-nav { display: none !important; }
  .hero { background: none; color: #000; }
  .hero h1, .hero .lead { color: #000; }
}

/* =====================================================================
   Clean corporate layer: white space, light display type, flat surfaces,
   hairline dividers, full-bleed photography and a restrained yellow accent.
   ===================================================================== */
:root {
  --radius: 4px;
  --radius-sm: 2px;
  --line: #e3e6ea;
  --shadow: none;
  --shadow-lg: 0 10px 30px rgb(22 25 29 / 8%);
  --section: clamp(4.5rem, 10vw, 8rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --muted-bg: #f5f6f7;
}
.section--muted { background: var(--muted-bg); }

/* Typography: large, light headlines; bold kept for small headings */
h1, h2 { font-weight: 300; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.04; }
h2, .h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.08; }
h3, .h3 { font-weight: 700; letter-spacing: -.005em; }
.hero--page h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.section-head { max-width: 780px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p:last-child { font-size: 1.15rem; line-height: 1.6; }
.lead { font-weight: 300; }

/* Eyebrow: plain small caps with a short accent rule */
.eyebrow { display: inline-flex; align-items: center; gap: .75rem; font-size: .75rem; letter-spacing: .16em; color: var(--steel-600); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.hero .eyebrow, .eyebrow--light, .section--dark .eyebrow { color: #e4e7ea; }

/* Buttons: rectangular and flat; arrows on primary actions */
.btn { border-radius: var(--radius-sm); padding-inline: 1.5rem; transition: background-color .2s, color .2s, border-color .2s; }
.btn:hover { transform: none; }
.btn-primary { background: var(--accent); color: var(--dark-900); }
.btn-primary:hover { background: var(--white); color: var(--dark-900); }
.btn-primary:not(.nav-cta)::after { content: "→"; transition: transform .2s var(--ease); }
.btn-primary:not(.nav-cta):hover::after { transform: translateX(4px); }
.btn-outline { border-width: 1px; }
.btn-ghost { border-width: 1px; border-color: rgb(255 255 255 / 55%); }
.nav-cta { background: var(--dark-900); color: var(--white); }
.nav-cta:hover { background: var(--accent); color: var(--dark-900); }
/* On light backgrounds the primary hover goes dark instead of white */
.section:not(.section--dark) .btn-primary:hover, .job-detail .btn-primary:hover, .contact-form .btn-primary:hover { background: var(--dark-900); color: var(--white); }

/* Header: solid white, hairline divider, quiet navigation */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); box-shadow: none; transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgb(22 25 29 / 6%); }
.header-inner { min-height: 80px; }
.nav-list { gap: .25rem 1.6rem; }
.nav-list > li > a:not(.btn) { font-weight: 400; border-bottom-width: 2px; }
@media (min-width: 960px) {
  .submenu { border-radius: var(--radius); border-color: var(--line); box-shadow: var(--shadow-lg); padding: .5rem; }
  .submenu a { border-radius: var(--radius-sm); }
}

/* Hero: full-bleed photography, generous height, minimal chrome */
.hero::after { display: none; }
.hero--home { min-height: min(88vh, 880px); display: flex; align-items: center; }
.hero--home .hero-inner { padding-block: clamp(6rem, 14vw, 10rem); }
.hero--home h1 { max-width: 14ch; }
.hero .lead { font-size: clamp(1.15rem, 2vw, 1.4rem); max-width: 56ch; color: #eceef1; }
.hero .btn-row { margin-top: 2.5rem; }
.hero--page .hero-inner { padding-block: clamp(4rem, 10vw, 7rem); }
.hero--compact .hero-inner { padding-block: clamp(3rem, 7vw, 4.5rem); }
.hero:has(.bg-photo)::before {
  background: linear-gradient(180deg, rgb(22 25 29 / 50%) 0%, rgb(22 25 29 / 70%) 100%);
}
@media (min-width: 860px) {
  .hero:has(.bg-photo)::before {
    background: linear-gradient(90deg, rgb(22 25 29 / 82%) 0%, rgb(22 25 29 / 55%) 40%, rgb(22 25 29 / 10%) 75%, rgb(22 25 29 / 0%) 100%);
  }
  .hero--page:has(.bg-photo)::before {
    background: linear-gradient(90deg, rgb(22 25 29 / 86%) 0%, rgb(22 25 29 / 70%) 45%, rgb(22 25 29 / 35%) 80%, rgb(22 25 29 / 20%) 100%);
  }
}
.hero:has(.bg-photo) h1, .hero:has(.bg-photo) .lead, .hero:has(.bg-photo) .breadcrumb { text-shadow: 0 1px 14px rgb(0 0 0 / 35%); }
.hero:not(:has(.bg-photo)) { background: linear-gradient(110deg, var(--dark-900) 0%, var(--dark-800) 60%, var(--dark-700) 100%); }
.hero-title-row .icon-lg { width: 44px; height: 44px; }

/* Stats: a simple row under the hero, divided by hairlines */
.stats { border-bottom: 1px solid var(--line); }
.stat { padding: clamp(1.75rem, 4vw, 2.75rem) 1rem; text-align: left; border-color: var(--line); }
.stat dd { font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 300; letter-spacing: -.03em; line-height: 1; margin-bottom: .5rem; }
.stat dt { font-weight: 400; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }
@media (min-width: 720px) { .stat { padding-left: clamp(1rem, 3vw, 2.5rem); } }

/* Cards become flat panels with hairline borders */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; padding: clamp(1.5rem, 2.6vw, 2rem); }
.card--accent { border-top: 2px solid var(--accent); }
.grid { gap: clamp(1.25rem, 2.5vw, 2rem); }

/* Service listings: open grid with top rules, no boxes */
.card-list > .service-card {
  background: transparent; border: 0; border-top: 1px solid var(--dark-800); border-radius: 0;
  padding: 1.5rem 0 .5rem; transition: none;
}
.service-card::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 3px; width: 0; background: var(--accent);
  transition: width .35s var(--ease);
}
.service-card:hover::before, .service-card:focus-within::before { width: 100%; }
.service-card:hover { transform: none; box-shadow: none; }
.service-card h3 { margin-top: 1.1rem; font-size: 1.2rem; }
.service-card h3 a::after { border-radius: 0; }
.service-card:focus-within { outline-offset: 6px; }
.card-icon { width: 30px; height: 30px; padding: 0; border-radius: 0; background: none; color: var(--dark-800); box-shadow: none; }
.card-more { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dark-800); }
.service-card:hover .card-more { color: var(--accent-ink); }

/* Feature list beside a photo (home "Why TES") */
.feature-split { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
@media (min-width: 960px) { .feature-split { grid-template-columns: 1fr 1fr; } }
.feature-split .feature-list { display: grid; gap: 0; list-style: none; }
.feature-split .feature { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.25rem; padding: 1.5rem 0; border: 0; border-top: 1px solid var(--line); }
.feature-split .feature:last-child { border-bottom: 1px solid var(--line); }
.feature-split .feature .card-icon { grid-row: span 2; margin-top: .15rem; }
.feature-split .feature h3 { margin: 0; }
.feature-split .feature p { margin: 0; }
.feature-photo { position: relative; margin: 0; overflow: hidden; }
.feature-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1s var(--ease); }
.feature-photo:hover img { transform: scale(1.03); }

/* Lists: simple accent checks instead of filled badges */
.check-list li { padding-left: 1.75rem; }
.check-list li::before {
  width: 1rem; height: 1rem; top: .35em; border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a5d00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5 11-11'/%3E%3C/svg%3E") center / contain no-repeat;
}
.check-list--light li::before, .section--dark .check-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd200' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5 11-11'/%3E%3C/svg%3E");
}
.portfolio-sub li::before { border-radius: 0; width: 6px; height: 6px; box-shadow: none; background: var(--accent-ink); }
.highlight { border-top: 1px solid rgb(255 255 255 / 25%); padding-top: 1.5rem; }
.highlight .h3 { font-weight: 300; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.callout { border-left-width: 2px; background: var(--muted-bg); border-radius: 0; }
.values li { border-left-width: 2px; border-radius: 0; }
.avatar { box-shadow: none; }

/* Photos: square-cornered, full colour, slow zoom on hover */
.service-photo { border-radius: 0; box-shadow: none; transition: transform 1s var(--ease); }
.split > div:has(> .service-photo) { overflow: hidden; }
.split > div:hover > .service-photo { transform: scale(1.03); }
.section--dark:has(.bg-photo)::before { background: rgb(22 25 29 / 76%); }
@media (min-width: 860px) {
  .section--dark:has(.bg-photo)::before { background: linear-gradient(90deg, rgb(22 25 29 / 88%) 0%, rgb(22 25 29 / 72%) 55%, rgb(22 25 29 / 60%) 100%); }
}
.section--dark:has(.bg-photo) h2, .section--dark:has(.bg-photo) p, .section--dark:has(.bg-photo) li { text-shadow: 0 1px 12px rgb(0 0 0 / 45%); }
.map svg { border-radius: 0; border-color: var(--line); }

/* Call to action: flat charcoal band, large light headline */
.cta-band { background: var(--dark-900); padding-block: clamp(3.5rem, 8vw, 6rem); }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 300; }
.cta-band p { color: #c9ced4; font-size: 1.05rem; }

/* Footer */
.site-footer { background: var(--dark-900); }
.footer-grid { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.footer-bottom { border-top-color: rgb(255 255 255 / 8%); }

/* Two plain white sections in a row: don't double the spacing between them */
.section:not(.section--muted):not(.section--dark):not(.closing) + .section:not(.section--muted):not(.section--dark):not(.closing) { padding-top: 0; }

/* Scroll reveal (added by main.js only when motion is allowed) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (min-width: 860px) {
  .hero--home:has(.bg-photo)::before {
    background: linear-gradient(90deg, rgb(22 25 29 / 90%) 0%, rgb(22 25 29 / 78%) 38%, rgb(22 25 29 / 30%) 68%, rgb(22 25 29 / 0%) 100%);
  }
}
.hero--home .lead { max-width: 48ch; }
.prose h2 { font-size: clamp(1.7rem, 2.8vw, 2.25rem); margin-bottom: .75em; }
.prose h3 { margin-top: 1.75rem; font-size: 1.2rem; }
.prose h4 { margin: 1.25rem 0 .4rem; font-size: 1rem; font-weight: 700; }
.legal-defs li { margin-bottom: .9em; }

/* About: archive photo gallery (kept in original sepia) */
.archive-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); max-width: 720px; }
.archive-item { margin: 0; }
.archive-item img { width: 100%; height: auto; object-fit: cover; filter: sepia(.15); }
.archive-item figcaption { margin-top: .6rem; font-size: .9rem; color: var(--muted); }
@media (max-width: 759px) { .archive-item--tall img { aspect-ratio: 4 / 3; object-position: 50% 70%; } }
@media (min-width: 760px) {
  .archive-grid { grid-template-columns: 1fr 1.6fr; grid-template-rows: auto auto; }
  .archive-item--tall { grid-row: span 2; display: flex; flex-direction: column; }
  .archive-item--tall img { flex: 1; min-height: 0; height: 100%; }
  .archive-item:not(.archive-item--tall) img { height: auto; aspect-ratio: 16 / 9; }
}

/* Footer: aerial photo of Port of Spain under a deep charcoal overlay */
.site-footer { position: relative; isolation: isolate; overflow: hidden; }
.site-footer .bg-photo { object-position: 50% 40%; }
.site-footer:has(.bg-photo)::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(22 25 29 / 82%) 0%, rgb(22 25 29 / 90%) 55%, rgb(22 25 29 / 96%) 100%);
}

/* Photo inside a content section */
.section-photo { margin: 2rem 0 0; overflow: hidden; }
.section-photo img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.section-photo:hover img { transform: scale(1.03); }
.section-photo figcaption { margin-top: .6rem; font-size: .9rem; color: var(--muted); }

/* Contact: head office block */
.contact-hq { display: grid; gap: 2rem; }
.contact-hq h2 { margin-bottom: .75rem; }
.contact-hq .fine-print { margin: 0; max-width: 46ch; }
.contact-list--row { margin: 0; gap: 1.5rem; }
.contact-list--row > div { padding-top: 1rem; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .contact-list--row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .contact-hq { grid-template-columns: 1fr 1.5fr; align-items: end; gap: 4rem; } }

/* Upright overview photo (e.g. a rig mast) */
.service-photo--portrait { aspect-ratio: 4 / 5; max-width: 440px; margin-inline: auto; }

/* Service Overview: one column spanning the full content width */
.overview-text { max-width: none; }

/* Per-service banner framing */
.bg-photo--coiled-tubing-services { object-position: 50% 78%; }

/* Home banner: 3-photo slideshow with slow zoom and crossfade (18s loop) */
.hero-slide { opacity: 0; animation: hero-fade 18s infinite, hero-zoom 18s infinite; will-change: opacity, transform; }
.hero-slide--1 { opacity: 1; object-position: 75% 60%; }
.hero-slide--2 { animation-delay: 6s; object-position: 40% 55%; }
.hero-slide--3 { animation-delay: 12s; object-position: 60% 15%; }
@keyframes hero-fade {
  0% { opacity: 0; } 6% { opacity: 1; } 33% { opacity: 1; } 40% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes hero-zoom {
  0% { transform: scale(1.02); } 40% { transform: scale(1.12); } 100% { transform: scale(1.12); }
}
/* the first photo must be visible straight away, before its fade-in keyframe */
.hero-slide--1 { animation-name: hero-fade-first, hero-zoom; }
@keyframes hero-fade-first {
  0% { opacity: 1; } 33% { opacity: 1; } 40% { opacity: 0; } 94% { opacity: 0; } 100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none !important; transform: none; }
  .hero-slide--2, .hero-slide--3 { display: none; }
}
.bg-photo--drilling-and-completions-fluids-services { object-position: 50% 45%; }
@media (min-width: 860px) {
  .hero--page:has(.bg-photo--drilling-and-completions-fluids-services)::before,
  .hero--page:has(.bg-photo--process-and-pipeline-services)::before,
  .hero--page:has(.bg-photo--tubing-conveyed-perforating)::before {
    background: linear-gradient(90deg, rgb(22 25 29 / 88%) 0%, rgb(22 25 29 / 80%) 55%, rgb(22 25 29 / 60%) 85%, rgb(22 25 29 / 45%) 100%);
  }
}
/* Contact: dark head office band */
.contact-hq-band .eyebrow { color: #e4e7ea; }
.contact-hq-band .fine-print { color: #bcc2c9; }
.contact-hq-band .contact-list dt { color: #bcc2c9; }
.contact-hq-band .contact-list dd, .contact-hq-band address { color: var(--white); }
.contact-hq-band .contact-list a { color: var(--white); }
.contact-hq-band .contact-list a:hover { color: var(--accent); }
.contact-hq-band .contact-list--row > div { border-top-color: rgb(255 255 255 / 20%); }
.bg-photo--wireline-special-services { object-position: 50% 30%; }
.bg-photo--process-and-pipeline-services { object-position: 50% 45%; }
.location-email { margin: .5rem 0 0; font-weight: 700; overflow-wrap: anywhere; }
@media (min-width: 720px) { .contact-list--row:has(> div:nth-child(4)) { grid-template-columns: repeat(2, 1fr); } }
.contact-list--row dd { overflow-wrap: normal; white-space: nowrap; }
.bg-photo--slickline-services { object-position: 50% 55%; }
.bg-photo--treating-chemicals { object-position: 50% 8%; }
.bg-photo--perforating-services { object-position: 50% 50%; }
.bg-photo--tubing-conveyed-perforating { object-position: 50% 45%; }
.bg-photo--drilling-tools { object-position: 50% 30%; }
.bg-photo--open-hole-services { object-position: 50% 40%; }
