/* yms.css */
/* ============================================================
   YMS Marketing Page — same structure + style as Dock Scheduling
   ============================================================ */

/* ================= Hero ================= */

.yms-hero{
  position: relative;
  padding: 3.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  overflow: hidden;

  background:
    radial-gradient(900px 600px at 12% 20%, rgba(198,26,26,.18), transparent 60%),
    radial-gradient(900px 700px at 80% 35%, rgba(198,26,26,.10), transparent 62%),

    repeating-linear-gradient(
      135deg,
      rgba(198,26,26,.09) 0px,
      rgba(198,26,26,.09) 1px,
      transparent 1px,
      transparent 18px
    ),

    repeating-linear-gradient(
      to right,
      rgba(17,24,39,.05) 0px,
      rgba(17,24,39,.05) 1px,
      transparent 1px,
      transparent 28px
    ),

    linear-gradient(#ffffff, #f7f7f8);
}

.yms-hero::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:120px;
  pointer-events:none;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.95) 70%,
    rgba(255,255,255,1) 100%
  );
}

.yms-hero__grid{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.yms-hero__copy h1{
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 0.5rem 0;
}





/* ===== Hero polish (appeal + hierarchy) ===== */

.hero-copy-wrap{
  max-width: 640px;
}

/* Eyebrow becomes a clean "label pill" */
.eyebrow{
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.18);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Add a subtle accent rule under the H1 to break up the mass */
.yms-hero__copy h1{
  position: relative;
}

.yms-hero__copy h1::after{
  content:"";
  display:block;
  width: 68px;
  height: 4px;
  margin-top: 14px;
  background: linear-gradient(90deg, #dc2626, rgba(220,38,38,0));
  border-radius: 999px;
}

/* Make the lede read more premium */
.hero-lede{
  margin-top: 18px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(17,24,39,0.74);
  max-width: 60ch;
}







.yms-hero__copy .subtitle{
  max-width: 55ch;
  color: #4b5563;
}

.hero-actions{
  margin-top: 1.4rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.yms-hero__media{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
  border: 4px solid #ff1f1f;
}

.yms-hero__media img,
.yms-hero__media video{
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px){
  .yms-hero__grid{
    grid-template-columns: 1fr;
  }
  .yms-hero__media{
    order: -1;
  }
}

/* ================= Video Expand (Hero) ================= */

.demo-video{
  position: relative;
}

/* Expand button */
.demo-video__expand{
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(10,10,14,.65);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(10px);
  z-index: 3;
}

.demo-video__expand:hover{
  background: rgba(10,10,14,.82);
}

/* Modal overlay */
.video-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.video-modal.is-open{
  display: block;
}

.video-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
}

.video-modal__panel{
  position: relative;
  width: min(1100px, 92vw);
  margin: 6vh auto 0;
  background: #0b0b10;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  box-shadow: 0 18px 70px rgba(0,0,0,.55);
  overflow: hidden;
}

.video-modal__panel video{
  width: 100%;
  height: auto;
  display: block;
  max-height: 80vh;
}

.video-modal__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.45);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}


/* ================= Problem → Solution ================= */

.yms-problem{
  padding: 4rem 0;
  background: linear-gradient(
    180deg,
    rgba(198,26,26,0.06) 0%,
    rgba(198,26,26,0.10) 50%,
    rgba(198,26,26,0.06) 100%
  );
  border-top: 1px solid rgba(198,26,26,0.25);
}

