/* ================================================
  Blankboard Studio – Global Styles
  ================================================ */

/* ------------------------------------------------
  01. Responsive Scaling System by Blankboard Studio
  ------------------------------------------------ */

/* Base Container & Font Scaling */
:root {
  --size-unit: 16; /* Body font-size in design units (no px) */
  --size-container-ideal: 1680;
  --size-container-min: 992px;
  --size-container-max: 1920px;
  --size-container: clamp(
    var(--size-container-min),
    100vw,
    var(--size-container-max)
  );
  --size-font: calc(
    var(--size-container) / (var(--size-container-ideal) / var(--size-unit))
  );
  font-size: var(--size-font);
}

/* Tablet */
@media screen and (max-width: 991px) {
  :root {
    --size-container-ideal: 834;
    --size-container-min: 768px;
    --size-container-max: 991px;
  }
}

/* Mobile Landscape */
@media screen and (max-width: 767px) {
  :root {
    --size-container-ideal: 430;
    --size-container-min: 480px;
    --size-container-max: 767px;
  }
}

/* Mobile Portrait */
@media screen and (max-width: 479px) {
  :root {
    --size-container-ideal: 430;
    --size-container-min: 320px;
    --size-container-max: 428px;
  }
}

/* ------------------------------------------------
  02. Color System: OKLCH and Display-P3 Fallback
  ------------------------------------------------ */

/* Fallback: OKLCH if P3 is not supported */
@supports (color: oklch(50% 0.2 280)) {
  :root {
    --_colors---cw-black: oklch(0.1448 0 263.28);
    --_colors---cw-night: oklch(0.132 0.085 272.11);
    --_colors---cw-purple: oklch(0.5412 0.2407 280.28);
    --_colors---cw-floral: oklch(0.6995 0.18 300.83);
    --_colors---cw-blue: oklch(0.6874 0.1663 243.07);
    --_colors---cw-orange: oklch(0.7217 0.1748 33.72);
    --_colors---cw-emerald: oklch(0.746 0.1676 160.46);
    --_colors---cw-mustard: oklch(0.8292 0.1528 82.11);
    --_colors---cw-sand: oklch(0.9708 0.0085 84.59);
    --_colors---cw-light: oklch(96.72% 0.00426 16.2deg);
    --_colors---cw-white: oklch(1 0.0001 263.28);
  }
}

/* Preferred: Display-P3 */
@supports (color: color(display-p3 1 0 0)) {
  :root {
    --_colors---cw-black: color(display-p3 0.0392 0.0392 0.0392);
    --_colors---cw-night: color(display-p3 0.0097 0.0004 0.1526);
    --_colors---cw-purple: color(display-p3 0.3596 0.2934 0.9214);
    --_colors---cw-floral: color(display-p3 0.6681 0.5063 0.9552);
    --_colors---cw-blue: color(display-p3 0.2834 0.6295 0.9458);
    --_colors---cw-orange: color(display-p3 0.9329 0.4903 0.3761);
    --_colors---cw-emerald: color(display-p3 0.3611 0.7881 0.5543);
    --_colors---cw-mustard: color(display-p3 0.9364 0.7467 0.3358);
    --_colors---cw-sand: color(display-p3 0.9705 0.9612 0.9395);
    --_colors---cw-light: color(display-p3 0.9659 0.9535 0.9531);
    --_colors---cw-white: color(display-p3 1 1 1);
  }
}

/* ------------------------------------------------
  03. Reset & Box Model
  ------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
  text-size-adjust: 100%;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: 8%;
  text-underline-offset: -8%;
  text-underline-position: from-font;
}

html {
  scroll-behavior: initial;
  scrollbar-width: none; /* Firefox */
  -webkit-font-smoothing: antialiased;
}

body {
  width: 100vw;
  font-feature-settings: "case" on, "cv01" on, "cv03" on, "cv04" on, "cv09" on,
    "cv10" on, "cv12" on, "cv13" on;
  -ms-overflow-style: none; /* IE & Edge */
}

/* Hide scrollbars universally */
body::-webkit-scrollbar,
body ::-webkit-scrollbar {
  display: none;
}

/* SVG Reset */
svg {
  max-width: none;
  height: auto;
  box-sizing: border-box;
  vertical-align: middle;
}

/* Reset Link Color */
a {
  color: inherit;
}

