/* Utah Safety Consultant — public site, matched to the field app header */
:root {
  --navy: #14213D;
  --navy-2: #1B2E52;
  --navy-3: #243A66;
  --navy-ink: #0C1328;
  --orange: #F26A1B;
  --orange-2: #FF7A2E;
  --muted: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.14);
  --max: 1080px;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #fff;
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #fff; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 100;
  background: #fff;
  color: var(--navy);
  padding: 8px 12px;
}

.wrap {
  width: min(100% - 36px, var(--max));
  margin-inline: auto;
}

/* ----- sticky navy nav (app subpage nav) ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 0;
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 36px; width: auto; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
  opacity: 0.9;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.12); opacity: 1; }
a.tile { text-decoration: none; color: #fff; }
a.tile:hover, a.tile:focus {
  transform: translateY(-2px);
  border-color: rgba(242, 106, 27, 0.7);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
  outline: none;
  color: #fff;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 12, 24, 0.55);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
  min-height: 40px;
  line-height: 1.2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pill:hover { color: #fff; }
.pill.orange {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.pill.orange:hover { background: var(--orange-2); border-color: var(--orange-2); color: #fff; }
.header-call { margin-left: 0; white-space: nowrap; }

@media (max-width: 720px) {
  .head-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand call"
      "nav nav";
    align-items: center;
    gap: 4px 10px;
    padding: 8px 0 10px;
  }
  .brand { grid-area: brand; margin-right: 0; }
  .header-call { grid-area: call; justify-self: end; }
  .site-nav {
    grid-area: nav;
    justify-content: flex-start;
    gap: 2px 4px;
  }
  .site-nav a {
    font-size: 12.5px;
    padding: 6px 8px;
    min-height: 36px;
  }
}

/* ----- hero card, copied from the field app ----- */
.hero-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 18px 0;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 32px 20px 28px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 4px solid var(--orange);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(242, 106, 27, 0.38);
  background: #0C1328;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: #0C1328;
  background-image:
    linear-gradient(180deg, rgba(12, 19, 40, 0.80) 0%, rgba(20, 33, 61, 0.70) 46%, rgba(14, 23, 48, 0.58) 100%),
    image-set(
      url("/images/hero-construction-mobile.webp") type("image/webp"),
      url("/images/hero-construction-mobile.jpg") type("image/jpeg")
    );
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 36% 40%;
}
.hero-inner { position: relative; z-index: 1; }
.hero .logo {
  height: 64px;
  width: auto;
  display: block;
  margin: 0 0 18px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  max-width: 18em;
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}
.hero .lede {
  margin: 0 0 16px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 36rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}
.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@media (min-width: 700px) {
  .hero { padding: 44px 40px 40px; }
  .hero-bg {
    background-image:
      linear-gradient(105deg, rgba(10, 16, 32, 0.92) 0%, rgba(14, 23, 48, 0.84) 34%, rgba(20, 33, 61, 0.52) 62%, rgba(14, 23, 48, 0.58) 100%),
      image-set(
        url("/images/hero-construction.webp") type("image/webp"),
        url("/images/hero-construction.jpg") type("image/jpeg")
      );
    background-position: 72% 38%;
  }
  .hero .logo { height: 78px; }
}

/* ----- sections ----- */
.section { padding: 36px 0 8px; }
.section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.section .intro {
  margin: 0 0 20px;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 700px) {
  .tiles { grid-template-columns: 1fr 1fr; }
}
.tile {
  display: block;
  color: #fff;
  background: linear-gradient(180deg, var(--navy-3), var(--navy-2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow);
  min-height: 148px;
}
.tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(242, 106, 27, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.tile-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile h3 { margin: 0 0 6px; font-size: 1.28rem; letter-spacing: -0.01em; }
.tile p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; }

/* industries */
.kicker-line {
  margin: 8px 0 14px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.86);
}
.industry-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 700px) {
  .industry-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1020px) {
  .industry-list { grid-template-columns: 1fr 1fr 1fr; }
}
.industry-list li {
  background: linear-gradient(180deg, var(--navy-3), var(--navy-2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
}
.industry-list h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--orange);
  display: inline-block;
}
.industry-list p { margin: 0; color: var(--muted); }

