/* ===========================================================
   OXSA site styles
   -------------------------------------------------------------
   All colours come from CSS custom properties set on :root by
   dc-shim.js (see THEMES object). Fallback values are the dark
   defaults so the site still renders if the shim fails to load.
   ============================================================ */

/* --------- Base --------- */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Barlow', system-ui, sans-serif;
  background: var(--ox-bg, #0B0B0D);
  color: var(--ox-text, #EDEDEA);
}
* { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Form base — placeholders + focus ring — used on contact page */
input, select, textarea { font-family: 'Barlow', system-ui, sans-serif; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ox-gold, #C9A227);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.22);
}
::placeholder { color: var(--ox-muted, #9A9A96); opacity: 0.7; }

/* --------- Layout containers --------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section { border-bottom: 1px solid var(--ox-border, #26262B); }
.section--band    { background: var(--ox-band, #08080A); }
.section--surface { background: var(--ox-surface-2, #101013); }
.section--dark    { background: var(--ox-band-dark, #08080A); border-bottom: 0; }

/* --------- Eyebrows (small caps labels above headings) --------- */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ox-accent-text, #D8B44A);
  margin-bottom: 18px;
}
.eyebrow--tight { margin-bottom: 16px; }

/* Stat-card eyebrow (used in home stats row: Civilian / Security / Defence) */
.eyebrow-stat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ox-accent-text, #D8B44A);
  margin-bottom: 8px;
}

/* --------- Headings --------- */
.h1 {
  margin: 0 0 28px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ox-heading, #FFFFFF);
}
.h1--jumbo {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.08;
  text-wrap: balance;
}

.h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ox-heading, #FFFFFF);
}
.h2--sm {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.25;
}
.h2--mid {
  font-size: clamp(26px, 3vw, 34px);
}

/* Product-tile heading */
.title-card {
  margin: 0 0 14px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ox-heading, #FFFFFF);
}
/* Standard sub-card heading */
.h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ox-heading, #FFFFFF);
}
.h3--sm {
  margin: 0 0 6px;
  font-size: 18px;
}

