/* ═══════════════════════════════════════════════════════════════
   OCARIUS PARTNERS — Editorial Page Stylesheet
   Extends /style.css tokens & layout for ocarius.com/partners
   ═══════════════════════════════════════════════════════════════ */

.partners-page {
  --p-serif: 'Instrument Serif', Georgia, serif;
  --p-accent-soft: rgba(143, 131, 114, 0.16);
  --p-accent-hover: #6E5F49;
  --p-champagne-soft: #E6CCB2;
}

/* ─── Navbar alignment tweaks ─── */
.partners-page .nav-brand {
  position: relative;
}

.partners-page .nav-partners-badge {
  position: absolute;
  right: -2px;
  bottom: 0;
  width: 47%;
  height: auto;
  pointer-events: none;
}

.partners-page .nav-links {
  gap: clamp(14px, 2vw, 32px);
}

.partners-page .nav-links a {
  white-space: nowrap;
}

.partners-page .nav-links a[aria-current="page"] {
  font-weight: 700;
  background-size: 100% 1px;
}

/* ─── Shared Container & Typography Overrides ─── */
.p-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--m);
}

.partners-page .p-hero-title,
.partners-page .p-section-title,
.partners-page .p-cta-title {
  font-family: var(--p-serif);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}

.partners-page .p-intro-lead em {
  font-family: var(--p-serif);
  font-style: italic;
  font-weight: 400;
  color: inherit;
}

.p-eyebrow {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--p-accent-hover);
}

.p-eyebrow--light {
  color: var(--p-champagne-soft);
}

/* ─── Hero ─── */
.p-hero {
  position: relative;
  height: min(calc(100vh - var(--nav-h)), 820px);
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--slate);
}

.p-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.p-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 13, 26, 0.86) 0%,
    rgba(8, 13, 26, 0.4) 34%,
    rgba(8, 13, 26, 0) 62%
  );
  pointer-events: none;
}

.p-hero-content {
  position: relative;
  width: 100%;
  max-width: 980px;
  padding: 0 var(--m) clamp(44px, 6vw, 64px);
  text-align: center;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.p-hero-title {
  font-size: clamp(2.6rem, 5.8vw, 5.25rem);
  line-height: 1.02;
  color: var(--paper);
}

/* ─── Intro ─── */
.p-intro {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(64px, 8vw, 96px) var(--m) clamp(48px, 6vw, 64px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.p-intro-lead {
  font-family: var(--p-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.22;
  color: var(--ink);
  text-wrap: balance;
}

.p-lead-copy {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
  color: var(--fg-2);
  max-width: 560px;
}

.p-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 36px;
  padding-top: 10px;
}

.p-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 17px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.p-btn-primary:hover {
  background: transparent;
  color: var(--ink);
}

.p-link-underline {
  color: var(--ink);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.p-link-underline:hover {
  color: var(--p-accent-hover);
  border-color: var(--p-accent-hover);
}

/* ─── At-a-glance Strip ─── */
.p-glance {
  max-width: 1136px;
  margin: 0 auto clamp(72px, 9vw, 120px);
  padding-inline: var(--m);
}

.p-glance-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.p-glance-item {
  padding: 32px 20px;
  text-align: center;
  position: relative;
}

.p-glance-item + .p-glance-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: var(--hair);
}

.p-glance-item dt {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--p-accent-hover);
  margin-bottom: 10px;
}

.p-glance-item dd {
  font-family: var(--p-serif);
  font-size: 1.375rem;
  line-height: 1.3;
  color: var(--ink);
}

.p-glance-link {
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.p-glance-link:hover {
  color: var(--p-accent-hover);
}

/* ─── Section Header ─── */
.p-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.p-section-title {
  font-size: clamp(2.3rem, 4.4vw, 3.75rem);
  line-height: 1.05;
}

.p-section-sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--fg-2);
}

.p-commitments .p-section-title {
  color: var(--paper);
}

.p-commitments .p-section-sub {
  color: rgba(250, 251, 247, 0.78);
}

/* ─── Benefits Section ─── */
.p-benefits {
  padding-bottom: clamp(80px, 10vw, 128px);
}

.p-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px 44px;
}

.p-benefit-card {
  border-top: 1px solid var(--hair);
  padding: 36px 12px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.p-benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--p-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.p-benefit-title {
  margin-top: 6px;
  font-family: var(--p-serif);
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--ink);
}

.p-benefit-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg-2);
}

/* ─── Commitments Section (Dark Slate) ─── */
.p-commitments {
  padding: clamp(72px, 9vw, 112px) 0;
}

.p-commit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
}

.p-commit-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid rgba(250, 251, 247, 0.16);
}

.p-commit-num {
  font-family: var(--p-serif);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--p-champagne-soft);
  min-width: 44px;
}

.p-commit-title {
  margin-bottom: 8px;
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--paper);
}

.p-commit-desc {
  font-size: 0.96875rem;
  line-height: 1.6;
  color: rgba(250, 251, 247, 0.78);
}

.p-commit-item--cta {
  border-top-color: rgba(230, 204, 178, 0.45);
}

.p-commit-callout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.p-commit-callout-title {
  font-family: var(--p-serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--paper);
}

.p-commit-callout-link {
  color: var(--paper);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--p-champagne-soft);
  padding-bottom: 5px;
  align-self: flex-start;
  transition: color 0.2s var(--ease);
}

.p-commit-callout-link:hover {
  color: var(--p-champagne-soft);
}

/* ─── Final CTA & Partner Form ─── */
.p-cta {
  padding: clamp(80px, 10vw, 128px) 0;
}

.p-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 88px);
  align-items: start;
}

.p-cta-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 24px;
}

.p-cta-title {
  font-size: clamp(2.2rem, 3.8vw, 3.75rem);
  line-height: 1.04;
}

.p-cta-copy .p-actions {
  justify-content: flex-start;
}

.p-cta-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-partner-form .form-group {
  margin-bottom: 22px;
}

.p-partner-form .form-group textarea {
  min-height: 88px;
}

.p-partner-form .form-group input:-webkit-autofill {
  box-shadow: 0 0 0 1000px var(--paper) inset;
}

.p-form-submit {
  margin-top: 8px;
  cursor: pointer;
}

.p-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .partners-page .nav-links {
    gap: 0;
  }

  .partners-page .nav-links a[aria-current="page"] {
    background-size: 0 0;
    color: var(--p-accent-hover);
  }

  .p-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 32px;
  }
}

@media (max-width: 900px) {
  .p-cta-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .p-glance-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p-glance-item:nth-child(odd)::before {
    display: none;
  }

  .p-glance-item:nth-child(n + 3) {
    border-top: 1px solid var(--hair);
  }
}

@media (max-width: 820px) {
  .p-commit-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .p-benefits-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .p-hero {
    min-height: 460px;
  }
}

@media (max-width: 540px) {
  .p-partner-form .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .p-glance-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .p-glance-item + .p-glance-item {
    border-top: 1px solid var(--hair);
  }

  .p-glance-item + .p-glance-item::before {
    display: none;
  }
}
