:root {
  --bg: #f4efe6;
  --bg-2: #fffaf1;
  --ink: #17140f;
  --muted: #6f665b;
  --line: rgba(23, 20, 15, 0.12);
  --card: rgba(255, 250, 241, 0.82);
  --dark: #11100c;
  --gold: #c7962e;
  --gold-2: #f0c66a;
  --green: #18a866;
  --orange: #c77c21;
  --shadow: 0 24px 70px rgba(23, 20, 15, 0.13);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: min(1160px, calc(100% - 36px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% -10%, rgba(240, 198, 106, 0.35), transparent 34rem),
    radial-gradient(circle at 90% 0%, rgba(25, 92, 82, 0.13), transparent 30rem),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  color: var(--ink);
  min-height: 100vh;
}

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

button,
input,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.section-pad {
  width: var(--container);
  margin: 0 auto;
  padding: 84px 0;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: var(--container);
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255, 250, 241, 0.72);
  backdrop-filter: blur(20px);
  border-radius: 999px;
  box-shadow: 0 10px 35px rgba(23, 20, 15, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 90px !important;
  height: auto;
  max-height: 70px !important;
  object-fit: contain;
}
.header-inner,
.navbar,
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: block;
  height: 46px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dark);
  color: var(--gold-2);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 0.78rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.desktop-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.desktop-nav a:hover {
  color: var(--ink);
  background: rgba(23, 20, 15, 0.06);
}

.header-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-whatsapp:hover,
.btn:hover,
.speciality-card:hover,
.book-card:hover {
  transform: translateY(-3px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 78px);
}

.hero-bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.45;
  pointer-events: none;
}

.orb-one {
  width: 220px;
  height: 220px;
  left: -80px;
  top: 12%;
  background: rgba(199, 150, 46, 0.45);
}

.orb-two {
  width: 180px;
  height: 180px;
  right: 0;
  bottom: 16%;
  background: rgba(20, 100, 89, 0.18);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.76rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8vw, 6.9rem);
  line-height: 0.86;
  letter-spacing: -0.085em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero-text,
.section-heading p,
.advisor p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  transition: 0.25s ease;
}

.btn-primary {
  color: #17140f;
  background: linear-gradient(135deg, var(--gold-2), #d79b24);
  box-shadow: 0 12px 35px rgba(199, 150, 46, 0.27);
}

.btn-soft {
  color: var(--ink);
  background: rgba(255,255,255,0.56);
  border: 1px solid rgba(23, 20, 15, 0.12);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 550px;
}

.hero-stats div {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.42);
  padding: 16px;
  border-radius: 18px;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 1.1rem;
}

.hero-stats span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.88rem;
}

.hero-visual {
  position: relative;
}

.visual-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 22px;
  min-height: 640px;
  border: 1px solid rgba(255,255,255,0.48);
  background:
    linear-gradient(145deg, rgba(17,16,12,0.95), rgba(34,29,21,0.92)),
    radial-gradient(circle at 80% 20%, rgba(240,198,106,0.35), transparent 19rem);
  box-shadow: var(--shadow);
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,0.08) 42% 48%, transparent 48% 100%);
  pointer-events: none;
}

.shelf-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  color: #f8efe0;
}

.shelf-label span {
  color: rgba(248,239,224,0.72);
}

.shelf-label strong {
  color: var(--gold-2);
  font-size: 2.3rem;
  letter-spacing: -0.08em;
}

.book-stack-hero {
  position: absolute;
  inset: 102px 12px 130px 30px;
}

.book-stack-hero img {
  position: absolute;
  width: 47%;
  border-radius: 12px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.36);
  transform-origin: bottom center;
  animation: floatBook 5s ease-in-out infinite;
}

.book-stack-hero img:nth-child(1) {
  right: 15%;
  top: 0;
  z-index: 3;
  transform: rotate(1deg);
}

