/* =========================================
   HERO COLORS & BASE
========================================= */

.ik-hero {
  --ik-teal: #087F8C;
  --ik-teal-hover: #066873;
  --ik-navy: #17324D;
  --ik-yellow: #F4B942;
  --ik-cream: #F7F4ED;
  --ik-mint: #DDF1E8;
  --ik-muted: #5D6B76;
  --ik-white: #FFFFFF;

  position: relative;
  isolation: isolate;

  padding: 84px 0;

  color: var(--ik-navy);
  background:
    radial-gradient(
      ellipse at 100% 0%,
      #DDF1E880,
      transparent 55%
    ),
    var(--ik-cream);

  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

.ik-hero,
.ik-hero *,
.ik-hero *::before,
.ik-hero *::after {
  box-sizing: border-box;
}

.ik-hero h1,
.ik-hero p,
.ik-hero ul {
  margin: 0;
}

.ik-hero a {
  text-decoration: none;
}

.ik-hero a:focus-visible {
  outline: 3px solid var(--ik-navy);
  outline-offset: 5px;
}


/* =========================================
   CONTAINER & LAYOUT
========================================= */

.ik-hero-container {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;

  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 72px;
}

.ik-hero-copy,
.ik-hero-visual {
  min-width: 0;
}


/* =========================================
   EYEBROW
========================================= */

.ik-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 20px;

  color: var(--ik-teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.ik-hero-eyebrow > span {
  flex: 0 0 10px;
  height: 10px;

  border-radius: 50%;
  background: var(--ik-teal);
  box-shadow: 0 0 0 5px #087F8C12;
}


/* =========================================
   TITLE & DESCRIPTION
========================================= */

.ik-hero h1 {
  max-width: 600px;

  color: var(--ik-navy);
  font-size: clamp(40px, 4.5vw, 60px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -2.4px;

  text-wrap: balance;
}

.ik-hero h1 > span {
  display: block;
  color: var(--ik-teal);
}

.ik-hero .ik-hero-description {
  max-width: 470px;
  margin: 24px 0 30px;

  color: var(--ik-muted);
  font-size: 17px;
  line-height: 1.85;
}


/* =========================================
   MAIN BUTTON
========================================= */

.ik-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;

  min-height: 54px;
  max-width: 100%;
  padding: 15px 24px;

  border-radius: 12px;
  background: var(--ik-teal);
  color: var(--ik-white);

  font-size: 15px;
  font-weight: 700;
  text-align: center;

  box-shadow: 0 8px 20px #087F8C18;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ik-hero-button > span {
  font-size: 22px;
  line-height: 1;
}

@media (hover: hover) {
  .ik-hero-button:hover {
    background: var(--ik-teal-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px #087F8C24;
  }
}


/* =========================================
   CAPTION
========================================= */

.ik-hero-caption {
  display: flex;
  align-items: center;
  gap: 12px;

  max-width: 370px;
  margin-top: 24px;

  color: var(--ik-muted);
  font-size: 13px;
  line-height: 1.7;
}

.ik-hero-caption-icon {
  flex-shrink: 0;

  color: var(--ik-teal);
  font-size: 30px;
  line-height: 1;
}


/* =========================================
   TOPIC LABELS
========================================= */

.ik-hero .ik-hero-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 28px;
  padding: 0;

  list-style: none;
}

.ik-hero-topics li {
  padding: 6px 11px;

  border: 1px solid #17324D20;
  border-radius: 50px;

  color: var(--ik-navy);
  font-size: 11px;
  font-weight: 600;
}


/* =========================================
   VISUAL AREA
========================================= */

.ik-hero-visual {
  position: relative;
  isolation: isolate;

  width: 100%;
  max-width: 520px;
  justify-self: center;
}

/* Offset mint panel */
.ik-hero-visual::before {
  content: "";

  position: absolute;
  inset: 18px -14px -14px 18px;
  z-index: -1;

  border-radius: 32px;
  background: var(--ik-mint);

  transform: rotate(3deg);
}

/* Decorative yellow circle */
.ik-hero-visual::after {
  content: "";

  position: absolute;
  top: -24px;
  inset-inline-end: 18px;
  z-index: -1;

  width: 100px;
  height: 100px;

  border: 16px solid var(--ik-yellow);
  border-radius: 50%;
}


/* =========================================
   IMAGE & OVERLAY
========================================= */

.ik-hero-image {
  position: relative;

  height: 490px;
  overflow: hidden;

  border-radius: 28px;
  background: var(--ik-navy);
}

.ik-hero-image > img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.ik-hero-image::after {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    180deg,
    transparent 40%,
    #17324D55 65%,
    #17324DF2 100%
  );

  pointer-events: none;
}

.ik-hero-image-caption {
  position: absolute;
  inset-inline: 28px;
  bottom: 40px;
  z-index: 1;

  color: var(--ik-white);
}

.ik-hero-image-caption > span {
  display: block;

  margin-bottom: 9px;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.ik-hero-image-caption > strong {
  display: block;

  max-width: 320px;

  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}


/* =========================================
   FLOATING CARD
========================================= */

.ik-hero-floating-card {
  position: absolute;
  top: 30px;
  inset-inline-start: -24px;
  z-index: 2;

  display: flex;
  align-items: center;
  gap: 12px;

  max-width: calc(100% - 16px);
  padding: 15px 18px;

  border: 1px solid #17324D0D;
  border-radius: 16px;

  background: var(--ik-white);
  box-shadow: 0 14px 40px #17324D14;
}

.ik-hero-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;

  height: 44px;

  border-radius: 12px;
  background: var(--ik-yellow);
  color: var(--ik-navy);

  font-size: 28px;
}

.ik-hero-floating-card strong {
  display: block;

  color: var(--ik-navy);
  font-size: 14px;
  line-height: 1.5;
}

.ik-hero-floating-card small {
  display: block;

  margin-top: 4px;

  color: var(--ik-muted);
  font-size: 10px;
  letter-spacing: 0.5px;
  line-height: 1.6;
}


/* =========================================
   BOTTOM BADGE
========================================= */

.ik-hero-badge {
  position: absolute;
  bottom: -18px;
  inset-inline-end: 22px;
  z-index: 2;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 18px;

  border-radius: 50px;
  background: var(--ik-yellow);
  color: var(--ik-navy);

  font-size: 13px;
  font-weight: 700;

  transform: rotate(-5deg);
}

.ik-hero-badge > span {
  font-size: 22px;
  line-height: 1;
}


/* =========================================
   RTL SUPPORT
   Translate the HTML text separately.
========================================= */

.ik-hero:dir(rtl) {
  font-family: "Cairo", Tahoma, Arial, sans-serif;
}

.ik-hero:dir(rtl) h1 {
  line-height: 1.4;
  letter-spacing: 0;
}

.ik-hero:dir(rtl) .ik-hero-eyebrow,
.ik-hero:dir(rtl) .ik-hero-floating-card small,
.ik-hero:dir(rtl) .ik-hero-image-caption > span,
.ik-hero:dir(rtl) .ik-hero-image-caption > strong {
  letter-spacing: 0;
}

.ik-hero:dir(rtl) .ik-hero-visual::before {
  transform: rotate(-3deg);
}

.ik-hero:dir(rtl) .ik-hero-badge {
  transform: rotate(5deg);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {
  .ik-hero {
    padding: 64px 0;
  }

  .ik-hero-container {
    width: calc(100% - 48px);
    gap: 40px;
  }

  .ik-hero h1 {
    font-size: 44px;
    letter-spacing: -1.8px;
  }

  .ik-hero-image {
    height: 460px;
  }

  .ik-hero-floating-card {
    inset-inline-start: -12px;
    padding: 12px;
  }

  .ik-hero-image-caption {
    inset-inline: 22px;
  }

  .ik-hero-image-caption > strong {
    font-size: 25px;
  }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 760px) {
  .ik-hero {
    padding: 44px 0 64px;
  }

  .ik-hero-container {
    width: calc(100% - 40px);

    grid-template-columns: 1fr;
    gap: 52px;
  }

  .ik-hero h1 {
    max-width: 560px;

    font-size: clamp(36px, 7vw, 50px);
    letter-spacing: -1.5px;
  }

  .ik-hero .ik-hero-description {
    max-width: 540px;
    margin: 20px 0 26px;

    font-size: 16px;
  }

  .ik-hero-eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  .ik-hero .ik-hero-topics {
    margin-top: 22px;
  }

  .ik-hero-visual {
    width: calc(100% - 16px);
    max-width: 500px;
  }

  .ik-hero-image {
    height: clamp(350px, 75vw, 440px);
    border-radius: 24px;
  }

  .ik-hero-visual::before {
    inset: 12px -8px -10px 12px;
    border-radius: 26px;
    transform: rotate(2deg);
  }

  .ik-hero:dir(rtl) .ik-hero-visual::before {
    transform: rotate(-2deg);
  }

  .ik-hero-floating-card {
    top: 22px;
    inset-inline-start: -8px;
    gap: 10px;
  }

  .ik-hero-card-icon {
    flex-basis: 38px;
    height: 38px;

    font-size: 25px;
  }

  .ik-hero-floating-card strong {
    font-size: 13px;
  }

  .ik-hero-image-caption {
    bottom: 38px;
  }

  .ik-hero-badge {
    inset-inline-end: 12px;
  }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
  .ik-hero-button {
    transition: none;
  }

  .ik-hero-button:hover {
    transform: none;
  }
}