/* Purpose: Download Catalogue page (Figma 66:3817). Hero reuses .about-hero (about.css).
   This file styles the "Latest Product Catalogues" grid + the navy trade CTA band.
   Mobile-first; desktop matches the Figma 1440 frame. */

/* Hero subtext — Figma renders this capitalized (Title Case). Scoped to this page so the
   shared About/Contact heroes keep their sentence-case subtext. */
.dlcat-hero .about-hero__sub { text-transform: capitalize; }

/* ============================================================
   Latest Product Catalogues
   ============================================================ */
.dlcat {
  background: #fafaf6;
  padding-block: var(--space-12);          /* 48px mobile */
}
@media (min-width: 1024px) { .dlcat { padding-block: var(--space-20); } }  /* 80px — Figma */
.dlcat__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}

/* --- Section header --- */
.dlcat__head {
  width: min(657px, 100%);                 /* fixed column (else nested flex shrink-wraps) */
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.dlcat__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-eyebrow);        /* Cinzel */
  font-weight: var(--weight-regular);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #2c2c2a;
}
.dlcat__eyebrow-rule {
  width: 44px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.5;
}
.dlcat__title {
  font-family: var(--font-display);        /* Cormorant */
  font-weight: var(--weight-regular);
  font-size: clamp(2rem, 5vw, 54px);
  line-height: 1.18;
  color: var(--color-primary);
  text-transform: capitalize;
  margin: 0;
}
.dlcat__title-accent { color: var(--color-gold); }
.dlcat__sub {
  font-family: var(--font-body);           /* Jost */
  font-size: 18px;
  line-height: 26px;
  color: #7a7870;
  margin: 0;
  align-self: stretch;                     /* fill the 657px header (flex centering else shrink-wraps) */
  text-wrap: balance;                      /* even 2 lines — no single-word widow */
}

/* --- Grid / carousel ---
   Below 1024: horizontal drag/swipe carousel (shares .js-carousel drag logic with the
   home bestsellers). 1024+: static 3-column grid. */
.dlcat__grid {
  display: flex;
  gap: var(--space-5);
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.dlcat__grid::-webkit-scrollbar { display: none; }
.dlcat__grid.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.dlcat__grid > .dlcat-card {
  scroll-snap-align: start;
  flex: 0 0 82%;              /* one card + peek on mobile */
}
@media (min-width: 600px)  { .dlcat__grid > .dlcat-card { flex: 0 0 48%; } }   /* two + peek */
@media (min-width: 768px)  { .dlcat__grid > .dlcat-card { flex: 0 0 calc((100% - var(--space-5)) / 2); } }

@media (min-width: 1024px) {
  .dlcat__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }
  .dlcat__grid > .dlcat-card { flex: none; }
  .dlcat__grid > .is-clone { display: none; }   /* hide loop clones in grid mode */
}

/* --- Card --- */
.dlcat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  min-width: 0;              /* flex item — allow shrink, no overflow */
}

/* Image panel with title overlay */
.dlcat-card__media {
  position: relative;
  height: 420px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--space-8) var(--space-8);
}
.dlcat-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dlcat-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,
    rgba(11, 30, 56, 0.88) 0%,
    rgba(11, 30, 56, 0.22) 55%,
    rgba(11, 30, 56, 0.05) 100%);
}
.dlcat-card__media-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.dlcat-card__eyebrow {
  font-family: var(--font-eyebrow);        /* Cinzel */
  font-weight: var(--weight-regular);
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  margin: 0;
}
.dlcat-card__title {
  font-family: var(--font-display);        /* Cormorant */
  font-weight: var(--weight-regular);
  font-size: 24px;
  line-height: 32px;
  color: #fff;
  margin: 0;
}

/* Body */
.dlcat-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  border: 1px solid #e7e8eb;
  border-top: 0;
}
.dlcat-card__meta {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid #dddfe2;
}
.dlcat-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 20px;
  color: #7a7870;
}
.dlcat-card__meta-icon { flex: 0 0 auto; color: #7a7870; }
.dlcat-card__desc {
  flex: 1;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 24px;
  color: #7a7870;
  margin: 0;
}
.dlcat-card__actions {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}
.dlcat-card__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px;
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: 14px;
  line-height: 22px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}
.dlcat-card__btn--download {
  background: var(--color-primary);
  color: #fff;
}
.dlcat-card__btn--download:hover { background: var(--color-gold); color: var(--color-primary); }
.dlcat-card__btn--preview {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.dlcat-card__btn--preview:hover { background: var(--color-primary); color: #fff; }

/* ============================================================
   Trade CTA band
   ============================================================ */
.dlcat-trade {
  background: #fafaf6;
  padding-block: 0 var(--space-16);
}
/* Inset navy panel (Figma: 1180-wide box with cream gutters, 80/130 internal padding) */
.dlcat-trade__box {
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-8);
  padding: var(--space-10) var(--space-6);
}
@media (min-width: 768px)  { .dlcat-trade__box { padding: var(--space-12) var(--space-10); } }
@media (min-width: 1024px) { .dlcat-trade__box { padding: 80px clamp(40px, 9vw, 130px); } }
.dlcat-trade__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 700px;
}
.dlcat-trade__eyebrow {
  font-family: var(--font-eyebrow);        /* Cinzel */
  font-weight: var(--weight-regular);
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0;
}
.dlcat-trade__title {
  font-family: var(--font-display);        /* Cormorant */
  font-weight: var(--weight-regular);
  font-size: clamp(1.75rem, 4vw, 38px);
  line-height: 1.15;
  color: #fff;
  text-transform: capitalize;
  margin: 0;
}
.dlcat-trade__sub {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 20px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}
.dlcat-trade__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px;
  background: var(--color-gold);
  color: #fff;
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: 14px;
  line-height: 22px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}
.dlcat-trade__btn:hover { background: var(--color-gold-light); color: var(--color-primary); }

/* Desktop: trade band = copy left, button right; title on one line (Figma) */
@media (min-width: 1024px) {
  .dlcat-trade__box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-12);
  }
  .dlcat-trade__title { white-space: nowrap; }
}
