/* Shared styles for Za nas + Sto nudime pages */

/* About hero with animated wordmark */
.about-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 170, 188, 0.16), transparent 36%),
    radial-gradient(circle at 88% 10%, rgba(46, 49, 145, 0.14), transparent 40%),
    linear-gradient(180deg, #f4f7ff 0%, #ffffff 70%);
}

.about-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.about-hero__orb--1 {
  width: 260px;
  height: 260px;
  background: rgba(0, 170, 188, 0.18);
  top: 8%;
  left: 4%;
}

.about-hero__orb--2 {
  width: 240px;
  height: 240px;
  background: rgba(46, 49, 145, 0.14);
  bottom: 10%;
  right: 6%;
}

.about-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.about-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(46, 49, 145, 0.08);
  color: var(--indigo);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-hero__copy h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--dark);
  margin: 0 0 16px;
}

.about-hero__copy > p {
  max-width: 52ch;
  margin: 0 0 28px;
  color: #4b5563;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.7;
}

.about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-hero__visual {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.about-orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.about-orbit__ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(46, 49, 145, 0.16);
}

.about-orbit__ring--1 {
  width: 58%;
  height: 58%;
  border-color: rgba(0, 170, 188, 0.3);
  animation: aboutSpin 18s linear infinite;
}

.about-orbit__ring--2 {
  width: 76%;
  height: 76%;
  animation: aboutSpin 30s linear infinite reverse;
}

.about-orbit__ring--3 {
  width: 94%;
  height: 94%;
  border-color: rgba(255, 193, 7, 0.28);
  animation: aboutSpin 40s linear infinite;
}

.about-orbit__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px;
  border-radius: 50%;
}

.about-orbit__dot--1 {
  background: var(--teal);
  animation: aboutOrbitA 16s linear infinite;
}

.about-orbit__dot--2 {
  background: var(--indigo);
  animation: aboutOrbitB 24s linear infinite reverse;
}

.about-orbit__dot--3 {
  background: var(--yellow);
  animation: aboutOrbitC 20s linear infinite;
}

.about-orbit__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 28%;
  height: 28%;
  margin: -14%;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  animation: aboutLogoCircle 12s linear infinite;
}

.about-orbit__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 10px 24px rgba(0, 170, 188, 0.28));
}

@keyframes aboutSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes aboutOrbitA {
  from { transform: rotate(0deg) translateX(100px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

@keyframes aboutOrbitB {
  from { transform: rotate(40deg) translateX(130px) rotate(-40deg); }
  to { transform: rotate(400deg) translateX(130px) rotate(-400deg); }
}

@keyframes aboutOrbitC {
  from { transform: rotate(130deg) translateX(160px) rotate(-130deg); }
  to { transform: rotate(490deg) translateX(160px) rotate(-490deg); }
}

/* Logo travels around the rings; counter-rotate keeps it upright */
@keyframes aboutLogoCircle {
  from { transform: rotate(0deg) translateX(110px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(110px) rotate(-360deg); }
}

.about-split {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 36px;
  align-items: center;
}

.about-split__intro {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.about-split__logo {
  display: block;
  height: 88px;
  width: auto;
  max-width: min(280px, 100%);
  margin: 0 auto;
  object-fit: contain;
  background: transparent;
}

.about-split__intro h2 {
  margin: 12px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--dark);
}

.about-split__body p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 16px;
}

.team-section__head {
  margin-bottom: 40px;
}

.page-hero {
  padding: 72px 0 48px;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 170, 188, 0.12), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(46, 49, 145, 0.1), transparent 40%),
    linear-gradient(180deg, #f7faff 0%, #fff 100%);
  text-align: center;
}

.page-hero__logo {
  display: block;
  height: 72px;
  width: auto;
  max-width: min(240px, 70vw);
  margin: 0 auto 14px;
  object-fit: contain;
  background: transparent;
}

.page-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(46, 49, 145, 0.08);
  color: var(--indigo);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 14px;
}

.page-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: #4b5563;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.7;
}

