/* ==========================================================================
   ZIEBRB.COM — static rebuild
   Tokens
   ========================================================================== */
:root {
  --color-navy-950: #070f24;
  --color-navy-900: #0c1a3a;
  --color-navy-800: #123063;
  --color-navy-700: #1a4b9e;
  --color-blue-500: #2f6fe0;
  --color-gold-400: #ffd60a;
  --color-gold-500: #f4c022;
  --color-cream-50: #fffdf6;
  --color-cream-100: #fbf3df;
  --color-ink-900: #12131c;
  --color-ink-600: #3d4256;
  --color-white: #ffffff;

  /* Palette measured from the original ziebrb.com (Elementor globals) */
  --zb-yellow: #ffd60a;
  --zb-navy: #043775;
  --zb-blob: #10407a;
  --zb-blue: #1464c3;
  --zb-blue-bright: #0061ff;
  --zb-band: #2391d5;
  --zb-orange: #fe5722;
  --zb-pink: #f9487d;
  --zb-sky: #369be1;
  --zb-ink: #333639;
  --zb-text: #4d4d4d;
  --zb-faq-bg: #f8fafc;
  --zb-book-bg: #ebebeb;
  --zb-tint: #eaf3fc;  /* pale band blue, separates white sections on phones */
  --zb-footer: #126783;      /* original footer teal, no longer used */
  --zb-navy-deep: #031f45;   /* bottom of the navy gradients (footer, showreel) */

  --font-roboto: "Roboto", system-ui, sans-serif;
  --font-montserrat: "Montserrat", system-ui, sans-serif;
  --container-wide: 1120px;

  --font-display: "Bebas Neue", "Montserrat", sans-serif;
  /* type roles: Roboto for running text, Montserrat for titles/names/labels,
     Bebas Neue for section titles, buttons and FAQ questions */
  --font-body: "Roboto", system-ui, sans-serif;

  --text-xs: clamp(0.8rem, 0.77rem + 0.15vw, 0.9rem);
  --text-base: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  --text-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --text-hero: clamp(2.6rem, 1.6rem + 4.5vw, 5.2rem);
  --text-section: clamp(2rem, 1.5rem + 2vw, 3.4rem);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: clamp(2.5rem, 2rem + 2vw, 4rem);
  --space-section: clamp(4rem, 3rem + 4vw, 8rem);

  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-pill: 999px;

  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-soft: 0 20px 45px -20px rgba(7, 15, 36, 0.45);
  --shadow-card: 0 10px 30px -12px rgba(7, 15, 36, 0.35);
}

/* Phone type scale + section rhythm, shared by every page so the same kind
   of text is the same size everywhere (see IMPROVEMENTS.md) */
@media (max-width: 767px) {
  :root {
    --m-hero: clamp(1.9rem, 9vw, 2.4rem);     /* home hero only */
    --m-name: 2rem;                           /* "REZI BARABA" band titles */
    --m-title-display: 2.25rem;               /* Bebas section titles */
    --m-title-sans: 1.625rem;                 /* Montserrat 800 section titles */
    --m-card-title: 1.25rem;                  /* card / brand names */
    --m-header: 60px;                         /* sticky header height */
    --m-lede: 15px;                           /* white copy on the blue bands */
    --m-small: 15px;                          /* secondary copy in cards */
    --m-section: 48px;                        /* section padding-block */
    --m-gutter: 24px;                         /* side margin of the content */
  }
}

/* ==========================================================================
   Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-cream-50);
  color: var(--color-ink-900);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.05;
}

p {
  margin: 0;
}

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

/* Two-tone heading colours used by the original section titles */
.is-yellow { color: var(--zb-yellow); }

/* .is-yellow is only used on white / #F8FAFC, where #FFD60A alone is about
   1.4:1; a thin navy hairline keeps the brand yellow but gives the letters
   an edge (a 3px outline read as a sticker) */
.is-yellow {
  -webkit-text-stroke: 1.2px rgba(4, 55, 117, 0.7);
  paint-order: stroke fill;
}
.is-navy { color: var(--zb-navy); }
.is-blue { color: var(--zb-blue); }
.is-ink { color: var(--zb-ink); }
.is-pink { color: var(--zb-pink); }

/* Original-site buttons: yellow pill, Bebas Neue label */
.zb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px 14px;
  border-radius: 47px;
  background: var(--zb-yellow);
  color: #333;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 0.7px;
  transition: transform var(--duration-fast) var(--ease-out-expo), background var(--duration-fast);
}

.zb-btn:hover,
.zb-btn:focus-visible {
  transform: translateY(-2px);
  background: #ffe24d;
}

.zb-btn--hero {
  color: var(--zb-ink);
}

.zb-btn--sky {
  background: var(--zb-sky);
  color: var(--color-white);
}

.zb-btn--sky:hover,
.zb-btn--sky:focus-visible {
  background: #1f86cf;
}

