/* ============================================================
   RA FABRICS — CATALOGUE PAGE STYLES
   catalogue.css
   ============================================================ */

/* ── NAV ACTIVE STATE ── */
.nav-links a.nav-active {
  color: var(--gold) !important;
}
.nav-links a.nav-active::after {
  width: 100% !important;
}

/* ── CATALOGUE HERO ── */
.cat-hero {
  height: 68vh;
  min-height: 480px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  background: var(--dark);
}

.cat-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cat-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.28) saturate(0.6);
  transform: scale(1.04);
  animation: heroZoom 14s ease-in-out infinite alternate;
}
.cat-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(18, 18, 20, 0.92) 0%,
    rgba(18, 18, 20, 0.4) 60%,
    rgba(18, 18, 20, 0.8) 100%
  );
}
.cat-hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 8vw, 100px) clamp(24px, 8vw, 120px);
  max-width: 800px;
}
.cat-hero-label {
  font-size: 0.56rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  animation: fadeUp 0.7s ease 0.3s both;
}
.cat-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 0.92;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease 0.5s both;
}
.cat-hero-title em {
  font-style: italic;
  color: var(--gold);
}
.cat-hero-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 20px;
  animation: growBar2 0.8s ease 0.8s both;
}
@keyframes growBar2 { from { width: 0; } to { width: 60px; } }
.cat-hero-sub {
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--lighter);
  letter-spacing: 0.04em;
  max-width: 480px;
  margin-bottom: 36px;
  animation: fadeUp 0.8s ease 0.9s both;
}
.cat-hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  animation: fadeUp 0.8s ease 1.1s both;
}
.cat-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cat-stat-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}
.cat-stat-l {
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--warm);
}
.cat-stat-div {
  width: 1px;
  height: 40px;
  background: rgba(201, 169, 110, 0.3);
}

.cat-hero-scroll {
  position: absolute;
  bottom: 32px;
  right: clamp(24px, 5vw, 80px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cat-hero-scroll span {
  font-size: 0.52rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--warm);
  writing-mode: vertical-rl;
}

/* ── FILTER BAR ── */
.cat-filter-bar {
  position: sticky;
  top: 76px;
  z-index: 500;
  background: rgba(18, 18, 20, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  transition: box-shadow 0.3s;
}
.cat-filter-bar.stuck {
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}
.cat-filter-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-filter-inner::-webkit-scrollbar { display: none; }

.cf-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--warm);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s;
  position: relative;
}
.cf-tab:hover {
  color: var(--gold2);
}
.cf-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.cf-icon {
  font-size: 1rem;
}
.cf-count {
  background: rgba(201, 169, 110, 0.15);
  color: var(--gold2);
  font-size: 0.6rem;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.cf-tab.active .cf-count {
  background: rgba(201, 169, 110, 0.25);
  color: var(--gold);
}

/* ── MAIN CATALOGUE AREA ── */
.cat-main {
  background: var(--dark);
  min-height: 60vh;
  padding-bottom: 80px;
}

/* ── SECTION HEADERS ── */
.cat-section-head {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px clamp(20px, 5vw, 80px) 40px;
  transition: opacity 0.4s, transform 0.4s;
}
.cat-section-head.hidden-cat {
  display: none;
}
.csh-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(201, 169, 110, 0.5) 0%,
    rgba(201, 169, 110, 0.08) 100%
  );
  margin-bottom: 32px;
}
.csh-content {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.csh-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  font-weight: 300;
  color: rgba(201, 169, 110, 0.15);
  line-height: 0.85;
  flex-shrink: 0;
  user-select: none;
}
.csh-label {
  font-size: 0.54rem;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.csh-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
}
.csh-title em {
  font-style: italic;
  color: var(--gold2);
}
.csh-desc {
  font-size: 0.78rem;
  line-height: 1.85;
  color: var(--warm);
  max-width: 380px;
  letter-spacing: 0.02em;
  align-self: flex-end;
  margin-left: auto;
}

/* ── CATALOGUE MASONRY/GRID ── */
.cat-masonry {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px) 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  transition: opacity 0.35s, transform 0.35s;
}
.cat-masonry.hidden-cat {
  display: none;
}

