﻿/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  padding-top: var(--nav-h); padding-bottom: 56px;
  background: url('/assets/images/hero.webp') center/cover no-repeat;
  background-position-y: 67px;
}
.hero__row {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: clamp(36px, 4.5vw, 64px);
  padding-top: 72px; padding-bottom: 40px;
}
.hero__inner { flex: 0 0 min(520px, 48%); }
.hero__title {
  max-width: 560px;
  margin-bottom: 22px;
  line-height: 1.12;
  letter-spacing: 0;
}
.hero__sub {
  max-width: 500px;
  margin-bottom: 22px;
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.72;
}
.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.hero__points li {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
  color: var(--blue);
  font-size: .82rem;
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(20,36,52,.05);
  backdrop-filter: blur(8px);
}
.hero__points li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(174,247,183,.32);
}
.hero__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero__device {
  flex: 1 1 0; min-width: 0; overflow: visible;
  display: flex; justify-content: flex-end; align-items: center;
}
.hero__device > .device-laptop {
  flex: 0 0 auto;
  zoom: .78;
}

/* ---- Trusted Marquee ---- */
/* "Trusted by:" pinned to bottom of hero section */
.trusted__label {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  max-width: var(--max); margin: 0 auto; padding: 0 32px 14px;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-light);
}
.trusted__label-short {
  display: none;
}
.trusted {
  background: var(--bg-dark); padding: 40px 0; overflow: hidden;
}
.marquee-wrap {
  position: relative;
}
.marquee-wrap::before, .marquee-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none;
}
.marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--bg-dark), transparent); }
.marquee-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg-dark), transparent); }

/* Track is built by JS and animated with compositor-friendly CSS transforms. */
.marquee-track {
  --marquee-distance: 0px;
  --marquee-duration: 24s;
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  will-change: transform;
  animation: marqueeSlide var(--marquee-duration) linear infinite;
  transform: translate3d(0, 0, 0);
}
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marqueeSlide {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * var(--marquee-distance)), 0, 0); }
}
.marquee-logo {
  width: clamp(112px, 11vw, 148px);
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.marquee-track img { /* Adjusted for smaller, consistent size */
  height: 70px; max-width: 120px; opacity: .55; filter: brightness(0) invert(1);
  transition: opacity .25s, transform .25s;
  object-fit: contain; flex-shrink: 0;
}
.marquee-track img:hover { opacity: 1; transform: scale(1.08); }

/* Override for logos with solid backgrounds that don't work with the invert filter */
.marquee-track img[src*="alho.webp"],
.marquee-track img[src*="gup.webp"],
.marquee-track img[src*="h4a.webp"],
.marquee-track img[src*="iwb.webp"],
.marquee-track img[src*="kki.webp"] {
  filter: none; /* Disable the brightness/invert filter */
  background: white; /* Give them a solid white background to be visible */
  padding: 6px;
  border-radius: 4px;
}

/* ---- Section Headers ---- */
.sec-head { text-align: center; max-width: 600px; margin: 0 auto 64px; }
.sec-head p { margin-top: 14px; font-size: .97rem; color: var(--text-light); line-height: 1.7; }

/* ---- Step Cards (landing) ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px 32px; text-align: center;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
  cursor: default;
}
.step-card--link {
  color: inherit;
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.step-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-6px);
  border-color: var(--green-mid);
}
.step-card__icon {
  width: 68px; height: 68px; background: var(--green-light); border-radius: 18px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
  transition: background .25s, transform .25s var(--ease);
}
.step-card:hover .step-card__icon { background: var(--blue); transform: scale(1.08) rotate(-3deg); }
.step-card:hover .step-card__icon svg { color: #fff; }
.step-card__icon svg { width: 30px; height: 30px; color: var(--blue); transition: color .25s; }
.step-card__num { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--text); margin-bottom: 12px; text-transform: uppercase; border: 1px solid var(--blue); padding: 4px 12px; border-radius: var(--radius-lg); }
.step-card h3 { font-size: 1rem; margin-bottom: 10px; }
.step-card p { font-size: .9rem; color: var(--text-light); line-height: 1.65; }
.step-card--video { padding: 0; overflow: hidden; }
.step-card__clip {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden; aspect-ratio: 16/9; position: relative;
}
.step-card__clip::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 24px 6px rgba(0,0,0,.25);
  border-radius: inherit;
}
.step-card__clip video,
.step-card__clip img { width: 100%; height: 100%; object-fit: cover; display: block; }
#step1Video { transform: scale(1.94); }
#step2Video, #step3Video { transform: scale(1.12); }
.step-card--video .step-card__body { padding: 24px 28px 28px; text-align: center; }

/* ---- Before / After Slider ---- */
.ba-section { background: var(--bg-off); padding: 96px 0; }
.ba-section .sec-head { text-align: center; }
.ba-section .sec-head p { color: var(--text-light); }
.ba-section .sec-head h2 { color: var(--text); }
.ba-slider {
  position: relative; width: 100%; max-width: 880px; margin: 0 auto;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-xl); user-select: none;
  cursor: col-resize;
  touch-action: pan-y;
  -webkit-user-select: none;
}
.ba-slider__after { display: block; width: 100%; height: auto; }
.ba-slider__before-wrap {
  position: absolute; top: 0; left: 0; height: 100%;
  overflow: hidden;
  width: 50%; /* controlled by JS */
  background: var(--blue)
}
.ba-slider__before {
  /* Use explicit width and max-width:none to prevent image from shrinking inside its resizing container */
  width: 880px;
  max-width: none;
  height: 100%;
  object-fit: cover; object-position: left top;
}
.ba-slider__after,
.ba-slider__before {
  -webkit-user-drag: none;
  user-select: none;
}
.ba-handle {
  position: absolute; top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 10; cursor: col-resize;
  touch-action: none;
}
.ba-handle__line {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: #fff; transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0,0,0,.5);
}
.ba-handle__circle {
  width: 44px; height: 44px; background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 16px rgba(0,0,0,.35); position: relative; z-index: 1;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.ba-slider:hover .ba-handle__circle { transform: scale(1.1); box-shadow: 0 4px 24px rgba(0,0,0,.45); }
.ba-handle__circle svg { color: var(--text); }
.ba-label {
  position: absolute; bottom: clamp(10px, 2vw, 16px); padding: clamp(3px, 1.5vw, 5px) clamp(8px, 3vw, 14px);
  background: rgba(0,0,0,.55); color: #fff; border-radius: 20px;
  font-size: clamp(0.6rem, 2vw, 0.75rem); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  backdrop-filter: blur(6px); pointer-events: none;
}
.ba-label--before { left: clamp(10px, 2vw, 16px); }
.ba-label--after  { right: clamp(10px, 2vw, 16px); }

/* ---- Testimonial (full-bleed laptop bg, text overlay, avatar bottom-right) ---- */
.testimon-section {
  position: relative; overflow: visible; min-height: 520px;
  display: flex; align-items: center;
}
.testimon-section__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}
.testimon-section__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.75) 55%, rgba(255,255,255,.35) 100%);
}
.testimon-section__inner {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto; padding: 96px 32px 128px;
  max-width: 580px; margin-left: max(32px, calc((100% - var(--max)) / 2 + 32px));
}
.testimon-section__inner .label { margin-bottom: 16px; }
.testimon-section__inner h2 { margin-bottom: 28px; }
.testimon-section__quote {
  font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 500; font-style: italic;
  line-height: 1.78; color: var(--text-mid);
}
.testimon-section__quote::before { content: '\201C'; }
.testimon-section__quote::after  { content: '\201D'; }
.testimon-section__person {
  position: absolute; bottom: -84px; right: 160px; z-index: 3;
  text-align: center;
}
.testimon-section__avatar {
  width: 250px; height: 250px; border-radius: 50%; object-fit: cover;
  border: 4px solid #fff; box-shadow: 0 6px 28px rgba(0,0,0,.18); display: block; margin: 0 auto;
}
.testimon-section__name {
  font-weight: 700; font-size: .92rem; color: var(--text); margin-top: 10px;
}
.testimon-section__role {
  font-size: .8rem; color: var(--text-light); margin-top: 2px;
}

