/* talibov.az — Bootstrap 5 adaptation */
:root {
  --background: #fbfaf6;
  --foreground: #1f2a44;
  --muted: #f1f0ea;
  --muted-foreground: #6b7589;
  --card: #ffffff;
  --border: #e6e8ee;
  --primary: #3a8ec5;
  --primary-foreground: #ffffff;
  --sky: #d6ecf6;
  --mint: #d6f1e4;
  --sand: #f4ecd0;
  --gradient-soft: linear-gradient(135deg, #e2effa, #e1f3e8 50%, #f6efd4);
  --shadow-soft: 0 10px 40px -15px rgba(58, 142, 197, 0.35);
  --shadow-card: 0 4px 20px -8px rgba(31, 42, 68, 0.18);
  --radius: 1rem;

  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-bg: var(--background);
  --bs-body-color: var(--foreground);
  --bs-border-color: var(--border);
  --bs-primary: var(--primary);
  --bs-primary-rgb: 58, 142, 197;
  --bs-link-color: var(--foreground);
  --bs-link-hover-color: var(--foreground);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.h2,
.h3 {
  margin-top: 0;
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--foreground);
}

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

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

button,
input,
textarea {
  font: inherit;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* Header */
.site-header {
  position: relative;
  z-index: 1000;
  background: var(--background);
  border-color: var(--border) !important;
}

.navbar-shell {
  min-height: 4rem;
}

.site-logo,
.logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--foreground);
  font-family: "Manrope", sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
}

.site-logo:hover,
.logo:hover {
  color: var(--foreground);
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  border-radius: .75rem;
  background: var(--sky);
  display: grid;
  place-items: center;
  color: var(--primary);
}

.navbar-nav {
  gap: .25rem;
}

.navbar-nav .nav-link {
  padding: .5rem .75rem !important;
  border-radius: .5rem;
  color: var(--muted-foreground);
  font-size: .875rem;
  font-weight: 500;
  transition: background-color .15s ease, color .15s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  background: var(--muted);
  color: var(--foreground);
}

.navbar-nav .nav-link.active {
  font-weight: 600;
}

.navbar-toggler {
  padding: .45rem;
  border-radius: .5rem;
}

.navbar-toggler:hover {
  background: var(--muted);
}

.cabinet-btn {
  padding: .5rem 1rem;
  white-space: nowrap;
}

/* Buttons */
.btn {
  --bs-btn-padding-x: 1.5rem;
  --bs-btn-padding-y: .75rem;
  --bs-btn-font-size: .9rem;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: opacity .15s ease, transform .15s ease, background-color .15s ease, border-color .15s ease;
}

.btn-primary {
  --bs-btn-color: var(--primary-foreground);
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-color: var(--primary-foreground);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-active-color: var(--primary-foreground);
  --bs-btn-active-bg: var(--primary);
  --bs-btn-active-border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  opacity: .9;
}

.btn-outline {
  color: var(--foreground);
  background: #fff;
  border: 1px solid var(--border);
}

.btn-outline:hover,
.btn-outline:focus {
  color: var(--foreground);
  background: var(--muted);
  border-color: var(--border);
}

.btn-mint {
  color: var(--foreground);
  background: var(--mint);
  border-color: var(--mint);
}

.btn-mint:hover,
.btn-mint:focus {
  color: var(--foreground);
  background: #c8ead9;
  border-color: #c8ead9;
}

.btn-sm {
  --bs-btn-padding-x: 1rem;
  --bs-btn-padding-y: .5rem;
  --bs-btn-font-size: .8rem;
}

/* Sections and typography */
section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.h2 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
}

.h3 {
  margin-bottom: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.lead {
  color: var(--muted-foreground);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 36rem;
}

.muted {
  color: var(--muted-foreground);
}

.text-sm {
  font-size: .875rem;
}

.text-xs {
  font-size: .75rem;
}

.text-primary {
  color: var(--primary) !important;
}

.section-head {
  max-width: 36rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--gradient-soft);
}

.hero-row {
  min-height: 540px;
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  padding: .375rem .75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: var(--muted-foreground);
  font-size: .75rem;
  font-weight: 500;
}

.hero h1 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  color: var(--muted-foreground);
  font-size: .875rem;
}

.hero-stats > div > span {
  display: block;
  color: var(--foreground);
  font-size: 1.5rem;
  font-weight: 800;
}

.hero-stats .divider {
  width: 1px;
  height: 2.5rem;
  background: var(--border);
}

.hero-image-wrap {
  position: relative;
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2.5rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transform: rotate(3deg);
}

