/*
 * partners.css — Agency Partner page (partners.html)
 * Page-specific styles only. Reuses the shared system: light blueprint-grid
 * hero (like about/service/insights), .btn, .eyebrow, .about-section-head,
 * .about-why / .about-dash, .svc-packages / .svc-pkg, .svc-faqs / .svc-faq,
 * .about-cta, and the .contact__* form fields. Navy monochrome tokens only.
 */

/* ═══ HERO (light — blueprint grid, matches the other inner heroes) ═════ */
.pt-hero {
  position: relative;
  margin-top: calc(-1 * var(--navbar-height));
  padding-top: calc(var(--navbar-height) + var(--space-16));
  padding-bottom: var(--space-20);
  background: linear-gradient(180deg, #ffffff 0%, #eef1f8 100%);
  overflow: hidden;
}
.pt-hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.pt-hero__orb { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.pt-hero__orb--1 { width: 520px; height: 520px; background: rgba(21, 67, 120, 0.10); top: -170px; right: -120px; }
.pt-hero__orb--2 { width: 420px; height: 420px; background: rgba(21, 67, 120, 0.07); bottom: -180px; left: -100px; }
.pt-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right,  rgba(21, 67, 120, 0.085) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21, 67, 120, 0.085) 1px, transparent 1px),
    linear-gradient(to right,  rgba(21, 67, 120, 0.038) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21, 67, 120, 0.038) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 92% 80% at 50% 34%, #000 20%, transparent 100%);
          mask-image: radial-gradient(ellipse 92% 80% at 50% 34%, #000 20%, transparent 100%);
}
.pt-hero__layout {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center;
}
.pt-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.2vw, 4rem); font-weight: 800; line-height: 1.04;
  letter-spacing: -0.035em; color: var(--color-brand-900, #0b2543); margin: var(--space-5) 0 var(--space-5);
}
.pt-hero__serif {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic; font-weight: 400; letter-spacing: normal;
  color: var(--color-text-accent, #154378);
}
.pt-hero__sub { font-size: var(--text-body-lg); color: rgba(21, 34, 66, 0.66); line-height: 1.7; max-width: 46ch; margin: 0; }
.pt-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.pt-hero__actions .btn { display: inline-flex; align-items: center; gap: var(--space-2); }
/* keep the hero light in dark theme too, like the other inner heroes */
:root[data-theme="dark"] .pt-hero__headline { color: #0b2543; }
:root[data-theme="dark"] .pt-hero__sub { color: rgba(21, 34, 66, 0.66); }

/* Floating capability cards */
.pt-hero__cards { position: relative; min-height: 420px; will-change: transform; }
.pt-fcard {
  position: absolute; display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-5); white-space: nowrap;
  font-size: var(--text-body-sm); font-weight: 700; color: var(--color-text-primary);
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-full); box-shadow: 0 16px 36px rgba(21, 67, 120, 0.12);
}
.pt-fcard__tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  font-size: 12px; font-weight: 800; color: #fff; background: var(--color-brand-500);
}
/* Scatter + stagger the float so they breathe out of phase */
.pt-fcard--1 { top: 4%;  left: 6%;  animation-delay: 0s;   }
.pt-fcard--2 { top: 20%; right: 2%; animation-delay: .6s;  }
.pt-fcard--3 { top: 38%; left: 0;   animation-delay: 1.2s; }
.pt-fcard--4 { top: 54%; right: 6%; animation-delay: .3s;  }
.pt-fcard--5 { top: 72%; left: 10%; animation-delay: .9s;  }
.pt-fcard--6 { top: 88%; right: 12%; animation-delay: 1.5s; }

/* ═══ TRUSTED SERVICES STRIP (reuses .marquee) ══════════════════════════ */
.pt-strip { background: var(--color-bg); padding: var(--space-10) 0; border-bottom: 1px solid var(--color-border); }
.pt-strip__item {
  display: inline-flex; align-items: center; gap: var(--space-2-5);
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-h5);
  letter-spacing: -0.01em; color: var(--color-text-tertiary);
}
.pt-strip__item svg { color: var(--color-brand-500); }

/* ═══ SECTION BASE + rhythm ═════════════════════════════════════════════ */
.pt-section { padding: var(--space-24) 0; }
.pt-who     { background: var(--color-bg-subtle); }
.pt-flow-sec { background: var(--color-bg); }
.pt-comm-sec { background: var(--color-bg-subtle); }
.pt-apply    { background: var(--color-bg-subtle); }

