/* ==========================================================================
   UMS Typography Alignment & Minimal Reveal System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Universal Section Headings (Centered by Default)
   -------------------------------------------------------------------------- */
.cms-theme-ums h2,
.cms-theme-ums .display-heading,
.cms-theme-ums .capabilities-intro h2,
.cms-theme-ums .quality h2,
.cms-theme-ums .machine-range__head h2,
.cms-theme-ums .sectors-head h2,
.cms-theme-ums .workflow-head h2,
.cms-theme-ums .contact-map__head h2,
.cms-theme-ums .contact-project__copy h2,
.cms-theme-ums .corporate-story__copy h2,
.cms-theme-ums .mission-vision__head h2,
.cms-theme-ums .corporate-principles__head h2,
.cms-theme-ums .career-culture__head h2,
.cms-theme-ums .career-application__copy h2,
.cms-theme-ums .showcase-intro__copy h2,
.cms-theme-ums .showcase-head h2,
.cms-theme-ums .precision-band h2,
.cms-theme-ums .configuration__head h2,
.cms-theme-ums .product-rich-content h2,
.cms-theme-ums .product-related__head h2,
.cms-theme-ums .chain-section__head h2,
.cms-theme-ums .service-image-band__copy h2,
.cms-theme-ums .page-cta h2,
.cms-theme-ums .service-rich-content__body h2,
.cms-theme-ums .ums-content-carousel__heading h2,
.cms-theme-ums .ums-main-slider .main-slider__content h2,
.cms-theme-ums .ytm-section .section-title__title,
.cms-theme-ums .ytm-richtext h2 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-wrap: balance !important;
  max-width: min(100%, 28ch);
}

/* Container-wide Centered Components: Photo Gallery, Products Carousel, Services Carousel, Product Category Modern CTA */
.cms-theme-ums .ums-content-carousel__heading,
.cms-theme-ums .ums-content-carousel__heading h2,
.cms-theme-ums .ums-content-carousel__heading p,
.cms-theme-ums .ums-content-carousel__desc,
.cms-theme-ums .ums-content-carousel__desc p,
.cms-theme-ums .ums-photo-gallery__head,
.cms-theme-ums .ums-photo-gallery__head h2,
.cms-theme-ums .ums-photo-gallery__content,
.cms-theme-ums .ums-photo-gallery__content p,
.cms-theme-ums .interface-band__inner,
.cms-theme-ums .interface-band h2,
.cms-theme-ums .interface-band p,
.cms-theme-ums .interface-band__text {
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-wrap: balance !important;
}

/* Card titles inside multi-column table/grid rows remain aligned to their card */
.cms-theme-ums .catalog-item h2,
.cms-theme-ums .product-entry__title h2,
.cms-theme-ums .function-card h2,
.cms-theme-ums .machine-card h3,
.cms-theme-ums .service-item h3,
.cms-theme-ums .sector-copy h3,
.cms-theme-ums .principle h3 {
  text-align: left !important;
  margin-inline: 0 !important;
  max-width: none !important;
}

/* --------------------------------------------------------------------------
   2. Main Layouts / Hero Sections: Left Aligned (Sola Dayalı)
   -------------------------------------------------------------------------- */
.cms-theme-ums .hero,
.cms-theme-ums .hero-layout,
.cms-theme-ums .hero-copy,
.cms-theme-ums .ytm-main-hero,
.cms-theme-ums .ytm-main-hero__content,
.cms-theme-ums .ytm-main-split,
.cms-theme-ums .ytm-main-split__content,
.cms-theme-ums .ytm-main-minimal,
.cms-theme-ums .ytm-main-minimal .container,
.cms-theme-ums .sh-cms-main-hero,
.cms-theme-ums .sh-cms-main-hero__content {
  text-align: left !important;
}

.cms-theme-ums .hero h1,
.cms-theme-ums .hero-copy h1,
.cms-theme-ums .ytm-main-hero h1,
.cms-theme-ums .ytm-main-hero__content h1,
.cms-theme-ums .ytm-main-split__content h1,
.cms-theme-ums .ytm-main-minimal h1,
.cms-theme-ums .sh-cms-main-hero h1,
.cms-theme-ums .sh-cms-main-hero__title {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  max-width: 14ch !important;
  text-wrap: balance !important;
}

.cms-theme-ums .hero-copy .eyebrow,
.cms-theme-ums .hero .section-kicker,
.cms-theme-ums .ytm-main-hero .section-kicker {
  display: inline-flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  width: auto !important;
}

.cms-theme-ums .hero-copy .eyebrow::after,
.cms-theme-ums .hero .section-kicker::after,
.cms-theme-ums .ytm-main-hero .section-kicker::after {
  display: none !important;
}

.cms-theme-ums .hero-copy .hero-lead,
.cms-theme-ums .hero-copy p,
.cms-theme-ums .ytm-main-hero__text,
.cms-theme-ums .ytm-main-split__text,
.cms-theme-ums .ytm-main-minimal__text {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  max-width: 39rem !important;
}

