/* =========================================================
   Herbitec — Team Listing & Detail Page Styles
   Drop this file in as /wp-content/themes/herbitec/css/team.css
   and enqueue it on the team templates.
   ========================================================= */

:root {
  --hb-green: #7cbb4c;       /* default card / brand green */
  --hb-green-hover: #17854c; /* darker green shown on hover */
  --hb-green-light: #eef6e7; /* tint used for backgrounds/badges */
  --hb-green-deep: #0b6b47;  /* deep green used for the detail page name */
  --hb-ink: #1f2b17;         /* near-black text used on light bg */
  --hb-body-gray: #6c6c6c;   /* body copy gray on the detail page */
  --hb-white: #ffffff;
  --hb-gray-200: #e6e6e6;
  --hb-gray-400: #b9b9b9;
  --hb-radius-card: 22px;
  --hb-radius-cut: 70px;     /* the curved "bite" between photo & panel */
  --hb-font-head: 'Poppins', 'Segoe UI', sans-serif;
  --hb-font-body: 'Inter', 'Segoe UI', sans-serif;
}

.hb-team * { box-sizing: border-box; }

.hb-team {
  font-family: var(--hb-font-body);
  color: var(--hb-ink);
}

/* ---------- Section wrapper ---------- */
.hb-team-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.hb-team-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.hb-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hb-green-hover);
  margin-bottom: 12px;
}

.hb-team-header h1 {
  font-family: var(--hb-font-head);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
}

.hb-team-header p {
  color: #55604d;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Grid ---------- */
.hb-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}

@media (max-width: 900px) {
  .hb-team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hb-team-grid { grid-template-columns: 1fr; }
}

/* ---------- Card ---------- */
.hb-card {
  position: relative;
  background: var(--hb-green);
  border-radius: var(--hb-radius-card);
  overflow: visible;
  text-decoration: none;
  color: var(--hb-white);
  display: block;
  transition: background-color 0.35s ease;
}

.hb-card-inner {
  border-radius: var(--hb-radius-card);
  overflow: hidden;
  background: inherit;
}

.hb-card-photo {
  position: relative;
  height: 320px;
  overflow: hidden;
  /* the signature curved "bite" out of the bottom-right corner,
     revealing the card's green background beneath it */
  border-radius: 0 0 var(--hb-radius-cut) 0;
  background: var(--hb-gray-200);
  border-bottom: 5px solid #fff;
}

.hb-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.hb-card-photo.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hb-gray-400);
  font-family: var(--hb-font-head);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hb-card-body {
  padding: 22px 26px 30px;
  min-height: 128px;
}

.hb-card-body h3 {
  font-family: var(--hb-font-head);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
  padding-bottom:0px;
}

.hb-card-body p {
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hb-card-role {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin: -2px 0 6px;
}

/* Arrow button, half-overlapping the card's bottom-right edge */
.hb-card-arrow {
  position: absolute;
  right: 22px;
  bottom: -24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--hb-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(31, 43, 23, 0.18);
  transition: background-color 0.35s ease, transform 0.35s ease;
  z-index: 2;
}

.hb-card-arrow svg {
  width: 18px;
  height: 18px;
  stroke: var(--hb-green);
  transition: stroke 0.35s ease;
}

/* ---------- Hover state ---------- */
.hb-card:hover,
.hb-card:focus-visible {
  background: var(--hb-green-hover);
}

.hb-card:hover .hb-card-photo img,
.hb-card:focus-visible .hb-card-photo img {
  transform: scale(1.06);
}

.hb-card:hover .hb-card-arrow,
.hb-card:focus-visible .hb-card-arrow {
  background: var(--hb-ink);
  transform: translateX(3px);
}

.hb-card:hover .hb-card-arrow svg,
.hb-card:focus-visible .hb-card-arrow svg {
  stroke: var(--hb-white);
}

.hb-card:focus-visible {
  outline: 3px solid var(--hb-ink);
  outline-offset: 4px;
}

/* =========================================================
   Detail page
   ========================================================= */

.hb-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hb-green-hover);
  text-decoration: none;
  margin-bottom: 32px;
}
.hb-detail-back svg { width: 16px; height: 16px; stroke: currentColor; }
.hb-detail-back:hover { color: var(--hb-ink); }

.hb-detail-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}

@media (max-width: 800px) {
  .hb-detail-hero { grid-template-columns: 1fr; align-items: start; }
}

/* Plain rounded photo — no color panel, no curved cut */
.hb-detail-photo {
  border-radius: 20px;
  overflow: hidden;
  background: var(--hb-gray-200);
  aspect-ratio: 6 / 5;
}

.hb-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hb-detail-name {
  font-family: var(--hb-font-head);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--hb-green-deep);
  margin: 0 0 18px;
}

.hb-detail-role-plain {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--hb-green-hover);
  margin: -8px 0 16px;
}

.hb-detail-bio p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--hb-body-gray);
  margin: 0 0 18px;
}
.hb-detail-bio p:last-child { margin-bottom: 0; }

/* Other team members strip, reuses .hb-card */
.hb-detail-more h2 {
  font-family: var(--hb-font-head);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 24px;
}