/* ------------------------------------------------
  04. Typography Utilities
  ------------------------------------------------ */

/* Content & Article Styling for Rich Text */
.rte > :first-child {
  margin-top: 0;
}

.rte > :last-child {
  margin-bottom: 0;
}

.rte > div:first-child > :first-child {
  margin-top: 0;
}

.rte > div:first-child > :last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------
  05. Utility Attributes
  ------------------------------------------------ */

/* Scrollbars */
[scroll-show="false"] {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
[scroll-show="false"]::-webkit-scrollbar {
  display: none;
}

/* Truncate Text Utility // Show "..." after 1 line */
[data-truncate] {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
}

/* Show "..." after 1 line */
[data-truncate="1"] {
  -webkit-line-clamp: 1;
}

/* Show "..." after 2 line */
[data-truncate="2"] {
  -webkit-line-clamp: 2;
}

/* Selection Highlight */
::selection {
  background-color: #d8ecfc;
  color: #008cff;
  text-shadow: none;
}
::-moz-selection {
  background-color: #d8ecfc;
  color: #008cff;
  text-shadow: none;
}

[data-theme="dark"] {
  background-color: var(--_colors---bg--dark);
  color: var(--_colors---text-color--light);
}

/* Gradients */
[data-gradient] {
  background: linear-gradient(
    90deg,
    #9171f7 0%,
    #6d75e9 34%,
    #6192e6 67%,
    #dff0fd 100%
  );
}
[data-gradient-text] {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ------------------------------------------------
  06. Interactive Link Effects
  ------------------------------------------------ */

/* Underline Animation Link */
.link-underline {
  position: relative;
}
.link-underline::after {
  content: "";
  position: absolute;
  top: 92%;
  left: 0%;
  height: 1px;
  width: 0%;
  background: currentColor;
  transition: width 735ms cubic-bezier(0.65, 0.05, 0, 1);
}
.link-underline:hover::after {
  width: 100%;
}
.link-underline:not(:hover)::after {
  left: auto;
  right: 0%;
  width: 0%;
}

/* Inline Link Fade Effect */
.inline-link-underline {
  position: relative;
}
.inline-link-underline::after {
  content: "";
  width: 100%;
  height: 1px;
  min-height: 1px;
  background-color: currentColor;
  position: absolute;
  top: 96%;
  left: 0%;
  border-radius: 4px;
  opacity: 16%;
  transition: opacity 735ms cubic-bezier(0.65, 0.05, 0, 1);
}
.inline-link-underline:hover::after {
  opacity: 100%;
}

/* ------------------------------------------------
  07. Animations
  ------------------------------------------------ */

/* Keyframes */
@keyframes loop {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Loop Animation (Horizontal Slide) */
.loop-animate {
  animation: loop 60s linear infinite;
  will-change: transform;
}
.partner-carousel-animate {
  animation: loop 16s linear infinite;
  will-change: transform;
}

.svg-animate-line {
  animation: svgDash 32s linear infinite;
}
.svg-animate-line.reverse {
  animation: svgDash 32s linear infinite reverse;
}

@keyframes svgDash {
  to {
    stroke-dashoffset: 100%;
  }
}

/* ------------------------------------------------
  08. Components / Patterns
  ------------------------------------------------ */

/* Image Zoom Hover */
.image-w img {
  transition: transform 0.735s cubic-bezier(0.65, 0.05, 0, 1);
}
.image-w:hover img {
  transform: scale(1.12);
}

/* Remove wrapper pseudo-elements (redundant after refactor) */
.s-wrapper::before,
.s-wrapper::after {
  display: none;
}

.home-intro-video-w:hover video,
.home-intro-video-w:hover img {
  transform: scale(1.05);
}
.home-intro-video-w:hover .home-intro-play-button {
  transform: scale(0.8);
}

.why-us-table-row:nth-child(2n) {
  background-color: color-mix(
    in srgb,
    var(--_colors---bg--light) 6%,
    transparent
  );
}

.why-us-table-cell:last-child,
.why-us-table-row:last-child {
  border: none !important;
}

form > div:last-child {
  display: none;
}
/* Fix to show last div (non turnsile) in Webflow Designer */
.wf-design-mode form > div:last-child {
  display: flex;
}

.toggle-filter-button.w--redirected-checked ~ .toggle-filter-label {
  color: var(--_colors---cw-purple);
}
