/* ---------------------------------------------------------------
   Home page — hero, stats, apie mus, paslaugos, kodėl mes,
                projektai, logai, faq, cta
--------------------------------------------------------------- */

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 620px;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.1);
  font-size: var(--fs-13);
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide .ph {
  background: transparent;
  color: inherit;
  min-height: 0;
}

/* Hero slides: full-bleed cover photo for every slide (all four currently
   share the same asset; swap in real per-slide photos when available). */
.hero__slide {
  background-color: var(--color-blue-16);
  background-image: url("../images/about-dome-hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Placeholder label is only meant as a source-of-truth marker; hide it now
   that a real photo sits behind the overlay. */
.hero__slide .ph {
  display: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Softer left-side scrim so the photo stays visible but text is still
     readable. Left ~68% navy → fades out by the middle. */
  background: linear-gradient(
    90deg,
    rgba(10, 15, 61, 0.68) 0%,
    rgba(10, 15, 61, 0.55) 30%,
    rgba(10, 15, 61, 0.15) 70%,
    rgba(10, 15, 61, 0) 100%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 60px var(--section-padding-x);
}

.hero__content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__title {
  font-size: clamp(30px, 6vw, 54px);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  color: var(--color-white);
}

.hero__title .accent {
  color: var(--accent);
}

.hero__lead {
  max-width: 400px;
  font-size: var(--fs-17);
  line-height: 1.65;
  color: var(--color-grey-97);
}

.hero__dots {
  position: absolute;
  bottom: 30px;
  left: var(--section-padding-x);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  z-index: 2;
}

.hero__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--color-white-22);
  cursor: pointer;
  transition: background-color .25s ease, width .25s ease;
}

.hero__dot:hover,
.hero__dot:focus-visible {
  background: rgba(255, 255, 255, 0.4);
}

.hero__dot.is-active {
  width: 26px;
  background: var(--accent);
}

/* ---------- STATS ---------- */

.stats {
  background: var(--color-white);
  border-bottom: 1px solid var(--border-subtle);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--container-max);
  margin: 0 auto;
}

.stat {
  padding: 30px var(--section-padding-x);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border-right: 1px solid var(--border-subtle);
}

.stat:last-child {
  border-right: 0;
}

.stat__number {
  font-size: var(--fs-40);
  font-weight: var(--font-weight-bold);
  color: var(--brand);
  line-height: 1.1;
}

.stat__label {
  font-size: var(--fs-14);
  color: var(--text-muted);
}

/* ---------- APIE MUS ---------- */

.about {
  background: var(--bg-page);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about__image {
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__body {
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--color-grey-46-2);
}

/* ---------- PASLAUGOS (services grid) ---------- */

.services {
  background: var(--bg-page);
}

.services__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-18);
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card__media {
  height: 190px;
  background: var(--color-blue-88);
}

.service-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.service-card__title {
  font-size: var(--fs-16);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.service-card__desc {
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--text-muted);
}

.services__actions {
  display: flex;
  justify-content: center;
}

/* ---------- KODĖL MES (why us) ---------- */

.why {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.why__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-14);
}

/* ---------- PROJEKTAI (projects) ---------- */

.projects {
  background: var(--color-white);
}

.projects__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-18);
}

.project-card {
  position: relative;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-blue-63) 0%, var(--color-blue-14) 100%);
  color: var(--color-white);
  display: flex;
  align-items: flex-end;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--color-blue-14-95) 0%, var(--color-blue-14-05) 55%);
  z-index: 1;
}

.project-card__content {
  position: relative;
  z-index: 2;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.project-card__title {
  font-size: var(--fs-16);
  font-weight: var(--font-weight-semibold);
}

.projects__actions {
  display: flex;
  justify-content: center;
}

/* ---------- LOGAI (client logos) ---------- */

.clients {
  background: var(--bg-page);
  padding: 52px 0;
}

.clients__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-30);
  align-items: center;
}

.clients__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.clients__logo {
  width: 90px;
  height: 30px;
  border-radius: 4px;
  background: var(--color-grey-69);
  opacity: 0.28;
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--color-white);
}

.faq__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
  align-items: center;
}

/* ---------- CTA ---------- */

.cta {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  text-align: center;
  padding: var(--section-padding-y) 0;
}

.cta__inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-14);
}

.cta__title {
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-white);
}

.cta__body {
  font-size: var(--fs-16);
  color: var(--color-blue-88);
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .hero {
    min-height: 520px;
  }
  .hero__content { max-width: 500px; }
  .hero__title { font-size: 42px; }
  .about__grid { gap: 40px; }
  .about__image { height: 300px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .clients__list { gap: 32px; }
}

@media (max-width: 767px) {
  .hero {
    min-height: 480px;
    text-align: left;
  }
  .hero__title { font-size: 34px; }
  .hero__lead { font-size: var(--fs-16); }
  .hero__inner {
    padding: 48px var(--section-padding-x);
  }
  .hero__bg::after {
    background: linear-gradient(180deg, var(--color-blue-14-94) 0%, var(--color-blue-14-94) 60%, var(--color-blue-14-30) 100%);
  }
  .stats__grid { grid-template-columns: 1fr; }
  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px var(--section-padding-x);
  }
  .stat:last-child { border-bottom: 0; }
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .clients__list { gap: 24px; }
  .clients__logo { width: 72px; height: 24px; }
  .cta__title { font-size: 30px; }
  .accordion__trigger { font-size: var(--fs-14); }
}
