/* =========================================================
   B FOR BOOKS — design tokens
   Palette pulled from the logo: hive teal, ribbon red, bee honey
   Type: Baloo 2 (display, rounded/playful) + Quicksand (body)
   Signature: honeycomb-cut cards + torn-page wave dividers
   ========================================================= */
:root{
  --teal-900:#0b5e63;
  --teal-700:#0f8489;
  --teal-500:#14a3a8;
  --teal-100:#e3f6f5;
  --honey-500:#ffc23c;
  --honey-300:#ffd873;
  --coral-600:#ee4849;
  --coral-700:#d6373c;
  --cream:#fffaf0;
  --ink:#1e3238;
  --ink-soft:#4d6066;
  --paper:#ffffff;

  --font-display:'Baloo 2', system-ui, sans-serif;
  --font-body:'Quicksand', system-ui, sans-serif;

  --radius-lg:28px;
  --radius-md:18px;
  --shadow-soft:0 10px 30px -12px rgba(15,66,70,.25);
}

*{box-sizing:border-box;}

html{scroll-behavior:smooth;}

body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  font-weight:500;
  overflow-x:hidden;
}

h1,h2,h3,h4,.display-font{
  font-family:var(--font-display);
  font-weight:700;
  letter-spacing:.2px;
}

a{text-decoration:none;}

.text-teal{color:var(--teal-700)!important;}
.text-coral{color:var(--coral-600)!important;}
.bg-teal{background:var(--teal-700)!important;}
.bg-cream{background:var(--cream)!important;}

.btn-honey{
  background:var(--honey-500);
  border:3px solid var(--ink);
  color:var(--ink);
  font-family:var(--font-display);
  font-weight:600;
  border-radius:100px;
  padding:.65rem 1.6rem;
  box-shadow:4px 4px 0 var(--ink);
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn-honey:hover{
  transform:translate(-2px,-2px);
  box-shadow:6px 6px 0 var(--ink);
  color:var(--ink);
}
.btn-honey:active{
  transform:translate(0,0);
  box-shadow:2px 2px 0 var(--ink);
}

.btn-outline-teal{
  border:3px solid var(--teal-700);
  color:var(--teal-700);
  font-family:var(--font-display);
  font-weight:600;
  border-radius:100px;
  padding:.6rem 1.5rem;
  background:transparent;
}
.btn-outline-teal:hover{
  background:var(--teal-700);
  color:#fff;
}

/* ---------- Navbar ---------- */
.navbar-bfb{
  background:var(--cream);
  padding:.6rem 0;
  transition:box-shadow .2s ease, padding .2s ease;
}
.navbar-bfb.scrolled{
  box-shadow:0 4px 18px rgba(0,0,0,.08);
  padding:.35rem 0;
}
.navbar-bfb .navbar-brand img{height:52px; transition:height .2s ease;}
.navbar-bfb.scrolled .navbar-brand img{height:42px;}
.navbar-bfb .nav-link{
  font-family:var(--font-display);
  font-weight:600;
  color:var(--ink)!important;
  margin:0 .35rem;
  position:relative;
}
.navbar-bfb .nav-link::after{
  content:"";
  position:absolute;
  left:50%; bottom:2px;
  width:0; height:3px;
  background:var(--honey-500);
  border-radius:3px;
  transition:all .2s ease;
  transform:translateX(-50%);
}
.navbar-bfb .nav-link:hover::after,
.navbar-bfb .nav-link.active::after{width:70%;}
.navbar-bfb .nav-link.active{color:var(--teal-700)!important;}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  padding:6.5rem 0 3rem;
  background:
    radial-gradient(circle at 12% 25%, var(--honey-300) 0, transparent 38%),
    radial-gradient(circle at 92% 10%, var(--teal-100) 0, transparent 45%),
    var(--cream);
  overflow:hidden;
}
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  background:#fff;
  border:2px solid var(--ink);
  border-radius:100px;
  padding:.35rem 1rem;
  font-weight:700;
  font-size:.9rem;
  box-shadow:3px 3px 0 var(--ink);
}
.hero h1{
  font-size:clamp(2.2rem, 5vw, 3.6rem);
  line-height:1.08;
}
.hero .lead{
  color:var(--ink-soft);
  font-size:1.15rem;
  max-width:520px;
}
.hero-bee{
  position:absolute;
  width:46px;
  animation:float 5s ease-in-out infinite;
  opacity:.9;
}
@keyframes float{
  0%,100%{transform:translateY(0) rotate(-6deg);}
  50%{transform:translateY(-18px) rotate(6deg);}
}
.hero-illustration{
  position:relative;
  background:var(--teal-700);
  border-radius:var(--radius-lg);
  min-height:340px;
  box-shadow:var(--shadow-soft);
  display:flex;
  align-items:center;
  justify-content:center;
}
@media (prefers-reduced-motion: reduce){
  .hero-bee{animation:none;}
}

