/* TFD Site Services — site styles */
:root {
  --navy: #12283F;
  --navy-deep: #0C1C2D;
  --navy-mid: #1B3958;
  --blue: #0071C1;       /* logo blue */
  --blue-dark: #00589A;
  --grey: #7F7F7F;       /* logo grey */
  --accent: #F28C28;     /* safety orange: use with navy text only */
  --accent-text: #A84A08;/* orange for text on light grounds */
  --ground: #F4F3EF;
  --white: #FFFFFF;
  --ink: #16202B;
  --muted: #46535F;
  --muted-light: #C9D3DE;
  --line: #D5D8DB;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--navy); color: var(--white); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--navy); padding: 12px 18px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Type */
.eyebrow {
  margin: 0 0 12px;
  font-size: 14px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent-text);
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(38px, 4.6vw, 52px); color: var(--navy); }
.section--dark h2 { color: var(--white); }
h3 { font-size: 28px; color: var(--navy); line-height: 1.1; overflow-wrap: anywhere; hyphens: auto; }
.lead { color: var(--muted); max-width: 640px; margin: 20px 0 0; }
.section--dark .lead { color: var(--muted-light); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.section-head > div { max-width: 680px; }
.section-head .lead { margin: 0; max-width: 420px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  font-family: var(--body); font-weight: 600; font-size: 16px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn--accent { background: var(--accent); color: var(--navy); }
.btn--accent:hover { background: #F5A04E; color: var(--navy); }
.btn--outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline:hover { background: var(--white); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--blue-dark); color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 4px solid var(--accent);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo { display: block; flex: none; }
.logo img { width: 128px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--blue); }
.nav .btn { color: var(--navy); font-size: 15px; padding: 10px 18px; min-height: 44px; }
.nav-toggle {
  display: none; background: transparent; border: 2px solid var(--navy); color: var(--navy);
  min-width: 48px; min-height: 44px; cursor: pointer; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px var(--body); padding: 0 12px;
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 4px solid var(--accent); padding: 8px 24px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 16px; border-bottom: 0; justify-content: center; }
}

/* Hero */
.hero { background: var(--navy); color: var(--white); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 88px; }
.hero__text { flex: 1 1 520px; min-width: 0; }
.hero h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1; margin: 0 0 24px; }
.hero p.hero__sub { margin: 0 0 36px; font-size: 19px; color: var(--muted-light); max-width: 580px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { flex: 1 1 420px; min-width: 0; position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; right: -12px; bottom: -12px; width: 40%; height: 40%;
  border-right: 6px solid var(--accent); border-bottom: 6px solid var(--accent); pointer-events: none;
}

/* Commitment strip */
.strip { background: var(--blue-dark); color: var(--white); }
.strip ul {
  list-style: none; margin: 0 auto; padding: 22px 24px; max-width: var(--wrap);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 32px;
  font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: 2px; text-transform: uppercase;
}

/* About */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about__media { flex: 1 1 420px; min-width: 0; }
.about__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about__text { flex: 1 1 480px; min-width: 0; }
.about__text p { color: var(--muted); }
.pillars { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
.pillars li { padding-left: 20px; border-left: 4px solid var(--blue); }
.pillars strong { display: block; font-family: var(--display); font-size: 22px; text-transform: uppercase; color: var(--navy); letter-spacing: .5px; }
.pillars span { color: var(--muted); font-size: 16px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.services h3 { font-size: 26px; }
.card { background: var(--white); padding: 32px; border-top: 4px solid var(--blue); display: flex; flex-direction: column; gap: 14px; }
.card__num { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--accent-text); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card--cta { background: var(--navy); border-top-color: var(--accent); color: var(--white); text-decoration: none; justify-content: space-between; min-height: 220px; }
.card--cta h3 { color: var(--white); }
.card--cta span { color: var(--accent); font-weight: 600; }
.card--cta:hover { background: var(--navy-mid); color: var(--white); }

/* Equipment */
.equipment { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 40px; }
.equipment li { padding: 16px 0 16px 28px; border-bottom: 1px solid var(--line); position: relative; }
.equipment li::before { content: ""; position: absolute; left: 0; top: 25px; width: 12px; height: 4px; background: var(--accent); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.project { background: var(--navy-mid); color: var(--white); display: flex; flex-direction: column; }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project__body { padding: 28px; }
.project h3 { color: var(--white); font-size: 26px; margin-bottom: 10px; }
.project p { margin: 0; color: var(--muted-light); font-size: 16px; }

/* Why */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.why > div { border-top: 2px solid var(--navy); padding-top: 24px; }
.why h3 { font-size: 30px; margin-bottom: 12px; }
.why p { margin: 0; color: var(--muted); }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.partner { background: var(--white); padding: 32px; border: 1px solid var(--line); }
.partner__tag { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--blue-dark); }
.partner h3 { font-size: 26px; margin-bottom: 16px; }
.partner ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 16px; }
.partner li + li { margin-top: 6px; }

/* HSEQ */
.hseq { display: flex; flex-wrap: wrap; gap: 56px; }
.hseq__intro { flex: 1 1 420px; min-width: 0; }
.hseq__intro p { color: var(--muted-light); }
.hseq__grid { flex: 1 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.hseq__item { border: 1px solid #3E5D7D; padding: 24px; }
.hseq__item h3 { color: var(--white); font-size: 22px; margin-bottom: 8px; }
.hseq__item p { margin: 0; color: var(--muted-light); font-size: 15px; }
@media (max-width: 560px) { .hseq__grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact__info { flex: 1 1 360px; min-width: 0; }
.contact__info > p { color: var(--muted); }
.contact__list { display: grid; gap: 22px; margin-top: 32px; }
.contact__label { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #5E6A75; }
.contact__list a { font-weight: 600; }
.contact__form { flex: 1 1 480px; min-width: 0; background: var(--ground); padding: 36px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  border: 1px solid #8A949D; background: var(--white); padding: 12px; min-height: 48px; width: 100%;
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--navy); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { margin: 0; font-size: 14px; color: var(--muted); }
.form .btn { justify-self: start; }
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .contact__form { padding: 24px; }
}

/* Footer */
.site-footer { background: var(--navy-deep); color: #A9BACB; font-size: 15px; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid #23384F; }
.footer-top img { width: 140px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.footer-nav a, .site-footer a { color: var(--white); text-decoration: none; }
.footer-nav a:hover, .site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; }

/* Simple pages */
.page { padding: 96px 0; min-height: 60vh; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(40px, 5vw, 60px); color: var(--navy); margin-bottom: 24px; }
.page h2 { font-size: 30px; margin: 40px 0 12px; }
.page p, .page li { color: var(--muted); }
