/* Case Justice - base layer
   Replaces normalize.css + webflow.css. Contains a minimal reset plus only the
   component primitives the site actually uses, off the w- namespace.
   Loaded before site.css, which holds the design layer. */

/* ------------------------------------------------------------------ reset */

/* The whole design layer is authored against border-box; without this the
   padded float columns overflow their row and wrap. */
* {
  box-sizing: border-box;
}

html {
  height: 100%;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-family: sans-serif;
}

/* Reachable by keyboard, out of the layout until focused - an unstyled skip
   link would push the whole page down by its line height. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 14px 22px;
  background: #16181f;
  color: #fff;
  font-family: Mulish, sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #333;
  background-color: #fff;
}

main,
article,
aside,
figcaption,
figure,
footer,
header,
nav,
section,
details {
  display: block;
}

h1, h2, h3, h4, h5, h6 { font-weight: bold; margin-bottom: 10px; }
h1 { font-size: 38px; line-height: 44px; margin-top: 20px; }
h2 { font-size: 32px; line-height: 36px; margin-top: 20px; }
h3 { font-size: 24px; line-height: 30px; margin-top: 20px; }
h4 { font-size: 18px; line-height: 24px; margin-top: 10px; }
h5 { font-size: 14px; line-height: 20px; margin-top: 10px; }
h6 { font-size: 12px; line-height: 18px; margin-top: 10px; }

p { margin-top: 0; margin-bottom: 10px; }

ul, ol { margin-top: 0; margin-bottom: 10px; padding-left: 40px; }

figure { margin: 0 0 10px; }

blockquote {
  margin: 0 0 10px;
  padding: 10px 20px;
  border-left: 5px solid #e2e2e2;
  font-size: 18px;
  line-height: 22px;
}

a { background-color: transparent; }

img {
  max-width: 100%;
  vertical-align: middle;
  display: inline-block;
  border: 0;
}

svg:not(:root) { overflow: hidden; }

b, strong { font-weight: bolder; }

small { font-size: 80%; }

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub { bottom: -0.25em; }
sup { top: -0.5em; }

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
  margin: 20px 0;
  border: 0;
  border-top: 1px solid #eee;
}

figure, pre { margin: 0; }

pre {
  font-family: monospace;
  font-size: 1em;
  overflow: auto;
}

code, kbd, samp { font-family: monospace; font-size: 1em; }

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td, th { padding: 0; }

fieldset { padding: 0; margin: 0; border: 0; }

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button, input { overflow: visible; }
button, select { text-transform: none; }

button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
  cursor: pointer;
}

button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

textarea {
  overflow: auto;
  resize: vertical;
}

[type='checkbox'],
[type='radio'] {
  box-sizing: border-box;
  padding: 0;
}

[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button { height: auto; }

[type='search'] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type='search']::-webkit-search-decoration { -webkit-appearance: none; }

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

[hidden], template { display: none; }

/* Visible keyboard focus. The old stylesheet used Webflow's default blue
   (#3898ec), which is not in this palette; this is brand-derived. */
:focus-visible {
  outline: 2px solid #f3bb93;
  outline-offset: 2px;
}

/* ------------------------------------------------------------- primitives */

.ui-inline-block {
  max-width: 100%;
  display: inline-block;
}

.ui-btn {
  display: inline-block;
  padding: 9px 15px;
  background-color: #16181f;
  color: #fff;
  border: 0;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
}

input.ui-btn { -webkit-appearance: button; }

/* --------------------------------------------------------------- layout */

.ui-grid {
  display: grid;
  grid-auto-columns: 1fr;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-row-gap: 16px;
  grid-column-gap: 16px;
}

.ui-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 940px;
}

.ui-container::before,
.ui-container::after,
.ui-row::before,
.ui-row::after {
  content: " ";
  display: table;
  grid-area: 1 / 1 / 2 / 2;
}

