/* =============================================
   PROFILE PAGE — profile.css
   ============================================= */

/* --- Active nav link --- */
.nav__link--active {
  color: var(--green-700);
  background: var(--green-50);
  font-weight: 700;
}

/* =============================================
   PROFILE HERO
   ============================================= */
.profile-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 80px;
  overflow: hidden;
}

.profile-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 100% 50%, rgba(42,138,78,0.10) 0%, transparent 60%),
    linear-gradient(160deg, var(--green-50) 0%, #f8fffc 50%, var(--white) 100%);
}

.profile-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 64px;
}

.profile-hero__photo-wrap {
  flex-shrink: 0;
  position: relative;
}

.profile-hero__photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 6px solid var(--white);
  box-shadow: 0 8px 40px rgba(42,138,78,0.20);
  display: block;
}

.profile-hero__photo-fallback {
  display: none;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  border: 6px solid var(--white);
  box-shadow: 0 8px 40px rgba(42,138,78,0.20);
  align-items: center;
  justify-content: center;
  font-size: 80px;
  font-weight: 800;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-en);
}

.profile-hero__content {
  flex: 1;
}

.profile-hero__name {
  font-family: var(--font-en);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 4px;
  margin-top: 12px;
}

.profile-hero__title {
  font-size: 18px;
  color: var(--gray-600);
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.profile-hero__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.profile-role {
  display: inline-block;
  background: var(--green-700);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 0.02em;
}

.profile-hero__lead {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.9;
  max-width: 560px;
}

/* =============================================
   CAREER TIMELINE
   ============================================= */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-500), var(--green-200));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 40px;
  margin-bottom: 56px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green-600);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--green-400);
}

.timeline-item__year {
  flex-shrink: 0;
  width: 90px;
  text-align: right;
  padding-top: 4px;
}

.timeline-year {
  display: block;
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 800;
  color: var(--green-700);
  line-height: 1;
}

.timeline-year-end {
  display: block;
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
  margin-top: 2px;
}

.timeline-item__body {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.timeline-item__body:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-green);
  transform: translateY(-2px);
}

.timeline-item__org {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 6px;
}

.timeline-item__role {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.timeline-item__desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 16px;
}
.timeline-item__desc strong { color: var(--green-700); font-weight: 700; }

.timeline-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.timeline-item__tags li {
  font-size: 12px;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-200);
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 500;
}

/* =============================================
   QUALIFICATIONS
   ============================================= */
.qual__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.qual-card {
  background: var(--white);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  position: relative;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.qual-card:hover {
  border-color: var(--green-400);
  box-shadow: var(--shadow-green);
  transform: translateY(-3px);
}

.qual-card__year {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 800;
  color: var(--green-600);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.qual-card__icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.qual-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 6px;
}

.qual-card__country {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
}

/* =============================================
   NZ EXPERIENCE
   ============================================= */
.nz-exp__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.nz-exp-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
}
.nz-exp-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--green-400);
  transform: translateY(-3px);
}

.nz-exp-card__icon {
  font-size: 36px;
  margin-bottom: 14px;
}
.nz-exp-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.4;
}
.nz-exp-card__text {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.85;
}

/* =============================================
   MESSAGE
   ============================================= */
.message-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-xl);
  padding: 56px;
}

.message-block__photo-wrap {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.message-block__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.message-block__title {
  font-size: 28px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 24px;
  margin-top: 12px;
}

.message-block__text {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 2;
  margin-bottom: 20px;
}

.message-block__sig {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--green-200);
}
.message-block__sig-name {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
}
.message-block__sig-name span {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-400);
  margin-left: 8px;
}
.message-block__sig-title {
  font-size: 13px;
  color: var(--green-700);
  font-weight: 600;
  margin-top: 4px;
}

/* =============================================
   PROFILE CTA
   ============================================= */
.profile-cta {
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  padding: 96px 0;
}
.profile-cta__inner {
  text-align: center;
}
.profile-cta__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}
.profile-cta__text {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  line-height: 1.8;
}
.profile-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .profile-hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  .profile-hero__roles { justify-content: center; }
  .profile-hero__lead { margin: 0 auto; }
  .message-block {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 32px;
  }
  .message-block__photo-wrap { position: static; }
  .message-block__photo { max-width: 220px; margin: 0 auto; aspect-ratio: 1; }
}

@media (max-width: 768px) {
  .profile-hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 56px; }
  .profile-hero__photo,
  .profile-hero__photo-fallback { width: 180px; height: 180px; }
  .profile-hero__photo-fallback { font-size: 56px; }
  .timeline { padding-left: 20px; }
  .timeline-item { flex-direction: column; gap: 12px; }
  .timeline-item__year { width: auto; text-align: left; }
  .timeline-item::before { left: -26px; }
  .qual__grid { grid-template-columns: 1fr; }
  .nz-exp__grid { grid-template-columns: 1fr; }
}
