/* Kreasi Digital Hub by Tara x Mattel
   Brand: white canvas, ocean, red (one spark), navy. Light blue for panels. Radius 10px. */
:root {
  --white: #FFFFFF;
  --ocean: #1A6AAE;
  --ocean-dark: #155891;
  --red: #D62839;
  --navy: #0F2A4A;
  --mist: #E3EEF8;
  --muted: #4F6178;
  --line: #D3DFEC;
  --radius: 10px;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --space: clamp(40px, 4.6vw, 68px);
  --head: "Plus Jakarta Sans", Montserrat, system-ui, sans-serif;
  --body: "DM Sans", Inter, system-ui, -apple-system, sans-serif;
  --quote: Lora, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--navy); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--ocean); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--ocean); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--navy); padding: 8px 14px; border-radius: var(--radius); z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.bg-white { background: var(--white); }
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-ocean { background: var(--ocean); color: var(--white); }

/* ---------- type */
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ocean); }
.bg-navy .eyebrow, .bg-ocean .eyebrow { color: var(--white); }
.h2 { margin: 0; font-family: var(--head); font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; letter-spacing: -0.01em; }
.h3 { margin: 0; font-family: var(--head); font-weight: 700; font-size: 21px; line-height: 1.3; }
.lead, .body { margin: 0; color: var(--muted); white-space: pre-line; max-width: 600px; }
.bg-navy .body, .bg-ocean .body { color: rgba(255,255,255,0.92); }
.tagline { margin: 0; font-family: var(--head); font-weight: 600; font-size: clamp(18px, 1.6vw, 21px); color: var(--ocean); }
.bg-navy .tagline, .bg-ocean .tagline { color: var(--white); }
.bg-ocean .btn--primary { background: var(--white); color: var(--ocean); }

/* ---------- buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font-family: var(--head); font-weight: 700; font-size: 16px; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.btn--primary { background: var(--ocean); color: var(--white); }
.btn--primary:hover { background: var(--ocean-dark); color: var(--white); }
.btn--outline { border: 2px solid var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--block { width: 100%; min-height: 46px; font-size: 15px; margin-top: 6px; }

/* ---------- header + language toggle */
.topbar { background: var(--navy); }
.topbar__inner { position: relative; max-width: 1440px; margin: 0 auto; padding: 8px 16px; display: flex; justify-content: center; align-items: center; }
.topbar__logo img { width: clamp(240px, 37vw, 530px); height: auto; }
.lang { position: absolute; right: clamp(12px, 4vw, 64px); top: 50%; transform: translateY(-50%); display: inline-flex; padding: 3px; border: 1.5px solid rgba(255,255,255,0.55); border-radius: 10px; }
.lang__pill { position: absolute; left: 3px; top: 3px; bottom: 3px; width: 38px; border-radius: 7px; background: var(--white); transition: transform 260ms cubic-bezier(.4,0,.2,1); }
.lang[data-lang="en"] .lang__pill { transform: translateX(100%); }
.lang.is-to-en .lang__pill { transform: translateX(100%); }
.lang.is-to-id .lang__pill { transform: translateX(0); }
.lang__opt { position: relative; z-index: 1; width: 38px; height: 30px; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--white); text-decoration: none; transition: color 260ms; }
.lang__opt[aria-current="true"] { color: var(--navy); }
.lang.is-to-en .lang__opt[hreflang="en"], .lang.is-to-id .lang__opt[hreflang="id"] { color: var(--navy); }
.lang.is-to-en .lang__opt[hreflang="id"], .lang.is-to-id .lang__opt[hreflang="en"] { color: var(--white); }
@media (max-width: 640px) {
  .topbar__inner { padding: 10px 16px; min-height: 60px; justify-content: space-between; gap: 12px; }
  .topbar__logo img { width: min(220px, calc(100vw - 130px)); display: block; }
  .lang { position: relative; right: auto; top: auto; transform: none; flex: none; }
  .lang__pill, .lang__opt { width: 32px; }
  .lang__opt { height: 26px; font-size: 12px; }
}

/* ---------- motifs: faint background decoration at the section edges, behind content */
.section { position: relative; overflow: hidden; }
.section > .wrap { position: relative; z-index: 1; }
.deco { position: absolute; z-index: 0; height: auto; pointer-events: none; user-select: none; opacity: 0.1; }
.bg-ocean .deco, .bg-navy .deco { opacity: 0.2; }
.deco--tr { width: clamp(180px, 19vw, 280px); top: clamp(16px, 3vw, 48px); right: clamp(-30px, calc((100% - 1200px) / 2 - 170px), 160px); }
.deco--bl { width: clamp(110px, 11vw, 170px); bottom: clamp(16px, 4vw, 64px); left: -34px; }
@media (max-width: 640px) { .deco { display: none; } }