.zb-btn--white {
  background: var(--color-white);
  color: var(--zb-ink);
}

.zb-btn--white:hover,
.zb-btn--white:focus-visible {
  background: var(--zb-yellow);
}

/* ==========================================================================
   Photo slideshow hero + blue band (Tentang, Stand-Up): the original shows a
   full-height slideshow with no text on it, then the title on a blue band
   ========================================================================== */
.zb-photo-hero {
  position: relative;
  height: calc(100vh - 90px);
  min-height: 420px;
  max-height: 1000px;
  overflow: hidden;
  background: #000;
}

.zb-photo-hero .slides {
  z-index: 0;
}

.zb-band {
  background: var(--zb-band);
  padding: 40px 0;
}

.zb-band--center {
  text-align: center;
}

.zb-band__title {
  font-family: var(--font-montserrat);
  font-weight: 700;
  font-size: clamp(2.6rem, 1.6rem + 3vw, 4rem);
  line-height: 1.5;
  letter-spacing: 0;
}

.zb-band__title span:first-child {
  color: var(--color-white);
}

.zb-band__title span:last-child {
  color: var(--zb-yellow);
}

.zb-band__lede {
  max-width: 1100px;
  margin-top: 4px;
  font-family: var(--font-roboto);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-white);
}

.zb-band--center .zb-band__lede {
  margin-inline: auto;
}

@media (max-width: 767px) {
  /* a full-screen photo before any text is a lot of scrolling on a phone */
  .zb-photo-hero {
    height: 50vh;
    min-height: 280px;
  }

  .zb-btn {
    padding: 13px 26px 12px;
    font-size: 15px;
    line-height: 15px;
  }

  .zb-band {
    padding: 40px 0 var(--m-section);
  }

  .zb-band--center {
    text-align: left;
  }

  .zb-band__title {
    font-size: var(--m-name);
    line-height: 1.25;
  }

  /* 500 instead of 600: on a phone these ledes run 5-8 lines of white
     text, and the heavier weight clots */
  .zb-band__lede {
    margin-top: 10px;
    font-size: var(--m-lede);
    font-weight: 500;
    line-height: 1.6;
  }
}

/* ==========================================================================
   Swipe row: on phones, repeated items (cards, videos, embeds, book pages)
   sit side by side and scroll sideways instead of stacking; the next item
   peeks in so it reads as swipeable. Item width via --swipe-item.
   `html` lifts these over the page stylesheets, which load after this one
   and set their own grid/width on the same elements.
   ========================================================================== */
@media (max-width: 767px) {
  html .zb-swipe {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 12px;
    width: 100vw;
    max-width: none;
    margin-inline: calc(50% - 50vw);
    /* a little room for card shadows (the scroller clips both axes); no
       negative margins, they cancelled the gap above the row */
    padding: 4px var(--m-gutter) 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--m-gutter);
    scrollbar-width: none;
  }

  html .zb-swipe::-webkit-scrollbar {
    display: none;
  }

  html .zb-swipe > * {
    flex: 0 0 var(--swipe-item, min(82%, 320px));
    min-width: 0;
    scroll-snap-align: start;
  }
}

/* ==========================================================================
   YouTube facade: thumbnail + play button, iframe only after a click
   ========================================================================== */
.yt {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.yt img,
.yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.yt img {
  transition: transform var(--duration-normal) var(--ease-out-expo), filter var(--duration-normal);
}

.yt:hover img {
  transform: scale(1.04);
  filter: brightness(0.85);
}

.yt__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: #ff0033;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.yt__play::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 14px;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
}

.yt:hover .yt__play,
.yt:focus-visible .yt__play {
  transform: translate(-50%, -50%) scale(1.1);
}

/* ==========================================================================
   Carousel (book pages): 3 slides desktop, 2 tablet, 1 mobile
   ========================================================================== */
.zb-carousel {
  --per-view: 3;
  overflow: hidden;
}

.zb-carousel__track {
  display: flex;
  transition: transform 500ms var(--ease-out-expo);
}

.zb-carousel__track > * {
  flex: 0 0 calc(100% / var(--per-view));
  min-width: 0;
}

.zb-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.zb-carousel__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b5b5b5;
  cursor: pointer;
}

.zb-carousel__dots button[aria-selected="true"] {
  background: #000;
}

@media (max-width: 1024px) {
  .zb-carousel { --per-view: 2; }
}

@media (max-width: 560px) {
  .zb-carousel { --per-view: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .zb-carousel__track {
    transition: none;
  }
}

/* ==========================================================================
   Focus + photo slideshow
   ========================================================================== */

:focus-visible {
  outline: 3px solid var(--color-gold-400);
  outline-offset: 3px;
}

/* Page hero with background photo slideshow (Tentang, Stand-Up, Buku) */

.slides {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
}

.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 6s linear;
}

.slides img.is-active {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .slides img {
    transition: opacity 300ms ease;
    transform: none;
  }
}
