/* ==========================================================================
   FunInKorea homepage hero
   Two columns on desktop: copy left on a soft green wash, portrait right
   bleeding to the viewport edge. Stacks to a single column on small screens.
   ========================================================================== */

.fik-hero {
  position: relative;
  overflow: hidden;
  /* Break out of Astra's centred content container so the band runs edge to
     edge, whatever width the theme's container happens to be. */
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  background:
    linear-gradient(180deg, #F4FBF7 0%, #EEF8F2 55%, #ffffff 100%);
  isolation: isolate;
}

/* Soft organic blobs behind the copy, echoing the brand mark. */
.fik-hero::before,
.fik-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}
.fik-hero::before {
  width: 420px; height: 420px;
  top: -170px; left: -140px;
  background: radial-gradient(circle at 30% 30%, rgba(63,157,99,.13), rgba(63,157,99,0) 70%);
}
.fik-hero::after {
  width: 520px; height: 520px;
  bottom: -260px; left: 30%;
  background: radial-gradient(circle at 50% 50%, rgba(19,48,93,.07), rgba(19,48,93,0) 70%);
}

/* Astra's page-builder template forces `max-width: none` on .entry-content
   children at a higher specificity than any sane selector of ours. Rather than
   escalate that, centre the content with symmetric padding — Astra does not
   touch padding, so this survives theme updates. */
