@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --blue: #173f77;
  --blue-dark: #102f5b;
  --text: #173f77;
  --soft: #dbdbdb;
  --line: #e6e8eb;
  --white: #ffffff;
  --focus: #0b63ce;
  --red: #d31111;
  --shadow: 0 8px 28px rgba(16, 47, 91, .12);
  --max: 1300px;
  --header-offset: 124px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 700;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only {
  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: fixed; top: 8px; left: 8px; z-index: 9999; padding: 10px 14px;
  background: var(--white); color: var(--blue); transform: translateY(-150%); border-radius: 4px;
}
.skip-link:focus { transform: translateY(0); }

/* Sticky header */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.99);
  border-bottom: 1px solid var(--line); transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.12); }
.utility-bar { background: var(--white); }
.utility-inner {
  max-width: var(--max); min-height: 76px; margin: 0 auto; padding: 8px 30px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
}
.utility-social { display: flex; align-items: center; gap: 8px; justify-self: start; }
.icon-link, .phone-icon-link {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  color: var(--blue); border-radius: 50%; text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease;
}
.icon-link:hover, .phone-icon-link:hover { color: var(--white); background: var(--blue); transform: translateY(-1px); }
.icon { width: 21px; height: 21px; fill: currentColor; flex: 0 0 auto; }
.brand { display: block; justify-self: center; }
.brand img { width: 160px; height: auto; }
.utility-call { justify-self: end; display: flex; align-items: center; gap: 8px; text-align: right; color: var(--blue); }
.utility-call > span { font-size: 13px; line-height: 1.2; }

.nav-bar { min-height: 46px; display: flex; justify-content: center; align-items: center; border-top: 1px solid #f1f2f3; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px,2vw,28px); padding: 7px 28px 9px; }
.primary-nav a {
  position: relative; text-decoration: none; font-size: 13px; font-weight: 800; line-height: 1.2;
  padding: 7px 0; color: var(--blue); white-space: nowrap;
}
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--red); transition: right .2s ease; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { right: 0; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--red); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--blue); align-items: center; gap: 7px; padding: 10px 15px; cursor: pointer; }
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; background: #dfe4e9; }
.hero::before {
  content: ""; position: absolute; inset: -4%; z-index: -2;
  background-image: url("../images/hero-omt.jpg"); background-size: cover; background-position: center;
  transform: scale(1.02); animation: omtKenBurns 10s ease-in-out infinite alternate;
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.10); }
.hero-home { min-height: calc(100vh - var(--header-offset)); }
.hero-story { min-height: 40vh; }
@keyframes omtKenBurns { from { transform: scale(1.02); } to { transform: scale(1.11); } }

/* Homepage services */
.services { background: var(--soft); padding: 26px 24px 32px; }
.services-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.service-card { min-width: 0; text-decoration: none; color: var(--blue); display: flex; flex-direction: column; gap: 9px; }
.service-title { text-align: center; font-weight: 900; font-size: 15px; line-height: 1.25; min-height: 38px; display: flex; align-items: center; justify-content: center; }
.service-image { position: relative; display: block; overflow: hidden; border-radius: 2px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); aspect-ratio: 4/3; }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease, filter .28s ease; }
.service-cta {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 9px; border-radius: 2px;
  background: rgba(255,255,255,.94); color: var(--blue); font-size: 11px; font-weight: 900;
  opacity: 0; transform: translateY(5px); transition: opacity .2s ease, transform .2s ease;
}
.service-card:hover .service-image, .service-card:focus-visible .service-image { box-shadow: var(--shadow); }
.service-card:hover img, .service-card:focus-visible img { transform: scale(1.045); filter: contrast(1.03); }
.service-card:hover .service-cta, .service-card:focus-visible .service-cta { opacity: 1; transform: translateY(0); }

