/* ==========================================================================
   Distributor Partnership page — /distributor-partnership/
   Compact editorial layout (v2.7.2): the Hero is the only image on the page;
   every other section is a numbered typographic grid. Content is unchanged —
   length is reduced by spreading rows into two columns and thinning vertical
   padding, not by shrinking type into an unreadable mass.
   Uses the site's existing variables. Logical properties keep Arabic RTL
   mirrored. Loaded only by this page; shared sheets are untouched.
   ========================================================================== */

/* Fixed header would otherwise cover anchor targets. */
main [id] { scroll-margin-top: calc(var(--navh) + 16px); }

/* Clear "you are here" state for the Partners nav item. */
.nav-links > a[aria-current="page"],
.nav-item > a[aria-current="page"] { color: var(--amber); }
.nav-links > a[aria-current="page"]::after,
.nav-item > a[aria-current="page"]::after { width: 100%; }

/* ------------------------------------------------ COMPACT SECTION RHYTHM --- */
/* Overrides the site-wide .sec{padding:126px 0}. Scoped to <main> so the
   rest of the site keeps its original spacing. */
main .sec { padding-block: 28px; }
main .sec-head {
  grid-template-columns: 1fr 1fr; gap: 24px; align-items: end;
  margin-bottom: 18px;
}
main .sec-head h2 { font-size: clamp(24px, 2.3vw, 31px); margin-top: 7px; }
main .sec-head p {
  font-size: 12.5px; line-height: 1.6; padding-bottom: 2px; max-width: 52ch;
}
.d-sec-alt { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.d-note { margin-top: 18px; max-width: 92ch; font-size: 12.3px; line-height: 1.7; color: rgba(23,28,33,.62); }

/* ---------------------------------------------------------------- HERO --- */
.d-hero {
  position: relative; min-height: 380px; display: flex; align-items: center;
  background: #171C21; color: var(--ink); overflow: hidden;
}
.d-hero-bg { position: absolute; inset: 0; }
.d-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: brightness(1.32) saturate(1.08); }
/* v2.7.2: the dark wash is confined to the text side only. The right half
   fades to fully transparent so the partnership photo is clearly visible.
   No full-frame darkening layer any more. */
.d-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(23,28,33,.62) 0%,
    rgba(23,28,33,.50) 20%,
    rgba(23,28,33,.30) 38%,
    rgba(23,28,33,.10) 55%,
    rgba(23,28,33,0)   68%,
    rgba(23,28,33,0)   100%);
}
.d-hero-in {
  position: relative; z-index: 1;
  /* Full-bleed text block: the old 900px centred column plus a hard amber
     rule left a large empty near-black strip on the left of the Hero.
     Text now starts at the page's safe inset, so the left side carries the
     eyebrow / heading / lead / CTAs and the dark-to-photo fade reads as one
     continuous image instead of a cut-off block. */
  max-width: none; margin-inline: 0;
  padding: calc(var(--navh) + 24px) clamp(28px, 6vw, 90px) 30px;
  text-shadow: 0 1px 14px rgba(0,0,0,.82), 0 0 3px rgba(0,0,0,.55);
}
.d-hero .eyebrow { color: var(--amber); }
.d-hero .eyebrow::before { background: var(--amber); }
.d-hero h1 {
  font-size: clamp(30px, 3.2vw, 42px); line-height: 1.08;
  margin-top: 11px; max-width: 24ch; color: #fff;
}
.d-hero .lead {
  margin-top: 12px; max-width: 60ch; font-size: 14.5px;
  line-height: 1.62; color: rgba(246,243,237,.9); font-weight: 300;
}
.d-hero .hero-cta { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }
.d-hero .btn-ghost { border-color: rgba(246,243,237,.5); color: var(--ink); }
.d-hero .btn-ghost:hover { background: rgba(246,243,237,.12); }

/* ------------------------------------- NUMBERED TEXT GRID (core, 2 cols) --- */
/* Rows are side-by-side instead of stacked: 16 rows become 9. */
.d-list {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  column-gap: 44px; border-top: 1px solid var(--line);
}
.d-row, .d-row-plain {
  display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 14px;
  align-items: start; padding: 12px 0 14px;
  border-bottom: 1px solid var(--line);
  transition: background-color .25s ease;
}
.d-row:hover { background-color: rgba(240,130,30,.035); }
.d-row-no {
  font-family: 'Archivo', sans-serif; font-size: 21px; font-weight: 600;
  line-height: 1; letter-spacing: -.02em; color: var(--amber); padding-top: 2px;
}
.d-row-body { min-width: 0; }
.d-row-body h3 {
  font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 600;
  line-height: 1.32; letter-spacing: -.01em; margin-bottom: 4px;
}
.d-row-body p { font-size: 12.6px; line-height: 1.6; color: rgba(23,28,33,.72); }
.d-row-link {
  grid-column: 2; justify-self: start;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  margin-top: 9px; font-size: 12px; font-weight: 500; color: var(--amber-dk);
  border-bottom: 1px solid rgba(182,95,10,.35); padding-bottom: 3px;
}
.d-row-link:hover { color: var(--amber); border-bottom-color: var(--amber); }