.fik-hero__inner {
  padding-block: 56px 60px;
  padding-inline: max(20px, calc((100% - var(--fik-container, 1180px)) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

/* ---------- Left: copy ---------- */
.fik-hero__copy { max-width: 560px; }

.fik-hero__eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 8px 20px;
  border-radius: var(--fik-radius-pill, 999px);
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(63, 157, 99, .22);
  color: var(--fik-green-deep, #2f7d4d);
  font-family: var(--fik-font-head, sans-serif);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
}

.fik-hero__title {
  margin: 0 0 18px;
  font-family: var(--fik-font-head, sans-serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--fik-navy, #13305d);
}

/* "Confidence" plus its hand-drawn underline. */
.fik-hero__accent {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.fik-hero__underline {
  position: absolute;
  left: 2%;
  bottom: -.16em;
  width: 96%;
  height: .26em;
  color: var(--fik-green, #3f9d63);
  overflow: visible;
}
.fik-hero__underline path {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: fik-draw 1.1s .35s cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes fik-draw { to { stroke-dashoffset: 0; } }

.fik-hero__text {
  margin: 0 0 30px;
  max-width: 46ch;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--fik-text, #475261);
}

.fik-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}
.fik-hero__actions .fik-btn { padding: 15px 30px; font-size: 1rem; }
.fik-hero__arrow { transition: transform .18s ease; }
.fik-hero__actions .fik-btn:hover .fik-hero__arrow { transform: translateX(4px); }

/* ---------- Feature pills ---------- */
.fik-hero__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.fik-hero__feature {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
}
.fik-hero__feature-icon {
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(19, 48, 93, .08);
}
.fik-hero__feature-icon svg { width: 21px; height: 21px; }
.fik-hero__feature-icon--group { color: #2f7d4d; }
.fik-hero__feature-icon--chat  { color: #2b5197; }
.fik-hero__feature-icon--game  { color: #7a4bbd; }
.fik-hero__feature-icon--globe { color: #1f7f8c; }

.fik-hero__feature-text {
  display: flex;
  flex-direction: column;
  font-size: .82rem;
  line-height: 1.35;
  color: var(--fik-muted, #6b7686);
}
.fik-hero__feature-text strong {
  font-family: var(--fik-font-head, sans-serif);
  font-weight: 600;
  color: var(--fik-ink, #1b2432);
}

/* ---------- Right: portrait and annotations ---------- */
.fik-hero__visual { position: relative; }

.fik-hero__portrait {
  position: relative;
  border-radius: 26px;
  aspect-ratio: 4 / 3.25;
  /* The photo bleeds out to the viewport edge, as in the design. */
  margin-inline-end: min(0px, calc((var(--fik-container, 1180px) - 100vw) / 2));
}

.fik-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 26px;
}

.fik-hero__photo--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  background:
    linear-gradient(140deg, #e8f4ec 0%, #dcecf7 55%, #eef3fa 100%);
  border: 2px dashed rgba(63, 157, 99, .35);
}
.fik-hero__placeholder-mark {
  font-family: var(--fik-font-head, sans-serif);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  color: rgba(63, 157, 99, .55);
  line-height: 1;
}
.fik-hero__placeholder-hint {
  font-size: .82rem;
  color: var(--fik-green-deep, #2f7d4d);
  max-width: 24ch;
  line-height: 1.45;
}

/* Speech bubble */
.fik-hero__bubble {
  position: absolute;
  /* Sits on the photo, not straddling its left edge, where it read as clipped. */
  top: 9%;
  left: 4%;
  margin: 0;
  max-width: 184px;
  padding: 15px 19px;
  background: #fff;
  border-radius: 22px 22px 22px 6px;
  box-shadow: 0 10px 26px rgba(19, 48, 93, .14);
  font-family: "Caveat", var(--fik-font-head, sans-serif);
  font-size: 1.22rem;
  line-height: 1.3;
  color: var(--fik-ink, #1b2432);
  z-index: 3;
}
.fik-hero__bubble::after {
  content: "";
  position: absolute;
  left: 16px; bottom: -11px;
  border: 7px solid transparent;
  border-top-color: #fff;
  border-right-width: 12px;
  filter: drop-shadow(0 3px 2px rgba(19, 48, 93, .06));
}

/* Handwritten notes */
.fik-hero__note {
  position: absolute;
  margin: 0;
  font-family: "Caveat", cursive;
  color: var(--fik-navy, #13305d);
  line-height: 1.25;
  z-index: 3;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .65);
}
.fik-hero__note--greeting {
  top: 7%;
  right: 4%;
  text-align: right;
  font-size: 1.24rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fik-hero__note-lead {
  font-size: 1.62rem;
  font-weight: 700;
}
.fik-hero__note--brighter {
  bottom: 26%;
  left: 6%;
  font-size: 1.2rem;
  max-width: 8.5em;
  color: var(--fik-green-deep, #2f7d4d);
  transform: rotate(-4deg);
}

/* Book stack */
.fik-hero__stack {
  position: absolute;
  right: 5%;
  bottom: 5%;
  width: min(214px, 46%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 3;
}
.fik-hero__book {
  padding: 9px 15px;
  border-radius: 7px;
  font-family: var(--fik-font-head, sans-serif);
  font-size: .78rem;
  font-weight: 600;
  color: var(--fik-navy, #13305d);
  box-shadow: 0 3px 10px rgba(19, 48, 93, .13);
  background: #fff;
}
.fik-hero__book--1 { background: #fdf3e3; margin-inline-start: 14px; }
.fik-hero__book--2 { background: #e3eefb; margin-inline-start: 6px; }
.fik-hero__book--3 { background: #e6f5ec; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .fik-hero__inner { gap: 34px; }
  .fik-hero__bubble { max-width: 160px; font-size: 1.08rem; left: 4%; }
  .fik-hero__note--greeting { font-size: 1.06rem; }
  .fik-hero__note-lead { font-size: 1.34rem; }
  .fik-hero__note--brighter { font-size: 1.02rem; }
}

@media (max-width: 900px) {
  .fik-hero__inner {
    grid-template-columns: 1fr;
    padding-block: 40px 48px;
    gap: 36px;
  }
  .fik-hero__copy { max-width: none; }
  .fik-hero__portrait {
    margin-inline-end: 0;
    aspect-ratio: 4 / 3;
    max-width: 560px;
  }
  .fik-hero__features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 560px) {
  .fik-hero__portrait { aspect-ratio: 1 / 1; }
  .fik-hero__actions .fik-btn { flex: 1 1 100%; justify-content: center; }
  /* The notes crowd the portrait at phone widths; keep the bubble only. */
  .fik-hero__note, .fik-hero__stack { display: none; }
  .fik-hero__bubble { left: 2%; top: 6%; max-width: 150px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fik-hero__underline path { animation: none; stroke-dashoffset: 0; }
  .fik-hero__arrow { transition: none; }
}

/* ==========================================================================
   Approved-mockup hero proportions
   The photo panel fills its half of the band instead of floating with dead
   space above and below it.

   `height: 100%` on the panel collapsed it: its flex parent is sized by its
   content, so the percentage had nothing to resolve against. Anchoring the
   image with position:absolute breaks that circular dependency — the panel
   keeps a min-height and stretches with the row, and the image fills it.
   ========================================================================== */
@media (min-width: 901px) {
  .fik-hero__inner { align-items: stretch; }
  .fik-hero__copy { align-self: center; }

  .fik-hero__visual { display: flex; }

  .fik-hero__portrait {
    position: relative;
    aspect-ratio: auto;
    min-height: 480px;
    width: 100%;
    flex: 1;
  }

  .fik-hero__photo,
  .fik-hero__photo--empty {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
