/* ── Collections Landing Page (CLP) ──────────────────────────── */

.clp {
  background: #fbf8f4;
}

/* ── Hero ────────────────────────────────────────────────────── */
.clp .clp__hero {
  position: relative;
  height: 505px;
  background-color: #f5ede3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.clp .clp__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--clp-hero-img);
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  transform: scale(1);
  animation: clpHeroZoomIn 1.4s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  .clp .clp__hero::before {
    animation: none;
    transform: none;
  }
}

@keyframes clpHeroZoomIn {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}

.clp .clp__hero-heading {
  position: relative;
  font-family: "new-spirit", serif;
  font-size: 50px;
  font-weight: 400;
  color: #39323b;
  text-align: center;
  margin: 0;
  line-height: 1.1;
}

.clp .clp__hero-heading em {
  font-style: italic;
  font-weight: 600;
}

/* ── Intro ───────────────────────────────────────────────────── */
.clp .clp__intro {
  max-width: 720px;
  margin: 60px auto;
  margin-bottom: 12px;
  padding: 0 20px;
  text-align: center;
}

.clp .clp__intro-heading {
  font-family: "new-spirit", serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  color: #39323b;
  margin: 0 0 20px;
  @media only screen and (max-width: 900px) {
   font-size: 18px; 
  }
}

.clp .clp__intro-body {
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.25px;
  color: #39323b;
  @media only screen and (max-width: 900px) {
   font-size: 14px; 
  }
}

/* ── Tab bar ─────────────────────────────────────────────────── */
.clp .clp__tabs-wrap {
  position: relative;
  background: #fbf8f4;
  padding: 52px 53px 70px;
  display: flex;
  align-items: center;
  gap: 21px;
}

.clp .clp__tabs {
  flex: 1;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 0;
  scroll-behavior: smooth;
}

.clp .clp__tabs::-webkit-scrollbar {
  display: none;
}

.clp .clp__tab {
  flex: 0 0 96px;
  width: 96px;
  height: 67px;
  padding: 8px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: none;
  border-radius: 1px;
  background: rgba(57, 50, 59, 0.25);
  color: #39323b;
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.25px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-grow: 1;
}

.clp .clp__tab:hover {
  background: #582e40;
  color: #fbf8f4;
}

.clp .clp__tab--active {
  background: #582e40;
  color: #fbf8f4;
}

.clp .clp__tabs-arrow {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: #39323b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.clp .clp__tabs-arrow svg {
  width: 32px;
  height: 32px;
  display: block;
}

.clp .clp__tabs-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

/* ── Collection panels ───────────────────────────────────────── */
.clp .clp__panel {
  display: none;
}

.clp .clp__panel--active,
.clp .clp__panel:not([hidden]) {
  display: block;
}

.clp .clp__panel[hidden] {
  display: none;
}

/* ── Panel strip (heather bg) ────────────────────────────────── */
.clp .clp__panel-strip {
  position: relative;
  background: #582e40;
  margin-bottom: 100px;
  min-height: 405px
}

.clp .clp__panel-strip-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 90px;
  padding-left: 150px;
  min-height: 334px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  @media only screen and (max-width: 1200px) {
    padding-left: 40px;
  }
}

.clp .clp__panel-content {
  flex: 0 0 448px;
  padding: 76px 0 60px;
  color: #fbf8f4;
}

.clp .clp__panel-title {
  font-family: "new-spirit", serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  color: #fbf8f4;
  margin: 0 0 16px;
}

.clp .clp__panel-desc {
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.25px;
  color: #fbf8f4;
  margin: 0 0 16px;
}

.clp .clp__panel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 256px;
  height: 50px;
  background: #fbf8f4;
  color: #582e40;
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 1px;
  transition: .3s ease-in-out;
}

.clp .clp__panel-btn:hover {
 text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  box-shadow: 4px 6px 18px rgba(0, 0, 0, 0.45);
}

/* Panel images: main image (–1) sits in front, breaks below the strip;
   texture (–2) sits behind, peeks above the strip */
