@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700;800&display=swap');

:root {
  --icv-hero-dark: #004369;
  --icv-hero-primary: #007dc5;
  --icv-hero-primary-light: #007ec5;
  --icv-hero-heading: #091f2f;
  --icv-hero-white: #ffffff;
  --icv-hero-btn-dark: #0b141f;
  --icv-hero-header-offset: clamp(118px, 14vw, 158px);
  --icv-hero-shell-gap: clamp(12px, 3vw, 48px);
  --icv-hero-transition: all 0.35s ease;
}

/* Full-bleed hero behind floating home header */
.icv-hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: calc(-1 * var(--icv-hero-header-offset));
  padding-top: var(--icv-hero-header-offset);
  min-height: clamp(480px, 72vh, 760px);
  overflow: hidden;
  background: var(--icv-hero-heading);
}

.icv-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.icv-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 18, 30, 0.92) 0%, rgba(7, 18, 30, 0.72) 34%, rgba(7, 18, 30, 0.28) 62%, rgba(7, 18, 30, 0.08) 100%),
    linear-gradient(180deg, rgba(7, 18, 30, 0.15) 0%, rgba(7, 18, 30, 0.05) 40%, rgba(7, 18, 30, 0.45) 100%);
  pointer-events: none;
}

.icv-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(380px, 58vh, 620px);
  padding: clamp(28px, 4vw, 56px) 0;
}

.icv-hero__container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: calc(15px + var(--icv-hero-shell-gap));
  padding-right: calc(15px + var(--icv-hero-shell-gap));
}

.icv-hero__content {
  max-width: 680px;
  color: var(--icv-hero-white);
}

.icv-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--icv-hero-primary);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.icv-hero__eyebrow-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 14px;
  flex-shrink: 0;
}

.icv-hero__eyebrow-icon::before,
.icv-hero__eyebrow-icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 5px;
  height: 14px;
  background: var(--icv-hero-primary);
  border-radius: 1px;
  transform: skewX(-18deg);
}

.icv-hero__eyebrow-icon::before {
  left: 0;
}

.icv-hero__eyebrow-icon::after {
  right: 0;
}

.icv-hero__title {
  margin: 0 0 22px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--icv-hero-white);
  letter-spacing: -0.02em;
  overflow: visible;
}

.icv-hero__title-line {
  display: block;
  overflow: visible;
}

.icv-hero__letter {
  display: inline-block;
  overflow: visible;
  vertical-align: top;
  line-height: 1.18;
}

.icv-hero__letter-inner {
  display: inline-block;
  opacity: 0;
  animation: icv-hero-letter-fly 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.icv-hero__letter--space {
  width: 0.32em;
}

@keyframes icv-hero-letter-fly {
  0% {
    opacity: 0;
    transform: translateX(70px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.icv-hero__desc {
  margin: 0 0 34px;
  max-width: 560px;
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
}

.icv-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.icv-hero__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none !important;
  border: none;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: none;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.icv-hero__btn-label,
.icv-hero__btn i {
  position: relative;
  z-index: 1;
}

.icv-hero__btn i {
  font-size: 13px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.icv-hero__btn--primary {
  background: var(--icv-hero-primary);
  color: var(--icv-hero-white) !important;
}

.icv-hero__btn--primary::before,
.icv-hero__btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.icv-hero__btn--primary::before {
  background: var(--icv-hero-btn-dark);
}

.icv-hero__btn--primary::after {
  background: var(--icv-hero-primary);
}

.icv-hero__btn--primary:hover,
.icv-hero__btn--primary:focus {
  background: var(--icv-hero-primary);
  color: var(--icv-hero-white) !important;
  box-shadow: none;
  transform: none;
}

.icv-hero__btn--primary:hover::before,
.icv-hero__btn--primary:focus-visible::before {
  animation: icv-hero-btn-sweep 0.4s ease forwards;
}

.icv-hero__btn--primary:hover::after,
.icv-hero__btn--primary:focus-visible::after {
  animation: icv-hero-btn-sweep 0.4s ease 0.4s forwards;
}

.icv-hero__btn--primary:hover i,
.icv-hero__btn--primary:focus i {
  transform: translateX(3px);
}

.icv-hero__btn--dark {
  background: var(--icv-hero-btn-dark);
  color: var(--icv-hero-white) !important;
}

.icv-hero__btn--dark::before,
.icv-hero__btn--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.icv-hero__btn--dark::before {
  background: var(--icv-hero-primary);
}

.icv-hero__btn--dark::after {
  background: var(--icv-hero-btn-dark);
}

.icv-hero__btn--dark:hover,
.icv-hero__btn--dark:focus {
  background: var(--icv-hero-btn-dark);
  color: var(--icv-hero-white) !important;
  box-shadow: none;
  transform: none;
}

.icv-hero__btn--dark:hover::before,
.icv-hero__btn--dark:focus-visible::before {
  animation: icv-hero-btn-sweep 0.4s ease forwards;
}

.icv-hero__btn--dark:hover::after,
.icv-hero__btn--dark:focus-visible::after {
  animation: icv-hero-btn-sweep 0.4s ease 0.4s forwards;
}

.icv-hero__btn--dark:hover i,
.icv-hero__btn--dark:focus i {
  transform: translateX(3px);
}

@keyframes icv-hero-btn-sweep {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.icv-hero + .container,
.icv-hero + section,
.mian-contain > .icv-hero ~ .container {
  position: relative;
  z-index: 1;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .icv-hero {
    min-height: clamp(440px, 68vh, 660px);
  }

  .icv-hero__inner {
    min-height: clamp(340px, 52vh, 520px);
  }

  .icv-hero__actions {
    flex-wrap: nowrap;
  }
}

@media (max-width: 767px) {
  :root {
    --icv-hero-header-offset: clamp(108px, 24vw, 132px);
  }

  .icv-hero__inner {
    padding-top: clamp(20px, 5vw, 36px);
    padding-bottom: clamp(28px, 5vw, 40px);
  }

  .icv-hero__content {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  .icv-hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .icv-hero__actions {
    justify-content: center;
  }

  .icv-hero__overlay {
    background:
      linear-gradient(180deg, rgba(7, 18, 30, 0.82) 0%, rgba(7, 18, 30, 0.55) 45%, rgba(7, 18, 30, 0.72) 100%);
  }
}

@media (max-width: 575px) {
  .icv-hero__actions {
    flex-direction: row;
    gap: 8px;
    width: 100%;
  }

  .icv-hero__btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 12px 8px;
    gap: 6px;
    font-size: 10px;
    letter-spacing: 0.5px;
  }

  .icv-hero__eyebrow {
    font-size: 11px;
    letter-spacing: 1.4px;
  }
}
