/* Cat Full of Ghosts — shared site polish */

@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Grotesk:wght@600;700&display=swap");

/* —— Yellow section texture (scanlines + grain) —— */
section.u-palette-3-base,
section.u-section-vidirol {
  position: relative;
  overflow: hidden;
  background-color: #f1c50e !important;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(41, 46, 51, 0) 0,
      rgba(41, 46, 51, 0) 2px,
      rgba(41, 46, 51, 0.045) 2px,
      rgba(41, 46, 51, 0.045) 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(41, 46, 51, 0) 0,
      rgba(41, 46, 51, 0) 5px,
      rgba(41, 46, 51, 0.022) 5px,
      rgba(41, 46, 51, 0.022) 6px
    ) !important;
}

/* Top-layer overlay — sits above content so it is actually visible */
section.u-palette-3-base::after,
section.u-section-vidirol::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.28'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
  mix-blend-mode: multiply;
}

/* —— Typography accents —— */
.u-section-1 h2.u-text {
  font-family: "Space Grotesk", Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.u-body section h2.u-text,
.u-body section h3.u-text {
  font-family: "Space Grotesk", Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.u-body section h4.u-text {
  font-family: "Space Grotesk", Roboto, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

#carousel_71e9 .u-layout-cell h2.u-text {
  font-family: "Archivo Black", "Space Grotesk", Roboto, sans-serif;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

/* —— Homepage 01–04 nav tiles —— */
#carousel_71e9 .u-layout-cell {
  position: relative;
}

#carousel_71e9 .cfoge-nav-tile {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  min-height: 400px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    filter 0.28s ease;
}

#carousel_71e9 .cfoge-nav-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.14) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

#carousel_71e9 .cfoge-nav-tile::after {
  content: "→";
  position: absolute;
  right: 28px;
  bottom: 28px;
  font-family: "Space Grotesk", Roboto, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.45;
  transition: transform 0.28s ease, opacity 0.28s ease;
  pointer-events: none;
}

#carousel_71e9 .cfoge-nav-tile:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  filter: brightness(1.07) saturate(1.04);
  z-index: 2;
}

#carousel_71e9 .cfoge-nav-tile:hover::before {
  opacity: 1;
}

#carousel_71e9 .cfoge-nav-tile:hover::after {
  transform: translateX(7px);
  opacity: 0.95;
}

#carousel_71e9 .cfoge-nav-tile:hover h2.u-text {
  transform: scale(1.04);
  opacity: 0.92;
}

/* Nav tiles section — no white gap above tiles */
#carousel_71e9.u-section-2 {
  min-height: 0;
  background: transparent;
}

#carousel_71e9 .u-layout-wrap-1 {
  margin-top: 0;
}

@media (max-width: 991px) {
  #carousel_71e9 .cfoge-nav-tile {
    min-height: 100%;
  }

  #carousel_71e9 .cfoge-nav-tile:hover {
    transform: translateY(-4px);
  }
}

/* —— Remove ugly click-focus boxes —— */
.u-body a:focus,
.u-body button:focus,
.u-body .u-btn:focus,
.u-body .u-link:focus,
.u-body [data-href]:focus,
.cfoge-nav-tile:focus,
.cfoge-header__nav a:focus,
.cfoge-header__brand:focus,
.vidirol-promo-card:focus {
  outline: none !important;
  box-shadow: none;
}

.u-body a:focus:not(:focus-visible),
.u-body button:focus:not(:focus-visible),
.u-body .u-btn:focus:not(:focus-visible) {
  outline: none !important;
}

/* —— Sticky header —— */
.cfoge-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(41, 46, 51, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.cfoge-header.is-scrolled {
  background: rgba(41, 46, 51, 0.96);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.cfoge-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 24px;
  min-height: 52px;
}

.cfoge-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  flex-shrink: 0;
}

.cfoge-header__brand:hover {
  color: #f1c50e;
}

.cfoge-header__mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.cfoge-header__name {
  font-family: Roboto, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cfoge-header__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cfoge-header__nav a {
  font-family: Roboto, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.cfoge-header__nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.cfoge-header__nav a.is-active {
  color: #292e33;
  background: #f1c50e;
}

/* —— Monospace metadata / status labels —— */
.u-small-text.u-text-variant {
  font-family: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

#sec-2add .u-text-variant {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #292e33;
  background: rgba(41, 46, 51, 0.08);
  border: 1px solid rgba(41, 46, 51, 0.1);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 2px;
}

/* —— Product panels (Products page + homepage showcase) —— */
#sec-2add .u-repeater-1 {
  grid-gap: 22px !important;
  min-height: auto !important;
  padding: 4px 8px 28px;
}

#sec-2add .u-repeater-item .u-container-layout,
#carousel_4b5c .u-layout-cell-3 .u-container-layout,
#carousel_4b5c .u-layout-cell-4 .u-container-layout {
  position: relative;
  background: #f7f0f2;
  border: 1px solid rgba(190, 155, 165, 0.2);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(41, 46, 51, 0.06);
}

#sec-2add .u-repeater-item .u-container-layout {
  height: 100%;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

#sec-2add .u-repeater-item:hover .u-container-layout {
  transform: translateY(-5px);
  border-color: rgba(41, 46, 51, 0.12);
  box-shadow: 0 10px 28px rgba(41, 46, 51, 0.1);
}

#sec-2add .u-repeater-item h3.u-text {
  font-family: "Space Grotesk", Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px !important;
}

#sec-2add .u-repeater-item .u-text-variant {
  margin-top: 12px;
}

#sec-2add .u-image-8 {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
}

#sec-2add .u-line-horizontal {
  border-color: rgba(41, 46, 51, 0.14) !important;
}

/* Homepage product showcase — text panels only, images sit on BG */
#carousel_4b5c .u-layout-cell-3 .u-container-layout,
#carousel_4b5c .u-layout-cell-4 .u-container-layout {
  margin: 10px;
  height: calc(100% - 20px);
  box-sizing: border-box;
}

#carousel_4b5c .u-layout-cell-1 .u-container-layout,
#carousel_4b5c .u-layout-cell-2 .u-container-layout {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#carousel_4b5c .u-layout-cell-3 h2.u-text,
#carousel_4b5c .u-layout-cell-4 h2.u-text {
  font-family: "Space Grotesk", Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

#carousel_4b5c .u-layout-cell-1 .u-image,
#carousel_4b5c .u-layout-cell-2 .u-image {
  filter: drop-shadow(0 4px 12px rgba(41, 46, 51, 0.08));
}

/* Video demos — sit on BG, no bezel boxes */
#carousel_4b5c .u-layout-wrap-2 .u-container-layout {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 30px !important;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  #sec-2add .u-repeater-1 {
    grid-gap: 18px !important;
  }

  #carousel_4b5c .u-layout-cell-3 .u-container-layout,
  #carousel_4b5c .u-layout-cell-4 .u-container-layout {
    margin: 8px;
    height: auto;
  }
}

/* —— Body text line-height —— */
.u-body p.u-text {
  line-height: 1.65;
}

@media (max-width: 767px) {
  .cfoge-header__inner {
    padding: 10px 16px;
  }

  .cfoge-header__name {
    font-size: 0.875rem;
  }

  .cfoge-header__nav a {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
}

@media (max-width: 575px) {
  .cfoge-header__name {
    display: none;
  }
}
