:root {
  --ink: #131b33;
  --ink-2: #1c2749;
  --ink-3: #26335e;
  --gold: #e9b44c;
  --gold-deep: #d89a2e;
  --gold-soft: #f5d48a;
  --paper: #fbf6ec;
  --paper-2: #f3ebdb;
  --teal: #2e8b7a;
  --coral: #e4674f;
  --txt: #2a2a33;
  --muted: #6b6f80;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(19, 27, 51, 0.14);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  color: var(--txt);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
}
img {
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold);
}
section {
  padding: 90px 0;
}
.sec-title {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  margin: 14px 0 16px;
}
.sec-sub {
  color: var(--muted);
  max-width: 640px;
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: 0.3s;
  font-family: "Poppins", sans-serif;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(233, 180, 76, 0.38);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(233, 180, 76, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1.6px solid rgba(251, 246, 236, 0.4);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover {
  background: var(--ink-3);
  transform: translateY(-3px);
}

.topbar {
  background: var(--ink);
  color: rgba(251, 246, 236, 0.85);
  font-size: 0.85rem;
  padding: 9px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a {
  color: var(--gold-soft);
  font-weight: 500;
}
.topbar .left {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.topbar-marquee {
  display: none;
}
@media (max-width: 640px) {
  .topbar .container {
    display: none;
  }
  .topbar-marquee {
    display: block;
    overflow: hidden;
  }
  .topbar-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: topbarScroll 12s linear infinite;
  }
  .topbar-track span {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  @keyframes topbarScroll {
    to {
      transform: translateX(-50%);
    }
  }
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 236, 0.97);
  border-bottom: 1px solid rgba(19, 27, 51, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: 1.45rem;
  color: var(--ink);
}
.logo-img {
  height: 72px;
  width: auto;
  display: block;
}
.f-logo-img {
  height: 64px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  font-weight: 500;
  font-size: 0.97rem;
}
.nav-links > li {
  position: relative;
}
.nav-links a:hover {
  color: var(--teal);
}
.nav-links a.active {
  color: var(--teal);
  font-weight: 600;
}
.dropdown {
  position: absolute;
  top: 130%;
  left: -20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px;
  min-width: 480px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s;
}
.has-drop:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 0.92rem;
}
.dropdown a i {
  color: var(--gold);
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
  flex: 0 0 auto;
}
.dropdown a:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.dropdown a.active {
  background: var(--paper-2);
  color: var(--teal);
}
.caret {
  font-size: 0.7rem;
  color: var(--gold);
  margin-left: 4px;
}
.caret i {
  display: inline-block;
  transition: transform 0.3s ease;
}
.has-drop:hover .caret i,
.has-drop.open .caret i {
  transform: rotate(180deg);
}
.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--ink);
  cursor: pointer;
}
.nav-close {
  display: none;
}
.nav-backdrop {
  display: none;
}
@media (max-width: 860px) {
  .nav-close-item {
    position: static;
  }
  .nav-close {
    display: block;
    position: fixed;
    top: 22px;
    right: 24px;
    background: none;
    border: none;
    color: var(--paper);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 210;
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
  }
  .nav-backdrop.open {
    opacity: 1;
    visibility: visible;
  }
}

/* ===== trust marquee ===== */
.trust {
  background: var(--ink);
  padding: 26px 0;
  border-top: 1px solid rgba(233, 180, 76, 0.18);
}
.marquee {
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 70px;
  width: max-content;
  animation: scroll 26s linear infinite;
}
.marquee-track span {
  color: rgba(251, 246, 236, 0.55);
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}
.marquee-track span::before {
  content: "★";
  color: var(--gold);
}
@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ===== page hero (breadcrumb style) ===== */
.page-hero {
  background: radial-gradient(
    1100px 600px at 85% -10%,
    #2c3b6e 0%,
    var(--ink-2) 42%,
    var(--ink) 100%
  );
  color: var(--paper);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140" opacity="0.05"><path d="M0 70h140M70 0v140" stroke="white"/></svg>');
  pointer-events: none;
}
.page-hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.crumb {
  font-size: 0.85rem;
  color: rgba(251, 246, 236, 0.6);
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.crumb a {
  color: var(--gold-soft);
}
.crumb a:hover {
  color: var(--gold);
}
.page-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(233, 180, 76, 0.14);
  border: 1px solid rgba(233, 180, 76, 0.4);
  color: var(--gold-soft);
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 22px;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 20px;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.page-hero p {
  color: rgba(251, 246, 236, 0.75);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 32px;
}
.page-hero .hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-books {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}
.books-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 340px;
}
.bk {
  position: absolute;
  height: 300px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  object-fit: cover;
  transition: transform 0.35s ease;
}
.bk-main {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 3;
  height: 340px;
}
.bk-left {
  left: 0;
  top: 40px;
  transform: rotate(-9deg);
  z-index: 2;
  opacity: 0.95;
}
.bk-right {
  right: 0;
  top: 40px;
  transform: rotate(9deg);
  z-index: 2;
  opacity: 0.95;
}
.books-stack:hover .bk-left {
  transform: rotate(-13deg) translateX(-8px);
}
.books-stack:hover .bk-right {
  transform: rotate(13deg) translateX(8px);
}
.float-badge {
  position: absolute;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
  animation: floatY 4s ease-in-out infinite;
}
.float-badge i {
  color: var(--gold-deep);
}
.fb-1 {
  top: 8%;
  left: -6%;
}
.fb-2 {
  bottom: 6%;
  right: -4%;
  animation-delay: 2s;
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== hero design 2: single 3D tilted book ===== */
.hero-book-3d {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}
.hero-book-3d img {
  height: 330px;
  width: auto;
  border-radius: 5px 14px 14px 5px;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transform: perspective(900px) rotateY(-18deg);
  box-shadow: 30px 30px 60px rgba(0, 0, 0, 0.55);
  transition: transform 0.45s ease;
}
.hero-book-3d:hover img {
  transform: perspective(900px) rotateY(-6deg);
}
.glow-ring {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(233, 180, 76, 0.22) 0%,
    transparent 65%
  );
  z-index: 1;
}
.fb-b1 {
  bottom: 6%;
  left: 2%;
}

.hero-simple-img {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}
.hero-simple-img img {
  width: 100%;
  max-width: 480px;
  height: auto;
}

/* ===== hero design 3: big image + overlapping stat cards ===== */
.hero-overlap {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 380px;
  align-items: center;
}
.hero-overlap .main-img {
  height: 350px;
  width: auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(233, 180, 76, 0.25);
}
.stat-card {
  position: absolute;
  background: var(--paper);
  color: var(--ink);
  padding: 16px 22px;
  border-radius: 14px;
  text-align: left;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  border-left: 4px solid var(--gold);
  animation: floatY 5s ease-in-out infinite;
}
.stat-card b {
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  display: block;
  line-height: 1.1;
}
.stat-card b i {
  color: var(--gold-deep);
  font-size: 0.95rem;
  margin-left: 4px;
}
.stat-card span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}
.sc-1 {
  top: 6%;
  left: 0;
}
.sc-2 {
  bottom: 6%;
  right: 0;
  animation-delay: 2.4s;
}

