/*
Theme Name: BisaBaca Main
Theme URI: https://bisabaca.com/
Author: LumoraLabs — BisaBaca
Description: Tema block mandiri untuk website utama BisaBaca. Struktur ringan, tanpa sidebar kiri, dengan pilihan BisaBaca Canvas dan FullWidth.
Version: 0.1.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: bisabaca-main
*/

:root {
  --bb-orange: #FF6D00;
  --bb-deep-orange: #F4511E;
  --bb-orange-soft: #FFF0E5;
  --bb-amber: #FFA726;
  --bb-yellow: #FFD84D;
  --bb-ink: #16212E;
  --bb-ink-soft: #28384D;
  --bb-muted: #65758A;
  --bb-line: rgba(22, 33, 46, .09);
  --bb-page: #FFF9F3;
  --bb-surface: #FFFFFF;
  --bb-surface-soft: #F5F7FB;
  --bb-radius-sm: 14px;
  --bb-radius-md: 22px;
  --bb-radius-lg: 32px;
  --bb-shadow-soft: 0 8px 28px rgba(22, 33, 46, .07);
  --bb-shadow-card: 0 18px 48px rgba(22, 33, 46, .10);
  --bb-content-width: 1200px;
  --bb-side-pad: clamp(18px, 4vw, 42px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--bb-ink);
  background: var(--bb-page);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(255, 109, 0, .45);
  outline-offset: 3px;
}
::selection { color: #16212E; background: #FFDFAE; }

body { overflow-x: clip; }
/* Keep the global site chrome flush: no theme.json block-gap between header,
   full-width content, and footer. Spacing inside page/content sections remains intact. */
.wp-site-blocks {
  gap: 0 !important;
  row-gap: 0 !important;
}
.wp-site-blocks > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}
.wp-block-post-content, .entry-content { overflow-wrap: anywhere; }
.wp-block-post-title, .wp-block-heading { color: var(--bb-ink); letter-spacing: -.035em; line-height: 1.14; }
.wp-block-post-title { font-size: clamp(2rem, 4vw, 3.5rem); }
.wp-block-post-content > * { max-width: 100%; }
.wp-block-post-content > :where(p, ul, ol, blockquote, pre, table, h1, h2, h3, h4, h5, h6) { margin-left: auto; margin-right: auto; }
.wp-block-post-content > :where(p, ul, ol, blockquote, pre, table) { max-width: 760px; }
.wp-block-post-content > :where(h1, h2, h3, h4, h5, h6) { max-width: 900px; }
.wp-block-image img { border-radius: 14px; }
.wp-block-button__link, .wp-element-button {
  background: var(--bb-orange);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .82em 1.35em;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(255, 109, 0, .18);
}
.wp-block-button__link:hover, .wp-element-button:hover { background: var(--bb-deep-orange); color: #fff; }
.wp-block-search__input, input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], textarea, select {
  max-width: 100%; border: 1px solid #DCE2EA; border-radius: 12px; padding: .8em .95em; background: #fff; color: var(--bb-ink);
}
.wp-block-separator { border-color: var(--bb-line); }

