/* ==========================================================================
   Full Gauge Wellbore Services — Site Stylesheet
   Design system: navy/red industrial palette, gauge/benchmark motif
   ========================================================================== */

:root {
  --navy: #0B3C5D;
  --navy-deep: #071F30;
  --navy-soft: #123F60;
  --red: #C0392B;
  --red-deep: #9A2E22;
  --paper: #EEF1EC;
  --paper-raised: #FFFFFF;
  --steel: #55636B;
  --steel-light: #8B969C;
  --ink: #12191D;
  --line: rgba(11, 60, 93, 0.14);
  --line-on-navy: rgba(255, 255, 255, 0.16);

  --font-display: 'Oswald', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1120px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy-deep);
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.25rem; letter-spacing: 0.04em; }

p { margin: 0 0 1.2em; color: var(--ink); }
a { color: var(--navy); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* Visually hidden (skip link support) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---------------------------- Header / Nav ---------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-deep);
  border-bottom: 1px solid var(--line-on-navy);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }

.brand-word {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}
.brand-word small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--steel-light);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-links a {
  color: #DCE4E8;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--red);
}
.nav-links a:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.nav-cta {
  display: inline-block;
  background: var(--red);
  color: #fff !important;
  padding: 8px 18px !important;
  border-bottom: none !important;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--red-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-on-navy);
  color: #fff;
  width: 42px; height: 38px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    gap: 0;
    padding: 8px 28px 18px;
    display: none;
    border-bottom: 1px solid var(--line-on-navy);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-on-navy); }
  .nav-cta { margin-top: 6px; text-align: center; border-bottom: none !important; }
}

/* ---------------------------- Gauge motif ---------------------------- */
/* Recurring signature element: a benchmark scale with a marker resting
   precisely on the "BENCHMARK" tick. Used in hero + as section dividers. */

.gauge {
  width: 100%;
  display: block;
  overflow: visible;
}

.gauge-divider {
  margin: 64px 0;
  opacity: 0.85;
}

.gauge text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  fill: var(--steel);
}
.gauge .tick { stroke: var(--steel-light); stroke-width: 1; }
.gauge .tick-major { stroke: var(--steel); stroke-width: 1.4; }
.gauge .baseline { stroke: var(--line); stroke-width: 1.5; }
.gauge .marker-label { fill: var(--red); font-weight: 600; }
.gauge .marker-dot { fill: var(--red); }
.gauge .marker-stem { stroke: var(--red); stroke-width: 2; }

.gauge.on-navy .baseline { stroke: var(--line-on-navy); }
.gauge.on-navy .tick { stroke: rgba(255,255,255,0.28); }
.gauge.on-navy .tick-major { stroke: rgba(255,255,255,0.5); }
.gauge.on-navy text { fill: rgba(255,255,255,0.55); }

@media (prefers-reduced-motion: no-preference) {
  .marker-dot, .marker-stem, .marker-label { animation: settle 1.1s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes settle {
    0% { opacity: 0; transform: translateX(-14px); }
    100% { opacity: 1; transform: translateX(0); }
  }
}

/* ---------------------------- Hero ---------------------------- */

.hero {
  background: var(--navy);
  background-image: linear-gradient(180deg, var(--navy-deep), var(--navy) 70%);
  color: #fff;
  padding: 100px 0 84px;
}
.hero .eyebrow { color: #E8A79C; }
.hero .eyebrow::before { background: #E8A79C; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero p.lede {
  font-size: 1.15rem;
  color: #C9D6DC;
  max-width: 52ch;
  margin-bottom: 1.6em;
}

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 76px 0 56px;
}
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .eyebrow { color: #E8A79C; }
.page-hero .eyebrow::before { background: #E8A79C; }
.page-hero p.lede { color: #C9D6DC; max-width: 60ch; font-size: 1.08rem; }

/* ---------------------------- Buttons ---------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: var(--line-on-navy); }
.btn-ghost:hover { border-color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------------------------- Sections ---------------------------- */

section { padding: 76px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--paper-raised); }

.narrative {
  max-width: 68ch;
}
.narrative .lede-line {
  font-size: 1.2rem;
  color: var(--navy-deep);
  font-weight: 500;
}

.story-block { margin-bottom: 48px; max-width: 68ch; }
.story-block h3 { color: var(--red); margin-bottom: 0.6em; }

/* Division cards on home */
.division-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 860px) { .division-grid { grid-template-columns: 1fr; } }

.division-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  padding: 30px 26px 26px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.division-card:hover { transform: translateY(-4px); border-top-color: var(--red); }
.division-card:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.division-card .num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.division-card h3 { color: var(--navy-deep); margin-bottom: 10px; }
.division-card p { color: var(--steel); font-size: 0.96rem; margin-bottom: 14px; }
.division-card .go {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--navy);
  letter-spacing: 0.04em;
}

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 20px;
}
@media (max-width: 780px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 30px;
}
.product-card h3 { color: var(--navy-deep); }
.spec-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--steel);
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.spec-line span b { color: var(--navy); font-weight: 600; }

/* Pillars (consulting / course categories) */
.pillar-list { list-style: none; margin: 30px 0; padding: 0; }
.pillar-list li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: 24px;
}
.pillar-list li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .pillar-list li { grid-template-columns: 1fr; gap: 6px; } }
.pillar-list h3 { margin: 0; color: var(--navy-deep); }
.pillar-list p { margin: 0; color: var(--steel); }

.callout {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 22px;
  margin: 34px 0;
  font-style: italic;
  color: var(--navy-deep);
  font-size: 1.05rem;
}

/* CTA band */
.cta-band {
  background: var(--navy-deep);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9D6DC; max-width: 52ch; margin: 0 auto 26px; }
.cta-band .btn-row { justify-content: center; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 34px;
}
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  gap: 12px;
  flex-wrap: wrap;
}
.contact-row:first-of-type { border-top: none; }
.contact-row .label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.contact-row a { color: var(--navy-deep); font-weight: 600; text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #C9D6DC;
  padding: 50px 0 30px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-on-navy);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 30px; height: 30px; }
.footer-brand-word {
  font-family: var(--font-display);
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.footer-brand-word small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--steel-light);
  letter-spacing: 0.12em;
}
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links div { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  color: #C9D6DC;
  text-decoration: none;
  font-size: 0.88rem;
}
.footer-links a:hover { color: #fff; }
.footer-links h4 {
  font-family: var(--font-mono);
  color: var(--steel-light);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 0.78rem;
  color: var(--steel-light);
  flex-wrap: wrap;
  gap: 10px;
}
