/* Affiliate Program page (page-affiliates.php, 2026-10-19).
   Navy hero, two commission tiers (Elite in gold), offers, steps, questions,
   then the application form, which reuses .enquiry from demo.css. */

.aff-wrap { max-width: 72rem; margin: 0 auto; }
.aff-wrap--narrow { max-width: 48rem; }

.aff-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin: 0 0 1rem;
}
.aff-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-section);
  letter-spacing: var(--track-tile);
  line-height: 1.1;
  color: var(--text-primary);
  margin: 0 0 1rem;
}
.aff-lead {
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 0 0 2.5rem;
}

/* Hero */
.aff-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) var(--tile-pad-x) clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--gold-glow), transparent 60%),
    radial-gradient(40rem 26rem at 0% 110%, hsla(222, 60%, 40%, 0.35), transparent 65%),
    var(--bg-deeper);
  color: var(--text-on-dark);
}
.aff-hero__inner { max-width: 60rem; margin: 0 auto; }
.aff-hero__h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.4rem + 4vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: #fff;
}
.aff-hero__sub {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  max-width: 44rem;
  margin: 0 0 2rem;
}
.aff-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.aff-link {
  color: var(--text-on-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 2px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.aff-link:hover { color: var(--gold-light); border-color: var(--gold-light); }
.aff-link:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; border-radius: 2px; }

/* Tiers */
.aff-tiers { padding: var(--tile-pad-y) var(--tile-pad-x); background: var(--bg-base); }
.aff-tiers__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.aff-tier {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px hsla(222, 60%, 14%, 0.06), 0 12px 32px hsla(222, 60%, 14%, 0.06);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.aff-tier:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 6px hsla(222, 60%, 14%, 0.08), 0 20px 44px hsla(222, 60%, 14%, 0.12);
}
.aff-tier--elite {
  background: linear-gradient(160deg, var(--bg-dark), var(--bg-deeper));
  border-color: var(--gold);
  color: var(--text-on-dark);
}
.aff-tier--elite::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 4px var(--gold-glow);
  pointer-events: none;
}
.aff-tier__name {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-text);
  margin: 0 0 0.5rem;
}
.aff-tier--elite .aff-tier__name { color: var(--gold-light); }
.aff-tier__rate {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
}
.aff-tier__rate span {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.2rem + 3vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-right: 0.25rem;
}
.aff-tier--elite .aff-tier__rate { color: var(--text-on-dark-muted); }
.aff-tier--elite .aff-tier__rate span { color: var(--gold-light); }
.aff-tier__who { font-size: 1rem; line-height: 1.6; color: var(--text-secondary); margin: 0 0 1.25rem; }
.aff-tier--elite .aff-tier__who { color: var(--text-on-dark-muted); }
.aff-tier__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.aff-tier__list li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.55;
  color: var(--text-primary);
}
.aff-tier--elite .aff-tier__list li { color: var(--text-on-dark); }
.aff-tier__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.95rem;
  height: 0.55rem;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.aff-tier--elite .aff-tier__list li::before { border-color: var(--gold-light); }
.aff-note { margin: 1.5rem 0 0; font-size: 0.9375rem; line-height: 1.6; color: var(--text-secondary); max-width: 64ch; }

/* What you'll offer */
.aff-sell { padding: var(--tile-pad-y) var(--tile-pad-x); background: var(--bg-white); border-top: 1px solid var(--border-light); }
.aff-sell__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.aff-card {
  padding: 1.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-card);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.aff-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px hsla(222, 60%, 14%, 0.09); }
.aff-card h3 { font-size: 1.125rem; line-height: 1.3; color: var(--text-primary); margin: 0 0 0.5rem; }
.aff-card p { font-size: 0.9375rem; line-height: 1.6; color: var(--text-secondary); margin: 0; }
.aff-card--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.aff-card--photo .aff-card__img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; transition: transform var(--dur-slow, 0.5s) var(--ease-out); }
.aff-card--photo:hover .aff-card__img { transform: scale(1.04); }
.aff-card--photo .aff-card__body { padding: 1.25rem 1.5rem 1.5rem; }

/* How it works */
.aff-how { padding: var(--tile-pad-y) var(--tile-pad-x); background: var(--bg-dark); color: var(--text-on-dark); }
.aff-how .aff-h { color: #fff; }
.aff-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: none;
}
.aff-step {
  padding: 1.5rem;
  background: var(--bg-card-dk);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
}
.aff-step__n {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}
.aff-step h3 { font-size: 1.125rem; color: #fff; margin: 0 0 0.5rem; }
.aff-step p { font-size: 0.9375rem; line-height: 1.6; color: var(--text-on-dark-muted); margin: 0; }
.aff-how .aff-who { color: var(--text-on-dark-muted); margin-bottom: 0; }

/* Questions */
.aff-faq { padding: var(--tile-pad-y) var(--tile-pad-x); background: var(--bg-base); }
.aff-q {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background: var(--bg-white);
  margin-bottom: 0.75rem;
  transition: border-color var(--dur-fast);
}
.aff-q[open] { border-color: var(--border-gold); }
.aff-q summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
}
.aff-q summary::-webkit-details-marker { display: none; }
.aff-q summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform var(--dur-fast);
}
.aff-q[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.aff-q summary:hover { color: var(--gold-text); }
.aff-q summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--radius-card); }
.aff-q p { padding: 0 1.25rem 1.25rem; margin: 0; line-height: 1.7; color: var(--text-secondary); }

/* Application form: .enquiry from demo.css, centred and narrower here. */
.aff-apply .enquiry__inner { max-width: 44rem; }

@media (max-width: 1024px) {
  .aff-sell__grid, .aff-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .aff-tiers__grid, .aff-sell__grid, .aff-steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .aff-tier, .aff-card { transition: none; }
  .aff-tier:hover, .aff-card:hover { transform: none; }
}