/* ------------------------------------------------------- BENEFITS (6) --- */
.d-num-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-top: 1px solid var(--line); }
.d-num-item {
  display: flex; gap: 14px; padding: 14px 20px 14px 0;
  border-bottom: 1px solid var(--line);
}
.d-num-item:nth-child(3n+2),
.d-num-item:nth-child(3n+3) { border-inline-start: 1px solid var(--line); padding-inline-start: 22px; }
.d-num-item .d-no {
  font-family: 'Archivo', sans-serif; font-size: 18px; font-weight: 600;
  letter-spacing: 0; color: var(--amber); margin: 0; min-width: 32px; line-height: 1.2;
}
.d-num-item h3 { font-family: 'Archivo', sans-serif; font-size: 14px; font-weight: 600; line-height: 1.32; margin-bottom: 5px; }
.d-num-item p { font-size: 12.3px; line-height: 1.62; color: rgba(23,28,33,.7); }

.d-disclaimer {
  margin-top: 16px; padding: 14px 18px; background: var(--ink-3);
  border-inline-start: 3px solid var(--amber);
}
.d-disclaimer strong { display: block; font-size: 13px; margin-bottom: 5px; }
.d-disclaimer p { font-size: 12.3px; line-height: 1.7; color: rgba(23,28,33,.72); max-width: 110ch; }

/* --------------------------------------------------------- PROCESS (5) --- */
.d-steps { list-style: none; display: grid; grid-template-columns: repeat(5,1fr); gap: 0; counter-reset: dstep; }
.d-step { position: relative; padding: 0 16px 0 0; border-inline-start: 1px solid var(--line); padding-inline-start: 18px; }
.d-step:first-child { border-inline-start: 0; padding-inline-start: 0; }
.d-step::before {
  content: ''; position: absolute; top: 7px; inset-inline-start: -5px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--amber);
}
.d-step:first-child::before { inset-inline-start: 0; }
.d-step-no { display: block; font-size: 9.5px; letter-spacing: .2em; font-weight: 600; color: var(--amber); margin-bottom: 10px; }
.d-step h3 { font-family: 'Archivo', sans-serif; font-size: 14px; font-weight: 600; line-height: 1.32; margin-bottom: 6px; }
.d-step p { font-size: 12px; line-height: 1.62; color: rgba(23,28,33,.7); }

/* ------------------------------------------------------------ APPLICATION --- */
.d-apply { background: var(--ink-2); }
.d-apply-grid { display: grid; grid-template-columns: minmax(0,.68fr) minmax(0,1.32fr); gap: 36px; align-items: start; }
.d-apply-copy > p { font-size: 13.5px; line-height: 1.72; color: rgba(23,28,33,.78); }
.d-apply-copy .tick-list { margin-top: 16px; }
.d-apply-alt { margin-top: 18px; font-size: 12.5px; line-height: 1.7; color: rgba(23,28,33,.62); }
.d-apply-alt a { color: var(--amber-dk); border-bottom: 1px solid rgba(182,95,10,.35); }
.d-apply-alt a:hover { color: var(--amber); }
.d-apply-form .enquiry-form { width: 100%; padding: 18px 20px; }

