/* -----------------------------------------------------------------
   8. Homepage — Hero
   ----------------------------------------------------------------- */
.hero-ref {
  position: relative;
  overflow: hidden;
  background-color: var(--lexx-light-gray);
}

.hero-ref__texture {
  position: absolute;
  inset: 0;
  background: url('../../images/texture.png');
  background-position: right bottom;
  background-size: auto;
  background-repeat: no-repeat;
  background-position-x: 300px;
  pointer-events: none;
  z-index: 0;
}

.hero-ref .shell {
  position: relative;
  z-index: 1;
}

.hero-ref__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 520px;
}

.hero-ref__content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.hero-ref__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.hero-ref__title {
  color: var(--lexx-text);
  font-weight: 800;
  line-height: 0.85;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 40px;
}

.hero-ref__title-orange {
  color: var(--lexx-accent-orange);
  letter-spacing: -2px;
  font-size: 48px;
}

.hero-ref__content hr {
  max-width: 300px;
  margin-bottom: 0;
}

.hero-ref__title-orange b {
  font-weight: 800;
  letter-spacing: -5px;
}

@keyframes hero-ref-live-neon {
  0%,
  100% {
    text-shadow:
      0 0 1px color-mix(in srgb, var(--lexx-accent-orange) 55%, transparent),
      0 0 4px color-mix(in srgb, var(--lexx-accent-orange) 32%, transparent),
      0 0 10px color-mix(in srgb, var(--lexx-accent-orange) 20%, transparent),
      0 0 18px color-mix(in srgb, var(--lexx-accent-orange) 12%, transparent);
      opacity: 1;
  }
  50% {
    text-shadow:
      0 0 2px color-mix(in srgb, var(--lexx-white) 88%, transparent),
      0 0 6px color-mix(in srgb, var(--lexx-white) 42%, transparent),
      0 0 12px color-mix(in srgb, var(--lexx-white) 28%, transparent),
      0 0 22px color-mix(in srgb, var(--lexx-white) 18%, transparent),
      0 0 32px color-mix(in srgb, var(--lexx-white) 10%, transparent);
      opacity: 0.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ref__live-word {
    animation: none;
    text-shadow:
      0 0 1px color-mix(in srgb, var(--lexx-accent-orange) 55%, transparent),
      0 0 6px color-mix(in srgb, var(--lexx-accent-orange) 35%, transparent),
      0 0 14px color-mix(in srgb, var(--lexx-accent-orange) 20%, transparent);
  }
}

.hero-ref__title .hero-ref__title-small {
  font-size: 28px;
  line-height: 1;
}

.hero-ref__sub {
  font-weight: 500;
  color: var(--lexx-text);
  font-weight: 700;
  line-height: 1.2;
  font-size: 20px;
  max-width: 415px;
}

.hero-ref__sub span {
  color: var(--lexx-accent-orange);
  animation: hero-ref-live-neon 3s ease-in-out infinite;
}


.hero-hero-ref__sub--paragraph {
  max-width: 550px;
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
}

.hero-ref__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: stretch;
}

.hero-ref__visual-bg {
  position: absolute;
  top: 0;
  right: -9999px;
  bottom: 0;
  left: 20%;
  border-radius: 0 0 0 40px;
  z-index: 0;
}

.hero-ref__image {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: 90%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center center;
  margin-top: auto;
  margin-bottom: auto;
}

/* Frame matches former inline SVG layout (viewBox -32 -32 644 484); photo is HTML <img> for iOS WebKit. */
.hero-ref__visual-frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 90%;
  aspect-ratio: 644 / 484;
  max-height: 520px;
  margin-top: auto;
  margin-bottom: auto;
}

.hero-ref__photo {
  position: absolute;
  left: calc(32 / 644 * 100%);
  top: calc(32 / 484 * 100%);
  width: calc(580 / 644 * 100%);
  height: calc(420 / 484 * 100%);
  object-fit: cover;
  object-position: center center;
  border-radius: 24px;
  display: block;
}

.hero-ref__hero-svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: visible;
  pointer-events: none;
}

.hero-ref__orbit-text {
  font: 700 12px/1 var(--lexx-font-primary, system-ui, sans-serif);
  letter-spacing: 2.1px;
  text-transform: uppercase;
  fill: var(--lexx-text);
  transition: fill 0.3s ease;
}


/* -----------------------------------------------------------------
   9. Homepage — Offers
   ----------------------------------------------------------------- */
.section-offers--revamp {
  position: relative;
  background-color: var(--lexx-white);
  padding: var(--lexx-section-pad) 0;
  overflow: hidden;
}

