/**
 * Home Hero Section Styles
 * Pixel-perfect adaptation of Live Morae React HomeHero architecture
 * - Right graphic sized to 49.3056vw square anchored at bottom: 0; right: 0;
 * - Full parity with Live site render scale and top edge alignment
 * - Fluid display typography and vertical moving highlights carousel
 */

/* ==========================================================================
   1. Base Section Container
   ========================================================================== */
.home-hero {
  position: relative;
  overflow: hidden;
  background-color: #101010;
  background-image: radial-gradient(475.86% 75.91% at 97.1% 94.63%, #6d6d6d 0%, #101010 100%);
  color: #f5f4f0;
  contain: paint;
  width: 100%;
  box-sizing: border-box;
  /* padding-top: clamp(2rem, 3.5vw, 4rem); */
  padding-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
}

@media (min-width: 768px) {
  .home-hero {
    background-image: radial-gradient(61.9% 61.9% at 71.67% 71.77%, #6d6d6d 0%, #101010 100%);
  }
}

/* Container matches Live full-width with responsive side padding */
.home-hero .morae-container {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: var(--morae-side-padding, clamp(1rem, -0.408rem + 6.009vw, 5rem)) !important;
  padding-right: var(--morae-side-padding, clamp(1rem, -0.408rem + 6.009vw, 5rem)) !important;
  box-sizing: border-box !important;
  position: static !important;
}

/* ==========================================================================
   2. Desktop Grid Layout (Live React Architecture)
   ========================================================================== */
@media (min-width: 992px) {
  .home-hero {
    min-height: 49.3056vw;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    /* padding-top: clamp(2rem, 2.4em, 3.5rem); */
    padding-bottom: clamp(1.5rem, 2vw, 2.5rem);
  }

  .home-hero .morae-container {
    position: static !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 49.3056vw;
    flex: 1 1 auto;
  }

  .home-hero__grid {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    grid-template-rows: 1fr auto !important;
    column-gap: var(--morae-gutter, clamp(1.5rem, 1.6667vw, 2.5rem)) !important;
    min-height: 49.3056vw !important;
    width: 100% !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .home-hero__content {
    grid-column: 1 / span 6 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: start !important;
    max-width: 100% !important;
    width: 100% !important;
    position: relative !important;
    z-index: 2 !important;
    /* padding-top: clamp(0.8889em, 2.4em, 3rem) !important;
     */
    padding-top: 2.4em;
    padding-bottom: 1rem;
    box-sizing: border-box;
  }

  .home-hero__highlights {
    grid-column: 1 / span 6 !important;
    grid-row: 2 !important;
    width: 100% !important;
    position: relative !important;
    z-index: 2 !important;
    flex-shrink: 0 !important;
    margin-top: clamp(0.75rem, 1vw, 1.5rem) !important;
    margin-bottom: clamp(0.5rem, 1.2em, 1.5rem) !important;
    height: clamp(3rem, 3.25rem, 3.75rem) !important;
  }

  /* Live Right Graphic: 49.3056vw square anchored flush to right and bottom */
  .home-hero__media {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    top: 0 !important;
    left: auto !important;
    width: 49.3056vw !important;
    height: 49.3056vw !important;
    aspect-ratio: 1 / 1 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    overflow: hidden !important;
  }

  .home-hero__image {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: bottom right !important;
    display: block !important;
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ==========================================================================
   3. Content Column Typography & Elements
   ========================================================================== */
/* Eyebrow / Topline */
.home-hero__topline {
  display: inline-block;
  margin-top: 2px;
  margin-bottom: 5px;
  color: var(--morae-topline-color, #e03100);
  font-family: var(--morae-font, 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: var(--morae-font-size-topline, clamp(1.125rem, 1.0732rem + 0.221vw, 1.25rem));
  line-height: var(--morae-line-height-topline, clamp(1.4rem, 1.3rem + 0.25vw, 1.6rem));
  font-weight: var(--morae-font-weight-topline, 500);
  letter-spacing: normal;
  background: none;
  padding: 0;
}

/* Main Heading: Exact match display-2xl & 2xl responsive scale */
.home-hero__heading {
  margin-top:clamp(1.25rem, 1.1982044198895028rem + .22099447513812157vw, 1.375rem);
  color: #f5f2ef;
  font-family: var(--morae-font, 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: var(--morae-font-size-display-2xl, clamp(1.9375rem, 1.5231353591160222rem + 1.7679558011049725vw, 2.9375rem));
  line-height: var(--morae-line-height-display-2xl, clamp(2.5rem, 1.9302486187845305rem + 2.430939226519337vw, 3.875rem));
  font-weight: 400;
  letter-spacing: 0em;
  text-wrap: balance;
  margin-bottom: 0;
}

@media (min-width: 90rem) {
  .home-hero__topline {
    font-size: 1.3889vw !important;
    line-height: 1.5 !important;
    margin-top: 17px;
  }
  .home-hero__heading {
    font-size: 4.3854167vw !important;
    line-height: 1.2 !important;
    margin-top: 24px;
  }
  .home-hero__summary,
  .home-hero__summary p {
    font-size: 1.38899vw !important;
    line-height: 1.5 !important;
  }
  .home-hero__actions .morae-btn {
    font-size: 1.15972vw !important;
    line-height: 1.5 !important;
  }
  .home-hero__highlight-text p{
    font-size:1.1111vw !important ;
  }
}
/* Summary / Intro with Left Orange Accent Border */
.home-hero__summary {
  color: #f5f2ef !important;
  font-size: clamp(1.125rem, 1.081rem + .1878vw, 1.25rem);
  font-family: var(--morae-font, 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif);
  border-left: 2px solid var(--primary, #ff3600);
  padding-left: 1.6em;
  margin-top: 3.6111vw;
  margin-bottom: 0;
  box-sizing: border-box;
}

.home-hero__summary p {
  margin: 0;
  font-size: var(--morae-font-size-body-lg, clamp(1.125rem, 1.081rem + 0.1878vw, 1.25rem));
  line-height: 1.5;
  font-weight: 400;
  color: #f5f2ef !important;
}

.home-hero__summary strong,
.home-hero__summary b {
  font-weight: 700;
  color: #ffffff !important;
}

/* ==========================================================================
   4. CTA Actions
   ========================================================================== */
.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 29px;
  margin-top: 2.7083vw;
  margin-bottom: clamp(20px, 2vw, 32px);
}

.home-hero__actions:empty {
  display: none;
}

.home-hero__actions .morae-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none !important;
  font-family: var(--morae-btn-font, var(--morae-font, 'IBM Plex Sans', sans-serif));
  font-weight: 400;
  font-size: var(--morae-btn-font-size, 15px);
  line-height: 1;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

/* Primary Button: Explore Our Solutions */
.home-hero__actions .morae-btn-primary {
  background-color: var(--morae-btn-primary-alt-bg, #ff3600);
  color: var(--morae-btn-primary-text, #ffffff) !important;
  border: 1px solid var(--morae-btn-primary-alt-bg, #ff3600);
  padding: 1em;
  min-height: 52px;
}

.home-hero__actions .morae-btn-primary:hover {
  background-color: var(--morae-btn-primary-hover-bg, #e13000);
  border-color: var(--morae-btn-primary-hover-border, #e13000);
  color: var(--morae-btn-primary-hover-text, #ffffff) !important;
}

.home-hero__actions .morae-btn-primary svg {
  fill: #ffffff;
  width: 16px;
  height: 16px;
}

/* Naked Link Button: Read Our AI in Legal Report */
.home-hero__actions .morae-btn-naked {
  background-color: transparent;
  color: #ffffff !important;
  border: none;
  padding: 15px 0;
  min-height: auto;
  gap: .71856em;
  font-weight: 400;
}

.home-hero__actions .morae-btn-naked span {
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s;
}

.home-hero__actions .morae-btn-naked:hover span {
  border-bottom-color: var(--morae-btn-naked-hover-text, #ff3600);
}

.home-hero__actions .morae-btn-naked svg {
  fill: var(--morae-btn-naked-hover-text, #ff3600);
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   5. Vertical Highlights Slider
   ========================================================================== */
.home-hero__highlights {
  width: 100%;
  position: relative;
  overflow: hidden;
  height: clamp(2.5rem, 3vw, 3.25rem);
  margin-top: clamp(1rem, 1.5vw, 1.5rem);
  margin-bottom: 0;
  padding: 0;
  box-sizing: border-box;
}

.home-hero__highlights-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
  will-change: transform;
}

.home-hero__highlight {
  flex: 0 0 100%;
  height: 100%;
  min-height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-sizing: border-box;
}

.home-hero__highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.home-hero__highlight-image {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.home-hero__highlight-text {
  font-family: var(--morae-font, 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: clamp(0.9375rem, 0.8857rem + 0.221vw, 1.0625rem);
  line-height: 1.5;
  color: var(--natural-400, #cdcbc7);
  font-weight: 400;
  margin: 0;
}

.home-hero__highlight-text p {
  margin: 0;
  display: inline;
}

.home-hero__highlight-text strong {
  color: #ffffff;
  font-weight: 500;
}

/* ==========================================================================
   6. Responsive Breakpoints (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 991.98px) {
  .home-hero {
    padding-top: 48px;
    padding-bottom: 64px;
    min-height: auto;
  }

  .home-hero .morae-container {
    padding-left: var(--morae-side-padding, 1.5rem) !important;
    padding-right: var(--morae-side-padding, 1.5rem) !important;
  }

  .home-hero__grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    min-height: auto !important;
  }

  .home-hero__content {
    grid-column: auto !important;
    grid-row: auto !important;
    max-width: 100% !important;
    order: 1 !important;
    padding-top: 0 !important;
  }

  .home-hero__highlights {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    order: 2 !important;
    margin-top: 0.75rem !important;
    margin-bottom: 1.25rem !important;
    height: 3.75rem !important;
  }

  .home-hero__media {
    position: relative !important;
    width: 100% !important;
    max-width: min(100%, 580px) !important;
    aspect-ratio: 1 / 1 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    order: 3 !important;
    display: block !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    left: auto !important;
    height: auto !important;
    pointer-events: auto !important;
  }

  .home-hero__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }
}

/* Mobile Screens */
@media (max-width: 575.98px) {
  .home-hero {
    padding-top: 36px;
    padding-bottom: 48px;
  }

  .home-hero__grid {
    gap: 20px !important;
  }

  .home-hero__topline {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .home-hero__heading {
    font-size: clamp(26px, 7.5vw, 34px);
    line-height: 1.18;
    margin-bottom: 16px;
  }

  .home-hero__summary p {
    font-size: 16px;
    line-height: 1.45;
  }

  .home-hero__actions {
    align-items: stretch;
    margin-top: 24px;
    flex-direction: column;
    gap: 12px;
  }

  .home-hero__actions .morae-btn {
    width: 100%;
  }

  .home-hero__media {
    width: 100% !important;
    max-width: 100% !important;
  }
}
