/* =========================================================
   PM PATIL - COMPACT HERO
========================================================= */

.pmph-hero {
  --pmph-navy: #07111d;
  --pmph-white: #ffffff;
  --pmph-text: rgba(255, 255, 255, 0.88);
  --pmph-accent: #8eb6df;
  --pmph-ease: cubic-bezier(0.22, 0.61, 0.24, 1);

  position: relative;
  width: 100%;
  height: 400px;
  min-height: 400px;
  overflow: hidden;
  background: var(--pmph-navy);
  isolation: isolate;
  color: var(--pmph-white);
  margin: 0;
  padding: 0;
  display: block;

  -webkit-font-smoothing: antialiased;
}

.pmph-hero *,
.pmph-hero *::before,
.pmph-hero *::after {
  box-sizing: border-box;
}

/* =========================================================
   SLIDES
========================================================= */

.pmph-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 900ms var(--pmph-ease),
    visibility 900ms var(--pmph-ease);
  z-index: 1;
}

.pmph-slide.pmph-is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* =========================================================
   IMAGE
========================================================= */

.pmph-slide-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.pmph-slide-media img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transform: scale(1.04);

  filter: saturate(0.9) contrast(1.04) brightness(0.92);

  transition: transform 4500ms ease;

  display: block;
  max-width: none;
}

.pmph-slide.pmph-is-active .pmph-slide-media img {
  transform: scale(1);
}

/* =========================================================
   DARK OVERLAY
   Stronger on LEFT for text readability
========================================================= */

.pmph-slide-scrim {
  display: none;

  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    90deg,
    rgba(12, 44, 108, 0.55) 0%,
    rgba(12, 44, 108, 0.25) 40%,
    transparent 70%
  );
}

/* =========================================================
   CONTENT
========================================================= */

.pmph-content-wrap {
  position: relative;
  z-index: 10;

  width: 100%;
  height: 100%;

  max-width: 1320px;
  margin: 0 auto;

  display: flex;
  align-items: center;
}

.pmph-content {
  width: 100%;
  max-width: 650px;

  padding-left: 40px;
  padding-right: 40px;

  margin-top: -5px;
}

/* =========================================================
   ISO CERTIFICATION BADGE
========================================================= */

.pmph-iso-badge {
  position: relative;

  display: inline-flex;
  align-items: center;
  gap: 13px;

  min-height: 62px;
  padding: 9px 15px 9px 10px;

  margin: 2px 0 18px;

  color: #ffffff;
  text-decoration: none;

  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.055)
  );

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  opacity: 0;
  transform: translateY(18px);

  transition:
    opacity 700ms var(--pmph-ease) 100ms,
    transform 700ms var(--pmph-ease) 100ms,
    background 250ms ease,
    border-color 250ms ease,
    box-shadow 250ms ease;
}

.pmph-iso-badge:hover {
  color: #ffffff;
  text-decoration: none;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.08)
  );

  border-color: rgba(255, 255, 255, 0.65);

  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);

  transform: translateY(-2px);
}

.pmph-iso-badge:active {
  transform: translateY(0) scale(0.98);
}

.pmph-iso-badge:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

/* =========================================================
   ISO ICON
========================================================= */

.pmph-iso-icon {
  width: 43px;
  height: 43px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 50%;

  color: #ffffff;

  background: linear-gradient(
    145deg,
    rgba(142, 182, 223, 0.95),
    rgba(75, 125, 173, 0.85)
  );

  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.pmph-iso-icon svg {
  width: 25px;
  height: 25px;
}

/* =========================================================
   ISO TEXT
========================================================= */

.pmph-iso-text {
  display: flex;
  flex-direction: column;
  justify-content: center;

  min-width: 0;
}

.pmph-iso-text strong {
  display: block;

  color: #ffffff;

  font-size: 17px;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: 0.02em;

  white-space: nowrap;
}

.pmph-iso-text small {
  display: block;

  margin-top: 5px;

  color: rgba(255, 255, 255, 0.72);

  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;

  white-space: nowrap;
}

/* =========================================================
   ISO ARROW
========================================================= */

.pmph-iso-arrow {
  width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-left: 5px;

  color: rgba(255, 255, 255, 0.75);

  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 11px;

  transition:
    color 250ms ease,
    transform 250ms ease;
}

.pmph-iso-arrow svg {
  width: 17px;
  height: 17px;
}

.pmph-iso-badge:hover .pmph-iso-arrow {
  color: #ffffff;
  transform: translateX(3px);
}

/* =========================================================
   REVEAL ANIMATION
========================================================= */

.pmph-content.pmph-is-revealed .pmph-iso-badge {
  opacity: 1;
  transform: translateY(0);
}

/* Small company label */

.pmph-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 12px;

  color: var(--pmph-accent);

  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;

  opacity: 0;
  transform: translateY(12px);
}

.pmph-eyebrow::before {
  content: "";

  width: 28px;
  height: 1px;

  background: var(--pmph-accent);

  flex-shrink: 0;
}

/* =========================================================
   TITLE
========================================================= */