/* Main content */
.content-section { padding: 58px 34px; }
.content-narrow { width: min(100%, 1100px); margin: 0 auto; }
h1, h2, h3 { margin: 0 0 20px; color: var(--blue); line-height: 1.2; font-weight: 900; }
h1 { font-size: clamp(28px,3.2vw,42px); }
h2 { font-size: clamp(22px,2vw,28px); }
p { margin: 0 0 20px; }
ul { margin: 0 0 24px; padding-left: 1.3em; }
li + li { margin-top: 7px; }
.intro-section h2 { text-align: center; }
.story-section h1 { margin-bottom: 28px; }
.category-section { padding-top: 62px; padding-bottom: 70px; }
.category-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 54px; align-items: start; }
.category-visual { margin: 0; position: sticky; top: 148px; }
.category-visual img { width: 100%; max-height: 620px; object-fit: contain; background: #fff; }
.category-copy h1 { font-size: clamp(28px,3vw,39px); text-transform: uppercase; margin-bottom: 14px; }
.category-copy h2 { font-size: clamp(19px,1.8vw,24px); margin-top: 28px; }
.category-copy > h1 + h2 { margin-top: 0; }

/* Contact */
.contact-section { padding-top: 70px; padding-bottom: 75px; }
.contact-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.contact-intro h1 { font-size: clamp(28px,3vw,42px); }
.contact-phone a { font-size: clamp(21px,2.4vw,30px); text-decoration: none; }
.contact-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.contact-action { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; width: fit-content; }
.contact-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-action .icon { width: 22px; height: 22px; }
.contact-form-wrap h2 { margin-bottom: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; }
.field input, .field textarea { width: 100%; border: 1px solid #aeb8c4; border-radius: 2px; padding: 12px 13px; color: #172f50; background: #fff; font-weight: 600; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(23,63,119,.12); outline: none; }
.submit-button { border: 0; background: var(--blue); color: #fff; font-weight: 900; padding: 11px 24px; cursor: pointer; border-radius: 2px; }
.submit-button:hover { background: var(--blue-dark); }
.form-status { min-height: 1.6em; margin: 14px 0 0; font-size: 13px; }

/* Actual client footer only. Platform-owned final footer is intentionally absent. */
.client-footer { border-top: 1px solid var(--line); background: #fff; padding: 48px 30px 32px; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-brand { width: min(300px, 38vw); display: block; margin: 0 auto 42px; }
.footer-brand img { width: 100%; height: auto; }
.footer-grid { display: grid; grid-template-columns: .95fr .9fr 1.25fr; gap: 42px; align-items: start; }
.footer-block h2 { font-size: 21px; margin-bottom: 15px; }
.footer-block p { margin-bottom: 14px; }
.footer-block a { text-decoration: none; }
.footer-block a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hours { margin: 0; }
.hours > div { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px; }
.hours dt, .hours dd { margin: 0; }
.footer-map iframe { display: block; width: 100%; height: 300px; border: 0; }

@media (max-width: 1100px) {
  .primary-nav { gap: 14px; }
  .primary-nav a { font-size: 12px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-map { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  :root { --header-offset: 108px; }
  .utility-inner { min-height: 64px; padding: 7px 16px; gap: 8px; grid-template-columns: 1fr auto 1fr; }
  .brand img { width: 128px; }
  .utility-social { gap: 1px; }
  .icon-link, .phone-icon-link { width: 34px; height: 34px; }
  .utility-call { gap: 2px; }
  .utility-call > span { max-width: 96px; font-size: 10px; }
  .nav-bar { min-height: 44px; position: relative; }
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; gap: 0;
    padding: 5px 20px 14px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 18px rgba(0,0,0,.12); align-items: stretch;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 11px 9px; font-size: 13px; white-space: normal; }
  .primary-nav a::after { display: none; }
  .hero-home { min-height: 50vh; }
  .hero-story { min-height: 50vh; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .category-visual { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-map { grid-column: auto; }
}
@media (max-width: 540px) {
  body { font-size: 14px; }
  .utility-inner { padding-inline: 9px; }
  .brand img { width: 105px; }
  .utility-call > span { max-width: 76px; font-size: 9px; }
  .icon-link, .phone-icon-link { width: 31px; height: 31px; }
  .icon { width: 19px; height: 19px; }
  .content-section { padding: 42px 20px; }
  .services { padding: 22px 16px 26px; }
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-title { min-height: 0; font-size: 16px; }
  .service-image { aspect-ratio: 16/10; }
  .service-cta { opacity: 1; transform: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .client-footer { padding: 40px 20px 24px; }
  .footer-brand { width: min(280px, 68vw); }
  .hours > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Contact form delivery status and honeypot */
.form-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.form-status {
  min-height: 1.5em;
}
.form-status.is-success {
  font-weight: 700;
}
.form-status.is-error {
  font-weight: 700;
}