.cms-theme-ums .hero-copy .hero-actions,
.cms-theme-ums .hero-actions {
  display: flex !important;
  justify-content: flex-start !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.cms-theme-ums .hero-copy .hero-meta,
.cms-theme-ums .hero-meta {
  display: flex !important;
  justify-content: flex-start !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.cms-theme-ums .ytm-main-hero .breadcrumb,
.cms-theme-ums .ytm-main-hero .ytm-breadcrumb,
.cms-theme-ums .ytm-main-minimal .breadcrumb,
.cms-theme-ums .ytm-main-minimal .ytm-breadcrumb {
  justify-content: flex-start !important;
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* --------------------------------------------------------------------------
   3. Centering Section Kickers, Intro & Head Blocks
   -------------------------------------------------------------------------- */
/* Section Kickers (outside hero) */
.cms-theme-ums .section:not(.hero) .section-kicker,
.cms-theme-ums .machine-range .section-kicker,
.cms-theme-ums .sectors .section-kicker,
.cms-theme-ums .quality .section-kicker,
.cms-theme-ums .capabilities .section-kicker {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.85rem !important;
  margin-inline: auto !important;
  text-align: center !important;
  width: 100% !important;
}

.cms-theme-ums .section:not(.hero) .section-kicker::before,
.cms-theme-ums .section:not(.hero) .section-kicker::after,
.cms-theme-ums .machine-range .section-kicker::before,
.cms-theme-ums .machine-range .section-kicker::after,
.cms-theme-ums .sectors .section-kicker::before,
.cms-theme-ums .sectors .section-kicker::after,
.cms-theme-ums .quality .section-kicker::before,
.cms-theme-ums .quality .section-kicker::after {
  content: "" !important;
  width: 2.25rem !important;
  height: 1px !important;
  background: currentColor !important;
  opacity: 0.55 !important;
  flex-shrink: 0 !important;
}

.cms-theme-ums .section:not(.hero) .section-kicker p,
.cms-theme-ums .machine-range .section-kicker p,
.cms-theme-ums .sectors .section-kicker p,
.cms-theme-ums .quality .section-kicker p {
  margin: 0 !important;
  text-align: center !important;
}

/* Intro section grid layout centered */
.cms-theme-ums .intro-grid {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  max-width: 920px !important;
  margin-inline: auto !important;
  gap: 1.5rem !important;
}

.cms-theme-ums .intro-grid .display-heading {
  max-width: 24ch !important;
}

.cms-theme-ums .intro-grid .intro-copy,
.cms-theme-ums .intro-grid .intro-copy p {
  text-align: center !important;
  max-width: 65ch !important;
  margin-inline: auto !important;
}

/* Section Head Containers Centered as Unified Columns */
.cms-theme-ums .machine-range__head,
.cms-theme-ums .sectors-head,
.cms-theme-ums .workflow-head,
.cms-theme-ums .configuration__head,
.cms-theme-ums .product-related__head,
.cms-theme-ums .chain-section__head,
.cms-theme-ums .mission-vision__head,
.cms-theme-ums .corporate-principles__head,
.cms-theme-ums .career-culture__head,
.cms-theme-ums .showcase-head {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  max-width: 880px !important;
  margin-inline: auto !important;
  gap: 1.5rem !important;
  margin-bottom: clamp(2.5rem, 5vw, 4rem) !important;
}

.cms-theme-ums .machine-range__head p,
.cms-theme-ums .sectors-head p,
.cms-theme-ums .capabilities-intro > p,
.cms-theme-ums .ytm-section-desc {
  text-align: center !important;
  margin-inline: auto !important;
  max-width: 62ch !important;
}

/* Capabilities intro centered */
.cms-theme-ums .capabilities-intro {
  text-align: center;
}

/* CMS Section Title Centered */
.cms-theme-ums .ytm-section .section-title {
  text-align: center !important;
  margin-inline: auto !important;
}

.cms-theme-ums .ytm-section .section-title__tagline {
  text-align: center !important;
  display: inline-block !important;
  margin-inline: auto !important;
}

/* Center decorative underline accent bars on H2 if any */
.cms-theme-ums .product-rich-content h2::before,
.cms-theme-ums .service-rich-content__body h2::before {
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* --------------------------------------------------------------------------
   4. Crisp, Snappy & Minimal Entrance Animation (No Blur, No Jitter)
   -------------------------------------------------------------------------- */
.cms-theme-ums .ums-h-reveal {
  opacity: 0 !important;
  transform: translateY(16px) !important;
  transition: opacity 0.52s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.52s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: opacity, transform;
}

.cms-theme-ums .ums-h-reveal.ums-h-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Companion Kicker & Subtitle Soft Reveals */
.cms-theme-ums .ums-kicker-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.48s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.cms-theme-ums .ums-kicker-reveal.ums-h-revealed {
  opacity: 1;
  transform: translateY(0);
}

.cms-theme-ums .ums-sub-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.52s cubic-bezier(0.16, 1, 0.3, 1) 0.06s,
              transform 0.52s cubic-bezier(0.16, 1, 0.3, 1) 0.06s;
  will-change: opacity, transform;
}

.cms-theme-ums .ums-sub-reveal.ums-h-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   5. Reduced Motion (Accessibility)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .cms-theme-ums .ums-h-reveal,
  .cms-theme-ums .ums-kicker-reveal,
  .cms-theme-ums .ums-sub-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
