/* =========================================================
   Insuring Bharat — style.css
   Premium, institutional, Bihar/Mithila-inspired static site.
   Static, dependency-free. Safe to upload directly to GoDaddy.
   ========================================================= */

:root {
  --ivory: #f7f1e5;
  --ivory-2: #fbf6ec;
  --indigo: #1e2a44;
  --indigo-soft: #2a3a5c;
  --red: #9b1c31;
  --gold: #d6a23a;
  --gold-deep: #b9842a;
  --charcoal: #222222;
  --green: #3f6b4f;
  --beige: #e6d8bd;
  --beige-soft: #efe6d2;

  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(30, 42, 68, 0.05), 0 2px 8px rgba(30, 42, 68, 0.04);
  --shadow-md: 0 6px 24px rgba(30, 42, 68, 0.08);
  --shadow-lg: 0 18px 48px rgba(30, 42, 68, 0.12);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------- Base ---------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--indigo);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0.2px;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--gold-deep);
}

img,
svg {
  max-width: 100%;
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--indigo);
  color: var(--ivory);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 2000;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 241, 229, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--beige);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(247, 241, 229, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--indigo);
}
.brand:hover {
  color: var(--indigo);
}
.brand-mark svg {
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-title {
  font-family: var(--font-head);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--indigo);
}
.brand-title.light {
  color: var(--ivory);
}
.brand-sub {
  font-size: 10.5px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 4px;
  font-weight: 600;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: inline-block;
  padding: 9px 13px;
  color: var(--indigo);
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 8px;
  position: relative;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-link:hover {
  color: var(--red);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}
.nav-link.active {
  color: var(--red);
}
.nav-cta {
  background: var(--indigo);
  color: var(--ivory) !important;
  margin-left: 6px;
}
.nav-cta::after {
  display: none;
}
.nav-cta:hover {
  background: var(--red);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--beige);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 11px;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--indigo);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-primary {
  background: var(--indigo);
  color: var(--ivory);
  border-color: var(--indigo);
}
.btn-primary:hover {
  background: var(--indigo-soft);
  color: var(--ivory);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--indigo);
  border-color: var(--indigo);
}
.btn-secondary:hover {
  background: var(--indigo);
  color: var(--ivory);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: var(--green);
  color: var(--ivory);
  border-color: var(--green);
}
.btn-ghost:hover {
  background: #345a42;
  color: var(--ivory);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------------- Sections ---------------- */
.section {
  padding: 96px 0;
  position: relative;
}
.section-tint {
  background: linear-gradient(180deg, var(--beige-soft), var(--ivory));
}
.section-indigo {
  background: var(--indigo);
  color: #e9e3d4;
}
.section-indigo p {
  color: #cfd6e4;
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin: 0 0 14px;
}
.eyebrow.light {
  color: var(--gold);
}
.section-title {
  font-size: clamp(32px, 5vw, 50px);
  position: relative;
  padding-bottom: 20px;
}
.section-title.light {
  color: var(--ivory);
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}
.section-intro {
  font-size: 18px;
  color: #4a4a44;
  margin-top: 18px;
}
.section-indigo .section-intro {
  color: #cfd6e4;
}

.prose {
  max-width: 820px;
  margin-bottom: 44px;
}
.prose p {
  color: #41413b;
  font-size: 17.5px;
}
.prose-lead {
  font-weight: 600;
  color: var(--indigo) !important;
  font-size: 18px !important;
}
.prose-lead.light {
  color: var(--ivory) !important;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 72px 0 0;
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(214, 162, 58, 0.14), transparent 60%),
    radial-gradient(700px 460px at 6% 92%, rgba(155, 28, 49, 0.08), transparent 55%),
    var(--ivory);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 84px;
}
.hero-title {
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 6px 0 0;
  background: linear-gradient(120deg, var(--indigo) 38%, var(--red) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-family: var(--font-head);
  font-size: clamp(21px, 3vw, 28px);
  font-style: italic;
  color: var(--green);
  margin: 18px 0 20px;
  font-weight: 500;
  line-height: 1.3;
  max-width: 560px;
}
.hero-para {
  font-size: 17px;
  color: #41413b;
  max-width: 540px;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}
.badge {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--indigo);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--beige);
  padding: 7px 14px;
  border-radius: 999px;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.trust-line {
  margin-top: 22px;
  font-size: 13.5px;
  color: #7a7468;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-line::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.hero-art {
  display: flex;
  justify-content: center;
}
.medallion {
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 24px 48px rgba(30, 42, 68, 0.14));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------------- Mithila motif divider ---------------- */
.motif-divider {
  height: 26px;
  margin-top: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='26' viewBox='0 0 120 26'%3E%3Cg fill='none' stroke='%23D6A23A' stroke-width='1.3'%3E%3Cpath d='M0 13 H120'/%3E%3Cpath d='M12 13 l8 -7 l8 7 l-8 7 Z'/%3E%3Cpath d='M52 13 l8 -7 l8 7 l-8 7 Z'/%3E%3Cpath d='M92 13 l8 -7 l8 7 l-8 7 Z'/%3E%3C/g%3E%3Cg fill='%239B1C31'%3E%3Ccircle cx='40' cy='13' r='2'/%3E%3Ccircle cx='80' cy='13' r='2'/%3E%3Ccircle cx='0' cy='13' r='2'/%3E%3Ccircle cx='120' cy='13' r='2'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.85;
}
.section-indigo .motif-divider {
  filter: brightness(1.6);
}