.book-stack-hero img:nth-child(2) {
  left: 2%;
  top: 122px;
  z-index: 2;
  transform: rotate(-6deg);
  animation-delay: 0.35s;
}

.book-stack-hero img:nth-child(3) {
  right: 2%;
  top: 250px;
  z-index: 1;
  transform: rotate(6deg);
  animation-delay: 0.7s;
}

@keyframes floatBook {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.visual-note {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 4;
  border-radius: 24px;
  padding: 20px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
}

.visual-note span,
.visual-note strong {
  display: block;
}

.visual-note span {
  color: rgba(255,255,255,0.66);
  margin-bottom: 5px;
}

.trust-strip {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 18px;
}

.trust-item {
  border-radius: var(--radius-lg);
  padding: 24px;
  background: rgba(255,250,241,0.68);
  border: 1px solid rgba(23,20,15,0.1);
  box-shadow: 0 12px 35px rgba(23, 20, 15, 0.06);
}

.trust-item span,
.trust-item strong,
.trust-item small {
  display: block;
}

.trust-item span {
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 16px;
}

.trust-item strong {
  font-size: 1.15rem;
  margin-bottom: 7px;
}

.trust-item small {
  color: var(--muted);
  line-height: 1.5;
}

.section-heading {
  max-width: 760px;
}

.speciality-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.speciality-card {
  min-height: 180px;
  text-align: left;
  border: 1px solid rgba(23,20,15,0.12);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(255,250,241,0.56));
  padding: 22px;
  box-shadow: 0 12px 45px rgba(23, 20, 15, 0.08);
  transition: 0.25s ease;
}

.speciality-card span,
.speciality-card small {
  display: block;
}