.split-visuals{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.flow-arrow{
  font-size: 4rem;
  font-weight: 900;
  color: var(--fls-red, #c61a1a);
  letter-spacing: 0.3rem;
  opacity: 0.85;
  transform: translateY(-12px);
  animation: pulseArrow 2.5s ease-in-out infinite;
}

@keyframes pulseArrow{
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

.problem-side,
.solution-side{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.problem-side h2,
.solution-side h2{
  width: 100%;
  max-width: 640px;
  text-align: center;
  margin: 0 0 0.5rem;
  color: #111827;
}

/* Pills */
.pill-list{
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0.75rem;
  width: 100%;
  max-width: 640px;
  display: grid;
  gap: 0.6rem;
}

.pill-list li{
  position: relative;
  padding: 0.65rem 0.9rem 0.65rem 3.0rem;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,0.18);
  background: rgba(255,255,255,0.55);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  color: #111827;
  line-height: 1.2;
  font-weight: 700;
}

.pill-list li::before{
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
}

/* Chaos */
.pill-list--bad li{
  border-color: rgba(255,31,31,0.35);
  background: rgba(255,255,255,0.40);
}
.pill-list--bad li::before{
  content: "✕";
  color: #ff1f1f;
  background: rgba(255,31,31,0.12);
  border: 1px solid rgba(255,31,31,0.35);
}

/* Solution */
.pill-list--good li{
  border-color: rgba(34,197,94,0.38);
  background: rgba(255,255,255,0.50);
}
.pill-list--good li::before{
  content: "✓";
  color: #22c55e;
  background: rgba(34,197,94,0.14);
  border: 1px solid rgba(34,197,94,0.38);
}

/* Images */
.problem-images{
  width: 100%;
  max-width: 640px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.problem-img{
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid #ff1f1f;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

.problem-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(35%) contrast(0.95);
  opacity: 0.90;
}

/* Non-carousel solution image only (don’t affect the YMS carousel) */
.solution-img:not(.yms-carousel){
  width: 100%;
  max-width: 640px;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid #ff1f1f;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

.solution-img:not(.yms-carousel) img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Responsive */
@media (max-width: 900px){
  .split-visuals{ grid-template-columns: 1fr; }
  .flow-arrow{ display:none; }
  .problem-images{ grid-template-columns: 1fr; }
  .problem-img{ height: 240px; }
  .solution-img{ height: 260px; }
  .pill-list li{ border-radius: 18px; }
}

/* ================= Operational Impact ================= */

.yms-benefits{
  background: #fff;
  padding: 3rem 0;
}

.benefit-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.benefit-card{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.benefit-card--red{
  border: 2px solid rgba(255,31,31,0.45);
}

.benefit-card h3{
  margin: 0 0 0.6rem;
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.benefit-card i{
  color: #ff1f1f;
}

@media (max-width: 1100px){
  .benefit-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px){
  .benefit-grid{ grid-template-columns: 1fr; }
}

/* ================= How it works ================= */

.yms-flow{
  padding: 3rem 0;
  background: #fafafa;
}

.flow-steps{
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.flow-steps li{
  counter-increment: step;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.flow-steps li strong::before{
  content: counter(step) ". ";
  color: var(--fls-red, #c61a1a);
  font-weight: 900;
}

/* ================= CTA – Light Digital ================= */

.yms-cta{
  position: relative;
  padding: 3.5rem 0;
  color: #111827;
  overflow: hidden;

  background:
    radial-gradient(900px 400px at 15% 50%, rgba(198,26,26,0.20), transparent 65%),
    radial-gradient(900px 400px at 85% 50%, rgba(198,26,26,0.15), transparent 65%),

    repeating-linear-gradient(
      135deg,
      rgba(198,26,26,0.08) 0px,
      rgba(198,26,26,0.08) 1px,
      transparent 1px,
      transparent 18px
    ),

    linear-gradient(180deg, #fff 0%, #f9fafb 100%);

  border-top: 1px solid rgba(198,26,26,0.25);
}

.yms-cta .cta{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

.yms-cta h2{
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.yms-cta p{
  color: #374151;
  font-size: 1.05rem;
  max-width: 52ch;
}

.yms-cta .btn.primary{
  background: linear-gradient(135deg, #c61a1a, #ff3b3b);
  border: none;
  box-shadow: 0 18px 40px rgba(198,26,26,0.35);
  padding: 0.9rem 1.6rem;
  font-weight: 800;
}

.yms-cta .btn.primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 24px 55px rgba(198,26,26,0.45);
}

@media (max-width: 900px){
  .yms-cta .cta{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .yms-cta p{
    margin-left: auto;
    margin-right: auto;
  }
}
/* ============================================================
   ALIGN CHAOS IMAGES WITH SOLUTION IMAGE HEIGHT
   ============================================================ */

/* Ensure both columns start at the same vertical point */
.problem-side,
.solution-side {
  align-items: flex-start;
}

/* Make Chaos images stack fill same vertical space as solution */
.problem-images {
  grid-template-rows: 1fr 1fr; /* split space evenly */
  height: 420px;               /* MUST match .solution-img height */
}

/* Each Chaos image fills half */
.problem-img {
  height: auto;                /* let grid control height */
}

/* Lock solution image height (single tall card) */
.solution-img {
  height: 420px;
}

/* Mobile adjustments */
@media (max-width: 900px) {
  .problem-images {
    height: auto;
    grid-template-rows: none;
  }

  .problem-img {
    height: 240px;
  }

  .solution-img {
    height: 260px;
  }
}


/* ================= YMS Carousel ================= */

/* Outer red bordered container */
.yms-carousel{
  position: relative;
  padding: 14px;
  border: 4px solid #ff1f1f;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  background: rgba(15, 23, 42, 0.10);
}

/* Inner frame – no fixed height */
.yms-frame{
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
}

/* Image defines height */
.yms-frame img{
  width: 100%;
  height: auto;
  max-height: 520px;          /* cap so screenshots don’t get massive */
  object-fit: contain;
  display: block;
}

/* Navigation arrows */
.yms-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(17,24,39,0.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(6px);
}

.yms-nav:hover{
  background: rgba(17,24,39,0.75);
}

.yms-prev{ left: 12px; }
.yms-next{ right: 12px; }

/* Pagination dots */
.yms-dots{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.yms-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.25);
  cursor: pointer;
}

.yms-dot.is-active{
  background: #ff1f1f;
  border-color: #ff1f1f;
}

/* Mobile adjustments */
@media (max-width: 900px){
  .yms-frame img{
    max-height: 360px;
  }

  .yms-nav{
    width: 40px;
    height: 40px;
    font-size: 26px;
  }
}

/* IMPORTANT: override solution-image fixed height ONLY for carousel */
.solution-img.yms-carousel{
  height: auto !important;
}









/* === Make YMS carousel height follow the image (auto) === 
.solution-img.yms-carousel{
  height: auto !important;
  max-width: 640px;          
  display: block;
}*/

.solution-img.yms-carousel img{
  height: auto !important;
  max-height: 520px;         /* pick a cap so it doesn't get huge */
  width: 100%;
  object-fit: contain;
}




/* Fullscreen zoom modal */
.img-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}
.img-modal.is-open{ display: flex; }

.img-modal img{
  max-width: min(1200px, 95vw);
  max-height: 90vh;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 25px 90px rgba(0,0,0,0.55);
}

.img-modal__close{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}



/* ============================================================
   FIX: Carousel container sizes to the active image (no dead space)
   ============================================================ */

.solution-img.yms-carousel{
  height: auto !important;   /* override .solution-img { height: 420px } */
}

/* Let the inner frame size to the image */
.solution-img.yms-carousel .yms-frame{
  height: auto !important;   /* override .yms-frame { height: 420px } */
}

/* Let the image define height */
.solution-img.yms-carousel .yms-frame img{
  height: auto !important;   /* override height:100% */
  width: 100%;
  max-height: 520px;         /* cap so it doesn't get huge */
  object-fit: contain;
  display: block;
}


/* Smooth height transitions */
.yms-frame{
  transition: height 260ms ease;
  will-change: height;
}

.yms-frame img{
  display: block;
}



/* FINAL FAILSAFE: carousel must never collapse into a bar */
.solution-img.yms-carousel .yms-frame{
  height: auto !important;
  min-height: 260px;
}

.solution-img.yms-carousel #ymsSlide{
  height: auto !important;
  max-height: 520px;
  width: 100%;
  object-fit: contain;
  display: block;
}



.integration-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 16px;
  background: rgba(220, 38, 38, 0.08); /* subtle Fidelis red */
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 999px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.integration-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-weight: 700;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.15);
  border-radius: 50%;
  flex-shrink: 0;
}

.integration-pill a {
  color: #dc2626;
  font-weight: 600;
  text-decoration: none;
}

.integration-pill a:hover {
  text-decoration: underline;
}


/* CTA left side stack */
.yms-cta .cta-copy{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yms-cta .cta-copy p{
  margin: 0;
}

/* CTA Pricing Pill (matches Dock Scheduling) */
.yms-cta .cta-pricing-pill{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 14px;
  max-width: 52ch; /* matches your CTA paragraph max-width vibe */
  background: rgba(220, 38, 38, 0.05);
  border: 1px dashed rgba(220, 38, 38, 0.18);
  border-radius: 999px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.yms-cta .cta-pricing-pill__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-weight: 800;
  font-size: 0.8rem;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.12);
  border-radius: 50%;
  flex-shrink: 0;
}

.yms-cta .cta-pricing-pill p{
  margin: 0;
}

.yms-cta .cta-pricing-pill a,
.yms-cta .cta-pricing-pill a:visited{
  color: #dc2626;
  font-weight: 600;
  text-decoration: none;
}

.yms-cta .cta-pricing-pill a:hover{
  text-decoration: underline;
}