.page-section {
  padding: 64px 0;
}

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

.page-block {
  max-width: 820px;
  margin: 0 auto 40px;
}

.page-block h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-block p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.mission-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(46, 49, 145, 0.08);
}

.mission-card__copy {
  padding: 40px;
}

.mission-card__copy h2 {
  margin-bottom: 14px;
}

.mission-card__aside {
  background: linear-gradient(160deg, #0b1630, #2e3191 55%, #00aabc);
  color: #fff;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.mission-card__aside h3 {
  font-size: 1.3rem;
}

.mission-card__aside p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.team-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 170, 188, 0.1), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(46, 49, 145, 0.08), transparent 42%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

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

.team-card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(46, 49, 145, 0.08);
  border-radius: 22px;
  padding: 20px 20px 18px;
  box-shadow: 0 12px 32px rgba(46, 49, 145, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal), var(--indigo));
}

.team-card:nth-child(2)::before {
  background: linear-gradient(180deg, var(--indigo), #5b5fd1);
}

.team-card:nth-child(3)::before {
  background: linear-gradient(180deg, var(--yellow), var(--teal));
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 170, 188, 0.28);
  box-shadow: 0 18px 40px rgba(46, 49, 145, 0.12);
}

.team-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.team-card__photo {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(160deg, #eef2ff, #e6fafb);
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px rgba(0, 170, 188, 0.35);
}

.team-card:nth-child(2) .team-card__photo {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px rgba(46, 49, 145, 0.35);
}

.team-card:nth-child(3) .team-card__photo {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px rgba(255, 193, 7, 0.55);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

.team-card:hover .team-card__photo img {
  transform: scale(1.06);
}

.team-card__id {
  min-width: 0;
}

.team-card h3 {
  font-size: 1.05rem;
  color: var(--dark);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.team-card__role {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 170, 188, 0.12);
  color: var(--teal);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.team-card:nth-child(2) .team-card__role {
  background: rgba(46, 49, 145, 0.1);
  color: var(--indigo);
}

.team-card:nth-child(3) .team-card__role {
  background: rgba(255, 193, 7, 0.2);
  color: #a07a00;
}

.team-card > p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 14px;
  flex: 1;
}

.team-card__mail {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--indigo);
}

.team-card__mail:hover {
  color: var(--teal);
}

.team-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: auto;
}

/* Services page */
.services-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.services-intro__card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 12px 34px rgba(46, 49, 145, 0.08);
}

.services-intro__card ul {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.services-intro__card li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-weight: 600;
}

.services-intro__card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 170, 188, 0.15);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 10px 28px rgba(46, 49, 145, 0.06);
  scroll-margin-top: calc(var(--header-h, 72px) + 16px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 170, 188, 0.28);
  box-shadow: 0 18px 40px rgba(46, 49, 145, 0.12);
}

.service-card img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(46, 49, 145, 0.16);
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.service-card__points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-card__points span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--indigo);
  font-size: 0.78rem;
  font-weight: 700;
}

.service-card--orange {
  border-color: rgba(255, 106, 26, 0.2);
}

.service-card--orange:hover {
  border-color: rgba(255, 106, 26, 0.45);
}

.service-card--orange .service-card__points span {
  background: rgba(255, 106, 26, 0.1);
  color: #e8590c;
}

.page-cta {
  text-align: center;
  padding: 48px 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, #eef2ff, #f0fdfa);
  border: 1px solid var(--border);
}

.page-cta h2 {
  margin-bottom: 12px;
  color: var(--dark);
}

.page-cta p {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .about-hero__grid,
  .about-split,
  .mission-card,
  .services-intro,
  .team-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-hero__copy {
    text-align: center;
  }

  .about-hero__copy > p {
    margin-left: auto;
    margin-right: auto;
  }

  .about-hero__actions {
    justify-content: center;
  }

  .about-hero__visual {
    width: min(280px, 70vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-orbit__ring,
  .about-orbit__dot,
  .about-orbit__logo {
    animation: none;
  }
}
