/* ============================================================
   INDEX PAGE STYLES
   Hero · Work Gallery · Services Hub · Client Carousel · Testimonials
   ============================================================ */

/* HERO SECTION |||||||||||||||||||||||||||||||||||||||||||||||||| */
/* Uses .section.section--hero in HTML */
#hero {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--SPACE-2XL);
  align-items: center;
}

.hero__content {
  max-width: 680px;
}

.hero__definition {
  align-self: center;
}

/* Definition card — shared with about page */
.definition-card {
  border-left: 3px solid var(--C-TEA);
  padding: var(--SPACE-MD) var(--SPACE-XL);
  min-width: 300px;
  max-width: 380px;
}

.definition-card__word {
  font-family: var(--F-QCK);
  font-size: var(--TEXT-XL);
  font-weight: 700;
  color: var(--C-DRK);
  margin-bottom: 0.15rem;
}

.definition-card__phonetic {
  font-family: var(--F-RUB);
  font-size: var(--TEXT-MD);
  font-weight: 400;
  color: var(--C-TEA);
  margin-left: var(--SPACE-XS);
}

.definition-card__pos {
  font-size: var(--TEXT-SM);
  font-style: italic;
  color: var(--C-DRK);
  opacity: 0.45;
  margin-bottom: var(--SPACE-SM);
}

.definition-card__guide {
  font-style: normal;
  letter-spacing: 0.04em;
}

.definition-card__list {
  margin: 0;
  padding-left: var(--SPACE-LG);
  display: flex;
  flex-direction: column;
  gap: var(--SPACE-XS);
}

.definition-card__list li {
  font-size: var(--TEXT-MD);
  color: var(--C-DRK);
  opacity: 0.7;
  line-height: 1.6;
}

@media (max-width: 900px) {
  #hero {
    grid-template-columns: 1fr;
    gap: var(--SPACE-LG);
  }
  .hero__definition {
    display: block;
  }
  .definition-card {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .definition-card {
    padding: var(--SPACE-MD) var(--SPACE-LG);
  }
}


/* WORK GALLERY |||||||||||||||||||||||||||||||||||||||||||||||||| */
.wgallery__wrap {
  position: relative;
  max-width: 100%;
  padding-bottom: 1.5rem; /* half the button height so overlap doesn't clip */
}
.wgallery__btn {
  position: absolute;
  bottom: 0;
  right: var(--SPACE-3XL);
  transform: translateY(50%);
  z-index: 10;
}

@media (max-width: 768px) {
  .wgallery__slide { flex: 0 0 280px; width: 280px; aspect-ratio: 4 / 4; }
  .wgallery__btn {
    right: 50%;
    transform: translateX(50%) translateY(50%);
  }
}
@media (max-width: 480px) {
  .wgallery__slide { flex: 0 0 220px; width: 220px; aspect-ratio: 4 / 4; }
}.wgallery {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.2rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 80px, black calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 80px, black calc(100% - 80px), transparent 100%);
}

@media (max-width: 768px) {
  .wgallery {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%);
  }
}
.wgallery__track {
  display: inline-flex;
  align-items: stretch;
  gap: 10px;
  animation: wgallery-scroll 30s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}
.wgallery__slide {
  flex: 0 0 480px;
  width: 480px;
  aspect-ratio: 16 / 12;
  background: var(--C-WHT);
  border-radius: var(--R-MD);
  border: 1px solid var(--C-LIG);
  box-shadow: var(--S-CARD);
  overflow: hidden;
}
.wgallery__slide img {
  width: 100%; height: 100%;
  display: block; object-fit: cover;
}
@keyframes wgallery-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* CLIENT CAROUSEL |||||||||||||||||||||||||||||||||||||||||||||| */
.logo-carousel {
  width: 100%;
  overflow: hidden;
  max-width: 100%;
  padding: var(--SPACE-MD) 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 80px,
    black calc(100% - 80px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 80px,
    black calc(100% - 80px),
    transparent 100%
  );
}
.logo-track {
  display: inline-flex;
  align-items: center;
  animation: carousel-scroll 40s linear infinite;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
}
.logo-track img {
  height: 90px;
  margin: 0 30px;
  opacity: 0.5;
  transition: opacity 1s ease;
}
@keyframes carousel-scroll {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}










/* TESTIMONIAL GALLERY |||||||||||||||||||||||||||||||||||||||||| */
.tgallery__outer { position: relative; overflow: hidden; max-width: 100%; }
.tgallery {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.2rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 80px, black calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 80px, black calc(100% - 80px), transparent 100%);
}
.tgallery__track {
  display: flex;
  align-items: stretch;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 20px;
  padding: 0 2px;
}
.tgallery__slide {
  position: relative;
  flex: 0 0 calc(33.333% - 14px);
  min-width: calc(33.333% - 14px);
  display: flex;
  flex-direction: column;
}
@media (max-width: 900px) { .tgallery__slide { flex: 0 0 calc(50% - 10px); min-width: calc(50% - 10px); } }
@media (max-width: 560px)  { .tgallery__slide { flex: 0 0 100%; min-width: 100%; } }

.testimonial-card {
  background: var(--C-WHT);
  padding: 2.5rem;
  border-radius: var(--R-MD);
  border: 1px solid var(--C-LIG);
  box-shadow: var(--S-CARD);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

@media (max-width: 768px) {
  .testimonial-card {
    padding: 1.75rem;
    min-height: 0; /* let content dictate height on mobile */
  }
}

@media (max-width: 560px) {
  .testimonial-card {
    padding: 1.5rem;
  }
}
.card-content { display: flex; flex-direction: column; height: 100%; flex-grow: 1; }
.card-content p {
  flex-grow: 1;
  font-family: var(--F-RUB);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--C-DRK);
  text-align: left;
}
.card-content h4 {
  font-family: var(--F-QCK);
  color: var(--C-TEA);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
  text-align: right;
  margin-top: 1.5rem;
}


.tgallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--C-MAG);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  pointer-events: auto;
  cursor: pointer;
  z-index: 35;
  transition: var(--T-BASE);
}
.tgallery__arrow:hover  { opacity: 1 !important; }
.tgallery__arrow--prev  { left: 0; justify-content: flex-start; padding-left: 0.8rem; }
.tgallery__arrow--next  { right: 0; justify-content: flex-end; padding-right: 0.8rem; }
.tgallery__zone {
  position: absolute;
  top: 0; bottom: 0;
  width: 33.333%;
  z-index: 30;
  cursor: pointer;
}
.tgallery__zone--prev   { left: 0; }
.tgallery__zone--centre { left: 33.333%; pointer-events: none; cursor: default; }
.tgallery__zone--next   { right: 0; }
/* Details signature */
.section--details-sig {
  text-align: center;
  padding: 2rem 1rem;
}
.details-sig {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--C-MAG);
  margin: 0;
}