/* ==========================================================================
   QR Agri & Food Consulting — Category page (BRCGS certified courses)

   Loaded after style.css and responsive.css. Uses the same tokens, type
   scale and shapes as the home and About pages; only the Category-specific
   compositions live here. Class prefix: .cat-

   1. Page banner
   2. Standards — the six BRCGS course cards
   3. Register — lead copy beside the enquiry form
   4. Responsive
   ========================================================================== */


/* ==========================================================================
   1. Page banner
   ========================================================================== */

.cat-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--g-800);
}

.cat-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cat-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
}

.cat-hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(78% 120% at 12% 100%, rgba(34, 31, 25, .74), transparent 68%),
    linear-gradient(180deg, rgba(34, 31, 25, .62) 0%, rgba(34, 31, 25, .40) 42%, rgba(34, 31, 25, .78) 100%);
}

.cat-hero-inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 188px 40px 78px;
}

.cat-crumb {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(253, 251, 245, .78);
  margin-bottom: 22px;
}

.cat-crumb a {
  color: rgba(253, 251, 245, .78);
}

.cat-crumb a:hover {
  color: var(--white);
}

.cat-crumb-sep {
  width: 18px;
  height: 1px;
  background: var(--g-300);
  opacity: .7;
}

.cat-crumb-here {
  color: var(--g-300);
}

.cat-hero-title {
  font-size: clamp(40px, 5vw, 70px);
  color: var(--white);
  max-width: 14em;
}

.cat-hero-rule {
  width: 84px;
  height: 3px;
  border-radius: 999px;
  background: var(--red);
  margin-top: 26px;
}


/* ==========================================================================
   2. Standards — the six BRCGS course cards
   ========================================================================== */

.cat-standards {
  max-width: 1320px;
  margin: 0 auto;
  padding: 88px 40px;
}

.cat-standards-head {
  margin-bottom: 44px;
}

.cat-standards-head .section-title {
  max-width: 16em;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cat-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.cat-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms cubic-bezier(.2, .7, .2, 1);
}

.cat-card:hover .cat-card-media img {
  transform: scale(1.05);
}

.cat-card-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(253, 251, 245, .94);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #2f3d1f;
}

.cat-card-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--g-600);
}

.cat-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 28px 28px;
}

.cat-card-title {
  font-size: 21px;
  margin-bottom: 10px;
}

.cat-card-text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.cat-card-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.cat-card-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--b-600);
}

.cat-card-go svg {
  transition: transform 300ms cubic-bezier(.2, .7, .2, 1);
}

.cat-card:hover .cat-card-go svg {
  transform: translateX(4px);
}

.cat-card-tag {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ==========================================================================
   3. Register — lead copy beside the enquiry form
   ========================================================================== */

.cat-register {
  position: relative;
  isolation: isolate;
  background: var(--tint);
  border-top: 1px solid var(--line);
}

.cat-register-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 88px 40px;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 68px;
  align-items: start;
}

.cat-register-copy {
  position: sticky;
  top: 116px;
}

.cat-register-title {
  font-size: clamp(30px, 3vw, 44px);
  max-width: 12em;
}

.cat-register-lede {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
  margin-top: 18px;
  max-width: 34em;
}

.cat-register-facts {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

.cat-form-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.cat-form-actions {
  margin-top: 26px;
}

.cat-submit {
  border: 0;
  cursor: pointer;
  font-size: 15px;
}


/* ==========================================================================
   4. Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .cat-hero-inner {
    padding: 164px 32px 66px;
  }

  .cat-standards,
  .cat-register-inner {
    padding: 74px 32px;
  }

  .cat-register-inner {
    gap: 48px;
  }
}

@media (max-width: 1080px) {
  .cat-register-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cat-register-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .cat-hero-inner {
    padding: 132px 18px 52px;
  }

  .cat-standards,
  .cat-register-inner {
    padding: 56px 18px;
  }

  .cat-standards-head {
    margin-bottom: 32px;
  }

  .cat-card-body {
    padding: 22px 22px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .cat-card-media img,
  .cat-card-go svg {
    transition: none !important;
  }
}


/* ==========================================================================
   5. Per-image crop bias

   The six category photographs have different native ratios and subject
   placement; the card box is a fixed 16/10, so a couple of them read better
   cropped from the top rather than the centre.
   ========================================================================== */

.cat-card-media img[src$="category/3.webp"],
.cat-card-media img[src$="category/5.webp"] {
  object-position: 50% 35%;
}