/* ===== hero design 4: circular gold-ring frame ===== */
.hero-circle {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}
.ring-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(233, 180, 76, 0.5);
}
.ring-wrap img {
  width: 265px;
  height: 265px;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid rgba(233, 180, 76, 0.28);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
}
.orbit-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(233, 180, 76, 0.8);
}
.d1 {
  top: 6%;
  right: 14%;
}
.d2 {
  bottom: 10%;
  left: 8%;
  width: 10px;
  height: 10px;
  background: var(--teal);
}
.fb-c1 {
  bottom: 0;
  right: 4%;
}

/* ===== hero design 5: bookshelf row ===== */
@media (min-width: 861px) {
  .page-hero.hero-shelf-page .container {
    grid-template-columns: 1fr 1fr;
  }
}
.hero-shelf {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  gap: 0;
}
.shelf-books {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  position: relative;
  z-index: 2;
}
.shelf-books img {
  height: 230px;
  width: auto;
  border-radius: 4px 10px 10px 4px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  transition: 0.35s;
}
.shelf-books img.tall {
  height: 280px;
}
.shelf-books img:hover {
  transform: translateY(-16px);
}
.shelf-bar {
  /* width: 90%;
  max-width: 400px;
  height: 14px;
  margin-top: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border-radius: 4px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1; */
}
.shelf-caption {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(233, 180, 76, 0.14);
  border: 1px solid rgba(233, 180, 76, 0.4);
  color: var(--gold-soft);
  padding: 9px 20px;
  border-radius: 40px;
  font-size: 0.88rem;
  font-weight: 500;
}
.shelf-caption i {
  color: var(--gold);
}

