/* ============================================================
   MEDHAS LAW — pro-bono.css
   Pro Bono Legal Services page — builds on shared styles.css tokens
   ============================================================ */

.nav-link--active { color: var(--gold) !important; font-weight: 600; }
.mobile-nav-link--active { color: var(--gold) !important; font-weight: 600; }

/* ── Scroll Reveal ─────────────────────────────────────────── */
.pb-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .60s ease, transform .60s ease;
  transition-delay: var(--d, 0s);
}
.pb-reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .pb-reveal { opacity: 1; transform: none; transition: none; }
}


/* ── HERO ──────────────────────────────────────────────────── */
.pb-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 80px) 0 90px;
}
.pb-hero-bg { position: absolute; inset: 0; z-index: 0; }
.pb-hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.pb-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(11,31,58,.93) 0%, rgba(16,43,80,.87) 50%, rgba(16,43,80,.65) 100%);
}
.pb-hero-inner {
  position: relative; z-index: 1;
  max-width: 760px;
}
.pb-hero-content { max-width: 680px; }
.pb-hero-heading {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  margin: 14px 0 20px;
  line-height: 1.12;
  letter-spacing: -.01em;
}
.pb-hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: rgba(255,255,255,.82);
  line-height: 1.85;
  max-width: 580px;
  margin-bottom: 36px;
}
.pb-hero-cta { flex-shrink: 0; }


/* ── COMMITMENT ────────────────────────────────────────────── */
.pb-commitment {
  background: var(--ivory);
  border-bottom: 1px solid rgba(16,43,80,.07);
}
.pb-commitment-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.pb-commitment-text .section-eyebrow { display: block; margin-bottom: 10px; }
.pb-commitment-heading {
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 24px;
  line-height: 1.2;
}
.pb-commitment-body {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 16px;
}
.pb-commitment-body:last-child { margin-bottom: 0; }

/* Highlight box */
.pb-commitment-highlight {
  background: var(--white);
  border: 1px solid rgba(196,154,82,.25);
  border-radius: 12px;
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
}
.pb-commitment-highlight::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gold);
  border-radius: 4px 0 0 4px;
}

.pb-hours-badge {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.pb-hours-num {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.pb-hours-label {
  font-size: .95rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.3;
}
.pb-hours-caption {
  font-size: .98rem;
  color: var(--text-mid);
  line-height: 1.80;
  margin-bottom: 24px;
}
.pb-hours-caption strong { color: var(--text-dark); }
.pb-commitment-divider {
  height: 1px;
  background: rgba(16,43,80,.08);
  margin-bottom: 20px;
}
.pb-eligibility-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.7;
}
.pb-eligibility-note svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }


/* ── SERVICES GRID ─────────────────────────────────────────── */
.pb-services { background: var(--white); }
.pb-section-header { margin-bottom: 56px; }

.pb-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pb-service-card {
  background: var(--ivory);
  border: 1px solid rgba(16,43,80,.07);
  border-radius: 10px;
  padding: 36px 28px;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
  position: relative;
  overflow: hidden;
}
.pb-service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .30s ease;
}
.pb-service-card:hover {
  border-color: rgba(196,154,82,.30);
  box-shadow: 0 8px 32px rgba(16,43,80,.08);
  transform: translateY(-3px);
}
.pb-service-card:hover::after { transform: scaleX(1); }

.pb-service-icon {
  width: 52px; height: 52px;
  background: var(--white);
  border: 1px solid rgba(196,154,82,.22);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  margin-bottom: 20px;
  transition: background .25s ease, color .25s ease;
}
.pb-service-card:hover .pb-service-icon {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.pb-service-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 10px;
  line-height: 1.35;
}
.pb-service-desc {
  font-size: .875rem;
  color: var(--text-mid);
  line-height: 1.78;
  margin: 0;
}


/* ── PROCESS STEPS ─────────────────────────────────────────── */
.pb-process { background: var(--ivory); }
.pb-steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}
.pb-step {
  flex: 1;
  max-width: 260px;
  text-align: center;
  padding: 0 16px;
}
.pb-step-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(196,154,82,.30);
  line-height: 1;
  margin-bottom: 16px;
}
.pb-step-icon {
  width: 56px; height: 56px;
  background: var(--white);
  border: 1px solid rgba(196,154,82,.22);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  margin: 0 auto 18px;
}
.pb-step-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 10px;
  line-height: 1.3;
}
.pb-step-text {
  font-size: .865rem;
  color: var(--text-mid);
  line-height: 1.78;
  margin: 0;
}
.pb-step-connector {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 4px;
  margin-top: 76px;
  color: rgba(196,154,82,.50);
}


/* ── ENQUIRY SECTION ───────────────────────────────────────── */
.pb-enquiry {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.pb-enquiry::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,70,142,.30) 0%, transparent 70%);
  pointer-events: none;
}
.pb-enquiry-inner {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 72px;
  align-items: start;
}
.pb-enquiry-text .section-eyebrow { display: block; margin-bottom: 12px; }
.pb-enquiry-heading {
  font-size: clamp(1.65rem, 2.6vw, 2.3rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 16px;
  line-height: 1.2;
}
.pb-enquiry-sub {
  font-size: .98rem;
  color: rgba(255,255,255,.72);
  line-height: 1.85;
  margin-bottom: 28px;
}
.pb-enquiry-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 28px;
}
.pb-enquiry-note svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.pb-enquiry-note p {
  font-size: .82rem;
  color: rgba(255,255,255,.72);
  line-height: 1.72;
  margin: 0;
}
.pb-contact-direct-label {
  font-size: .80rem;
  color: rgba(255,255,255,.50);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
  margin-bottom: 8px;
}
.pb-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: rgba(255,255,255,.80);
  text-decoration: none;
  transition: color .2s ease;
}
.pb-contact-link:hover { color: var(--gold); }

