/**
 * Mayan Media Studio — brand overrides (Home 1 React).
 */
@font-face {
  font-family: 'Conthrax';
  src: url('../fonts/conthrax-sb.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

body.mayan-home-1-react {
  --nx-prime-c: #00a693;
  --mayan-teal: #00a693;
  --mayan-gray: #4d4d4d;
  --nx-heading-c: #4d4d4d;
  --nx-heading: 'Conthrax', system-ui, sans-serif;
  --nx-body-font: 'Conthrax', system-ui, sans-serif;
  font-family: 'Conthrax', system-ui, sans-serif;
}

body.mayan-home-1-react,
body.mayan-home-1-react :where(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .sec_title,
    .widget-title,
    .hr1_title,
    .nx-bottom-text
  ) {
  font-family: 'Conthrax', system-ui, sans-serif;
}

body.mayan-home-1-react .brand-logo img,
body.mayan-home-1-react .m-brand-logo img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

body.mayan-home-1-react .nx-btn1 a,
body.mayan-home-1-react .nx-btn1 button,
body.mayan-home-1-react .cta-btn a {
  --nx-prime-c: #00a693;
}

body.mayan-home-1-react .path-orange {
  fill: #00a693 !important;
}

/* —— Preloader (MorphingInfinity) —— */
body.mayan-home-1-react #preloader.mayan-preloader {
  background-color: #121212;
  transition:
    opacity 0.65s ease,
    visibility 0.65s ease;
}

body.mayan-home-1-react #preloader.mayan-preloader.preloaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.mayan-home-1-react .mayan-preloader__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.mayan-home-1-react .mayan-preloader__infinity {
  width: 4rem;
  height: 4rem;
  color: #00a693;
  filter: drop-shadow(0 0 18px rgba(0, 166, 147, 0.35));
}

body.mayan-home-1-react a:hover {
  color: #00a693;
}

/* —— Glass header —— */
.mayan-glass-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  padding: 20px clamp(16px, 4vw, 48px);
  pointer-events: none;
}

.mayan-glass-header__backdrop {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  cursor: default;
  pointer-events: auto;
  z-index: 0;
}

.mayan-glass-header {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 3vw, 32px);
  border-radius: 20px;
  background: rgba(30, 30, 30, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.mayan-glass-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.mayan-glass-header__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.mayan-glass-header__titles {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.mayan-glass-header__name {
  font-family: 'Conthrax', system-ui, sans-serif;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
}

.mayan-glass-header__tag {
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  opacity: 0.85;
  margin-top: 2px;
}

.mayan-glass-header__nav ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.mayan-glass-header__nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.mayan-glass-header__nav a:hover {
  color: #00a693;
}

.mayan-glass-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.mayan-glass-header__toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1px;
}

@media (max-width: 991px) {
  .mayan-glass-header__toggle {
    display: flex;
  }

  .mayan-glass-header__nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    padding: 16px;
    border-radius: 16px;
    background: rgba(30, 30, 30, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .mayan-glass-header {
    flex-wrap: wrap;
  }

  .mayan-glass-header__nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mayan-glass-header__nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .mayan-glass-header__nav a {
    display: block;
    padding: 12px 8px;
  }
}

/* —— Minimal hero —— */
.mayan-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 96px;
  color: #fff;
  background: #1a1a1a;
  overflow: hidden;
}

.mayan-hero__bg-wrap {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  pointer-events: none;
}

.mayan-hero__bg-wrap .mayan-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
}

.mayan-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.04) 55%,
    rgba(0, 0, 0, 0.18) 100%
  );
}

.mayan-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.mayan-hero__content-vignette {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: min(112vw, 920px);
  height: clamp(280px, 52vh, 480px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(
    ellipse 92% 78% at 50% 50%,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.42) 32%,
    rgba(0, 0, 0, 0.18) 58%,
    rgba(0, 0, 0, 0) 76%
  );
}

.mayan-hero__copy {
  position: relative;
  z-index: 1;
}

.mayan-hero__logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.mayan-hero__logo {
  width: clamp(72px, 14vw, 112px);
  height: auto;
  object-fit: contain;
}

.mayan-hero__studio {
  font-family: 'Conthrax', system-ui, sans-serif;
  font-size: clamp(0.65rem, 1.35vw, 0.75rem);
  letter-spacing: 0.32em;
  margin: 0 0 14px;
  color: rgba(0, 166, 147, 0.95);
  text-transform: uppercase;
}