/* ---------------- Cards ---------------- */
.card-grid {
  display: grid;
  gap: 22px;
}
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fffdf8;
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.cred {
  border-top: 3px solid var(--gold);
}
.cred-tag {
  display: block;
  font-family: var(--font-head);
  font-size: 23px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 10px;
}
.cred p {
  margin: 0;
  font-size: 15.5px;
  color: #4a4a44;
}

.pill {
  padding: 20px 22px;
  font-weight: 600;
  color: var(--indigo);
  font-size: 16px;
  display: flex;
  align-items: center;
  min-height: 84px;
  border-left: 3px solid var(--green);
}
.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 12px;
  flex: none;
}

.area {
  padding: 22px 24px;
  font-weight: 600;
  color: var(--indigo);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
}
.area::before {
  content: "";
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, var(--gold) 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(155, 28, 49, 0.12), rgba(30, 42, 68, 0.1));
  border: 1px solid var(--beige);
}

/* ---------------- Accordion (MSME) ---------------- */
.accordion {
  display: grid;
  gap: 14px;
}
.acc-item {
  background: #fffdf8;
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.acc-item.open {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}
.acc-letter {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--indigo);
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  transition: background 0.3s var(--ease);
}
.acc-item.open .acc-letter {
  background: var(--red);
  color: var(--ivory);
}
.acc-title {
  flex: 1;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--indigo);
}
.acc-icon {
  flex: none;
  width: 18px;
  height: 18px;
  position: relative;
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  background: var(--red);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.acc-icon::before {
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
}
.acc-icon::after {
  top: 0;
  left: 8px;
  width: 2px;
  height: 18px;
}
.acc-item.open .acc-icon::after {
  transform: scaleY(0);
  opacity: 0;
}
.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.acc-panel-inner,
.acc-panel > .tag-list {
  padding: 0 24px 24px 84px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-list li {
  background: var(--ivory);
  border: 1px solid var(--beige);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 14px;
  color: #43433d;
  font-weight: 500;
}
.tag-list.compact li {
  font-size: 13px;
  padding: 6px 13px;
}

/* ---------------- Note / compliance ---------------- */
.note {
  margin-top: 36px;
  background: rgba(155, 28, 49, 0.05);
  border: 1px solid rgba(155, 28, 49, 0.25);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 26px 28px;
}
.note-title {
  font-size: 19px;
  color: var(--red);
  margin-bottom: 8px;
}
.note p {
  margin: 0;
  font-size: 15px;
  color: #534b46;
}

/* ---------------- Bihar to Bharat ---------------- */
.bihar-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 52px;
  align-items: center;
}
.bihar-copy p {
  color: #cfd6e4;
}
.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin-top: 22px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e9e3d4;
  font-weight: 500;
  font-size: 15.5px;
}
.check-list li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background:
    radial-gradient(circle at 50% 50%, var(--gold) 0 4px, transparent 5px);
}
.state-outline {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  animation: floaty 8s ease-in-out infinite;
}
.pull-quote {
  margin: 60px auto 0;
  max-width: 820px;
  text-align: center;
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.4;
  color: var(--ivory);
  position: relative;
  padding: 28px 20px 0;
}
.pull-quote::before {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 26px;
}

/* ---------------- Books ---------------- */
.book {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.book-cover {
  aspect-ratio: 16 / 7;
  background:
    radial-gradient(420px 200px at 80% -20%, rgba(214, 162, 58, 0.4), transparent 60%),
    linear-gradient(135deg, var(--indigo), #16203a);
  display: grid;
  place-items: center;
  padding: 28px;
  position: relative;
  border-bottom: 3px solid var(--gold);
}
.book-cover.alt {
  background:
    radial-gradient(420px 200px at 80% -20%, rgba(214, 162, 58, 0.35), transparent 60%),
    linear-gradient(135deg, var(--red), #6f1424);
}
.book-cover::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(214, 162, 58, 0.5);
  border-radius: 8px;
  pointer-events: none;
}
.book-cover-label {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--ivory);
  text-align: center;
  letter-spacing: 0.5px;
}
.book-body {
  padding: 28px;
}
.book-title {
  font-size: 28px;
  margin-bottom: 12px;
}
.book-body p {
  font-size: 15.5px;
  color: #4a4a44;
}
.book-themes-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin: 18px 0 10px;
}
.center-cta {
  text-align: center;
  margin-top: 44px;
}