.hero-image {
  position: relative;
  padding: 1.5rem;
  border-radius: 2.5rem;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.hero-image img {
  width: 100%;
  border-radius: 1.25rem;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.float-card .ico {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  border-radius: .75rem;
  display: grid;
  place-items: center;
}

.float-card.bl {
  bottom: -1.5rem;
  left: -1.5rem;
}

.float-card.tr {
  top: -1.25rem;
  right: -1.25rem;
}

/* Cards */
.card {
  --bs-card-border-color: var(--border);
  --bs-card-border-radius: 1.25rem;
  padding: 1.5rem;
  background: var(--card);
  box-shadow: none;
  transition: box-shadow .2s ease, transform .2s ease;
}

.card-hover:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.icon-tile {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: .75rem;
  display: grid;
  place-items: center;
}

/* Books */
.book-card {
  display: block;
  height: 100%;
}

.book-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  padding: 1.25rem;
  border-radius: 4px 8px 8px 4px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 40px -20px rgba(15, 23, 42, .35), 0 8px 16px -8px rgba(15, 23, 42, .2);
  transition: transform .2s ease, box-shadow .2s ease;
}

.book-card:hover .book-cover {
  transform: translateY(-4px);
  box-shadow: 0 30px 50px -20px rgba(15, 23, 42, .4);
}

.book-cover::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  background: rgba(0, 0, 0, .2);
}

.book-cover::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 9px;
  width: 1px;
  background: rgba(255, 255, 255, .3);
}

.book-cat {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .8;
}

.book-cover h3 {
  margin: .5rem 0 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.book-meta-bottom {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .75rem;
  font-size: 10px;
  opacity: .8;
}

.book-meta-bottom .tag {
  padding: 1px 6px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 2px;
}

.book-info {
  margin-top: 1rem;
  padding: 0 .25rem;
}

.book-info h3 {
  margin-bottom: 0;
}

.book-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .75rem;
}

.book-buy {
  padding: .375rem .75rem;
  border: 1px solid var(--border);
  border-radius: .375rem;
  background: transparent;
  color: var(--foreground);
  font-size: .75rem;
  font-weight: 600;
  transition: all .15s ease;
}

.book-buy:hover {
  background: var(--foreground);
  color: var(--background);
}

/* Videos */
.video-card {
  overflow: hidden;
  padding: 0;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}

.video-thumb .play {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease;
}

.video-card:hover .play {
  transform: scale(1.1);
}

.video-time {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
}

.video-body {
  padding: 1.25rem;
}

.video-body h3,
.video-body p {
  margin-bottom: 0;
}

/* Reviews */
.review-stars {
  color: #d4a017;
  letter-spacing: 2px;
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .375rem .75rem;
  border-radius: 999px;
  background: var(--muted);
  font-size: .75rem;
  font-weight: 600;
}

.chip-mint {
  background: var(--mint);
}

/* CTA */
.cta-block {
  padding: 4rem 2rem;
  border-radius: 2rem;
  background: var(--gradient-soft);
  text-align: center;
}

/* FAQ */
details.faq {
  margin-bottom: .75rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--card);
}

details.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary .plus {
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 1.75rem;
  border-radius: 999px;
  background: var(--muted);
  display: grid;
  place-items: center;
  transition: transform .2s ease;
}

details.faq[open] summary .plus {
  transform: rotate(45deg);
}

details.faq p {
  margin: .75rem 0 0;
  color: var(--muted-foreground);
  font-size: .875rem;
}

/* Footer */
footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  background: rgba(241, 240, 234, .5);
}

.footer-grid {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-grid h4 {
  margin-bottom: .75rem;
  font-size: .875rem;
  font-weight: 600;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin-bottom: .5rem;
  color: var(--muted-foreground);
  font-size: .875rem;
}

.footer-grid a:hover {
  color: var(--foreground);
}

.footer-bottom {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  text-align: center;
  font-size: .75rem;
}

.footer-bottom p {
  margin-bottom: 0;
}

/* Helpers retained only where Bootstrap has no exact equivalent */
.line-1 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    flex-basis: 100%;
  }

  .navbar-nav .nav-link {
    padding: .65rem .75rem !important;
  }

  .hero-row {
    min-height: auto;
  }

  .hero-image-wrap {
    margin: 1rem 1.25rem 0;
  }
}

@media (max-width: 575.98px) {
  section {
    padding: 4rem 0;
  }

  .hero {
    padding: 3.5rem 0 4.5rem;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-stats {
    justify-content: space-between;
    gap: .75rem;
  }

  .hero-image {
    padding: 1rem;
    border-radius: 1.75rem;
  }

  .hero-image-wrap::before {
    border-radius: 1.75rem;
  }

  .float-card {
    position: static;
    margin-top: .75rem;
  }

  .cta-block {
    padding: 3rem 1.25rem;
  }
}