.section-offers--revamp .shell {
  max-width: var(--lexx-container);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.offer-card {
  position: relative;
}

.offer-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--lexx-white);
  border: 1px solid var(--lexx-border);
  border-radius: var(--lexx-radius-card);
  overflow: hidden;
  transition: all 0.5s ease-in-out;
  height: 100%;
  box-shadow: var(--lexx-shadow);
}

.offer-card__link:hover {
  transform: translateY(-8px);
  border-color: var(--lexx-light-gray);
  box-shadow: var(--lexx-shadow-hover);
}

.offer-card__image {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--lexx-light-gray);
}

.offer-card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.5s ease-in-out !important;
}

.offer-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.25) 100%);
  z-index: 1;
}

.offer-card__link:hover .offer-card__image img {
  transform: scale(1.08);
}

.offer-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.offer-card__title {
  font-size: clamp(20px, 20px, 24px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px !important;
  color: var(--lexx-text);
}

.offer-card__content {
  color: var(--lexx-text);
  font-size: clamp(14px, 15px, 15px);
  line-height: 1.6;
  margin-bottom: 20px !important;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offer-card__content p {
  margin: 0 0 8px;
}

.offer-card__content p:last-child {
  margin-bottom: 0;
}

.offer-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lexx-accent-blue);
  font-weight: 400;
  font-size: 14px;
  margin-top: auto;
  position: relative;
}

.offer-card__cta:after {
  content: '→';
  transition: transform 0.3s ease;
}

.offer-card__link:hover .offer-card__cta:after {
  transform: translateX(4px);
}

/* -----------------------------------------------------------------
   10. Homepage — Testimonials
   ----------------------------------------------------------------- */
.section-testimonials--revamp .shell {
  max-width: var(--lexx-container);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 4rem;
}

.testimonials-title {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px !important;
  color: var(--lexx-text);
}

.testimonials-intro {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 400;
  max-width: calc(min(1000px, 100%));
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  position: relative;
  background: var(--lexx-white);
  border: 1px solid var(--lexx-border);
  box-shadow: var(--lexx-shadow);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--lexx-shadow-hover);
}

.testimonial-card__quote {
  font-size: 21px;
  line-height: 1.5;
  font-weight: 400;
  font-style: italic;
  flex: 1;
  position: relative;
  padding-top: 50px;
  color: var(--lexx-text);
}

.testimonial-card__quote:before {
  content: '\201C';
  position: absolute;
  top: 0;
  left: -12px;
  font-size: 80px;
  line-height: 1;
  color: var(--lexx-accent-orange);
  font-family: var(--lexx-font-primary);
  font-weight: 700;
}

.testimonial-card__author {
  margin-top: auto;
  padding-top: 24px;
}

.testimonial-card__name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--lexx-accent-orange);
  font-style: normal;
  margin-bottom: 4px;
  font-family: Georgia, 'Times New Roman', serif;
}

.testimonial-card__title {
  display: block;
  font-size: 21px;
  color: var(--lexx-accent-blue);
  letter-spacing: 0.12em;
  font-weight: 400;
  display: none;
}

/* -----------------------------------------------------------------
   11. Homepage — About
   ----------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  display: none;
  position: relative;
}

.about-title {
  font-size: 42px;
  line-height: 1.25;
  margin-bottom: 20px !important;
  font-weight: 800;
  color: var(--lexx-text);
}

.about-subtitle {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 400;
  margin-bottom: 20px !important;
  max-width: 100%;
}

.about-content p {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--lexx-text);
  max-width: 100%;
  margin-bottom: 0;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.perk-card {
  background: var(--lexx-white);
  border: 1px solid var(--lexx-border);
  border-radius: var(--lexx-radius-card);
  padding: 28px;
  transition: all 0.5s ease-in-out;
}

.perk-card:hover {
  transform: translateY(-4px);
  border-color: var(--lexx-text);
  box-shadow: 0 12px 32px var(--lexx-light-gray);
}

.perk-icon {
  margin-bottom: 20px !important;
  display: flex;
  align-items: center;
}

.perk-icon img {
  height: 48px;
  width: auto;
  filter: brightness(1.1);
  transform: scale(1);
  transition: transform 0.5s ease-in-out !important;
}

.perk-card:hover .perk-icon img {
  transform: scale(1.1);
}

.perk-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px !important;
  color: var(--lexx-text);
}

.perk-content p {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  margin: 0 0 8px;
}

.perk-content p:last-child {
  margin-bottom: 0;
}

.about-figure {
  position: relative;
  width: 100%;
  padding-top: 75%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* -----------------------------------------------------------------
   12. Homepage — Partners
   ----------------------------------------------------------------- */
