/* I-OSCC Ltd company profile — palette, type and layout match the Kitbox sites. */

@font-face {
  font-family: "Raleway";
  src: url("../fonts/Raleway-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("../fonts/Urbanist-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F9F9F9;
  --paper-deep: #F0F0F0;
  --card: #FFFFFF;
  --ink: #090909;
  --muted: #4A4A4A;
  --line: #E6E6E6;
  --accent: #F7911D;
  --accent-dark: #9A5200;
  --dark: #090909;
  --dark-band: #424242;
  --focus: #9A5200;
  --max: 75rem;
  --header-h: 4.75rem;
  --section: 6rem;
  --font-display: "Raleway", "Liberation Sans", sans-serif;
  --font-sans: "Urbanist", "Liberation Sans", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@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;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
  min-height: 100vh;
}

img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  background: var(--dark);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 400;
  min-height: 2.5rem;
  text-decoration: none;
  border-radius: 0.25rem;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.skip-link:focus,
.skip-link:focus-visible {
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  white-space: normal;
  outline: 3px solid #fff;
  outline-offset: 3px;
}

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.site-footer :focus-visible,
.hero :focus-visible {
  outline-color: #fff;
}

a, button { min-height: 24px; min-width: 24px; }

.wrap {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
}

.section { padding: var(--section) 0; }
.band { background: var(--paper-deep); }
.band-white { background: var(--card); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 4.4vw, 3.35rem); font-weight: 620; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 36rem;
}
.prose { max-width: 44rem; }
.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
  padding: 0.5rem 0;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
  flex-shrink: 0;
  min-height: 44px;
}
.logo-wordmark {
  display: block;
  height: 2.1rem;
  width: auto;
  max-width: 19.5rem;
  max-height: 2.1rem;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--card);
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

.primary-nav { margin-left: auto; }
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.primary-nav a:hover { color: var(--accent-dark); }
.primary-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.hero {
  background: #424242;
  color: #F0F0F0;
  padding: 5.5rem 0 4.5rem;
}
.hero .kicker { color: #FFA94D; }
.hero h1 { color: #F7911D; margin-bottom: 1.25rem; }
.hero .lede { color: #F0F0F0; }
.hero a:not(.btn) { color: #FFA94D; }
.hero a:not(.btn):hover { color: #FFD19A; }
.hero .btn-primary {
  background: #F7911D;
  color: #090909;
  border-color: #F7911D;
}
.hero .btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}
.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 0.3rem;
  text-decoration: none;
  font-weight: 650;
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn-primary:hover { filter: brightness(0.95); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--paper-deep); }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.biz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 2rem 1.85rem 2.1rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); flex: 1 1 auto; }
.card .btn { margin-top: 1.5rem; align-self: flex-start; }
.tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 1.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 0.2rem;
  background: var(--paper-deep);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.details-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: 44rem;
}
.details-list > div {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.details-list > div:first-child { border-top: 1px solid var(--line); }
.details-list dt,
.details-list .label {
  font-weight: 650;
  color: var(--ink);
}
.details-list dd { margin: 0; }
.details-list a { color: var(--accent-dark); text-underline-offset: 3px; }

.legal h2 { margin-top: 2.5rem; }
.legal h2:first-child { margin-top: 0; }
.legal ul, .legal ol { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.legal li { margin: 0.4rem 0; }
.legal a { color: var(--accent-dark); text-underline-offset: 3px; }

.site-footer {
  background: var(--dark);
  color: #fff;
  padding: 4.5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 3rem 2.5rem;
  margin-bottom: 3rem;
}
.site-footer p, .site-footer li { color: #E4E4E4; }
.site-footer a { color: #fff; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .logo-wordmark { height: 1.95rem; max-width: 17.5rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0; padding: 0.2rem 0; }
.footer-nav a { display: inline-flex; min-height: 32px; align-items: center; }
.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}
.footer-legal {
  border-top: 1px solid #2A2A2A;
  padding-top: 1.5rem;
}
.footer-legal p {
  color: #C8C8C8;
  font-size: 0.95rem;
  max-width: 60rem;
  margin-bottom: 0.6rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

@media (max-width: 840px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
    z-index: 20;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; }
}

@media (max-width: 960px) {
  .biz-grid, .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --section: 4.25rem; }
  .wrap { width: min(var(--max), calc(100% - 2rem)); }
  .hero { padding: 3.25rem 0 2.75rem; }
  .details-list > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .hero .btn-row .btn { width: 100%; }
}

.nobr { white-space: nowrap; }