/* Form */
.pb-form-wrap {
  background: var(--white);
  border-radius: 12px;
  padding: 48px 44px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.pb-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}
.pb-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: .01em;
}
.pb-required { color: var(--gold); margin-left: 2px; }
.pb-input,
.pb-select,
.pb-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text-dark);
  background: var(--ivory);
  border: 1.5px solid rgba(16,43,80,.14);
  border-radius: 7px;
  padding: 12px 16px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.pb-input::placeholder,
.pb-textarea::placeholder { color: var(--text-light); }
.pb-input:focus,
.pb-select:focus,
.pb-textarea:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(16,43,80,.08);
}
.pb-input.pb-error,
.pb-select.pb-error,
.pb-textarea.pb-error { border-color: #c0392b; }
.pb-textarea { resize: vertical; min-height: 130px; }
.pb-select-wrap { position: relative; }
.pb-select { padding-right: 38px; cursor: pointer; }
.pb-select-chevron {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-mid);
}
.pb-field-error {
  font-size: .77rem;
  color: #c0392b;
  min-height: 1em;
  display: block;
}

/* Checkbox */
.pb-field-consent { margin-bottom: 24px; }
.pb-checkbox-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}
.pb-checkbox { position: absolute; opacity: 0; width: 0; height: 0; }
.pb-checkbox-custom {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border: 1.5px solid rgba(16,43,80,.25);
  border-radius: 4px;
  background: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
  transition: border-color .2s ease, background .2s ease;
}
.pb-checkbox:checked + .pb-checkbox-custom {
  background: var(--navy);
  border-color: var(--navy);
}
.pb-checkbox:checked + .pb-checkbox-custom::after {
  content: '';
  display: block;
  width: 4px; height: 8px;
  border: 2px solid var(--white);
  border-top: none; border-left: none;
  transform: rotate(45deg) translate(1px, -1px);
}
.pb-checkbox:focus-visible + .pb-checkbox-custom {
  box-shadow: 0 0 0 3px rgba(16,43,80,.15);
}
.pb-checkbox-text {
  font-size: .83rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* Success */
.pb-form-success {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(39,174,96,.08);
  border: 1px solid rgba(39,174,96,.30);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
  color: #1a6b3a;
}
.pb-form-success svg { flex-shrink: 0; color: #27ae60; margin-top: 2px; }
.pb-form-success p { font-size: .88rem; line-height: 1.7; margin: 0; }

/* Submit */
.pb-form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.pb-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
}
.pb-submit-btn:hover { background: var(--navy-dark); }
.pb-submit-btn:disabled { opacity: .65; cursor: not-allowed; }
.pb-submit-arrow { transition: transform .2s ease; }
.pb-submit-btn:hover .pb-submit-arrow { transform: translateX(4px); }
.pb-form-disclaimer { font-size: .78rem; color: var(--text-light); }


/* ── FINAL CTA ─────────────────────────────────────────────── */
.pb-final-cta {
  background: var(--navy-dark, #0b1f3a);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 96px 0;
}
.pb-final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(196,154,82,.12) 0%, transparent 65%);
  pointer-events: none;
}
.pb-final-cta-inner {
  position: relative; z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}
.pb-final-cta-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 16px;
  line-height: 1.2;
}
.pb-final-cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.70);
  line-height: 1.8;
  margin-bottom: 36px;
}


/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .pb-services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .pb-commitment-inner { grid-template-columns: 1fr; gap: 48px; }
  .pb-commitment-highlight { max-width: 560px; }
  .pb-services-grid { grid-template-columns: repeat(2, 1fr); }
  .pb-enquiry-inner { grid-template-columns: 1fr; gap: 48px; }
  .pb-enquiry-text { max-width: 580px; }
}
@media (max-width: 768px) {
  .pb-hero { padding: calc(var(--header-height) + 56px) 0 64px; min-height: 420px; }
  .pb-services-grid { grid-template-columns: 1fr; }
  .pb-steps-row { flex-direction: column; align-items: center; gap: 32px; }
  .pb-step-connector { display: none; }
  .pb-step { max-width: 100%; padding: 0; }
  .pb-step-num { font-size: 1.8rem; }
  .pb-form-row { grid-template-columns: 1fr; gap: 0; }
  .pb-form-wrap { padding: 36px 28px; }
  .pb-enquiry-inner { gap: 40px; }
  .pb-final-cta { padding: 72px 0; }
}
@media (max-width: 480px) {
  .pb-hero-heading { font-size: 2rem; }
  .pb-hours-num { font-size: 3.8rem; }
  .pb-commitment-highlight { padding: 36px 24px; }
  .pb-form-wrap { padding: 28px 20px; }
  .pb-form-footer { flex-direction: column; align-items: stretch; }
  .pb-submit-btn { width: 100%; justify-content: center; }
}