/* ---- Gallery ---- */
#gallery {
  padding-top: 148px;
}

.gallery__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.gallery__item {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; cursor: zoom-in; position: relative;
}
.gallery__item::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(59,124,90,.0); transition: background .25s;
}
.gallery__item:hover::after { background: rgba(59,124,90,.12); }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__zoom-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0);
  width: 96px; height: 96px; background: rgba(255,255,255,.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s var(--ease); z-index: 1;
}
.gallery__item:hover .gallery__zoom-icon { transform: translate(-50%,-50%) scale(1); }
.gallery__nav {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px;
}
.gallery__btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border);
  background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s, transform .2s;
}
.gallery__btn:hover { border-color: var(--blue); background: var(--green-light); transform: scale(1.08); }
.gallery__dots { display: flex; gap: 8px; }
.gallery__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background .2s, transform .2s; }
.gallery__dot.active { background: var(--blue); transform: scale(1.3); }
.gallery__caption { text-align: center; font-size: .82rem; color: var(--text-light); margin-top: 16px; }

/* ---- Lightbox ---- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.92); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: min(90vw, 1200px); max-height: 85vh;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  object-fit: contain;
  animation: lbIn .25s var(--ease);
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
.lightbox__close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,.2); }
.lightbox__prev, .lightbox__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background .2s, transform .2s;
}
.lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,.2); transform: translateY(-50%) scale(1.08); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: .8rem; color: rgba(255,255,255,.6); font-family: var(--font); font-weight: 600;
}

/* ---- Home Refinements ---- */
.hero {
  background-position: center;
  background-position-y: 67px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.66) 48%, rgba(255,255,255,.18) 100%);
}

.hero__sub {
  white-space: normal;
}

.trusted {
  background: var(--blue);
}

.ba-slider,
.video-card,
.features-cta__visual img {
  border-radius: var(--radius);
}

.ba-slider {
  box-shadow: var(--shadow-card-hover);
}

.testimon-section__overlay {
  background: linear-gradient(105deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 54%, rgba(255,255,255,.38) 100%);
}