.pmph-headline {
  margin: 0 0 14px;

  color: var(--pmph-white);

  font-size: clamp(27px, 3.5vw, 43px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;

  max-width: 620px;

  opacity: 0;
  transform: translateY(18px);
}

.pmph-headline span {
  display: block;
  color: var(--pmph-accent);
}

/* =========================================================
   DESCRIPTION
========================================================= */

.pmph-support {
  max-width: 560px;

  margin: 0;

  color: var(--pmph-text);

  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 400;
  line-height: 1.55;

  opacity: 0;
  transform: translateY(18px);
}

/* =========================================================
   TEXT ANIMATION
========================================================= */

.pmph-content.pmph-is-revealed .pmph-eyebrow {
  opacity: 1;
  transform: translateY(0);

  transition:
    opacity 650ms var(--pmph-ease),
    transform 650ms var(--pmph-ease);
}

.pmph-content.pmph-is-revealed .pmph-headline {
  opacity: 1;
  transform: translateY(0);

  transition:
    opacity 700ms var(--pmph-ease) 100ms,
    transform 700ms var(--pmph-ease) 100ms;
}

.pmph-content.pmph-is-revealed .pmph-support {
  opacity: 1;
  transform: translateY(0);

  transition:
    opacity 700ms var(--pmph-ease) 200ms,
    transform 700ms var(--pmph-ease) 200ms;
}

/* =========================================================
   ARROWS
========================================================= */

.pmph-arrow-controls {
  position: absolute;

  right: 40px;
  bottom: 28px;

  z-index: 20;

  display: flex;
  gap: 8px;
}

.pmph-arrow-btn {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);

  color: #fff;

  cursor: pointer;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    background 250ms ease,
    border-color 250ms ease,
    transform 250ms ease;
}

.pmph-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);

  transform: translateY(-2px);
}

.pmph-arrow-btn:active {
  transform: scale(0.94);
}

.pmph-arrow-btn svg {
  width: 17px;
  height: 17px;

  stroke: currentColor;
}

/* =========================================================
   SCREEN READER
========================================================= */

.pmph-sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {
  .pmph-hero {
    height: 360px;
    min-height: 360px;
  }

  .pmph-content {
    max-width: 620px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .pmph-headline {
    font-size: clamp(26px, 4.5vw, 38px);
  }

  .pmph-support {
    max-width: 500px;
    font-size: 14px;
  }

  .pmph-arrow-controls {
    right: 28px;
    bottom: 22px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {
  .pmph-hero {
    height: 330px;
    min-height: 330px;
    max-height: 330px;
  }

  .pmph-slide-media img {
    object-position: center;
  }

  /* .pmph-slide-scrim {
    background:
      linear-gradient(
        90deg,
        rgba(4, 12, 21, 0.94) 0%,
        rgba(5, 16, 29, 0.78) 45%,
        rgba(7, 18, 32, 0.35) 100%
      ),
      linear-gradient(
        180deg,
        rgba(4, 10, 17, 0.1) 0%,
        rgba(4, 10, 17, 0.45) 100%
      );
  } */

  .pmph-content-wrap {
    align-items: center;
  }

  .pmph-content {
    max-width: 100%;
    padding: 0 20px;
  }

  .pmph-iso-badge {
    gap: 10px;

    min-height: 54px;

    padding: 7px 11px 7px 8px;

    margin-bottom: 13px;

    border-radius: 8px;
  }

  .pmph-iso-icon {
    width: 37px;
    height: 37px;
  }

  .pmph-iso-icon svg {
    width: 21px;
    height: 21px;
  }

  .pmph-iso-text strong {
    font-size: 14px;
  }

  .pmph-iso-text small {
    margin-top: 3px;

    font-size: 6.5px;
    letter-spacing: 0.11em;
  }

  .pmph-iso-arrow {
    width: 23px;
    height: 23px;

    padding-left: 8px;
    margin-left: 2px;
  }

  .pmph-iso-arrow svg {
    width: 14px;
    height: 14px;
  }

  .pmph-eyebrow {
    margin-bottom: 9px;

    font-size: 8px;
    letter-spacing: 0.14em;
  }

  .pmph-eyebrow::before {
    width: 20px;
  }

  .pmph-headline {
    max-width: 100%;

    margin-bottom: 10px;

    font-size: clamp(24px, 7.5vw, 31px);
    line-height: 1.08;
  }

  .pmph-support {
    max-width: 100%;

    font-size: 12px;
    line-height: 1.45;
  }

  .pmph-arrow-controls {
    right: 18px;
    bottom: 16px;

    gap: 6px;
  }

  .pmph-arrow-btn {
    width: 34px;
    height: 34px;
  }

  .pmph-arrow-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {
  .pmph-hero {
    height: 310px;
    min-height: 310px;
    max-height: 310px;
  }

  .pmph-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pmph-headline {
    font-size: 23px;
  }

  .pmph-iso-badge {
    min-height: 50px;
    gap: 8px;

    padding: 6px 9px 6px 7px;
  }

  .pmph-iso-icon {
    width: 34px;
    height: 34px;
  }

  .pmph-iso-text strong {
    font-size: 13px;
  }

  .pmph-iso-text small {
    font-size: 6px;
  }

  .pmph-support {
    font-size: 11px;
  }

  .pmph-arrow-controls {
    right: 16px;
    bottom: 14px;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .pmph-slide,
  .pmph-slide-media img,
  .pmph-eyebrow,
  .pmph-iso-badge,
  .pmph-support {
    transition: none !important;
  }

  .pmph-slide-media img {
    transform: none !important;
  }
}