.clp .clp__panel-images {
  flex: 1;
  position: relative;
  min-height: 334px;
  max-width: 540px;
  align-self: stretch;
}

.clp .clp__panel-paperclip {
  position: absolute;
  top: 11px;
  right: -8px;
  width: 80px;
  height: 80px;
  background: url('../images/paperclip.png') no-repeat center / contain;
  z-index: 3;
  pointer-events: none;
  @media only screen and (max-width: 1025px) {
    display: none !important;
  }
}

.clp .clp__panel-img {
  position: absolute;
  object-fit: cover;
  display: block;
}

.clp .clp__panel-img--1 {
  width: 510px;
  height: 405px;
  right: 0;
  top: 28px;
  z-index: 2;
}

.clp .clp__panel-img--2 {
  width: 333px;
  height: 263px;
  right: 190px;
  top: -30px;
  z-index: 1;
}

/* ── Comparison table ────────────────────────────────────────── */
.clp .clp__table-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 25px 92px 70px;
}

.clp .clp__table-progress {
  display: none;
}

.clp .clp__table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.clp .clp__table {
  width: 100%;
  min-width: 980px;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: transparent;
}

.clp .clp__table thead,
.clp .clp__table tbody,
.clp .clp__table tr {
  border: 0;
  background: transparent;
}

.clp .clp__table th,
.clp .clp__table td {
  height: 50px;
  border: 0;
  vertical-align: middle;
  background: transparent;
}

.clp .clp__table thead tr {
  border-bottom: 1px solid #454545;
}

.clp .clp__table-feature-col,
.clp .clp__table-feature {
  width: 180px;
  padding: 13px 0;
  text-align: left;
}

.clp .clp__table-feature-col {
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #39323b;
}

.clp .clp__table-feature-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.25px;
  color: #39323b;
}

.clp .clp__table-info {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0;
  color: #39323b;
  cursor: help;
}

.clp .clp__table-info svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* ── Tippy tooltip theme (clp) ───────────────────────────────── */
.tippy-box[data-theme~='clp'] {
  background-color: #39323b;
  color: #fbf8f4;
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.2px;
  border-radius: 3px;
  max-width: 240px;
}

.tippy-box[data-theme~='clp'] .tippy-arrow {
  color: #39323b;
}

.clp .clp__table-product-col {
  width: 132px;
  padding: 13px 8px;
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.25px;
  color: #39323b;
  text-align: center;
}

.clp .clp__table-product-name {
  color: #39323b;
  text-decoration: none;
  display: inline-block;
  line-height: 1.5;
}

.clp .clp__table-product-name:hover {
  text-decoration: underline;
}

.clp .clp__table tbody tr.clp__table-row {
  border-bottom: 1px solid #939393;
}

.clp .clp__table tbody tr.clp__table-row--cta,
.clp .clp__table tbody tr.clp__table-row:last-child {
  border-bottom: 0;
}

.clp .clp__table-cell {
  width: 132px;
  padding: 13px 8px;
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.25px;
  color: #39323b;
  text-align: center;
}

.clp .clp__table-check {
  display: inline-block;
  vertical-align: middle;
  color: #39323b;
}

.clp .clp__table-check svg {
  display: block;
}

/* CTA row */
.clp .clp__table-row--cta {
  border-bottom: none;
}

.clp .clp__table-row--cta .clp__table-cell {
  padding-top: 30px;
}

.clp .clp__table-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 50px;
  background: #393245;
  color: #fbf8f4;
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 1px;
  transition: box-shadow 0.2s;
}

.clp .clp__table-btn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.3);
}

/* ── No collections fallback ──────────────────────────────────── */
.clp .clp__no-collections {
  text-align: center;
  padding: 80px 20px;
  color: rgba(57, 50, 59, 0.5);
}

/* ── Responsive ───────────────────────────────────────────────── */

/* Panel strip: switch to stacked layout at ≤1100px so the fixed-pixel images
   don't overflow into the content area on iPad Pro (1024px) */
