/* MWGMG Jubilee — corporate site. Plain CSS, no framework. */
:root {
  --navy: #0e2a47;
  --navy-deep: #0a1f36;
  --gold: #c08f2a;
  --gold-soft: #f3e7c8;
  --paper: #ffffff;
  --tint: #edf1f6;
  --ink: #1d2c3d;
  --muted: #44566b;
  --line: #d7dfe8;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--navy); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px;
  transition: top 0.15s ease;
}
.skip:focus { top: 12px; color: #fff; }

/* Top bar */
.topbar { background: var(--navy-deep); color: #cfd9e4; font-size: 0.85rem; }
.topbar-inner {
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center;
  padding-top: 8px; padding-bottom: 8px;
}
.topbar a { color: #fff; }
.topbar .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--navy); color: var(--gold);
  font-family: var(--serif); font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }
.brand-text small { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.04em; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-size: 0.95rem; font-weight: 600;
  padding: 8px 12px; border-radius: 6px;
}
.site-nav a:hover { background: var(--tint); }
.nav-cta { background: var(--navy); color: #fff !important; margin-left: 8px; }
.nav-cta:hover { background: var(--navy-deep) !important; }
.nav-toggle { display: none; }

/* Hero */
.hero { background: var(--navy); color: #eef2f7; }
.hero-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px;
  padding-top: 64px; padding-bottom: 64px;
}
.hero-eyebrow { color: var(--gold-soft); font-size: 0.92rem; font-weight: 600; margin-bottom: 12px; }
.hero h1 { color: #fff; }
.lede { font-size: 1.12rem; color: #d5dde8; max-width: 36em; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin: 24px 0 32px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 12px 24px; border-radius: 7px; border: 1px solid transparent; cursor: pointer;
}
.btn-gold { background: var(--gold); color: #1a1405; }
.btn-gold:hover { background: #d2a13a; }
.text-link { color: #fff; font-weight: 600; }
.hero-facts { display: grid; gap: 12px; margin: 0; }
.hero-facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; border-top: 1px solid rgba(255,255,255,0.18); padding-top: 12px; }
.hero-facts dt { color: var(--gold-soft); font-size: 0.85rem; font-weight: 700; }
.hero-facts dd { margin: 0; font-size: 0.95rem; }
.hero-panel { background: #fff; color: var(--ink); border-radius: 10px; padding: 28px; align-self: start; }
.hero-panel h2 { font-size: 1.05rem; font-family: var(--sans); text-transform: none; color: var(--muted); margin-bottom: 16px; }
.hero-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.hero-panel li { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.hero-panel li:first-child { border-top: 0; padding-top: 0; }
.hero-panel strong { font-size: 0.98rem; }
.hero-panel span { color: var(--muted); font-size: 0.9rem; }

/* Credential strip */
.strip { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,0.14); color: #dfe6ef; }
.strip-inner {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  padding-top: 14px; padding-bottom: 14px; font-size: 0.9rem;
}
.strip strong { color: var(--gold-soft); margin-right: 6px; }

/* Section imagery */
.hero-band { margin: 0; }
.hero-band img { display: block; width: 100%; height: 340px; object-fit: cover; }
.figure-inset { margin: 40px 0 0; }
.figure-inset img {
  display: block; width: 100%; aspect-ratio: 21 / 8;
  object-fit: cover; border-radius: 10px;
}

/* Sections */
.section { padding: 72px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: #e9eef5; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #d3dbe6; }
.section-no { font-size: 0.85rem; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.section-no.light { color: var(--gold-soft); }
.section-intro { max-width: 46em; color: var(--muted); font-size: 1.05rem; }
.section-dark .section-intro { color: #c6d0de; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.about-copy p { color: #334659; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.vm { background: var(--tint); border-radius: var(--radius); padding: 20px 22px; }
.vm h3 { font-size: 1rem; margin-bottom: 6px; }
.vm p { margin: 0; font-size: 0.95rem; }

/* Values */
.values { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: v; }
.values li { padding: 4px 24px 4px 0; border-top: 2px solid var(--gold); margin-right: 24px; padding-top: 16px; }
.values h3 { font-size: 1.05rem; margin-bottom: 8px; }
.values p { font-size: 0.92rem; margin: 0; }

/* Services */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.services article {
  display: grid; grid-template-columns: 208px 1fr;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #fff; min-height: 168px;
}
.services img { width: 100%; height: 100%; min-height: 168px; object-fit: cover; display: block; }
.services article > div { padding: 18px 20px; align-self: center; }
.services h3 { margin-bottom: 6px; font-size: 1.08rem; }
.services p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* QHSE */
.qhse-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; }
.checklist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 28px; position: relative; font-size: 0.95rem; color: #334659; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.team article { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.team h3 { font-size: 1rem; margin-bottom: 4px; }
.team p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.engineer { margin-top: 24px; background: var(--tint); border-radius: var(--radius); padding: 24px 28px; }
.engineer h3 span { font-family: var(--sans); font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.engineer p { margin: 0; color: #334659; font-size: 0.95rem; }

/* Compliance */
.compliance { margin: 32px 0 0; display: grid; }
.compliance > div { display: grid; grid-template-columns: 240px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid #c9d3df; }
.compliance dt { font-weight: 700; font-size: 0.95rem; }
.compliance dd { margin: 0; color: #334659; font-size: 0.95rem; }

/* Experience table */
.table-scroll { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 720px; }
thead th { background: var(--navy); color: #fff; text-align: left; padding: 12px 16px; font-family: var(--sans); font-size: 0.85rem; }
tbody td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) td { background: #f5f8fb; }
.note { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
address { font-style: normal; display: grid; gap: 20px; margin-top: 24px; }
.office h3 { font-size: 1rem; color: var(--gold-soft); margin-bottom: 4px; }
.office p { margin: 0 0 4px; }
.contact-grid a { color: #fff; }
.email { font-size: 1.1rem; }
.email span { color: #aeb9ca; font-size: 0.95rem; }
.contact-form { background: #fff; color: var(--ink); border-radius: 10px; padding: 28px; align-self: start; }
.contact-form h3 { font-size: 1.3rem; margin-bottom: 4px; }
.form-note { color: var(--muted); font-size: 0.88rem; }
.contact-form label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 600; margin-top: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; padding: 10px 12px;
  border: 1px solid #b9c4d2; border-radius: 6px; width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
.contact-form .btn { width: 100%; margin-top: 18px; font-size: 1rem; }
.form-status { font-size: 0.9rem; color: var(--muted); min-height: 1.4em; margin: 10px 0 0; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #aeb9ca; font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; }
.site-footer strong { color: #fff; font-family: var(--serif); }
.site-footer p { margin: 4px 0 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .qhse-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .values { grid-template-columns: 1fr 1fr; gap: 24px; }
  .team { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr; }
  .vm-grid { grid-template-columns: 1fr; }
  .compliance > div { grid-template-columns: 1fr; gap: 4px; }

  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: 1px solid var(--line); border-radius: 6px;
    padding: 10px 12px; cursor: pointer;
  }
  .nav-toggle span[aria-hidden="true"] { display: block; width: 22px; height: 2px; background: var(--navy); }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 8px; border-top: 1px solid var(--line); }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}

@media (max-width: 560px) {
  .services article { grid-template-columns: 1fr; }
  .services img { height: 180px; min-height: 0; }
  .hero-band img { height: 220px; }
  .figure-inset img { aspect-ratio: 16 / 10; }
}

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