/* AC Bilişim – service detail pages
   Hero: centred heading, visual centred underneath.
   - Wide photo (.ac-service-image) for services that have one
   - Portrait service video (.ac-service-video) as a centred card for the others */

.container.service-hero {
  padding-top: 7rem;
  padding-bottom: 4.5rem;
}
.content-grid.services-hero {
  grid-template-columns: 1fr;
  grid-row-gap: 3.5rem;
}
.content-grid.services-hero > .grid-block { width: 100%; }
.text-box.services-hero-heading {
  text-align: center;
  max-width: 52rem;
  margin: 0 auto;
}
.services-hero-heading .services-eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.9rem;
}
.services-hero-heading .h1-heading.sub-hjero {
  margin: 0 0 1.1rem;
  font-size: clamp(3rem, 5.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.services-hero-heading .services-hero-sub {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 1.35rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

/* wide photo */
.content-grid.services-hero .service-card-container.ac-service-image {
  width: 100%;
  max-width: 1200px !important;
  min-width: 0 !important; /* template forces min-width:100% */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 16 / 9;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}
.ac-service-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* portrait video card */
.content-grid.services-hero .service-card-container.ac-service-video {
  width: 100%;
  max-width: 30rem !important;
  min-width: 0 !important;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background: transparent;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}
.ac-service-video .cf-autoplay.cf-local {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 132.2222%; /* 1080 x 1428 videos */
  background: transparent;
}
.ac-service-video .cf-autoplay.cf-local video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media screen and (max-width: 991px) {
  .container.service-hero { padding-top: 6rem; padding-bottom: 3.5rem; }
  .content-grid.services-hero { grid-row-gap: 2.5rem; }
  .content-grid.services-hero .service-card-container.ac-service-image { border-radius: 22px; }
  .content-grid.services-hero .service-card-container.ac-service-video { max-width: 28rem; }
}
@media screen and (max-width: 479px) {
  .services-hero-heading .h1-heading.sub-hjero { font-size: 2.6rem; }
  .services-hero-heading .services-hero-sub { font-size: 1.1rem; }
  .content-grid.services-hero .service-card-container.ac-service-image { aspect-ratio: 4 / 3; border-radius: 18px; }
  .content-grid.services-hero .service-card-container.ac-service-video { border-radius: 20px; }
}