/* ── CATALOGUE BOOK CARD ── */
.cb {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 169, 110, 0.12);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.38s,
              border-color 0.38s;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: cardIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cb:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(201, 169, 110, 0.4),
    0 0 30px rgba(201, 169, 110, 0.06);
  border-color: rgba(201, 169, 110, 0.4);
}
.cb.featured {
  grid-column: span 2;
}
@media (max-width: 640px) {
  .cb.featured { grid-column: span 1; }
}

/* ── CARD MEDIA ── */
.cb-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--dark2);
  flex-shrink: 0;
}
.cb.featured .cb-media {
  aspect-ratio: 16/7;
}
.cb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.cb:hover .cb-media img {
  transform: scale(1.08);
}

/* ── CARD HOVER OVERLAY ── */
.cb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 20, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}
.cb:hover .cb-overlay {
  opacity: 1;
}
.cb-overlay-icon {
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  transform: scale(0.7);
  transition: transform 0.3s ease 0.05s;
}
.cb:hover .cb-overlay-icon {
  transform: scale(1);
}
.cb-overlay-text {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--white);
  transform: translateY(6px);
  transition: transform 0.3s ease 0.05s;
}
.cb:hover .cb-overlay-text {
  transform: translateY(0);
}

/* ── CARD BADGES ── */
.cb-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 2;
}
.cb-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(24, 24, 27, 0.85);
  color: var(--lighter);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
}
.cb-badge-gold {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
}
.cb-badge-new {
  background: linear-gradient(135deg, #c9a96e, #e2c99a);
  color: #111;
  border-color: transparent;
  animation: newPulse 2s ease infinite;
}
@keyframes newPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0); }
  50%       { box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.2); }
}

/* ── CARD BODY ── */
.cb-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.025) 0%,
    rgba(255,255,255,0.01) 100%
  );
}
.cb-meta {
  font-size: 0.56rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.cb-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.cb-spec {
  font-size: 0.66rem;
  color: rgba(196, 196, 206, 0.5);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.cb-dot {
  color: rgba(201, 169, 110, 0.4);
}
.cb-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.cb-btn-primary {
  flex: 1;
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 110, 0.35);
  padding: 9px 14px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.25s;
}
.cb-btn-primary:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
.cb-btn-wa {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: #25D366;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s;
}
.cb-btn-wa:hover {
  background: #25D366;
  color: white;
  border-color: #25D366;
}

/* ── FILTER ANIMATION ── */
.cat-masonry.filtering {
  opacity: 0;
  transform: translateY(10px);
}
.cat-section-head.filtering {
  opacity: 0;
}

/* ── BOTTOM CTA STRIP ── */
.cat-cta-strip {
  max-width: 1280px;
  margin: 72px auto 0;
  padding: 0 clamp(20px, 5vw, 80px);
}
.cat-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 48px 60px;
  background: linear-gradient(
    135deg,
    rgba(201, 169, 110, 0.08) 0%,
    rgba(201, 169, 110, 0.03) 100%
  );
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 16px;
  flex-wrap: wrap;
}
.cat-cta-label {
  font-size: 0.56rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.cat-cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
}
.cat-cta-btns {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.cat-cta-wa {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: white;
  padding: 13px 28px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}
.cat-cta-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}
.cat-cta-call {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(201, 169, 110, 0.4);
  color: var(--gold);
  padding: 13px 28px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.3s;
}
.cat-cta-call:hover {
  background: var(--gold);
  color: var(--dark);
}

/* ── SCROLL REVEAL ── */
.cb.reveal-card {
  opacity: 0;
  transform: translateY(28px);
}
.cb.reveal-card.vis {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .cat-masonry {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
  }
}
@media (max-width: 600px) {
  .cat-hero { height: 55vh; }
  .cat-hero-stats { gap: 18px; }
  .csh-content { gap: 16px; }
  .csh-num { font-size: 3rem; }
  .csh-desc { max-width: 100%; margin-left: 0; }
  .cat-masonry {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .cb-name { font-size: 1.2rem; }
  .cat-cta-inner { padding: 32px 28px; }
  .cf-tab { padding: 14px 14px; font-size: 0.62rem; }
}
@media (max-width: 380px) {
  .cat-masonry { grid-template-columns: 1fr; }
}