/* wave divider (torn page look) */
.wave-divider{
  width:100%;
  height:70px;
  display:block;
}
.wave-teal{fill:var(--teal-700);}
.wave-cream{fill:var(--cream);}
.wave-white{fill:#fff;}

/* ---------- Stats strip ---------- */
.stats-strip{
  background:var(--teal-900);
  color:#fff;
  padding:2.2rem 0;
}
.stats-strip .stat-num{
  font-family:var(--font-display);
  font-size:2.3rem;
  color:var(--honey-500);
}
.stats-strip .stat-label{font-size:.95rem; opacity:.85;}

/* ---------- Section headings ---------- */
.section-eyebrow{
  font-family:var(--font-display);
  color:var(--coral-600);
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  font-size:.85rem;
}
.section-title{font-size:clamp(1.7rem,3.5vw,2.4rem);}

/* ---------- Honeycomb feature cards (signature element) ---------- */
.hive-grid{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:0 -18px;
}
.hex-card{
  --hex-size:200px;
  width:var(--hex-size);
  height:calc(var(--hex-size) * 1.06);
  margin:14px -14px;
  position:relative;
  background:#fff;
  clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:2.2rem 1.4rem;
  transition:transform .2s ease, background .2s ease;
  box-shadow:var(--shadow-soft);
}
.hex-card:nth-child(even){transform:translateY(28px);}
.hex-card:hover{transform:scale(1.06);}
.hex-card:nth-child(even):hover{transform:translateY(28px) scale(1.06);}
.hex-card .hex-icon{font-size:2.1rem; margin-bottom:.4rem;}
.hex-card h5{font-size:1.02rem; margin-bottom:.35rem;}
.hex-card p{font-size:.82rem; color:var(--ink-soft); margin:0;}
@media (max-width: 767.98px){
  .hex-card{--hex-size:150px; padding:1.2rem .8rem;}
  .hex-card p{display:none;}
  .hex-card:nth-child(even){transform:translateY(18px);}
}

/* ---------- Why us: reading trail ---------- */
.trail{
  position:relative;
  padding-left:0;
}
.trail-line{
  position:absolute;
  top:0; bottom:0; left:28px;
  width:4px;
  background:repeating-linear-gradient(to bottom, var(--honey-500) 0 10px, transparent 10px 20px);
  border-radius:4px;
}
@media (max-width: 767.98px){ .trail-line{left:22px;} }
.trail-item{
  position:relative;
  padding-left:70px;
  margin-bottom:1.7rem;
}
@media (max-width: 767.98px){ .trail-item{padding-left:56px;} }
.trail-dot{
  position:absolute;
  left:0; top:0;
  width:58px; height:58px;
  border-radius:50%;
  background:var(--teal-100);
  border:3px solid var(--teal-700);
  display:flex; align-items:center; justify-content:center;
  font-size:1.4rem;
}
@media (max-width: 767.98px){
  .trail-dot{width:46px;height:46px;font-size:1.1rem;}
}
.trail-item h6{margin-bottom:.15rem;}
.trail-item p{color:var(--ink-soft); margin:0; font-size:.92rem;}

/* ---------- Gallery ---------- */
.gallery-card{
  border-radius:var(--radius-md);
  overflow:hidden;
  position:relative;
  aspect-ratio:4/3;
  box-shadow:var(--shadow-soft);
}
.gallery-card .gallery-fill{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size:2.4rem;
  color:#fff;
}
.gallery-card .gallery-caption{
  position:absolute; left:0; right:0; bottom:0;
  background:linear-gradient(to top, rgba(15,66,70,.92), transparent);
  color:#fff; padding:1.7rem .9rem .7rem;
  font-family:var(--font-display);
  font-size:.92rem;
}

/* ---------- Services ---------- */
.service-row{
  background:#fff;
  border-radius:var(--radius-md);
  border:2px solid transparent;
  padding:1.4rem;
  height:100%;
  transition:border-color .2s ease, transform .2s ease;
}
.service-row:hover{border-color:var(--honey-500); transform:translateY(-4px);}
.service-icon{
  width:52px; height:52px;
  border-radius:50%;
  background:var(--honey-300);
  display:flex; align-items:center; justify-content:center;
  font-size:1.4rem;
  margin-bottom:.8rem;
}

/* ---------- Catalogue chips ---------- */
.catalogue-chip{
  background:#fff;
  border-radius:var(--radius-md);
  padding:1.4rem .8rem;
  text-align:center;
  box-shadow:var(--shadow-soft);
  height:100%;
  transition:transform .2s ease;
}
.catalogue-chip:hover{transform:translateY(-6px) rotate(-1deg);}
.catalogue-chip .chip-emoji{font-size:2.1rem;}
.catalogue-chip span{
  font-family:var(--font-display);
  font-weight:600;
  font-size:.85rem;
  display:block;
  margin-top:.4rem;
}

/* ---------- Testimonials ---------- */
.testimonial-card{
  background:#fff;
  border-radius:var(--radius-lg);
  padding:2.2rem;
  box-shadow:var(--shadow-soft);
  max-width:720px;
  margin:0 auto;
}
.testimonial-quote{font-size:1.6rem; color:var(--honey-500); line-height:0;}
.testimonial-avatar{
  width:52px;height:52px;border-radius:50%;
  background:var(--teal-100);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-display); color:var(--teal-700); font-weight:700;
}
#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next{
  width:44px; height:44px; top:50%; transform:translateY(-50%);
  background:var(--honey-500); border-radius:50%; border:2px solid var(--ink);
  opacity:1;
}
#testimonialCarousel .carousel-control-prev{left:-6px;}
#testimonialCarousel .carousel-control-next{right:-6px;}
@media (max-width: 575.98px){
  #testimonialCarousel .carousel-control-prev,
  #testimonialCarousel .carousel-control-next{ position:static; transform:none; margin:1rem .4rem 0; display:inline-flex;}
}

