/* ==========================================================================
   PT. Infinite Potensi - static site stylesheet
   ========================================================================== */

:root {
  --yellow: #f8e502;
  --yellow-deep: #f8c602;
  --orange: #c86704;
  --orange-2: #dda400;
  --accent: #ead940;
  --ink: #303131;
  --text: #333333;
  --muted: #6b7280;
  --line: #e8e4d4;
  --bg: #ffffff;
  --bg-alt: #fbf8ea;
  --wa: #25d366;
  --wa-dark: #1ebe5b;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(48, 49, 49, .08);
  --shadow-lg: 0 18px 45px rgba(48, 49, 49, .16);
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; z-index: 999; border-radius: 6px; }

/* ------------------------------ Buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1c1d1d; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }

/* ------------------------------ Header --------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--line); transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 82px; }
.site-header .container { max-width: 1280px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 58px; width: auto; }

.site-nav { margin-left: auto; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.menu > li { position: relative; }
.menu > li > a {
  display: flex; align-items: center; gap: 5px; padding: 11px 10px; color: var(--ink);
  font-weight: 600; font-size: .88rem; border-radius: 8px; white-space: nowrap;
}
.menu > li > a:hover, .menu > li.active > a { background: var(--bg-alt); color: var(--orange); text-decoration: none; }
.caret { display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }

.submenu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0;
  min-width: 250px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-lg); display: none; z-index: 50;
}
.menu li:hover > .submenu, .menu li:focus-within > .submenu { display: block; }
.submenu li { position: relative; }
.submenu a { display: block; padding: 9px 12px; border-radius: 7px; color: var(--ink); font-size: .9rem; white-space: nowrap; }
.submenu a:hover { background: var(--bg-alt); color: var(--orange); text-decoration: none; }
.submenu .submenu { top: -9px; left: 100%; display: none; }
.submenu li:hover > .submenu, .submenu li:focus-within > .submenu { display: block; }
.submenu .has-children > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.submenu .has-children > a .caret { transform: rotate(-45deg); flex-shrink: 0; }

.wa-btn {
  display: inline-flex; align-items: center; gap: 10px; background: var(--wa); color: #fff;
  padding: 9px 18px; border-radius: 999px; font-weight: 700; line-height: 1.1;
  font-size: .82rem; text-align: left; flex-shrink: 0; box-shadow: 0 8px 18px rgba(37, 211, 102, .35);
}
.wa-btn:hover { background: var(--wa-dark); text-decoration: none; }
.wa-btn svg { display: block; flex-shrink: 0; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 40px; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer; padding: 9px 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------ Hero ----------------------------------- */
.hero { position: relative; color: #fff; min-height: calc(100vh - 82px); min-height: calc(100svh - 82px); display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 20, 20, .85) 0%, rgba(20, 20, 20, .55) 45%, rgba(20, 20, 20, .25) 100%); }
.hero-inner { position: relative; z-index: 2; padding: 120px 20px; max-width: 780px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); color: var(--yellow); margin-bottom: .2em; letter-spacing: -.5px; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.5rem); font-weight: 300; color: #f4f4f4; margin: 0 0 1.6em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .8); }
.hero .btn-outline:hover { background: #fff; color: var(--ink); }

/* Mouse scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #fff; text-decoration: none; opacity: .85; transition: opacity .2s;
}
.scroll-cue:hover { opacity: 1; text-decoration: none; }
.mouse {
  width: 26px; height: 43px; border: 2px solid #fff; border-radius: 14px; position: relative;
}
.mouse .wheel {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--yellow); border-radius: 2px;
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(15px); opacity: 0; }
  100% { transform: translateY(15px); opacity: 0; }
}
.scroll-text { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue .mouse { animation: cueNudge 1.6s ease-in-out infinite; }
@keyframes cueNudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .mouse .wheel, .scroll-cue .mouse { animation: none; }
}

/* ------------------------------ Page hero ------------------------------ */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(58px, 8vw, 96px) 0 clamp(52px, 7vw, 84px);
  background:
    radial-gradient(55% 150% at 88% -20%, rgba(248, 229, 2, .40), transparent 62%),
    linear-gradient(180deg, #fffef8 0%, #f7f4e3 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(48, 49, 49, .07) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 88%);
          mask-image: linear-gradient(180deg, #000, transparent 88%);
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .76rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.breadcrumb a { color: var(--orange); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: #cfc9ae; }
.breadcrumb .current { color: var(--muted); }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); color: var(--ink);
  margin: .2em 0 0; letter-spacing: -.6px;
}
.page-hero h1::after {
  content: ""; display: block; width: 74px; height: 5px; border-radius: 3px;
  background: var(--yellow); margin-top: .38em;
}
.page-hero .hero-sub { color: var(--muted); margin: 1em 0 0; font-size: 1.05rem; font-weight: 300; }
.page-hero-head { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.page-hero-title { min-width: 0; }
.page-hero-logo {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 20px; box-shadow: var(--shadow);
}
.page-hero-logo img { max-height: 58px; width: auto; max-width: 210px; }

/* ------------------------------ Sections ------------------------------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.2em; position: relative; }
.section-title::after { content: ""; display: block; width: 62px; height: 4px; background: var(--yellow); margin: .35em auto 0; border-radius: 3px; }
.series-title { margin: 1.6em 0 .8em; font-size: 1.25rem; }

.cols { display: grid; gap: 32px; align-items: start; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.col { min-width: 0; }
.row-bg { background-size: cover; background-position: center; }

.b-heading { margin-top: 0; }
.b-image { margin: 0 0 1em; }
.b-image img, .col > img { border-radius: var(--radius); }
.b-image a img { transition: transform .3s ease; }

.b-video { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
.b-video.ratio { aspect-ratio: 16 / 9; }
.b-video video, .b-video iframe { width: 100%; height: 100%; display: block; border: 0; object-fit: cover; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; width: 100%; transition: transform .3s; }
.gal-item:hover img { transform: scale(1.05); }

.partners-image {
  max-width: 980px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 26px clamp(16px, 4vw, 44px); box-shadow: var(--shadow);
}
.partners-image img { width: 100%; height: auto; }

/* ------------------------------ Home extras ---------------------------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.features-2 { grid-template-columns: repeat(2, 1fr); }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; box-shadow: var(--shadow); }
.feature-ico { font-weight: 700; font-size: 1.6rem; color: var(--orange); margin-bottom: .4em; }
.feature h3 { font-size: 1.1rem; }
.home-video { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.home-quote img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ------------------------------ Books ---------------------------------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px; }
.book-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .25s; }
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); text-decoration: none; }
.book-cover { aspect-ratio: 3 / 4; background: #f2f2f2; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-name { padding: 14px 16px; font-weight: 600; color: var(--ink); font-size: .92rem; line-height: 1.4; }

.book-detail { display: grid; grid-template-columns: 320px 1fr; gap: 46px; align-items: start; }
.book-detail-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); position: sticky; top: 110px; }
.book-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }
.back-link { margin: 30px auto 0; }

/* ------------------------------ About page ----------------------------- */
.eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: .5em; }

.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .5em; }
.about-text > p { color: #4a4a4a; }
.tick-list { list-style: none; padding: 0; margin: 1.3em 0 1.7em; display: grid; gap: .55em; }
.tick-list li { position: relative; padding-left: 32px; font-weight: 600; color: var(--ink); }
.tick-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px;
  border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: .72rem;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

.about-media { position: relative; padding: 0 22px 28px 0; }
.about-img-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-lg); }
.about-img-sub { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.about-badge {
  position: absolute; left: 14px; top: 14px; background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: .85rem; padding: 9px 16px; border-radius: 999px; box-shadow: var(--shadow);
}

.vm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.vm-card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--yellow); border-radius: 16px; padding: 34px 30px; box-shadow: var(--shadow); }
.vm-card p { margin: 0; color: #4a4a4a; }
.vm-ico { width: 48px; height: 48px; border-radius: 13px; background: var(--bg-alt); color: var(--orange); display: flex; align-items: center; justify-content: center; margin-bottom: .8em; }
.vm-ico svg { width: 24px; height: 24px; }

.about-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.about-gallery a { display: block; border-radius: 12px; overflow: hidden; }
.about-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.about-gallery a:hover img { transform: scale(1.05); }

/* ------------------------------ CTA ------------------------------------ */
.cta { background: var(--yellow); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 46px 20px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 .15em; font-size: 1.5rem; }
.cta p { margin: 0; color: #4a4a2a; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ------------------------------ Contact -------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.contact-info h2 { margin-top: 0; }
.contact-people { list-style: none; padding: 0; margin: 0 0 1.4em; }
.contact-people li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.contact-map iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ------------------------------ Prose ---------------------------------- */
.prose { font-size: 1.02rem; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose img { border-radius: var(--radius); margin: 1em auto; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--yellow); background: var(--bg-alt); border-radius: 0 8px 8px 0; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); font-weight: 700; }
.prose iframe { width: 100%; border-radius: var(--radius); margin: 1em 0; }
.prose a { text-decoration: underline; }
.event-cover { border-radius: var(--radius); margin-bottom: 1.6em; }

/* ------------------------------ Footer --------------------------------- */
.site-footer { margin-top: 0; }
.footer-bar { background: var(--yellow-deep); border-top: 6px solid var(--orange); padding: 44px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.footer-bar p { margin: 0 0 .45em; color: #3a3320; font-size: .95rem; }
.footer-bar a { color: #3a3320; text-decoration: none; }
.footer-bar a:hover { text-decoration: underline; }
.f-title { font-weight: 700; font-size: 1.1rem; }
.footer-copy { background: var(--ink); color: #d8d8d8; padding: 18px 0; font-size: .88rem; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--ink); color: #fff; font-size: 1.2rem; cursor: pointer;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 90; box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* ------------------------------ Lightbox ------------------------------- */
.lightbox { position: fixed; inset: 0; background: rgba(15, 15, 15, .92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lightbox .lb-close { position: absolute; top: 20px; right: 26px; color: #fff; font-size: 2rem; background: none; border: 0; cursor: pointer; }

/* ------------------------------ Scroll entry --------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .anim main section:not(.page-hero) > .container > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  }
  .anim main section:not(.page-hero).in > .container > * { opacity: 1; transform: none; }

  /* Homepage banner text gets a slightly richer entrance */
  .anim main section.hero > .container > * { transform: translateY(42px); transition-duration: .95s; }
  .anim .hero .hero-bg { animation: heroZoom 1.5s ease-out both; }

  .anim main section.in:not(.page-hero) > .container > *:nth-child(2) { transition-delay: .10s; }
  .anim main section.in:not(.page-hero) > .container > *:nth-child(3) { transition-delay: .20s; }
  .anim main section.in:not(.page-hero) > .container > *:nth-child(4) { transition-delay: .30s; }
  .anim main section.in:not(.page-hero) > .container > *:nth-child(5) { transition-delay: .40s; }
  .anim main section.in:not(.page-hero) > .container > *:nth-child(6) { transition-delay: .50s; }
  .anim main section.in:not(.page-hero) > .container > *:nth-child(n+7) { transition-delay: .55s; }
}

@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1.02); } }

/* ------------------------------ Responsive ----------------------------- */
@media (max-width: 1024px) {
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .home-video { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 42px; }
  .vm-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1400px) and (min-width: 1241px) {
  .menu > li > a { font-size: .82rem; padding: 10px 7px; }
  .brand img { height: 52px; }
}

@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .wa-btn span { display: none; }
  .wa-btn { padding: 9px; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav.open { max-height: 80vh; overflow-y: auto; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 12px 16px; }
  .menu > li > a { padding: 13px 10px; border-radius: 8px; justify-content: space-between; }
  .submenu { position: static; display: none; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin-left: 14px; padding: 0 0 0 8px; min-width: 0; }
  .submenu .submenu { position: static; left: auto; top: auto; margin-left: 14px; }
  .menu li.open > .submenu { display: block; }
  .submenu a { white-space: normal; }
  .submenu .has-children > a .caret { transform: rotate(45deg); }
  .submenu .has-children.open > a .caret { transform: rotate(-135deg); }
}

@media (max-width: 720px) {
  .section { padding: 52px 0; }
  .cols, .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .book-detail { grid-template-columns: 1fr; }
  .book-detail-media img { position: static; max-width: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-inner { padding: 90px 20px; }
  .brand img { height: 46px; }
  .about-gallery { grid-template-columns: repeat(2, 1fr); }
  .about-img-sub { width: 52%; }
  .features-2 { grid-template-columns: 1fr; }
  .page-hero-logo img { max-height: 44px; }
  .page-hero-logo { padding: 10px 16px; }
}