/* training */
.training { padding-top: 36px; }
.training-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}
@media (min-width: 800px) {
  .training-grid { grid-template-columns: 1.4fr 1fr; }
}
.training p { margin: 0 0 1rem; color: var(--muted); }
.training p:last-child { margin-bottom: 0; }
.cred-box {
  background: linear-gradient(135deg, #2A4370 0%, var(--navy-2) 50%, #1A2748 100%);
  color: #fff;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 4px solid var(--orange);
  padding: 22px 20px 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(242, 106, 27, 0.28);
}
.cred-box h3 { margin: 0 0 10px; font-size: 15px; color: #fff; }
.cred-box ul { margin: 0; padding: 0; list-style: none; }
.cred-box li {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
}
.cred-box li:first-child { border-top: 0; padding-top: 0; }
.cred-box .tag-orange { color: var(--orange-2); }

/* field app band */
.app-band {
  max-width: var(--max);
  margin: 28px auto 0;
  padding: 0 18px;
}
.app-band .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  background: linear-gradient(135deg, #2A4370 0%, var(--navy-2) 50%, #1A2748 100%);
  border: 1px solid rgba(242, 106, 27, 0.45);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
}
.app-band h2 { margin: 0 0 6px; font-size: clamp(1.35rem, 3vw, 1.7rem); }
.app-band p { margin: 0; max-width: 38rem; color: var(--muted); }

/* contact */
.contact { padding: 36px 0 40px; }
.contact-card {
  background: linear-gradient(180deg, var(--navy-3), var(--navy-2));
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 4px solid var(--orange);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(242, 106, 27, 0.28);
  padding: 28px 22px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 800px) {
  .contact-card { grid-template-columns: 1.3fr 1fr; padding: 32px 32px 28px; }
}
.phone-xl {
  display: inline-block;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: #fff;
  line-height: 1.15;
  margin: 0.4rem 0 1rem;
}
.phone-xl:hover { color: var(--orange-2); }
.contact .intro { margin-bottom: 0.5rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.aside-links { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.aside-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 12, 24, 0.55);
  border-radius: 999px;
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.aside-links a:hover { border-color: var(--orange); color: #fff; }
.aside-links svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--orange-2); }

/* footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0 36px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}
.site-footer .brand img { height: 40px; }
.site-footer p { margin: 8px 0 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--orange-2); }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-weight: 700;
}
.foot-links a { text-decoration: none; }
.credit { margin-top: 6px; }
.credit a { text-decoration: underline; text-underline-offset: 3px; }

/* ----- interior / service pages ----- */
.hero.page-hero { padding: 28px 20px 24px; }
@media (min-width: 700px) {
  .hero.page-hero { padding: 36px 40px 32px; }
}
.prose-page {
  padding: 28px 0 12px;
  max-width: 42rem;
}
.prose-page p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.prose-page h2 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.prose-page h2:first-child { margin-top: 0; }
.related { padding: 8px 0 28px; }
.related h2 { margin: 0 0 14px; font-size: 1.35rem; }
.industry-list a {
  color: #fff;
  text-decoration: none;
  display: block;
}
.industry-list a:hover h3 { color: var(--orange-2); }

.heading-link { color: inherit; text-decoration: none; }
.heading-link:hover { color: var(--orange-2); }
.prose-page a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.prose-page a:hover { color: var(--orange-2); }
.site-footer .foot-links { max-width: 28rem; justify-content: flex-end; }
@media (max-width: 720px) {
  .site-footer .foot-links { justify-content: flex-start; max-width: none; }
}