.section-partners--revamp {
  position: relative;
  background: url('../../images/texture.png') center / cover no-repeat, var(--lexx-light-gray);
  background-size: contain;
  background-position-x: -300px;
  background-position-y: -10px;
  padding: var(--lexx-section-pad) 0;
  overflow: hidden;
}

.section-partners--revamp .shell {
  max-width: var(--lexx-container);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.partners-header {
  text-align: center;
  margin-bottom: 3rem;
}

.partners-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  color: var(--lexx-text);
}

.list-logos--revamp {
  list-style: none;
  margin: 0;
  display: flex;
  overflow: hidden;
}

.list-logos--revamp .slick-list {
  overflow: visible;
}

.list-logos--revamp .slick-track {
  display: flex;
  align-items: center;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  height: 200px;
  flex-shrink: 0;
}

.partner-logo__link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--lexx-white);
  border-radius: 12px;
  padding: 32px 48px;
  height: 160px;
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--lexx-border);
}

.partner-logo__link:hover {
  transform: translateY(-2px);
  box-shadow: var(--lexx-shadow);
}

.partner-logo__img {
  max-width: 260px;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* -----------------------------------------------------------------
   Homepage — Top certifications
   ----------------------------------------------------------------- */
.section-top-certifications--revamp {
  position: relative;
  padding: var(--lexx-section-pad) 0;
  overflow: hidden;
  background: url(../../images/texture.png) center / cover no-repeat, linear-gradient(0deg, var(--lexx-white) 0%, var(--lexx-light-gray) 100%);
  background-size: auto;
  background-position-x: -300px;
  background-position-y: -10px;
}

.section-top-certifications--revamp .shell {
  max-width: var(--lexx-container);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.top-certifications-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.top-certifications-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 !important;
  color: var(--lexx-text);
}

.top-certifications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.top-cert-card {
  position: relative;
  min-width: 0;
}

.top-cert-card__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  height: 100%;
  padding: 24px;
  box-sizing: border-box;
  background: var(--lexx-white);
  border: 1px solid var(--lexx-border);
  border-radius: var(--lexx-radius-card);
  box-shadow: var(--lexx-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.top-cert-card__link:hover {
  transform: translateY(-8px);
  border-color: var(--lexx-light-gray);
  box-shadow: var(--lexx-shadow-hover);
  text-decoration: none;
}

.top-cert-card__link:focus-visible {
  transform: translateY(-8px);
  border-color: var(--lexx-accent-blue);
  box-shadow: var(--lexx-shadow-hover), 0 0 0 3px var(--lexx-focus-ring);
  outline: 2px solid var(--lexx-accent-blue);
  outline-offset: 3px;
  text-decoration: none;
}

.top-cert-card__tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--lexx-white);
  background: linear-gradient(135deg, var(--lexx-accent-orange), var(--lexx-light-orange));
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(226, 80, 39, 0.35);
}

.top-cert-card__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 140px;
  margin-bottom: 8px;
}

.top-cert-card__badge img,
.top-cert-card__badge-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
}

.top-cert-card__badge--placeholder {
  min-height: 72px;
}

.top-cert-card__badge--placeholder .top-cert-card__badge-img {
  max-height: 56px;
  width: auto;
  opacity: 0.85;
}

.top-cert-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
  min-width: 0;
}

.top-cert-card__title {
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px !important;
  margin-top: 10px;
  color: var(--lexx-text);
  text-decoration: none;
}

.top-cert-card__excerpt {
  color: var(--lexx-text);
  font-size: clamp(14px, 1.2vw, 15px);
  line-height: 1.6;
  margin-bottom: 20px !important;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-decoration: none;
}

.top-cert-card__excerpt p {
  margin: 0;
  text-decoration: none;
}

.top-cert-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--lexx-accent-blue);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.top-cert-card__cta::after {
  content: '→';
  transition: transform 0.4s ease-in-out;
  text-decoration: none;
}

.top-cert-card__link:hover .top-cert-card__cta::after,
.top-cert-card__link:focus-visible .top-cert-card__cta::after {
  transform: translateX(4px);
}

.top-cert-card__cta-label {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  text-decoration: none;
}

.top-cert-card__cta-label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s ease-in-out;
}

.top-cert-card__link:hover .top-cert-card__cta-label::after,
.top-cert-card__link:focus-visible .top-cert-card__cta-label::after {
  transform: scaleX(1);
}