.bb-container { width: min(var(--bb-content-width), calc(100% - (var(--bb-side-pad) * 2))); margin-inline: auto; }
.bb-page-shell, .bb-single-shell, .bb-archive-shell { width: min(1040px, calc(100% - (var(--bb-side-pad) * 2))); margin: 0 auto; padding: clamp(38px, 6vw, 76px) 0; }
.bb-content-card { background: #fff; border: 1px solid var(--bb-line); border-radius: var(--bb-radius-lg); padding: clamp(22px, 4vw, 50px); box-shadow: var(--bb-shadow-soft); }
.bb-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 900; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }
.bb-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.bb-section-heading { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.bb-section-heading h2 { margin: 0 0 12px; color: var(--bb-ink); font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 950; letter-spacing: -.045em; }
.bb-section-heading p { margin: 0; color: var(--bb-muted); font-size: clamp(.98rem, 1.5vw, 1.1rem); }
.bb-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; font-size: .95rem; font-weight: 850; line-height: 1.1; text-align: center; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease; }
.bb-button:hover { transform: translateY(-2px); }
.bb-button--primary { color: #fff; background: var(--bb-orange); box-shadow: 0 10px 24px rgba(244, 81, 30, .23); }
.bb-button--primary:hover { color: #fff; background: var(--bb-deep-orange); box-shadow: 0 14px 28px rgba(244, 81, 30, .27); }
.bb-button--light { color: var(--bb-ink); background: #fff; border-color: rgba(255,255,255,.5); }
.bb-button--light:hover { color: var(--bb-ink); background: #FFF4E7; }
.bb-button--outline { color: var(--bb-ink); background: #fff; border-color: #DCE3EC; }
.bb-button--outline:hover { color: var(--bb-deep-orange); border-color: #FFB37B; }
.bb-skip-link { position: fixed; left: 12px; top: 12px; z-index: 9999; padding: 12px 16px; transform: translateY(-150%); color: #fff; background: var(--bb-ink); border-radius: 10px; }
.bb-skip-link:focus { transform: translateY(0); }
.bb-template-canvas .wp-site-blocks { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.bb-template-canvas .wp-block-post-content, .bb-template-canvas .bb-full-canvas { width: 100%; max-width: none; margin: 0; padding: 0; }
.bb-full-canvas { width: 100%; max-width: none; margin: 0; padding: 0; }
.bb-full-canvas .wp-block-post-content > * { max-width: none; }
.bb-full-canvas .wp-block-post-content > :where(p, ul, ol, blockquote, pre, table, h1, h2, h3, h4, h5, h6) { margin-left: 0; margin-right: 0; }
.bb-template-fullwidth .wp-site-blocks { max-width: none; }
.bb-fullwidth-shell { width: 100%; max-width: none; margin: 0; padding: 0; }
.bb-fullwidth-shell > .wp-block-post-content { width: 100%; max-width: none; margin: 0; padding: 0; }
.bb-fullwidth-shell > .wp-block-post-content > .alignfull { width: 100%; max-width: none; }

/* Pages/posts keep a full-width theme shell and never render a left sidebar. */
.bb-page-header { margin: 0 0 28px; }
.bb-page-header .bb-page-kicker { display: inline-block; margin: 0 0 10px; color: var(--bb-deep-orange); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.bb-page-header .wp-block-post-title { margin: 0; }
.bb-page-excerpt { max-width: 70ch; margin: 14px 0 0; color: var(--bb-muted); font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.7; }
.bb-post-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 16px; color: var(--bb-muted); font-size: .9rem; }
.bb-featured-image { margin: 0 0 28px; }
.bb-featured-image img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--bb-radius-md); }
.bb-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bb-archive-card { overflow: hidden; border: 1px solid var(--bb-line); border-radius: 22px; background: #fff; box-shadow: var(--bb-shadow-soft); }
.bb-archive-card .wp-block-post-featured-image { margin: 0; }
.bb-archive-card .wp-block-post-featured-image img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; }
.bb-archive-card__body { padding: 20px; }
.bb-archive-card .wp-block-post-title { margin: 0 0 10px; font-size: 1.22rem; line-height: 1.28; }
.bb-archive-card .wp-block-post-excerpt { color: var(--bb-muted); font-size: .94rem; }
.bb-archive-card .wp-block-post-title a { text-decoration: none; }
.bb-archive-card .wp-block-post-title a:hover { color: var(--bb-deep-orange); }
.bb-pagination { margin-top: 32px; }
.bb-pagination .page-numbers { display: inline-flex; gap: 8px; }
.bb-404 { max-width: 760px; margin: auto; padding: clamp(36px, 7vw, 76px); text-align: center; background: #fff; border: 1px solid var(--bb-line); border-radius: var(--bb-radius-lg); box-shadow: var(--bb-shadow-soft); }
.bb-404__code { color: var(--bb-orange); font-size: clamp(4rem, 12vw, 8rem); font-weight: 1000; line-height: .9; letter-spacing: -.08em; }

@media (max-width: 900px) {
  .bb-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .bb-archive-grid { grid-template-columns: 1fr; }
  .bb-content-card { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Site-wide horizontal header and footer: deliberately no left sidebar. */
.bb-header { position: sticky; top: 0; z-index: 100; width: 100%; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(22,33,46,.07); backdrop-filter: saturate(150%) blur(18px); -webkit-backdrop-filter: saturate(150%) blur(18px); }
.bb-header__inner { display: flex; align-items: center; min-height: 82px; gap: clamp(16px, 2.2vw, 32px); }
.bb-brand { display: inline-flex; align-items: center; flex: 0 0 auto; width: 174px; text-decoration: none; }
.bb-brand img { display: block; width: 100%; max-height: 58px; object-fit: contain; object-position: left center; }
.bb-nav { display: flex; align-items: center; justify-content: center; gap: clamp(15px, 2vw, 28px); margin-left: auto; }
.bb-nav a { color: #38485B; font-size: .92rem; font-weight: 750; text-decoration: none; white-space: nowrap; transition: color .18s ease; }
.bb-nav a:hover { color: var(--bb-deep-orange); }
.bb-header__actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.bb-header__login { color: var(--bb-ink); font-size: .92rem; font-weight: 800; text-decoration: none; }
.bb-header__login:hover { color: var(--bb-deep-orange); }
.bb-header__signup { min-height: 42px; padding: 11px 18px; font-size: .88rem; }
.bb-menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0; background: #FFF7EF; border: 1px solid #FFE0C4; border-radius: 14px; cursor: pointer; }
.bb-menu-toggle span { display: block; width: 19px; height: 2px; background: var(--bb-ink); border-radius: 3px; transition: transform .18s ease, opacity .18s ease; }
.bb-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.bb-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bb-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
.bb-related-content { margin-top: 36px; }
.bb-related-content > .wp-block-heading { margin-bottom: 20px; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.bb-footer { color: #EAF0F6; background: #16212E; }
.bb-footer__main { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding-top: 45px; padding-bottom: 38px; }
.bb-footer__brand { max-width: 430px; }
.bb-footer__logo { display: inline-block; width: 165px; }
.bb-footer__logo img { display: block; width: 100%; max-height: 55px; object-fit: contain; object-position: left center; }
.bb-footer__brand p { margin: 12px 0 0; color: #B8C5D4; font-size: .92rem; }
.bb-footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 24px; }
.bb-footer__links a, .bb-footer__bottom a { color: #EAF0F6; font-size: .87rem; font-weight: 700; text-decoration: none; }
.bb-footer__links a:hover, .bb-footer__bottom a:hover { color: #FFCA75; }
.bb-footer__bottom { border-top: 1px solid rgba(255,255,255,.11); }
.bb-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 17px; padding-bottom: 17px; }
.bb-footer__bottom p { margin: 0; color: #AEBCCC; font-size: .8rem; }

@media (max-width: 1080px) {
  .bb-header__inner { gap: 16px; }
  .bb-brand { width: 154px; }
  .bb-nav { gap: 15px; }
  .bb-nav a { font-size: .85rem; }
}
@media (max-width: 820px) {
  /* Without JavaScript, keep the links visible in a second row. */
  .bb-header__inner { position: relative; min-height: 72px; flex-wrap: wrap; justify-content: space-between; }
  .bb-menu-toggle { display: none; order: 3; }
  .bb-header__actions { margin-left: auto; gap: 10px; }
  .bb-header__login { font-size: .85rem; }
  .bb-header__signup { min-height: 39px; padding: 10px 15px; }
  .bb-nav { position: static; order: 4; display: flex; width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 0 14px; }
  .bb-nav a { padding: 12px 14px; border-radius: 10px; font-size: .95rem; }
  .bb-nav a:hover { background: #FFF2E6; }
  /* With JavaScript, collapse navigation into an accessible disclosure menu. */
  html.bb-has-js .bb-header__inner { flex-wrap: nowrap; }
  html.bb-has-js .bb-menu-toggle { display: flex; }
  html.bb-has-js .bb-nav { position: absolute; top: calc(100% + 9px); left: 0; right: 0; display: none; width: auto; flex-direction: column; align-items: stretch; margin: 0; padding: 10px; background: #fff; border: 1px solid var(--bb-line); border-radius: 18px; box-shadow: 0 18px 40px rgba(22,33,46,.15); }
  html.bb-has-js .bb-nav.is-open { display: flex; }
  .bb-footer__main { align-items: flex-start; flex-direction: column; }
  .bb-footer__links { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .bb-brand { width: 132px; }
  .bb-brand img { max-height: 44px; }
  .bb-header__inner { min-height: 66px; gap: 9px; }
  .bb-header__actions { gap: 8px; }
  .bb-header__login { font-size: .8rem; }
  .bb-header__signup { min-height: 36px; padding: 9px 12px; font-size: .81rem; }
  .bb-menu-toggle { width: 39px; height: 39px; }
  .bb-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 20px; }
  .bb-footer__bottom-inner { align-items: flex-start; flex-direction: column; gap: 7px; }
}


/* Reusable CTA pattern is styled globally, not only when the Homepage stylesheet loads. */
.bb-last-cta { position: relative; isolation: isolate; overflow: hidden; padding: clamp(60px, 8vw, 100px) 0; text-align: center; color: #fff; background: linear-gradient(125deg, #F4511E, #FF6D00 50%, #FF922B); }
.bb-last-cta__blob { position: absolute; z-index: -1; border-radius: 42% 58% 55% 45% / 52% 42% 58% 48%; background: rgba(255,255,255,.1); pointer-events: none; }
.bb-last-cta__blob--one { width: 420px; height: 420px; left: -120px; top: -200px; transform: rotate(19deg); }
.bb-last-cta__blob--two { width: 360px; height: 360px; right: -80px; bottom: -210px; transform: rotate(-13deg); }
.bb-last-cta__inner { position: relative; max-width: 820px; }
.bb-last-cta .bb-eyebrow { justify-content: center; margin-bottom: 17px; color: #FFF2CF; }
.bb-last-cta h2 { margin: 0 auto 16px; color: #fff; font-size: clamp(2.2rem, 4.7vw, 4rem); font-weight: 1000; letter-spacing: -.06em; line-height: 1.02; text-wrap: balance; }
.bb-last-cta p:not(.bb-eyebrow) { max-width: 650px; margin: 0 auto 25px; color: rgba(255,255,255,.93); font-size: 1.07rem; }



@media (max-width: 600px) {
  .bb-last-cta { padding: 60px 0; }
  .bb-last-cta h2 { font-size: 2.3rem; }
  .bb-last-cta p:not(.bb-eyebrow) { font-size: .95rem; }
}