/* ---------- hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 3vw, 40px); }
.hero__text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero__lead { margin: 0; max-width: 600px; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.7; white-space: pre-line; }
.hero__media { flex: 0 1 340px; min-width: 0; display: flex; justify-content: center; }
.hero__photo { width: clamp(200px, 20vw, 290px); height: auto; aspect-ratio: 1; border-radius: 50%; flex: none; }
@media (max-width: 640px) {
  /* phone: photo top left, buttons beside it, then the text */
  .hero { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; row-gap: 18px; }
  .hero__text, .hero__media { display: contents; }
  .hero__photo { grid-column: 1; grid-row: 1; width: 132px; }
  .hero .btn-row { grid-column: 2; grid-row: 1; flex-direction: column; gap: 10px; padding-top: 0; }
  .hero .btn { min-height: 42px; padding: 8px 12px; font-size: 14px; gap: 8px; line-height: 1.25; text-align: left; justify-content: flex-start; }
  .hero .btn svg { flex: none; }
  .hero .eyebrow { grid-column: 1 / -1; grid-row: 2; }
  .hero__lead { grid-column: 1 / -1; grid-row: 3; margin-top: -6px; }
}

/* ---------- section heads */
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head__text { flex: 1 1 480px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- card sliders: swipe on phones, arrows show only when cards overflow */
.slider { position: relative; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 8px; margin: -4px -2px -8px; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { scroll-snap-align: start; }
.slider__track:focus-visible { outline: 2px solid var(--ocean); outline-offset: 4px; }
.slider__arrow { position: absolute; top: 34%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(15,42,74,0.18); transition: opacity .2s, background .2s; }
.slider__arrow:hover { background: var(--navy); color: var(--white); }
.slider__arrow--prev { left: -22px; }
.slider__arrow--next { right: -22px; }
.slider__arrow[disabled] { opacity: 0; pointer-events: none; }
.slider.is-static .slider__arrow { display: none; }
@media (max-width: 900px) { .slider__track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 640px) {
  .slider__track { grid-auto-columns: 84%; gap: 16px; }
  .slider__arrow { width: 40px; height: 40px; }
  .slider__arrow--prev { left: -12px; }
  .slider__arrow--next { right: -12px; }
}

/* ---------- cards */
.card { background: var(--white); color: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--mist); border-bottom: 1px solid var(--line); }
.card__media--square { aspect-ratio: 1; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__meta { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.card__text { margin: 0; font-size: 16px; color: var(--muted); flex: 1; white-space: pre-line; }
.sticker { position: absolute; top: 14px; left: 14px; background: var(--red); color: var(--white); font-family: var(--head); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 999px; }
a.card:hover .h3 { color: var(--ocean); }
.rep-cover { aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; background: var(--navy); color: var(--white); border-bottom: 0; }
.rep-cover svg { opacity: 0.85; }
.rep-cover__name { font-family: var(--head); font-weight: 700; font-size: 17px; line-height: 1.3; }
.card__text--clamp { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; flex: 0 1 auto; }
.card__more { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--ocean); }

/* ---------- product sections: text left, thumbnail right */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.product__text { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; text-align: left; }
.product__media { min-width: 0; }
@media (max-width: 900px) { .product { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  /* phone: left aligned, text, then thumbnail, then button */
  .product { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .product__text { display: contents; }
  .product__media { order: 1; margin-top: 6px; }
  .product .btn-row { order: 2; padding-top: 0; }
}
.frame { position: relative; display: block; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.frame img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.frame--zoom { width: 100%; padding: 0; font: inherit; cursor: zoom-in; transition: transform .2s; }
.frame--zoom:hover { transform: translateY(-2px); }
.frame--zoom:focus-visible { outline: 2px solid var(--ocean); outline-offset: 3px; }
.zoom-badge { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(15,42,74,0.3); }
.zoom-hint { margin: 10px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.bg-navy .zoom-hint, .bg-ocean .zoom-hint { color: rgba(255,255,255,0.85); }
.bg-ocean .frame { border-color: transparent; }

/* ---------- lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(15,42,74,0.85); }
.lightbox__img { max-width: min(1200px, 94vw); max-height: 88vh; width: auto; height: auto; border-radius: var(--radius); background: var(--white); }
.lightbox__close { position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
@media (max-width: 640px) { .lightbox__close { top: -52px; right: 0; } }
.ribbon { position: absolute; top: 34px; right: -54px; width: 220px; transform: rotate(45deg); background: var(--red); color: var(--white); text-align: center; padding: 8px 0; font-family: var(--head); font-weight: 800; font-size: 14px; letter-spacing: 0.06em; box-shadow: 0 2px 0 rgba(15,42,74,0.25); }

/* ---------- footer */
.footer { background: var(--navy); color: var(--white); padding: clamp(40px, 5vw, 64px) 0 24px; }
.footer__inner { display: flex; flex-direction: column; gap: 28px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__brand { display: flex; flex-direction: column; gap: 10px; }
.footer__brand img { width: clamp(260px, 42vw, 600px); height: auto; }
.footer__tagline { margin: 0; font-family: var(--quote); font-style: italic; font-weight: 500; font-size: 15px; opacity: 0.9; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-size: 15px; min-height: 32px; }
.footer__links a:hover { text-decoration: underline; }
.footer__copy { margin: 0; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 20px; text-align: center; font-size: 14px; opacity: 0.85; }

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