* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #c2410c;
  --primary-dark: #7c2d12;
  --accent: #f59e0b;
  --dark: #1c1917;
  --text: #44403c;
  --muted: #78716c;
  --cream: #fdf6ec;
  --line: #efe3d3;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(124, 45, 18, 0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  overflow-x: hidden;
}

h1, h2 { font-family: "Merriweather", Georgia, serif; color: var(--dark); line-height: 1.25; }
h3, h4 { color: var(--dark); }

.container { width: 100%; max-width: 1150px; margin: 0 auto; padding: 0 16px; }
a { color: var(--primary); text-decoration: none; }

/* Top bar */
.topbar { background: var(--primary-dark); color: #fde7d3; font-size: 0.82rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 10px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }

/* Header */
.header { background: rgba(255,255,255,0.96); backdrop-filter: blur(6px); box-shadow: 0 2px 12px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 20; }
.nav { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 10px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; font-weight: 600; color: var(--dark); }
.logo b { color: var(--primary); }
.logo-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--cream); display: grid; place-items: center; font-size: 1.3rem; }
.menu { list-style: none; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.menu a { color: var(--dark); font-weight: 500; font-size: 0.95rem; }
.menu a:hover { color: var(--primary); }
.menu .menu-btn { background: var(--primary); color: var(--white); padding: 8px 18px; border-radius: 30px; }
.menu .menu-btn:hover { background: var(--primary-dark); color: var(--white); }

/* Buttons */
.btn { display: inline-block; background: var(--primary); color: var(--white); padding: 12px 26px; border-radius: 30px; font-weight: 600; border: 2px solid var(--primary); transition: .2s; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-wa { background: #16a34a; border-color: #16a34a; margin-top: 6px; }
.btn-wa:hover { background: #15803d; border-color: #15803d; }

/* Hero */
.hero { background: radial-gradient(circle at 85% 20%, #fde4c4 0, transparent 45%), linear-gradient(180deg, var(--cream), #fff); padding: 70px 0 80px; }
.hero-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.tag { display: inline-block; background: #ffedd5; color: var(--primary-dark); padding: 5px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; }
.hero h1 { font-size: 2.9rem; margin-bottom: 16px; }
.hero h1 span { color: var(--primary); }
.hero .sub { font-size: 1.1rem; color: var(--muted); max-width: 520px; }
.btns { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.stats { display: flex; gap: 30px; margin-top: 36px; flex-wrap: wrap; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-size: 1.3rem; color: var(--primary-dark); }
.stats span { font-size: 0.85rem; color: var(--muted); }

/* Hero CSS bookshelf */
.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; }
.shelf { display: flex; align-items: flex-end; gap: 5px; height: 260px; padding: 0 20px; }
.spine { width: 44px; border-radius: 4px 4px 2px 2px; display: flex; align-items: center; justify-content: center; box-shadow: inset -6px 0 0 rgba(0,0,0,0.15), inset 0 10px 0 rgba(255,255,255,0.12); position: relative; }
.spine::before, .spine::after { content: ""; position: absolute; left: 6px; right: 6px; height: 3px; background: rgba(255,255,255,0.55); }
.spine::before { top: 16px; } .spine::after { bottom: 16px; }
.spine span { writing-mode: vertical-rl; transform: rotate(180deg); color: #fff; font-weight: 600; font-size: 0.85rem; letter-spacing: 1px; }
.s1 { height: 230px; background: #b91c1c; }
.s2 { height: 200px; background: #1d4ed8; }
.s3 { height: 245px; background: #15803d; width: 50px; }
.s4 { height: 210px; background: #d97706; }
.s5 { height: 235px; background: #6d28d9; }
.s6 { height: 190px; background: #0f766e; width: 38px; }
.s7 { height: 220px; background: #9f1239; transform: rotate(8deg); transform-origin: bottom left; margin-left: 8px; }
.shelf-board { width: 92%; height: 16px; background: linear-gradient(#92400e, #78350f); border-radius: 4px; box-shadow: 0 10px 20px rgba(120,53,15,0.25); }
.stack { display: flex; flex-direction: column; align-items: center; margin-top: 18px; }
.flat { color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; padding: 9px 0; text-align: center; border-radius: 3px; box-shadow: inset 0 -4px 0 rgba(0,0,0,0.15); }
.f1 { width: 210px; background: #ea580c; }
.f2 { width: 240px; background: #0e7490; }
.f3 { width: 225px; background: #4338ca; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--cream); }
.section h2 { font-size: 2.1rem; text-align: center; margin-bottom: 40px; }
.eyebrow { text-align: center; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; margin-bottom: 8px; }
.left { text-align: left !important; }
.mt { margin-top: 50px; margin-bottom: 20px; text-align: center; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.cat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; text-align: center; color: var(--text); transition: .25s; }
.cat:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.cat-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; font-size: 1.7rem; }
.cat h3 { font-size: 1.02rem; margin-bottom: 4px; }
.cat p { font-size: 0.82rem; color: var(--muted); }
.c1 .cat-ic { background: #fee2e2; } .c2 .cat-ic { background: #dbeafe; } .c3 .cat-ic { background: #fef3c7; }
.c4 .cat-ic { background: #dcfce7; } .c5 .cat-ic { background: #ffedd5; } .c6 .cat-ic { background: #ede9fe; }

/* Books */
.shelf-title { font-size: 1.25rem; margin: 46px 0 20px; padding-bottom: 10px; border-bottom: 2px dashed #e7d3bc; scroll-margin-top: 90px; }
.shelf-title:first-of-type { margin-top: 0; }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 20px; }
.book { text-align: center; }
.book h4 { font-size: 0.92rem; margin-top: 12px; }
.book p { font-size: 0.8rem; color: var(--muted); }
.cover {
  aspect-ratio: 3 / 4; border-radius: 4px 10px 10px 4px; padding: 16px 12px 14px 20px;
  display: flex; flex-direction: column; justify-content: space-between; text-align: left; color: #fff; position: relative;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15), inset 6px 0 0 rgba(0,0,0,0.18), inset 8px 0 0 rgba(255,255,255,0.15);
  transition: transform .25s, box-shadow .25s;
}
.book:hover .cover { transform: translateY(-6px) rotate(-1.5deg); box-shadow: 0 18px 30px rgba(0,0,0,0.2), inset 6px 0 0 rgba(0,0,0,0.18); }
.cover small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.85; }
.cover b { font-family: "Merriweather", Georgia, serif; font-size: 1.02rem; line-height: 1.25; overflow-wrap: anywhere; }
.cover em { font-style: normal; font-size: 0.75rem; opacity: 0.9; border-top: 1px solid rgba(255,255,255,0.4); padding-top: 6px; width: 70%; }
.cv-red     { background: linear-gradient(150deg, #dc2626, #991b1b); }
.cv-blue    { background: linear-gradient(150deg, #2563eb, #1e3a8a); }
.cv-green   { background: linear-gradient(150deg, #16a34a, #14532d); }
.cv-purple  { background: linear-gradient(150deg, #7c3aed, #4c1d95); }
.cv-orange  { background: linear-gradient(150deg, #f97316, #c2410c); }
.cv-teal    { background: linear-gradient(150deg, #0d9488, #134e4a); }
.cv-navy    { background: linear-gradient(150deg, #334155, #0f172a); }
.cv-maroon  { background: linear-gradient(150deg, #be123c, #6b0f24); }
.cv-saffron { background: linear-gradient(150deg, #f59e0b, #b45309); }

/* Stationery chips */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; margin: 0 auto; }
.chips span { background: var(--cream); border: 1px solid var(--line); padding: 10px 18px; border-radius: 30px; font-weight: 500; font-size: 0.92rem; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about p { margin-bottom: 14px; }
.about h2 { margin-bottom: 20px; }
.about .eyebrow { margin-bottom: 8px; }
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-item { background: var(--white); border-radius: var(--radius); padding: 20px; display: flex; gap: 12px; box-shadow: var(--shadow); }
.why-item > span { font-size: 1.6rem; }
.why-item h4 { font-size: 0.98rem; }
.why-item p { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* Details table */
.details { max-width: 720px; margin: 0 auto; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
th, td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { background: var(--cream); color: var(--dark); width: 45%; font-weight: 600; }
.gst { font-weight: 700; color: var(--primary-dark); letter-spacing: 1px; }

/* Partners */
.partners { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.partner { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); padding: 16px 24px; border-radius: var(--radius); min-width: 260px; box-shadow: var(--shadow); }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--primary)); color: var(--white); display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; }
.partner p { font-size: 0.88rem; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.address { background: var(--white); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.address h3 { margin-bottom: 12px; }
.address p { margin-bottom: 12px; }
.landmark { font-style: italic; color: var(--muted); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Footer */
.footer { background: #1c1917; color: #d6d3d1; padding: 50px 0 0; font-size: 0.92rem; }
.footer-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.footer h4 { color: #fff; margin-bottom: 12px; }
.footer-in a:not(.logo) { display: block; color: #d6d3d1; margin-bottom: 6px; }
.footer-in a:not(.logo):hover { color: var(--accent); }
.logo.light { color: #fff; margin-bottom: 10px; }
.logo.light .logo-icon { background: #292524; }
.copy { text-align: center; border-top: 1px solid #292524; padding: 18px 16px; font-size: 0.85rem; color: #a8a29e; }

/* Tablet */
@media (max-width: 900px) {
  .hero-in, .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 100%; overflow: hidden; }
  .hero-art { order: -1; transform: scale(0.85); margin-bottom: -20px; }
  .hero-text { text-align: center; }
  .hero .sub { margin: 0 auto; }
  .btns, .stats { justify-content: center; }
  .footer-in { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 600px) {
  .topbar-in { justify-content: center; text-align: center; }
  .header { position: static; }
  .nav { justify-content: center; }
  .menu { justify-content: center; gap: 14px; }
  .menu a { font-size: 0.88rem; }
  .hero { padding: 40px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-art { transform: none; margin: 0 0 10px; }
  .shelf { height: 170px; gap: 4px; padding: 0; }
  .spine { zoom: 0.68; }
  .stack { display: none; }
  .section { padding: 60px 0; }
  .section h2 { font-size: 1.7rem; }
  .books { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .why { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; text-align: center; }
  .logo.light { justify-content: center; }
  th, td { padding: 10px 12px; font-size: 0.9rem; }
}