/* --------- Body copy --------- */
.lede {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  color: var(--ox-muted, #9A9A96);
}
.lede--emphasis {
  color: var(--ox-text, #EDEDEA);
  font-size: 19px;
  line-height: 1.7;
}

.body-copy {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ox-muted, #9A9A96);
}
.body-copy--sm {
  font-size: 16px;
  line-height: 1.75;
}
.body-copy--tight {
  font-size: 16px;
  line-height: 1.7;
}

/* --------- Buttons --------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: inherit;
  border: none;
  cursor: pointer;
  border-radius: 0;
  line-height: 1.2;
}
.btn--gold {
  background: var(--ox-gold, #C9A227);
  color: #0B0B0D;
}
.btn--gold:hover {
  background: var(--ox-gold-bright, #E3C46A);
  color: #0B0B0D;
}
.btn--ghost {
  border: 1px solid var(--ox-border, #26262B);
  color: var(--ox-text, #EDEDEA);
  background: transparent;
  padding: 14px 29px; /* border-inclusive parity with .btn */
}
.btn--ghost:hover {
  border-color: var(--ox-gold, #C9A227);
  color: var(--ox-gold-bright, #E3C46A);
}
.btn--lg { padding: 16px 34px; }

/* --------- Text-link CTA (border-bottom style) --------- */
.link-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ox-accent-text, #D8B44A);
  border-bottom: 1px solid var(--ox-gold, #C9A227);
  padding-bottom: 4px;
}
.link-cta:hover { color: var(--ox-gold-bright, #E3C46A); }

/* --------- Card --------- */
.card {
  background: var(--ox-surface, #141417);
  padding: 44px 40px;
}
.card--compact { padding: 36px 34px; }

/* Bordered card grid — creates 1px dividers between tiles */
.card-grid {
  display: grid;
  gap: 1px;
  background: var(--ox-border, #26262B);
  border: 1px solid var(--ox-border, #26262B);
}
.card-grid > * { background: var(--ox-surface, #141417); }

/* --------- Split tile (products page — image + text row) --------- */
.split-tile {
  background: var(--ox-surface, #141417);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.split-tile__media { min-height: 240px; }
.split-tile__body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-tile--reverse .split-tile__media { order: 2; }
.split-tile--reverse .split-tile__body { order: 1; }

/* --------- Product tile (home page product grid) --------- */
.tile {
  display: block;
  background: var(--ox-surface, #141417);
  color: inherit;
}
.tile:hover { background: var(--ox-surface-2, #101013); }
.tile__media {
  height: 190px;
  border-bottom: 1px solid var(--ox-border, #26262B);
}
.tile__body { padding: 26px 28px 30px; }
.tile__title {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ox-heading, #FFFFFF);
}
.tile__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ox-muted, #9A9A96);
}

/* --------- Chip (small text tile — home industries list) --------- */
.chip {
  padding: 22px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ox-text, #EDEDEA);
}

/* --------- Simple list row with bottom divider --------- */
.list-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--ox-border, #26262B);
  font-size: 16px;
  color: var(--ox-muted, #9A9A96);
}

/* --------- Feature list (products page — support services) --------- */
.feature-row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ox-border, #26262B);
  font-size: 16px;
  color: var(--ox-text, #EDEDEA);
}
.feature-row__mark {
  color: var(--ox-accent-text, #D8B44A);
  font-weight: 700;
}

/* --------- Detail row (about page — key/value rows) --------- */
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ox-border, #26262B);
}
.detail-row__key {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ox-muted, #9A9A96);
  flex-shrink: 0;
}
.detail-row__value {
  font-size: 16px;
  color: var(--ox-text, #EDEDEA);
  text-align: right;
}

/* --------- Bordered accent block (industries page principles) --------- */
.principle {
  border-left: 2px solid var(--ox-gold, #C9A227);
  padding-left: 20px;
}

/* --------- Form --------- */
.form { display: flex; flex-direction: column; gap: 22px; }
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}
.form__field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.form-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ox-muted, #9A9A96);
}
.form-input {
  width: 100%;
  padding: 13px 14px;
  background: var(--ox-input-bg, #0E0E11);
  border: 1px solid var(--ox-border, #26262B);
  color: var(--ox-text, #EDEDEA);
  font-size: 16px;
  border-radius: 0;
}
.form-input--select { appearance: none; }
.form-input--textarea { line-height: 1.6; resize: vertical; }
.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* --------- Utility labels used inside forms/contact details --------- */
.label-caps {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ox-muted, #9A9A96);
}
.label-caps--strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ox-text, #EDEDEA);
}

/* ============================================================
   Site header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ox-header-bg, rgba(11,11,13,0.94));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ox-border, #26262B);
}
.site-header__utility {
  background: var(--ox-utility-bg, #08080A);
  border-bottom: 1px solid var(--ox-border, #26262B);
}
.site-header__utility-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-header__utility-left {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ox-utility-text, #8A8A86);
}
.site-header__utility-sep { color: var(--ox-utility-dim, #4A4A4E); }
.site-header__utility-link { color: var(--ox-utility-text, #8A8A86); }
.site-header__utility-link:hover { color: var(--ox-gold-bright, #E3C46A); }

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--ox-border, #26262B);
  color: var(--ox-utility-text, #8A8A86);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  cursor: pointer;
  line-height: 1.6;
  white-space: nowrap;
}
.theme-toggle:hover {
  border-color: var(--ox-gold, #C9A227);
  color: var(--ox-gold-bright, #E3C46A);
}
.theme-toggle__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ox-gold, #C9A227);
  display: inline-block;
}

.site-header__main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-header__logo { display: block; flex-shrink: 0; }
.site-header__logo img { height: 72px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav__link {
  position: relative;
  display: block;
  padding: 10px 14px 9px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ox-text, #EDEDEA);
}
.site-nav__link:hover { color: var(--ox-gold-bright, #E3C46A); }
.site-nav__underline {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--ox-gold, #C9A227);
  opacity: 0;
}
.site-nav__link.is-active .site-nav__underline { opacity: 1; }

.site-nav__cta {
  margin-left: 12px;
  display: block;
  padding: 12px 20px;
  background: var(--ox-gold, #C9A227);
  color: #0B0B0D;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-nav__cta:hover {
  background: var(--ox-gold-bright, #E3C46A);
  color: #0B0B0D;
}

.site-nav__burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--ox-border, #26262B);
  color: var(--ox-text, #EDEDEA);
  cursor: pointer;
}
.site-nav__burger:hover { border-color: var(--ox-gold, #C9A227); }
.site-nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.site-nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .site-header__utility-inner { height: auto; padding: 6px 20px; }
  .site-header__utility-left > span { display: none; }
  .site-header__utility-left { gap: 12px; font-size: 12px; }

  .site-header__main {
    min-height: 64px;
    padding: 0 20px;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .site-header__logo img { height: 48px; }

  .site-nav__burger { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--ox-header-bg, rgba(11,11,13,0.98));
    border-bottom: 1px solid var(--ox-border, #26262B);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  }
  .site-nav[data-open="true"] { display: flex; }

  .site-nav__link {
    padding: 16px 4px;
    font-size: 14px;
    border-bottom: 1px solid var(--ox-border-soft, #1C1C20);
  }
  .site-nav__underline { display: none; }

  .site-nav__cta {
    margin: 16px 0 0;
    text-align: center;
    padding: 14px 20px;
  }
}

/* ============================================================
   Site footer
   ============================================================ */
.site-footer {
  background: var(--ox-band-dark, #08080A);
  border-top: 3px solid var(--ox-gold, #C9A227);
  color: #B9B9B4;
}
.site-footer__top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 48px;
}
.site-footer__logo { display: inline-block; }
.site-footer__logo img { height: 100px; width: auto; }
.site-footer__tagline {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: #8A8A86;
  max-width: 300px;
}
.site-footer__heading {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FFF;
}
.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.site-footer__nav a { color: #B9B9B4; }
.site-footer__nav a:hover { color: #E3C46A; }

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: #8A8A86;
}
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: #8A8A86;
}
.site-footer__contact a { color: #B9B9B4; }
.site-footer__contact a:hover { color: #E3C46A; }
.site-footer__cta {
  display: inline-block;
  align-self: flex-start;
  border: 1px solid #C9A227;
  color: #E3C46A;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer__cta:hover { background: #C9A227; color: #0B0B0D; }
.site-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-footer__legal {
  margin-top: 56px;
  border-top: 1px solid #1E1E22;
  padding: 26px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6E6E6A;
}

/* ============================================================
   Image animations — Ken Burns hero + hover zoom on tiles
   ============================================================ */
image-slot::part(image) {
  transition: transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.tile:hover image-slot::part(image) {
  transform: translate(-50%, -50%) scale(1.05);
}

image-slot#home-hero::part(image) {
  animation: ox-ken-burns 24s ease-in-out infinite alternate;
}
@keyframes ox-ken-burns {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(-52%, -49%) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  image-slot::part(image) { transition: none; }
  .tile:hover image-slot::part(image) { transform: translate(-50%, -50%); }
  image-slot#home-hero::part(image) { animation: none; }
}
