/* ============================================================
   Milo — Năng Động Việt Nam campaign landing page
   ============================================================ */

@font-face {
  font-family: "Anybody";
  src: url("fonts/Anybody-VariableFont.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

@font-face {
  font-family: "DFVN-SomeTimeLater";
  src: url("fonts/DFVN-SomeTimeLater.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --green: #16a34a;
  --green-mid: #12923f;
  --green-dark: #0b7a33;
  --green-deep: #076128;
  --ball: #d7e04d;
  --ball-line: #b9c53a;
  --ink: #1f2937;
  --muted: #566072;
  --maxw: 1040px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Anybody", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.milo-cuncung-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Headings (condensed heavy italic) ---------- */
.milo-cuncung-heading {
  font-family: "DFVN-SomeTimeLater", sans-serif;
  font-weight: 800;
  font-stretch: 90%;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  text-align: center;
}

.milo-cuncung-heading--white {
  color: #fff;
}

.milo-cuncung-heading--green {
  color: var(--green);
}

/* ---------- Buttons ---------- */
.milo-cuncung-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 800;
  font-style: italic;
  font-stretch: 90%;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  padding: 13px 34px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease);
}

.milo-cuncung-btn:hover {
  transform: translateY(-2px);
}

.milo-cuncung-btn--green {
  background: var(--green);
  color: #fff;
}

.milo-cuncung-btn--green:hover {
  background: var(--green-dark);
}

.milo-cuncung-btn--outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.milo-cuncung-btn--outline:hover {
  background: #fff;
  color: var(--green);
}

/* ---------- Green bands + tennis-ball decorations ---------- */
.milo-cuncung-green-band {
  position: relative;
  background: var(--green);
  color: #fff;
  overflow: hidden;
}

/* leaf watermark texture on white sections handled per-section */

.milo-cuncung-ball {
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e4ec6b, var(--ball) 60%);
  box-shadow: inset -6px -8px 0 rgba(0, 0, 0, 0.04);
  z-index: 3;
  pointer-events: none;
}

.milo-cuncung-ball::before,
.milo-cuncung-ball::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2.5px solid var(--ball-line);
  clip-path: inset(0 55% 0 0);
}

.milo-cuncung-ball::after {
  clip-path: inset(0 0 0 55%);
}

.milo-cuncung-ball--tl {
  top: -30px;
  left: 5%;
}
.milo-cuncung-ball--tr {
  top: -30px;
  right: 6%;
}
.milo-cuncung-ball--br {
  bottom: -30px;
  right: 8%;
}
.milo-cuncung-ball--bl {
  bottom: -30px;
  left: 8%;
}

/* ---------- Hero ---------- */
.milo-cuncung-hero__media {
  width: 100%;
}

.milo-cuncung-hero__media img {
  width: 100%;
  height: auto;
}

.milo-cuncung-show-mobile {
  display: none;
}

.milo-cuncung-hero__overlay {
  position: relative;
  width: 100%;
  padding-block: 40px;
}

.milo-cuncung-hero__kicker {
  font-family: "DFVN-SomeTimeLater", sans-serif;
  font-weight: 800;
  font-style: italic;
  font-stretch: 90%;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  color: #ffd23f;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.milo-cuncung-hero__title {
  font-family: "DFVN-SomeTimeLater", sans-serif;
  font-weight: 800;
  font-style: italic;
  font-stretch: 90%;
  text-transform: uppercase;
  color: #ffd23f;
  line-height: 1.02;
  font-size: clamp(1.8rem, 5.2vw, 3.6rem);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
  max-width: 16ch;
}

.milo-cuncung-hero__milo {
  color: #fff;
}

.milo-cuncung-nestle-badge {
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-size: 0.7rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ---------- Brand divider (NĂNG ĐỘNG VIỆT NAM logo) ---------- */
.milo-cuncung-brand-divider {
  display: flex;
  justify-content: center;
  padding: 30px 24px;
  background: #fff;
}

.milo-cuncung-ndvn-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-style: italic;
  font-weight: 800;
  font-stretch: 85%;
  text-transform: uppercase;
  color: var(--green);
  line-height: 0.86;
}