.ui-container::after,
.ui-row::after { clear: both; }

.ui-container .ui-row {
  margin-left: -10px;
  margin-right: -10px;
}

.ui-row .ui-row {
  margin-left: 0;
  margin-right: 0;
}

.ui-col {
  position: relative;
  float: left;
  width: 100%;
  min-height: 1px;
  padding-left: 10px;
  padding-right: 10px;
}

.ui-col .ui-col {
  padding-left: 0;
  padding-right: 0;
}

.ui-col-6 { width: 50%; }
.ui-col-12 { width: 100%; }

/* ------------------------------------------------------------------ forms */

.ui-form { margin: 0 0 15px; }

.ui-form-done {
  display: none;
  padding: 20px;
  text-align: center;
  background-color: #faebe7;
}

.ui-form-fail {
  display: none;
  margin-top: 10px;
  padding: 10px;
  background-color: #fbecea;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.ui-input,
.ui-select {
  display: block;
  width: 100%;
  height: 38px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #333;
  vertical-align: middle;
  background-color: #fff;
  border: 1px solid #ccc;
}

.ui-input::placeholder,
.ui-select::placeholder {
  color: #999;
  opacity: 1;
}

.ui-input:focus,
.ui-select:focus {
  border-color: #f3bb93;
  outline: 0;
}

.ui-input[disabled],
.ui-input[readonly],
.ui-select[disabled],
.ui-select[readonly] {
  cursor: not-allowed;
  background-color: #eee;
}

textarea.ui-input { height: auto; }

.ui-select { background-color: #f3f3f3; }
.ui-select[multiple] { height: auto; }

.ui-radio-label {
  display: inline-block;
  cursor: pointer;
  font-weight: normal;
  margin-bottom: 0;
}

.ui-radio {
  display: block;
  margin-bottom: 5px;
  padding-left: 20px;
}

.ui-radio::before,
.ui-radio::after {
  content: " ";
  display: table;
  grid-area: 1 / 1 / 2 / 2;
}

.ui-radio::after { clear: both; }

.ui-radio-dot {
  margin: 3px 0 0 -20px;
  line-height: normal;
  float: left;
}

/* Custom radio dot, shown when JS-free styling is replaced by the design layer. */
.ui-radio-dot--custom {
  width: 12px;
  height: 12px;
  border: 1px solid #ccc;
  border-radius: 50%;
}

.ui-radio-dot--custom.is-focused {
  box-shadow: 0 0 3px 1px #f3bb93;
}

.ui-radio-dot--custom.is-checked {
  border-width: 4px;
  border-color: #f3bb93;
}

/* -------------------------------------------------------- background video */

.ui-bg-video {
  position: relative;
  overflow: hidden;
  height: 500px;
  color: #fff;
}

.ui-bg-video > video {
  background-size: cover;
  background-position: 50% 50%;
  position: absolute;
  margin: auto;
  width: 100%;
  height: 100%;
  inset: -100%;
  object-fit: cover;
  z-index: -100;
}

.ui-bg-video > video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

/* ----------------------------------------------------------------- slider */

.ui-slider {
  position: relative;
  height: 300px;
  text-align: center;
  background: transparent;
  clear: both;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.ui-slider-mask {
  position: relative;
  display: block;
  overflow: hidden;
  z-index: 1;
  left: 0;
  right: 0;
  height: 100%;
  white-space: nowrap;
}

/* The track is inserted by site.js. Slide width still resolves against the
   mask because the track is a full-width block child of it. */
.ui-slider-track {
  display: block;
  width: 100%;
  height: 100%;
  white-space: nowrap;
  transition-property: transform;
  transition-timing-function: ease;
  will-change: transform;
}

.ui-slide {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 100%;
  height: 100%;
  white-space: normal;
  text-align: left;
}

.ui-slider-dots {
  position: absolute;
  z-index: 2;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  padding-top: 10px;
  height: 40px;
  text-align: center;
}

.ui-slider-dot {
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
  padding: 0;
  border: 0;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  margin: 0 3px 0.5em;
  transition: background-color 100ms, color 100ms;
}

.ui-slider-dot.is-active { background-color: #fff; }

.ui-slider-dot:focus-visible {
  outline: 2px solid #f3bb93;
  outline-offset: 2px;
}

.ui-slider-prev,
.ui-slider-next {
  position: absolute;
  width: 80px;
  inset: 0;
  margin: auto;
  cursor: pointer;
  overflow: hidden;
  color: #fff;
  font-size: 40px;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.ui-slider-prev { z-index: 3; right: auto; }
.ui-slider-next { z-index: 4; left: auto; }

.ui-slider-prev.is-disabled,
.ui-slider-next.is-disabled {
  opacity: 0.4;
  cursor: default;
}

/* -------------------------------------------------------------------- nav */

.ui-nav {
  position: relative;
  background: transparent;
  z-index: 1000;
}

.ui-nav::before,
.ui-nav::after {
  content: " ";
  display: table;
  grid-area: 1 / 1 / 2 / 2;
}

.ui-nav::after { clear: both; }

.ui-nav-brand {
  position: relative;
  float: left;
  text-decoration: none;
  color: #333;
}

.ui-nav-link {
  position: relative;
  display: inline-block;
  vertical-align: top;
  text-decoration: none;
  color: #222;
  padding: 20px;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

.ui-nav-menu {
  position: relative;
  float: right;
}

.ui-nav-toggle {
  position: relative;
  float: right;
  padding: 18px;
  font-size: 24px;
  display: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Collapsed states. The breakpoint mirrors data-collapse in the markup. */
.ui-nav[data-collapse='all'] .ui-nav-menu { display: none; }
.ui-nav[data-collapse='all'] .ui-nav-toggle { display: block; }

@media screen and (max-width: 991px) {
  .ui-container { max-width: 728px; }

  /* Layout only - the design layer owns the collapsed menu's colours. */
  .ui-nav[data-collapse='medium'] .ui-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 200px;
    text-align: center;
    overflow: visible;
    float: none;
  }

  .ui-nav[data-collapse='medium'] .ui-nav-menu.is-open { display: block; }
  .ui-nav[data-collapse='medium'] .ui-nav-toggle { display: block; }
}

@media screen and (max-width: 767px) {
  .ui-row,
  .ui-container .ui-row {
    margin-left: 0;
    margin-right: 0;
  }

  .ui-col {
    width: 100%;
    left: auto;
    right: auto;
  }

  .ui-nav-brand { padding-left: 10px; }
}

/* ----------------------------------------------------------------- reveal
   Replaces Webflow IX2. The hidden state is applied only after site.js adds
   .reveal-ready to <html>, so content is visible when JS does not run. */

.reveal-ready [data-reveal] {
  opacity: 0;
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}

.reveal-ready [data-reveal='up']    { transform: translateY(28px); }
.reveal-ready [data-reveal='right'] { transform: translateX(-28px); }
.reveal-ready [data-reveal='left']  { transform: translateX(28px); }
.reveal-ready [data-reveal='scale'] { transform: scale(0.94); }

.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* The gold rule draws itself left to right. */
.reveal-ready [data-reveal='line'] {
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 700ms ease;
}

.reveal-ready [data-reveal='line'].is-revealed { transform: scaleX(1); }

/* Wipe panels. These are solid colour blocks sitting over an image; the design
   slides them off to uncover it. They stay display:none without JS, which
   leaves the image visible - the correct fallback. */
.reveal-ready [data-reveal='wipe'] {
  display: block;
  opacity: 1;
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform 900ms cubic-bezier(0.7, 0, 0.3, 1);
}

.reveal-ready [data-reveal='wipe'].is-revealed { transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ui-slider-track { transition: none; }
}