/* ---------- FAQ ---------- */
.accordion-bfb .accordion-button{
  font-family:var(--font-display);
  font-weight:600;
  background:#fff;
  border-radius:var(--radius-md)!important;
}
.accordion-bfb .accordion-button:not(.collapsed){
  color:var(--teal-900);
  background:var(--teal-100);
  box-shadow:none;
}
.accordion-bfb .accordion-item{
  border:none;
  margin-bottom:.8rem;
  border-radius:var(--radius-md);
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}
.accordion-bfb .accordion-button:focus{box-shadow:0 0 0 3px var(--honey-300);}

/* ---------- Contact ---------- */
.contact-card{
  background:#fff;
  border-radius:var(--radius-lg);
  padding:2rem;
  box-shadow:var(--shadow-soft);
  height:100%;
}
.contact-info-item{display:flex; gap:1rem; margin-bottom:1.3rem;}
.contact-info-icon{
  width:46px;height:46px;flex:none;
  border-radius:50%;
  background:var(--honey-300);
  display:flex;align-items:center;justify-content:center;
  font-size:1.2rem;
}
.form-control, .form-select{
  border-radius:100px;
  border:2px solid #e3e3e3;
  padding:.65rem 1.1rem;
  font-family:var(--font-body);
}
textarea.form-control{border-radius:22px;}
.form-control:focus,.form-select:focus{
  border-color:var(--teal-500);
  box-shadow:0 0 0 3px var(--teal-100);
}
.form-label{font-family:var(--font-display); font-weight:600; font-size:.92rem;}