.dist-form .dist-fieldset-label {
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  color: var(--grey); margin: 10px 0 6px; padding-bottom: 5px; border-bottom: 1px solid var(--line);
  grid-column: 1/-1;
}
.dist-form .fld-row, .dist-form .fld { box-sizing: border-box; }
.dist-form .fld { margin-bottom: 6px; }
.dist-form .fld label { font-size: 9.8px; margin-bottom: 3px; }
.dist-form .fld input, .dist-form .fld select, .dist-form .fld textarea {
  padding: 7px 10px; font-size: 12.2px; min-height: 34px;
}
.dist-form .fld textarea { min-height: 64px; }
.dist-form .hp { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.dist-form .enquiry-form .t { font-size: 15px; margin-bottom: 4px; }
.dist-form .enquiry-form .s { font-size: 11.5px; margin-bottom: 12px; }
.dist-form .form-foot { margin-top: 10px; }
.dist-form .consent { font-size: 11.5px; line-height: 1.55; margin: 3px 0 8px; }
.dist-form .consent a { color: var(--amber-dk); text-decoration: underline; }

/* --------------------------------------------------------------- PRIVACY --- */
main .d-privacy-sec { padding-block: 22px; background: var(--ink-3); border-top: 1px solid var(--line); }
.d-privacy-sec h2 { margin-bottom: 8px; font-size: 18px; }
.d-privacy-sec p { font-size: 12.3px; line-height: 1.72; color: rgba(23,28,33,.72); max-width: 110ch; }
.d-privacy-sec a { color: var(--amber-dk); text-decoration: underline; }

/* ------------------------------------------------------------ FINAL CTA --- */
main .d-cta { padding-block: 38px; background: #171C21; border-top: 1px solid rgba(255,255,255,.1); }
.d-cta .cta-in { gap: 36px; }
.d-cta .eyebrow { color: var(--amber); }
.d-cta .eyebrow::before { background: var(--amber); }
.d-cta h2 { color: #fff; }
.d-cta .cta-in > div > p { color: rgba(255,255,255,.72); }
.d-cta .btn-line { border-color: rgba(255,255,255,.45); color: #fff; }
.d-cta .btn-line:hover { border-color: var(--amber); color: var(--amber); }
.d-cta .cta-in h2 { font-size: clamp(26px, 2.8vw, 36px); margin-top: 8px; }
.d-cta .cta-in p { max-width: 62ch; margin-top: 8px; font-size: 13.5px; line-height: 1.7; }

/* -------------------------------------------------------------------- FAQ --- */
.faq-sec .faq-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 36px; }
.faq-sec .faq-item[open] { grid-column: 1 / -1; }
.faq-sec .faq-item summary { padding: 11px 30px 11px 0; font-size: 13.5px; }
.faq-sec .faq-item summary::after { top: 9px; font-size: 1.1rem; }
.faq-sec .faq-item p { padding: 0 40px 12px 0; font-size: 12.8px; line-height: 1.7; }

/* ------------------------------------------------------------ RESPONSIVE --- */
@media(max-width:1200px){
  .d-list { column-gap: 32px; }
  .d-apply-grid { gap: 28px; }
}
@media(max-width:1000px){
  .d-num-grid { grid-template-columns: repeat(2,1fr); }
  .d-num-item:nth-child(3n+2), .d-num-item:nth-child(3n+3) { border-inline-start: 0; padding-inline-start: 0; }
  .d-num-item:nth-child(2n) { border-inline-start: 1px solid var(--line); padding-inline-start: 22px; }
  .d-steps { grid-template-columns: repeat(3,1fr); gap: 18px 0; }
  .d-step { border-inline-start: 0; padding-inline-start: 0; }
  .d-step::before { display: none; }
  .d-apply-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media(max-width:680px){
  main .sec { padding-block: 26px; }
  main .sec-head { grid-template-columns: 1fr; gap: 9px; margin-bottom: 18px; }
  main .sec-head h2 { font-size: 26px; margin-top: 6px; }
  main .sec-head p { font-size: 12.5px; }

  .d-hero { min-height: auto; }
  .d-hero-in { padding-top: calc(var(--navh) + 30px); padding-bottom: 36px; padding-inline-start: 18px; }
  /* Mobile: dark at the top where the type sits, photo shows through below. */
  .d-hero-bg::after {
    background: linear-gradient(180deg,
      rgba(23,28,33,.58) 0%, rgba(23,28,33,.26) 50%, rgba(23,28,33,0) 100%);
  }
  .d-hero h1 { font-size: 30px; max-width: none; }
  .d-hero .lead { font-size: 13.5px; margin-top: 12px; }
  .d-hero .hero-cta { margin-top: 18px; flex-direction: column; align-items: flex-start; }
  .d-hero .btn-ghost { background: rgba(23,28,33,.35); border-color: rgba(246,243,237,.62); }

  .d-list { grid-template-columns: 1fr; column-gap: 0; }
  .d-row, .d-row-plain { grid-template-columns: 34px minmax(0,1fr); gap: 11px; padding: 11px 0 13px; }
  .d-row-no { font-size: 18px; }
  .d-row-body h3 { font-size: 15px; margin-bottom: 4px; }
  .d-row-body p { font-size: 12.5px; line-height: 1.6; }
  .d-row-link { grid-column: 2; }

  .d-num-grid { grid-template-columns: 1fr; }
  .d-num-item, .d-num-item:nth-child(2n) { border-inline-start: 0; padding-inline-start: 0; padding-inline-end: 0; }
  .d-num-item { padding-block: 14px; }

  .d-steps { grid-template-columns: 1fr; gap: 0; counter-reset: dstep; }
  .d-step { padding: 14px 0 14px 20px; border-inline-start: 2px solid var(--line); }
  .d-step:first-child { padding-inline-start: 20px; }
  .d-step::before { display: block; top: 19px; inset-inline-start: -6px; width: 10px; height: 10px; }
  .d-step:first-child::before { inset-inline-start: -6px; }

  .d-disclaimer { padding: 16px; }
  .faq-sec .faq-list { grid-template-columns: 1fr; column-gap: 0; }
  .faq-sec .faq-item[open] { grid-column: auto; }
  .faq-sec .faq-item summary { padding: 10px 26px 10px 0; font-size: 13.5px; }
  .faq-sec .faq-item summary::after { top: 10px; }

  /* Keep two columns on small screens — a single column makes the form ~2x
     taller. Three-field rows fall to two columns automatically. */
  .dist-form .fld-row, .dist-form .fld-row-3 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dist-form .fld input, .dist-form .fld select, .dist-form .fld textarea { padding: 7px 9px; font-size: 12px; min-height: 32px; }
  .dist-form .fld label { font-size: 9.5px; }
  .dist-form .fld textarea { min-height: 60px; }
  .d-apply-form .enquiry-form { padding: 18px 16px; }
  main .d-cta { padding-block: 34px; }
  .d-cta .cta-in h2 { font-size: 28px; }
}