.mayan-hero__title {
  font-family: 'Conthrax', system-ui, sans-serif;
  font-size: clamp(1.35rem, 3.8vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.12;
  margin: 0 0 18px;
  text-transform: uppercase;
  max-width: 100%;
}

.mayan-hero__lead {
  font-size: clamp(0.68rem, 1.45vw, 0.8rem);
  line-height: 1.55;
  margin: 0 auto 28px;
  max-width: min(92vw, 26rem);
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 767px) {
  .mayan-hero {
    min-height: clamp(580px, 80vh, 760px);
    align-items: center;
    padding: 112px 20px 88px;
  }

  .mayan-hero__bg-wrap .mayan-hero__bg {
    object-fit: cover;
    object-position: center 22%;
  }

  .mayan-hero__content-vignette {
    width: 120%;
    height: clamp(220px, 42vh, 360px);
  }
}

.mayan-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.mayan-hero .mayan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.65625rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.mayan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.mayan-btn--solid {
  background: #fff;
  color: #1a1a1a;
  border: 2px solid #fff;
}

.mayan-btn--solid:hover {
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.mayan-btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.mayan-btn--outline:hover {
  color: #fff;
  border-color: #00a693;
  background: rgba(0, 166, 147, 0.15);
  transform: translateY(-2px);
}

/* —— Scroll up (React mount; theme styles .nx-scrollup) —— */
body.mayan-home-1-react button.nx-scrollup {
  border: none;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* —— Floating social (bottom-left) —— */
.mayan-float-social {
  position: fixed;
  left: clamp(16px, 3vw, 24px);
  bottom: clamp(16px, 3vw, 24px);
  z-index: 1150;
}

.mayan-float-social__shell {
  position: relative;
  height: 44px;
  min-width: 7.5rem;
  transition: min-width 0.28s ease;
}

.mayan-float-social.is-open .mayan-float-social__shell {
  min-width: 11rem;
}

.mayan-float-social__trigger {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(14, 14, 14, 0.42);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  color: #fff;
  font-family: 'Conthrax', system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  transition: opacity 0.22s ease;
}

.mayan-float-social__trigger i {
  font-size: 0.9rem;
  color: #00a693;
}

@media (hover: hover) and (pointer: fine) {
  .mayan-float-social.is-open .mayan-float-social__trigger {
    opacity: 0;
    pointer-events: none;
  }
}

.mayan-float-social__icons {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: stretch;
  height: 44px;
  width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  border-radius: 999px;
  border: none;
  box-shadow: none;
  transition:
    width 0.28s ease,
    opacity 0.22s ease;
}

.mayan-float-social.is-open .mayan-float-social__icons {
  width: 11rem;
  opacity: 1;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  background: #0a0a0a;
}

.mayan-float-social__icon {
  flex: 1 1 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  color: #fff;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.mayan-float-social__icon:last-child {
  border-right: none;
}

body.mayan-home-1-react .mayan-float-social__icon:hover {
  background: #00a693;
  color: #fff;
}

body.mayan-home-1-react .mayan-float-social__icon:hover i {
  color: #fff;
}

@media (max-width: 767px) {
  .mayan-float-social__shell {
    min-width: 44px;
  }

  .mayan-float-social.is-open .mayan-float-social__shell {
    min-width: 11rem;
  }
}

@media (max-width: 480px) {
  .mayan-float-social__trigger span {
    display: none;
  }

  .mayan-float-social__trigger {
    min-width: 44px;
    width: 44px;
    padding: 0;
    justify-content: center;
  }
}

/* —— Social links —— */
.mayan-social {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mayan-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.mayan-social a:hover {
  color: #00a693;
  border-color: rgba(0, 166, 147, 0.45);
  background: rgba(0, 166, 147, 0.12);
  transform: translateY(-2px);
}

.mayan-social--contact a {
  width: 44px;
  height: 44px;
}

.mayan-contact__social-block {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* —— Brand icon / accent overrides (rest of page) —— */

body.mayan-home-1-react .nx-btn1 a:hover,
body.mayan-home-1-react .nx-btn1 button:hover {
  color: #00a693;
}

body.mayan-home-1-react .sec_title span,
body.mayan-home-1-react .subtitle span {
  color: #00a693;
}

body.mayan-home-1-react .nx-ser1-item .item-serial,
body.mayan-home-1-react .nx-step1-item .item-serial {
  color: #00a693;
}

body.mayan-home-1-react svg path[fill='#FF0000'],
body.mayan-home-1-react svg path[stroke='#FF0000'] {
  fill: #00a693 !important;
  stroke: #00a693 !important;
}