/* ---------- Footer ---------- */
.footer-bfb{
  background:var(--ink);
  color:#dfeceb;
  padding:3.5rem 0 1.5rem;
}
.footer-bfb h6{
  font-family:var(--font-display);
  color:#fff;
  margin-bottom:1rem;
}
.footer-bfb a{color:#c5d8d6;}
.footer-bfb a:hover{color:var(--honey-500);}
.footer-bee-divider{
  height:26px;
  background-image:radial-gradient(circle, var(--honey-500) 3px, transparent 3.5px);
  background-size:24px 24px;
  opacity:.5;
}
.social-circle{
  width:38px;height:38px;border-radius:50%;
  background:rgba(255,255,255,.08);
  display:inline-flex;align-items:center;justify-content:center;
  color:#fff!important;
  margin-right:.4rem;
}
.social-circle:hover{background:var(--honey-500); color:var(--ink)!important;}

/* ---------- Back to top ---------- */
.back-to-top{
  position:fixed; right:1.2rem; bottom:1.2rem;
  width:46px;height:46px;border-radius:50%;
  background:var(--honey-500);
  border:3px solid var(--ink);
  display:flex;align-items:center;justify-content:center;
  font-size:1.2rem;
  box-shadow:4px 4px 0 var(--ink);
  opacity:0; visibility:hidden;
  transition:opacity .2s ease, visibility .2s ease, transform .15s ease;
  z-index:1000;
}
.back-to-top.show{opacity:1; visibility:visible;}
.back-to-top:hover{transform:translateY(-3px);}

/* ---------- Utility ---------- */
.section-pad{padding:4.5rem 0;}
@media (max-width:767.98px){.section-pad{padding:3rem 0;}}

.reveal{opacity:0; transform:translateY(24px); transition:opacity .6s ease, transform .6s ease;}
.reveal.in-view{opacity:1; transform:translateY(0);}

/* ---------- Breadcrumb (plans page) ---------- */
.bfb-breadcrumb{
  background:var(--teal-100);
  padding:1.4rem 0;
}
.bfb-breadcrumb a{color:var(--teal-700); font-weight:600;}
.bfb-breadcrumb .active-crumb{color:var(--ink-soft);}

/* ---------- Plan cards ---------- */
.plan-card{
  background:#fff;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-soft);
  overflow:hidden;
  height:100%;
  display:flex;
  flex-direction:column;
  transition:transform .2s ease;
}
.plan-card:hover{transform:translateY(-6px);}
.plan-card.featured{border:3px solid var(--honey-500); position:relative;}
.plan-card.featured::before{
  content:"Best Value";
  position:absolute; top:14px; right:-34px;
  background:var(--coral-600); color:#fff;
  font-family:var(--font-display); font-size:.72rem; font-weight:700;
  padding:.25rem 2.2rem; transform:rotate(35deg);
}
.plan-head{
  background:var(--teal-700);
  color:#fff;
  padding:1.1rem 1.3rem;
  text-align:center;
}
.plan-head .plan-books{font-family:var(--font-display); font-size:1.25rem;}
.plan-head .plan-duration{font-size:.8rem; opacity:.85;}
.plan-body{padding:1.3rem; flex:1; display:flex; flex-direction:column;}
.plan-line{
  display:flex; justify-content:space-between;
  font-size:.88rem; padding:.35rem 0;
  border-bottom:1px dashed #e5e5e5;
}
.plan-line strong{color:var(--ink);}
.plan-total{
  font-family:var(--font-display);
  font-size:1.5rem;
  color:var(--coral-600);
  text-align:center;
  margin:.8rem 0;
}
.plan-discount-badge{
  background:var(--honey-300);
  color:var(--ink);
  font-size:.72rem;
  font-weight:700;
  border-radius:100px;
  padding:.15rem .6rem;
  display:inline-block;
}
.org-select-wrap select{
  font-family:var(--font-display);
  font-weight:600;
}
.filter-pill{
  border:2px solid var(--teal-700);
  color:var(--teal-700);
  background:#fff;
  border-radius:100px;
  padding:.4rem 1.1rem;
  font-family:var(--font-display);
  font-weight:600;
  font-size:.85rem;
  transition:all .15s ease;
}
.filter-pill.active,.filter-pill:hover{
  background:var(--teal-700); color:#fff;
}