/* ===== hero: auto-changing image slider ===== */
.hero-autoslide {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}
.autoslide-frame {
  position: relative;
  width: 300px;
  height: 400px;
  /* border-radius: 12px; */
  overflow: hidden;
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.5);
}
.autoslide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  /* object-fit: cover; */
  opacity: 0;
  animation: autoSlideFade 9s ease-in-out infinite;
}
.autoslide-img:nth-child(1) {
  animation-delay: 0s;
}
.autoslide-img:nth-child(2) {
  animation-delay: 3s;
}
.autoslide-img:nth-child(3) {
  animation-delay: 6s;
}
@keyframes autoSlideFade {
  0% {
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  30% {
    opacity: 1;
  }
  36% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.intro .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.intro-card {
  background: var(--ink);
  border-radius: 24px;
  padding: 44px 38px;
  color: var(--paper);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.intro-card::after {
  content: "❝";
  position: absolute;
  right: 18px;
  bottom: -30px;
  font-size: 9rem;
  color: rgba(233, 180, 76, 0.15);
  font-family: "Poppins", sans-serif;
}
.intro-card h3 {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.intro-card p {
  color: rgba(251, 246, 236, 0.78);
  font-size: 0.98rem;
}
.checklist {
  margin-top: 26px;
  display: grid;
  gap: 15px;
}
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.check {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  margin-top: 3px;
}
.checklist b {
  color: var(--ink);
}
.checklist p {
  font-size: 0.92rem;
  color: var(--muted);
}

.feat-bg {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.feat {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 26px;
  position: relative;
  transition: 0.35s;
  border: 1px solid rgba(19, 27, 51, 0.06);
  overflow: hidden;
}
.feat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.4s;
}
.feat:hover {
  transform: translateY(-9px);
  box-shadow: var(--shadow);
}
.feat:hover::before {
  transform: scaleX(1);
}
.feat-ico {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: var(--paper-2);
}
.feat h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 10px;
  font-weight: 700;
}
.feat p {
  font-size: 0.92rem;
  color: var(--muted);
}

.process {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.process .sec-title {
  color: var(--paper);
}
.process .eyebrow {
  color: var(--gold-soft);
}
.book-section .eyebrow {
  color: var(--gold-soft);
}
.process .sec-sub {
  color: rgba(251, 246, 236, 0.65);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 64px;
  counter-reset: step;
}
.step {
  background: rgba(251, 246, 236, 0.05);
  border: 1px solid rgba(251, 246, 236, 0.1);
  border-radius: var(--radius);
  padding: 30px 22px;
  position: relative;
  transition: 0.35s;
}
.step:hover {
  background: rgba(233, 180, 76, 0.09);
  border-color: rgba(233, 180, 76, 0.4);
  transform: translateY(-7px);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: "Poppins", sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.step h3 {
  font-size: 1.05rem;
  margin-bottom: 9px;
  color: var(--paper);
}
.step p {
  font-size: 0.86rem;
  color: rgba(251, 246, 236, 0.62);
}

.faq {
  background: var(--paper-2);
}
.faq-list {
  max-width: 820px;
  margin: 50px auto 0;
  display: grid;
  gap: 16px;
}
.faq-item {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(19, 27, 51, 0.07);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  gap: 16px;
}
.faq-q .plus {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  color: var(--teal);
  font-size: 1.2rem;
  transition: 0.3s;
}
.faq-item.open .plus {
  background: var(--gold);
  color: var(--ink);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 26px;
}
.faq-a p {
  padding-bottom: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-wrap {
  padding-top: 0;
}
.cta-band {
  background: radial-gradient(900px 500px at 20% 0%, #2c3b6e, var(--ink));
  color: var(--paper);
  text-align: center;
  border-radius: 28px;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "✦";
  position: absolute;
  top: 30px;
  left: 8%;
  color: var(--gold);
  opacity: 0.4;
  font-size: 1.5rem;
}
.cta-band::after {
  content: "✦";
  position: absolute;
  bottom: 36px;
  right: 9%;
  color: var(--gold);
  opacity: 0.4;
  font-size: 1.2rem;
}
.cta-band h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 900;
  margin-bottom: 16px;
}
.cta-band h2 i {
  color: var(--gold);
}
.cta-band p {
  color: rgba(251, 246, 236, 0.72);
  max-width: 560px;
  margin: 0 auto 34px;
}

.other-svcs {
  padding-top: 0;
}
.chip-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.chip-row a {
  background: #fff;
  border: 1px solid rgba(19, 27, 51, 0.1);
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.3s;
}
.chip-row a:hover {
  background: var(--ink);
  color: var(--gold-soft);
  transform: translateY(-3px);
}

.books-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
  margin-top: 56px;
}
.mini-book {
  border-radius: 5px 12px 12px 5px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  box-shadow: 0 22px 40px rgba(19, 27, 51, 0.22);
  border-left: 6px solid rgba(255, 255, 255, 0.35);
  transition: 0.35s;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.mini-book:hover {
  transform: translateY(-12px) rotate(-1.5deg);
}
.mini-book small {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.8;
}
.mini-book h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}
.mini-book .mb-a {
  font-size: 0.72rem;
  opacity: 0.75;
  letter-spacing: 0.1em;
}
.mini-book img {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}
.mb1 {
  background: linear-gradient(160deg, #2e8b7a, #14493f);
}
.mb2 {
  background: linear-gradient(160deg, #e4674f, #8f2e1d);
}
.mb3 {
  background: linear-gradient(160deg, #26335e, #0e1430);
}
.mb4 {
  background: linear-gradient(160deg, #b8862b, #6e4c0d);
}
.mb5 {
  background: linear-gradient(160deg, #6d5aa8, #33254f);
}
.books-marquee {
  display: none;
}
@keyframes booksScroll {
  to {
    transform: translateX(-50%);
  }
}

.stats-band {
  background: linear-gradient(135deg, var(--gold), #d89a2e);
  padding: 44px 0;
}
.stats-band .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat b {
  font-family: "Poppins", sans-serif;
  font-size: 2.7rem;
  font-weight: 900;
  color: var(--ink);
  display: block;
}
.stat span {
  font-weight: 600;
  color: rgba(19, 27, 51, 0.72);
  font-size: 0.95rem;
}

.testis {
  background: var(--paper);
}
.t-wrap {
  position: relative;
  margin-top: 56px;
}
.t-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.t-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 30px;
  border: 1px solid rgba(19, 27, 51, 0.07);
  position: relative;
  transition: 0.35s;
}
.t-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}
.t-card .stars {
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.t-card p {
  font-size: 0.95rem;
  color: var(--txt);
  margin-bottom: 22px;
  font-style: italic;
}
.t-who {
  display: flex;
  align-items: center;
  gap: 14px;
}
.t-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  font-family: "Poppins", sans-serif;
}
.t-who b {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}
.t-who span {
  font-size: 0.8rem;
  color: var(--muted);
}

footer {
  background: var(--ink);
  color: rgba(251, 246, 236, 0.7);
  padding: 80px 0 0;
  margin-top: 90px;
}
.f-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.6fr 1fr;
  gap: 50px;
  padding-bottom: 56px;
}
.f-grid h4 {
  color: var(--paper);
  font-family: "Poppins", sans-serif;
  font-size: 1.02rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.f-grid h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--gold);
}
.f-grid a {
  display: block;
  padding: 5px 0;
  font-size: 0.92rem;
  transition: 0.25s;
  overflow-wrap: anywhere;
}
.f-grid a:hover {
  color: var(--gold);
  padding-left: 6px;
}
.f-grid > div:nth-child(3) {
  column-count: 2;
  column-gap: 18px;
}
.f-grid > div:nth-child(3) h4 {
  column-span: all;
}
.f-grid > div:nth-child(3) a {
  break-inside: avoid-column;
}
.f-grid > div:nth-child(4) a {
  font-size: 0.85rem;
  line-height: 1.5;
}
.f-brand p {
  font-size: 0.92rem;
  margin: 18px 0 24px;
  max-width: 300px;
}
.socials {
  display: flex;
  gap: 12px;
}
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(251, 246, 236, 0.25);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  padding: 0;
}
.socials a:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  padding-left: 0;
}
.f-bottom {
  border-top: 1px solid rgba(251, 246, 236, 0.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.f-bottom a {
  color: var(--gold-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .books-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .t-track {
    grid-template-columns: 1fr 1fr;
  }
  .stats-band .container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 860px) {
  .books-row {
    display: none;
  }
  .books-marquee {
    display: block;
    overflow: hidden;
    margin-top: 40px;
  }
  .books-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: booksScroll 22s linear infinite;
  }
  .books-marquee-track .mini-book {
    flex: 0 0 auto;
    width: 150px;
    height: 220px;
  }
  .books-marquee-track .mini-book img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .page-hero .container,
  .intro .container {
    grid-template-columns: 1fr;
  }
  .hero-books {
    order: -1;
    min-height: 290px;
    margin-top: 0;
  }
  .books-stack {
    height: 280px;
  }
  .bk {
    height: 220px;
  }
  .bk-main {
    height: 250px;
  }
  .fb-1 {
    left: 0;
  }
  .fb-2 {
    right: 0;
  }
  .hero-book-3d,
  .hero-overlap,
  .hero-circle,
  .hero-shelf,
  .hero-autoslide,
  .hero-simple-img {
    order: -1;
    margin-top: 0;
    min-height: 300px;
  }
  .autoslide-frame {
    width: 210px;
    height: 294px;
  }
  .hero-book-3d img {
    height: 250px;
  }
  .glow-ring {
    width: 230px;
    height: 230px;
  }
  .hero-overlap .main-img {
    height: 260px;
  }
  .sc-1 {
    left: 0;
  }
  .sc-2 {
    right: 0;
  }
  .ring-wrap {
    width: 240px;
    height: 240px;
  }
  .ring-wrap img {
    width: 195px;
    height: 195px;
  }
  .shelf-books img {
    height: 160px;
  }
  .shelf-books img.tall {
    height: 200px;
  }
  .nav-links {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--ink);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 26px;
    transform: translateX(100%);
    transition: 0.4s;
    z-index: 200;
    color: var(--paper);
    overflow-y: auto;
    padding: 40px 0;
  }
  .nav-links > li {
    width: 100%;
    text-align: center;
  }
  .nav-links.open {
    transform: none;
  }
  .nav-links a:hover {
    color: var(--gold);
  }
  .dropdown {
    position: static;
    opacity: 0;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    padding: 0 0 0 14px;
    min-width: 0;
    grid-template-columns: 1fr;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
  }
  .has-drop.open .dropdown {
    opacity: 1;
    max-height: 600px;
    padding: 6px 0 0 14px;
  }
  .dropdown a {
    color: rgba(251, 246, 236, 0.7);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s ease, color 0.2s ease;
  }
  .has-drop.open .dropdown a {
    opacity: 1;
    transform: none;
  }
  .dropdown a:hover {
    background: transparent;
    color: var(--gold);
  }
  .burger {
    display: block;
    z-index: 300;
  }
}
@media (max-width: 640px) {
  section {
    padding: 64px 0;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .feat-grid {
    grid-template-columns: 1fr;
  }
  .f-grid {
    grid-template-columns: 1fr 1fr;
  }
  .f-grid > div:nth-child(3) {
    column-count: 1;
  }
  .page-hero {
    padding: 64px 0 80px;
  }
  .t-track {
    grid-template-columns: 1fr;
  }
  .stats-band .container {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 440px) {
  .f-grid {
    grid-template-columns: 1fr;
  }
}

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.c-info {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}
.c-info li {
  display: flex;
  gap: 16px;
  align-items: center;
}
.c-ico {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex: 0 0 50px;
}
.c-info b {
  display: block;
  color: var(--ink);
}
.c-info span {
  font-size: 0.9rem;
  color: var(--muted);
}
.c-ico i {
  color: var(--gold);
}
.form-card {
  background: #fff;
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--gold);
}
.form-card h3 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-card > p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 26px;
}
.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid rgba(19, 27, 51, 0.12);
  border-radius: 12px;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  margin-bottom: 16px;
  background: var(--paper);
  transition: 0.3s;
  color: var(--txt);
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}
.form-card textarea {
  resize: vertical;
  min-height: 110px;
}
.form-card .btn {
  width: 100%;
  justify-content: center;
}
.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 14px;
}
@media (max-width: 860px) {
  .contact .container {
    grid-template-columns: 1fr;
  }
}

/* Quote Request Popup */
.quote-overlay {
  position: fixed;
  inset: 0;
  background: rgba(19, 27, 51, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.quote-overlay.open {
  opacity: 1;
  visibility: visible;
}
.quote-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform: translateY(28px) scale(0.95);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}
.quote-modal::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.quote-overlay.open .quote-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.quote-modal.form-card {
  padding: 46px 42px;
}
.quote-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.25s;
}
.quote-modal-close:hover {
  background: var(--ink);
  color: var(--gold-soft);
  transform: rotate(90deg);
}
body.quote-modal-open {
  overflow: hidden;
}
@media (max-width: 560px) {
  .quote-modal.form-card {
    padding: 34px 22px;
  }
}

/* Legal pages (Terms of Use / Privacy Policy) */
.page-hero.single .container {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.page-hero.single p {
  margin-left: auto;
  margin-right: auto;
}
.legal-content .container {
  width: min(820px, 92%);
}
.legal-content .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}
.legal-content h2 {
  font-size: 1.35rem;
  color: var(--ink);
  margin: 40px 0 14px;
}
.legal-content h2:first-of-type {
  margin-top: 0;
}
.legal-content p {
  color: var(--txt);
  margin-bottom: 16px;
}
.legal-content ul {
  margin: 0 0 16px 22px;
  color: var(--txt);
}
.legal-content li {
  margin-bottom: 8px;
}
.legal-content a {
  color: var(--gold-deep);
}