/* ═══ WHO CAN PARTNER — elegant bordered cards ══════════════════════════ */
.pt-who__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.pt-who__card {
  display: flex; flex-direction: column; gap: var(--space-4);
  padding: var(--space-7) var(--space-6);
  font-family: var(--font-display); font-size: var(--text-h6); font-weight: 700;
  letter-spacing: -0.01em; color: var(--color-text-primary);
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-2xl);
  transition: transform 320ms var(--ease-out), box-shadow 320ms ease, border-color 320ms ease;
}
.pt-who__card:hover { transform: translateY(-6px); border-color: rgba(21, 67, 120, 0.24); box-shadow: 0 20px 44px rgba(21, 67, 120, 0.10); }
.pt-who__ic {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--radius-lg); color: var(--color-brand-600);
  background: rgba(21, 67, 120, 0.07); border: 1px solid rgba(21, 67, 120, 0.12);
  transition: transform 300ms var(--ease-out), background 300ms ease, color 300ms ease;
}
.pt-who__card:hover .pt-who__ic { transform: rotate(-6deg) scale(1.06); background: var(--color-brand-500); color: #fff; }

/* ═══ HOW PARTNERSHIP WORKS — horizontal thin-line timeline ═════════════ */
.pt-flow {
  list-style: none; margin: var(--space-16) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); position: relative;
}
/* thin connecting line through the node centres */
.pt-flow::before {
  content: ''; position: absolute; top: 34px; left: 8%; right: 8%; height: 1px;
  background: var(--color-border-strong);
}
.pt-flow__step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-4); position: relative; z-index: 1; }
.pt-flow__node {
  display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px;
  border-radius: 50%; background: var(--color-bg); border: 1px solid var(--color-border-strong);
  box-shadow: 0 8px 22px rgba(21, 67, 120, 0.06);
  transition: transform 300ms var(--ease-spring), border-color 300ms ease, box-shadow 300ms ease;
}
.pt-flow__step:hover .pt-flow__node { transform: translateY(-4px) scale(1.05); border-color: var(--color-brand-500); box-shadow: 0 14px 30px rgba(21, 67, 120, 0.14); }
.pt-flow__num { font-family: var(--font-display); font-size: var(--text-h5); font-weight: 800; color: var(--color-brand-500); }
.pt-flow__label { font-size: var(--text-body-sm); font-weight: 700; color: var(--color-text-primary); }

/* ═══ COMMISSION — elegant metric cards ═════════════════════════════════ */
.pt-comm { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.pt-comm-card {
  display: flex; flex-direction: column; gap: var(--space-2); text-align: center;
  padding: var(--space-8) var(--space-6);
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-2xl);
  transition: transform 320ms var(--ease-out), box-shadow 320ms ease, border-color 320ms ease;
}
.pt-comm-card:hover { transform: translateY(-6px); border-color: rgba(21, 67, 120, 0.24); box-shadow: 0 22px 48px rgba(21, 67, 120, 0.12); }
.pt-comm-card__project { font-size: var(--text-body-sm); font-weight: 600; letter-spacing: 0.02em; color: var(--color-text-tertiary); text-transform: uppercase; }
.pt-comm-card__earn { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.375rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--color-brand-500); }

/* ═══ PARTNER LEVELS — nudge the reused .svc-pkg grid to 3 up ═══════════ */
.pt-levels__grid { align-items: stretch; }

/* ═══ PARTNER FORM ══════════════════════════════════════════════════════ */
.pt-apply__split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
.pt-apply__intro { position: sticky; top: calc(var(--navbar-height) + var(--space-8)); }
.pt-apply__lead { font-size: var(--text-body-lg); color: var(--color-text-tertiary); line-height: 1.7; margin: var(--space-4) 0 var(--space-6); }
.pt-reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.pt-reasons li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-body); color: var(--color-text-secondary); line-height: 1.6; }
.pt-reasons .about-why__check { margin-top: 2px; }

.pt-apply__panel {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-3xl); padding: clamp(var(--space-6), 3vw, var(--space-8));
  box-shadow: 0 20px 50px rgba(21, 67, 120, 0.08);
}
.pt-form { display: flex; flex-direction: column; gap: var(--space-4); }
.pt-form .contact__row:has(.contact__textarea) { grid-template-columns: 1fr; }
.pt-form .contact__submit { width: 100%; margin-top: var(--space-2); }
.pt-form__msg { margin: 0; text-align: center; font-size: var(--text-sm); font-weight: 600; color: #1f7a5c; }
.pt-form__msg--error { color: #E11D48; }

/* ═══ Responsive ════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .pt-hero__layout { grid-template-columns: 1fr; }
  .pt-hero__cards { min-height: 0; position: static; display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
  .pt-fcard { position: static; animation: none; }
  .pt-who__grid { grid-template-columns: repeat(2, 1fr); }
  .pt-flow { grid-template-columns: repeat(3, 1fr); gap: var(--space-10) var(--space-4); }
  .pt-flow::before { display: none; }
  .pt-comm { grid-template-columns: repeat(2, 1fr); }
  .pt-apply__split { grid-template-columns: 1fr; }
  .pt-apply__intro { position: static; }
}
@media (max-width: 767px) {
  .pt-hero { padding-bottom: var(--space-14); }
  .pt-section { padding: var(--space-16) 0; }
  .pt-who__grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .pt-flow { grid-template-columns: repeat(2, 1fr); }
  .pt-comm { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .pt-strip__item { font-size: var(--text-h6); }
  .contact__row { grid-template-columns: 1fr; }
  .pt-hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ═══ Reduced motion ════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .pt-fcard { animation: none; }
}