/* ---------------- Principles ---------------- */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  counter-reset: none;
}
.principle {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: #fffdf8;
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.principle:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.principle-num {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  flex: none;
  opacity: 0.9;
}
.principle h3 {
  font-size: 23px;
  margin-bottom: 6px;
}
.principle p {
  margin: 0;
  font-size: 15.5px;
  color: #4a4a44;
}

/* ---------------- Contact ---------------- */
.contact-card {
  background: #fffdf8;
  border: 1px solid var(--beige);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 940px;
}
.contact-name {
  font-size: 32px;
  color: var(--red);
  margin-bottom: 10px;
}
.contact-roles {
  color: var(--indigo);
  font-weight: 500;
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0;
}
.contact-details {
  margin: 0;
  display: grid;
  gap: 18px;
  align-content: start;
}
.contact-details dt {
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 3px;
}
.contact-details dd {
  margin: 0;
  font-size: 16px;
  color: var(--charcoal);
}
.contact-details a {
  color: var(--indigo);
  font-weight: 600;
}
.contact-details a:hover {
  color: var(--red);
}
.contact-actions {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 26px;
  border-top: 1px solid var(--beige);
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--indigo);
  color: #cfd6e4;
}
.footer-strip {
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='14' viewBox='0 0 80 14'%3E%3Cg fill='none' stroke='%23D6A23A' stroke-width='1.2'%3E%3Cpath d='M0 7 l10 -5 l10 5 l-10 5 Z'/%3E%3Cpath d='M40 7 l10 -5 l10 5 l-10 5 Z'/%3E%3C/g%3E%3Cg fill='%239B1C31'%3E%3Ccircle cx='30' cy='7' r='1.8'/%3E%3Ccircle cx='70' cy='7' r='1.8'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.9;
}
.footer-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 44px;
}
.footer-tagline {
  margin-top: 14px;
  color: #aeb8cc;
  font-size: 15px;
  max-width: 320px;
}
.footer-disclaimer h4 {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-weight: 600;
}
.footer-disclaimer p {
  font-size: 13.5px;
  color: #9aa5bd;
  line-height: 1.75;
  margin: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(214, 162, 58, 0.25);
  padding: 22px 0;
}
.footer-bottom p {
  margin: 0;
  text-align: center;
  font-size: 13.5px;
  color: #8b96ad;
}

/* ---------------- Back to top ---------------- */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--gold);
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    background 0.3s var(--ease);
  z-index: 900;
  box-shadow: var(--shadow-md);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--red);
  color: var(--ivory);
}

/* ---------------- Reveal animation ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 64px;
  }
  .hero-art {
    order: -1;
  }
  .medallion {
    max-width: 320px;
  }
  .bihar-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .bihar-art {
    order: -1;
  }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--ivory-2);
    border-bottom: 1px solid var(--beige);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav.open {
    transform: translateY(0);
  }
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px 20px 24px;
  }
  .nav-link {
    padding: 14px 12px;
    font-size: 16px;
    border-bottom: 1px solid var(--beige-soft);
    border-radius: 0;
  }
  .nav-link::after { display: none; }
  .nav-cta {
    margin: 12px 0 0;
    text-align: center;
    border-radius: 999px;
  }
  .hamburger {
    display: flex;
  }
  .section {
    padding: 68px 0;
  }
  .cols-2,
  .cols-3,
  .cols-4 {
    grid-template-columns: 1fr;
  }
  .contact-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .check-list {
    grid-template-columns: 1fr;
  }
  .acc-panel > .tag-list {
    padding-left: 24px;
  }
  .acc-title {
    font-size: 19px;
  }
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .brand-sub { display: none; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .medallion,
  .state-outline { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------------- Print ---------------- */
@media print {
  .site-header,
  .hamburger,
  .back-to-top,
  .motif-divider,
  .footer-strip,
  .hero-art,
  .bihar-art {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
  .section,
  .hero {
    padding: 18px 0;
    background: #fff !important;
    color: #000 !important;
  }
  .section-indigo,
  .section-indigo p,
  .section-title.light,
  .bihar-copy p,
  .check-list li,
  .pull-quote {
    color: #000 !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .acc-panel { max-height: none !important; }
  a { color: #000; text-decoration: underline; }
  .card,
  .principle,
  .acc-item { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

/* ---------------- Footer nav (added for book/author pages) ---------------- */
.footer-nav {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid rgba(214, 162, 58, 0.18);
}
.footer-nav h4 {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-weight: 600;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.footer-nav a {
  color: #cfd6e4;
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--gold);
}