.speciality-card span {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.speciality-card small {
  color: var(--muted);
  line-height: 1.55;
}

.catalogue-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.search-box {
  width: min(430px, 100%);
}

.search-box input {
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(23,20,15,0.13);
  background: rgba(255,255,255,0.64);
  outline: 0;
  transition: 0.25s ease;
}

.search-box input:focus {
  border-color: rgba(199,150,46,0.72);
  box-shadow: 0 0 0 4px rgba(199,150,46,0.12);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.filter-btn {
  border: 1px solid rgba(23,20,15,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.58);
  color: var(--muted);
  padding: 11px 16px;
  transition: 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.book-card {
  overflow: hidden;
  border: 1px solid rgba(23,20,15,0.1);
  border-radius: 28px;
  background: rgba(255,250,241,0.72);
  box-shadow: 0 18px 55px rgba(23, 20, 15, 0.09);
  transition: 0.25s ease;
}

.book-img-wrap {
  position: relative;
  background:
    radial-gradient(circle at 30% 20%, rgba(240,198,106,0.33), transparent 12rem),
    linear-gradient(145deg, #16140f, #31291e);
  padding: 20px 28px 0;
  min-height: 290px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.book-img-wrap img {
  max-height: 255px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 22px rgba(0,0,0,0.33));
  transition: 0.28s ease;
}

.book-card:hover .book-img-wrap img {
  transform: rotate(-1.5deg) translateY(-8px) scale(1.02);
}

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  color: #17140f;
  background: var(--gold-2);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 900;
}

.book-content {
  padding: 20px;
}

.book-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.status {
  border-radius: 999px;
  padding: 5px 8px;
  white-space: nowrap;
}

.status.success {
  color: #0d6a41;
  background: rgba(24,168,102,0.12);
}

.status.warning {
  color: #86510e;
  background: rgba(199,124,33,0.13);
}

.book-content h3 {
  margin-bottom: 9px;
  font-size: 1.22rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.book-content p {
  color: var(--muted);
  line-height: 1.55;
  min-height: 74px;
  font-size: 0.94rem;
}

.book-content small {
  display: block;
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 18px;
}

.book-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(23,20,15,0.12);
  background: rgba(255,255,255,0.65);
  font-size: 1.3rem;
  font-weight: 700;
}

.empty-state,
.error-card {
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(23,20,15,0.12);
  padding: 28px;
  text-align: center;
}

.empty-state p {
  color: var(--muted);
}

.advisor-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(17,16,12,0.96), rgba(44,33,21,0.93)),
    radial-gradient(circle at 80% 20%, rgba(240,198,106,0.38), transparent 18rem);
  color: #fff;
  box-shadow: var(--shadow);
}

.advisor-card p {
  color: rgba(255,255,255,0.7);
}

.faq-grid {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin-top: 28px;
}

.faq-grid details {
  border: 1px solid rgba(23,20,15,0.12);
  border-radius: 20px;
  background: rgba(255,255,255,0.62);
  padding: 20px;
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  width: var(--container);
  margin: 0 auto 32px;
  padding: 26px 0 92px;
  border-top: 1px solid rgba(23,20,15,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 6px 0 0;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  min-height: 58px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #14a85f;
  color: #fff;
  font-weight: 950;
  box-shadow: 0 18px 55px rgba(20, 168, 95, 0.35);
  animation: pulse 2.7s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.book-modal {
  width: min(860px, calc(100% - 26px));
  border: 0;
  padding: 0;
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 28px 90px rgba(0,0,0,0.25);
}

.book-modal::backdrop {
  background: rgba(10,8,6,0.55);
  backdrop-filter: blur(8px);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.82);
  font-size: 1.6rem;
}

.modal-body {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
}

.modal-cover {
  min-height: 440px;
  padding: 34px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 15%, rgba(240,198,106,0.32), transparent 13rem),
    linear-gradient(145deg, #15130f, #2e281e);
}

.modal-cover img {
  max-height: 360px;
  filter: drop-shadow(0 30px 30px rgba(0,0,0,0.35));
}

.modal-copy {
  padding: 48px 34px;
}

.modal-category {
  display: inline-flex;
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 12px;
}

.modal-copy h3 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.modal-copy p {
  color: var(--muted);
  line-height: 1.72;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 26px;
}

.modal-tags span {
  border-radius: 999px;
  background: rgba(23,20,15,0.07);
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.reveal,
.trust-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible,
.trust-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

.reveal-card {
  animation: cardIn 0.55s ease both;
  animation-delay: var(--delay, 0ms);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1040px) {
  .desktop-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
  }

  .visual-card {
    min-height: 560px;
  }

  .catalogue-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .speciality-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100% - 24px, 1160px);
  }

  .site-header {
    top: 8px;
    margin-top: 8px;
  }

  .brand small,
  .header-whatsapp span {
    display: none;
  }

  .header-whatsapp::before {
    content: "WA";
  }

  .section-pad {
    padding: 54px 0;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .hero-actions,
  .advisor-card,
  .catalogue-head,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-stats,
  .trust-strip,
  .catalogue-grid,
  .speciality-cards,
  .modal-body {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    display: none;
  }

  .visual-card {
    min-height: 480px;
    border-radius: 26px;
  }

  .book-stack-hero {
    inset: 86px 8px 124px 18px;
  }

  .book-stack-hero img {
    width: 52%;
  }

  .book-img-wrap {
    min-height: 265px;
  }

  .modal-cover {
    min-height: 300px;
  }

  .modal-cover img {
    max-height: 250px;
  }

  .floating-whatsapp {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 430px) {
  .visual-card {
    min-height: 420px;
  }

  .visual-note {
    padding: 16px;
  }

  .book-stack-hero img:nth-child(2) {
    top: 104px;
  }

  .book-stack-hero img:nth-child(3) {
    top: 205px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  .site-logo {
    height: 40px;
    max-width: 160px;
  }
}

@media (max-width: 420px) {
  .site-logo {
    height: 36px;
    max-width: 140px;
  }
}
@media (max-width: 768px) {
  .brand-logo {
    width: 150px;
    max-height: 55px;
  }
}