@media (max-width: 1100px) {
  .clp .clp__panel-strip {
    margin-bottom: 0;
  }
  .clp .clp__panel-strip-inner {
    flex-direction: column-reverse;
    padding: 0 0 48px;
    min-height: 0;
    gap: 0;
    align-items: stretch;
  }
  .clp .clp__panel-images {
    position: relative;
    flex: unset;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: 280px;
    padding: 0;
    background: transparent;
  }
  .clp .clp__panel-img--1 {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    bottom: auto;
    width: calc(100% - 32px);
    max-width: 380px;
    height: auto;
    aspect-ratio: 247 / 187;
    margin: 0;
    z-index: 2;
  }
  .clp .clp__panel-img--2 {
    display: block;
    position: absolute;
    top: -8px;
    left: 25%;
    right: auto;
    bottom: auto;
    width: 45.6%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 244 / 193;
    z-index: 1;
  }
  .clp .clp__panel-content {
    flex: unset;
    width: 100%;
    padding: 40px 40px 0;
    text-align: center;
  }
  .clp .clp__panel-title {
    font-size: 26px;
    line-height: 1.2;
    margin: 0 0 14px;
  }
  .clp .clp__panel-desc {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 24px;
  }
  .clp .clp__panel-btn {
    width: 100%;
    max-width: 256px;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .clp .clp__hero {
    height: 320px;
  }
  .clp .clp__hero-heading {
    font-size: 24px;
  }

  /* Tabs - smaller pills, lighter inactive bg */
  .clp .clp__tabs-wrap {
    background: #fbf8f4;
    padding: 16px 5px;
    gap: 4px;
    padding-bottom: 41px;
  }
  .clp .clp__tabs {
    gap: 5px;
  }
  .clp .clp__tab {
    flex: 0 0 85px;
    width: 85px;
    height: 46px;
    padding: 4px;
    font-size: 12px;
    line-height: 1.5;
    background: #d9d9d9;
  }
  /* Restore active + hover styling — both overridden by the mobile .clp__tab
     rule above (same specificity, later in source order). */
  .clp .clp__tab--active,
  .clp .clp__tab:hover {
    background: #582e40;
    color: #fbf8f4;
  }
  .clp .clp__tabs-arrow {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
  }
  .clp .clp__tabs-arrow svg {
    width: 26px;
    height: 26px;
  }

  /* Panel: scale down image area and tighten content padding for phones */
  .clp .clp__panel-images { height: 214px; }
  .clp .clp__panel-img--1 { max-width: 247px; }
  .clp .clp__panel-img--2 { max-width: 146px; }
  .clp .clp__panel-content { padding: 8px 13px 0; }
  .clp .clp__panel-title {
    font-size: 18px;
    line-height: 1.2;
    margin: 0 0 12px;
  }
  .clp .clp__panel-desc {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 24px;
  }

  /* Table - horizontal scroll with progress indicator */
  .clp .clp__table-wrap {
    padding: 24px 16px 40px;
  }
  .clp .clp__table {
    min-width: 800px;
  }
  .clp .clp__table-feature-col,
  .clp .clp__table-feature {
    width: 220px;
  }
  .clp .clp__table-progress {
    display: block;
    width: 258px;
    max-width: 100%;
    height: 13px;
    margin: 0 auto 24px;
    border: 1px solid #39323b;
    border-radius: 10px;
    background: #fff;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    touch-action: none;
    user-select: none;
  }
  .clp .clp__table-progress-fill {
    position: absolute;
    top: 1px;
    left: 1px;
    bottom: 1px;
    width: var(--clp-progress, 20%);
    background: #39323b;
    border-radius: 9px;
    transition: left 0.1s linear, width 0.1s linear;
    cursor: grab;
  }
  .clp .clp__table-progress.is-dragging,
  .clp .clp__table-progress.is-dragging .clp__table-progress-fill {
    cursor: grabbing;
  }
}
