/* =========================================================
   CATALOG PAGE
   Scoped styles for catalog.html only.
   Prefixed "ctlg-" so nothing here collides with the shared
   theme classes in assets/css/style.css.
   ========================================================= */

/* Deliberately a <div>, not a <section>: style.css forces
   20px !important padding onto the first <section> of every page
   below 768px (meant for hero banners), which would pull this
   content up under the page banner on phones. */
.ctlg-section {
  padding: 100px 0 110px;
  /* Keeps the tilted catalog and its backdrop from causing
     sideways scroll on narrow screens. */
  overflow: hidden;
}

.ctlg-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.ctlg-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 70px;
}

/* --- Text column --- */
.ctlg-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 11px;
  font-weight: 700;
  color: #267544;
  background: #e7f8ee;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.ctlg-title {
  margin: 0 0 18px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  color: #002753;
}

/* Highlighted half sits on its own line: "Explore Our / Company Catalog" */
.ctlg-title span {
  display: block;
  color: #00A481;
}

.ctlg-accent {
  display: block;
  width: 44px;
  height: 3px;
  background: #00A481;
  border-radius: 2px;
  margin-bottom: 20px;
}

.ctlg-intro {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.8;
  color: #52565b;
}

.ctlg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

/* The theme's .btn-outline-dark adds a 2px border on top of the
   usual 60px line-height; trim it so both buttons match in height. */
.ctlg-actions .btn-outline-dark {
  line-height: 56px;
}

.ctlg-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13.5px;
  font-weight: 500;
  color: #52565b;
}

.ctlg-perks i {
  color: #00A481;
  margin-right: 6px;
}

/* --- Catalog illustration --- */
.ctlg-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

/* Soft brand-coloured backdrop */
.ctlg-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 430px;
  height: 430px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f2faf6 0%, #e7f8ee 55%, #d5f2e5 100%);
}

/* Dotted accent */
.ctlg-visual::after {
  content: "";
  position: absolute;
  right: 4%;
  bottom: 2%;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(rgba(0, 164, 129, 0.35) 2px, transparent 2px);
  background-size: 14px 14px;
}

.ctlg-book {
  position: relative;
  z-index: 1;
  width: 320px;
  aspect-ratio: 3 / 4;
  transform: perspective(1400px) rotateY(-14deg) rotateX(4deg);
  transition: transform 0.5s ease;
}

.ctlg-book:hover {
  transform: perspective(1400px) rotateY(-4deg) rotateX(1deg) translateY(-6px);
}

/* Page edges peeking out behind the cover */
.ctlg-book::before,
.ctlg-book::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  border: 1px solid #e6ecf1;
  border-radius: 4px 12px 12px 4px;
}

.ctlg-book::before {
  transform: translate(14px, 10px);
  box-shadow: 0 26px 50px rgba(0, 39, 83, 0.2);
}

.ctlg-book::after {
  transform: translate(7px, 5px);
}

.ctlg-cover {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 4px 12px 12px 4px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 39, 83, 0.12);
}

/* Spine shading */
.ctlg-cover::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 16px;
  background: linear-gradient(90deg, rgba(0, 39, 83, 0.2), rgba(0, 39, 83, 0));
  z-index: 2;
}

.ctlg-cover-logo {
  display: block;
  width: 60%;
  margin: 26px 0 18px 28px;
}

.ctlg-cover-photo {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 20px 0 28px;
  border-radius: 8px;
  overflow: hidden;
}

.ctlg-cover-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ctlg-cover-foot {
  position: relative;
  margin-top: 20px;
  padding: 20px 20px 22px 28px;
  background: #002753;
}

.ctlg-cover-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  width: 44px;
  height: 3px;
  background: #00A481;
}

.ctlg-cover-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #00A481;
}

.ctlg-cover-name {
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

.ctlg-cover-tag {
  display: block;
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .ctlg-book { transition: none; }
}

/* --- Responsive --- */
@media (max-width: 1199px) {
  .ctlg-showcase { gap: 50px; }
  .ctlg-title { font-size: 34px; }
}

@media (max-width: 991px) {
  .ctlg-section { padding: 80px 0 90px; }
  .ctlg-showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
}

@media (max-width: 767px) {
  .ctlg-section { padding: 70px 0 70px; }
  .ctlg-title { font-size: 28px; }
  .ctlg-intro { font-size: 15px; }
  .ctlg-visual::before { width: 320px; height: 320px; }
  .ctlg-book { width: 240px; }
  .ctlg-cover-logo { margin: 20px 0 14px 22px; }
  .ctlg-cover-photo { margin: 0 16px 0 22px; }
  .ctlg-cover-foot { margin-top: 16px; padding: 16px 16px 18px 22px; }
  .ctlg-cover-foot::before { left: 22px; }
  .ctlg-cover-name { font-size: 24px; }
  .ctlg-cover-tag { font-size: 9px; }
}

@media (max-width: 575px) {
  .ctlg-actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }
}