.milo-cuncung-ndvn-logo__l1 {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.milo-cuncung-ndvn-logo__l2 {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1.9rem;
  color: var(--green);
}

.milo-cuncung-ndvn-logo__l2 b {
  font-size: 0.55em;
  color: #fff;
  background: var(--green);
  padding: 2px 6px;
  border-radius: 5px;
  transform: translateY(-2px);
}

.milo-cuncung-ndvn-logo--lg .milo-cuncung-ndvn-logo__l1 {
  font-size: 1.5rem;
}

.milo-cuncung-ndvn-logo--lg .milo-cuncung-ndvn-logo__l2 {
  font-size: 2.6rem;
}

/* ---------- BA MẸ CÓ BIẾT ---------- */
.milo-cuncung-know {
  padding: 70px 0 80px;
  text-align: center;
}

.milo-cuncung-know__inner {
  max-width: 620px;
  margin-inline: auto;
}

.milo-cuncung-know .milo-cuncung-heading {
  margin-bottom: 26px;
}

.milo-cuncung-know p {
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.milo-cuncung-know__footnote {
  margin-top: 26px;
  font-size: 0.72rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* ---------- Photo band ---------- */
.milo-cuncung-photo-band {
  min-height: clamp(260px, 34vw, 420px);
  background: linear-gradient(180deg, #6f8f4a, #52713a);
  background-image: repeating-linear-gradient(120deg, #6f8f4a 0 28px, #67863f 28px 56px);
}

/* ---------- Story / milo-cuncung-video ---------- */
.milo-cuncung-story {
  position: relative;
  padding: 70px 0 80px;
  text-align: center;
  overflow: hidden;
}

.milo-cuncung-story .milo-cuncung-heading {
  margin-bottom: 40px;
}

.milo-cuncung-video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 860px;
  margin-inline: auto;
  border-radius: 6px;
  overflow: hidden;
}

.milo-cuncung-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Đón cún cưng về nhà ---------- */
.milo-cuncung-adopt {
  padding: 74px 0 84px;
  text-align: center;
}

.milo-cuncung-adopt__inner {
  max-width: 620px;
  margin-inline: auto;
}

.milo-cuncung-adopt .milo-cuncung-heading {
  margin-bottom: 24px;
}

.milo-cuncung-adopt p {
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.milo-cuncung-partner-logos {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 34px 0 30px;
  flex-wrap: wrap;
}

.milo-cuncung-partner-card {
  width: 130px;
  height: 130px;
  border-radius: 16px;
  background: #fff;
  color: var(--green-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.1;
  text-align: center;
  padding: 10px;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.35);
}

.milo-cuncung-partner-card span {
  font-size: 0.7rem;
  font-weight: 600;
  font-style: normal;
  color: var(--muted);
  margin-top: 4px;
}

.milo-cuncung-partner-card--paws {
  color: #c0392b;
}

/* ---------- Bí kíp / carousel ---------- */
.milo-cuncung-tips {
  position: relative;
  padding: 70px 0 60px;
  background: #fff;
  background-image: radial-gradient(circle at 12% 20%, rgba(22, 163, 74, 0.05) 0 40px, transparent 41px),
    radial-gradient(circle at 88% 70%, rgba(22, 163, 74, 0.05) 0 60px, transparent 61px);
}

.milo-cuncung-tips .milo-cuncung-heading {
  margin-bottom: 44px;
}

.milo-cuncung-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.milo-cuncung-carousel__viewport {
  overflow: hidden;
  flex: 1;
  touch-action: pan-y;
}

.milo-cuncung-carousel__track {
  position: relative;
  display: flex;
  gap: 16px;
  transition: transform 0.5s var(--ease);
}

.milo-cuncung-tip-slide {
  flex: 0 0 78%;
  min-width: 0;
  padding: 0 4px;
  text-align: center;
}

.milo-cuncung-tip-slide:not(.milo-cuncung-is-active) h3,
.milo-cuncung-tip-slide:not(.milo-cuncung-is-active) p {
  visibility: hidden;
}

.milo-cuncung-tip-slide__media {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #d9d9d9;
  background-image: linear-gradient(135deg, #e4e4e4 25%, #d4d4d4 25% 50%, #e4e4e4 50% 75%, #d4d4d4 75%);
  background-size: 40px 40px;
  margin-bottom: 24px;
}

.milo-cuncung-tip-slide h3 {
  font-family: "DFVN-SomeTimeLater", sans-serif;
  font-weight: 800;
  font-style: italic;
  font-stretch: 90%;
  text-transform: uppercase;
  color: var(--green);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.milo-cuncung-tip-slide p {
  max-width: 460px;
  margin-inline: auto;
  color: var(--muted);
}

.milo-cuncung-carousel__arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: #fff;
  color: var(--green);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.milo-cuncung-carousel__arrow:hover {
  background: var(--green);
  color: #fff;
}

.milo-cuncung-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.milo-cuncung-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cdd3cd;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.milo-cuncung-carousel__dot.milo-cuncung-is-active {
  background: var(--green);
  transform: scale(1.25);
}

/* ---------- Ngày hội vận động ---------- */
.milo-cuncung-event {
  position: relative;
  padding: 70px 0 80px;
  text-align: center;
  overflow: hidden;
}

.milo-cuncung-event .milo-cuncung-heading {
  margin-bottom: 40px;
}

.milo-cuncung-event__panel {
  max-width: 760px;
  margin-inline: auto;
}

.milo-cuncung-event__media {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #d9d9d9;
  background-image: linear-gradient(135deg, #e2e2e2 25%, #d2d2d2 25% 50%, #e2e2e2 50% 75%, #d2d2d2 75%);
  background-size: 44px 44px;
  margin-bottom: 30px;
}

.milo-cuncung-event__note {
  color: var(--muted);
  margin-bottom: 26px;
}

/* ---------- Dog banner ---------- */
.milo-cuncung-dog-banner {
  padding: 56px 0;
}

.milo-cuncung-dog-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.milo-cuncung-dog-banner__text {
  font-weight: 800;
  font-style: italic;
  font-stretch: 90%;
  text-transform: uppercase;
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 2rem);
  text-align: center;
}

.milo-cuncung-dog-banner__art {
  width: clamp(160px, 26vw, 240px);
  height: auto;
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].milo-cuncung-is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .milo-cuncung-show-desktop {
    display: none;
  }

  .milo-cuncung-show-mobile {
    display: block;
  }

  .milo-cuncung-ball {
    width: 54px;
    height: 54px;
  }

  .milo-cuncung-carousel__arrow {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }

  .milo-cuncung-carousel__track {
    gap: 8px;
  }

  .milo-cuncung-tip-slide {
    flex-basis: 68%;
  }

  .milo-cuncung-partner-card {
    width: 116px;
    height: 116px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .milo-cuncung-carousel__track {
    transition: none;
  }
}
