/* ═══════════════════════════════════════════════════════════
   REGENERATE TEAM
   Palette: #8DC63F (Lime Green) · #147242 (Forest Green) + Tints
   Font: Cormorant Garamond (display) + DM Sans (body)
   @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');
═══════════════════════════════════════════════════════════ */

/* ─── COLOUR TOKENS ───────────────────────────────────────
   #8DC63F  — Lime Green  (primary accent)
   #147242  — Forest Green (primary deep)

   Tints generated at 80 / 60 / 40 / 20 % on white:
   Lime  80%: #A4D265   60%: #BBDE8B   40%: #D2EBB2   20%: #E9F5D8
   Forest 80%: #438E63  60%: #72AA87   40%: #A1C6AB   20%: #D0E3D5
─────────────────────────────────────────────────────────── */
:root {
  /* Core brand */
  --rg-lime:          #8DC63F;
  --rg-lime-80:       #A4D265;
  --rg-lime-60:       #BBDE8B;
  --rg-lime-40:       #D2EBB2;
  --rg-lime-20:       #E9F5D8;

  --rg-forest:        #147242;
  --rg-forest-80:     #438E63;
  --rg-forest-60:     #72AA87;
  --rg-forest-40:     #A1C6AB;
  --rg-forest-20:     #D0E3D5;
  --rg-forest-deep:   #0A3D22;

  /* Semantic aliases */
  --rg-accent:        var(--rg-lime);
  --rg-accent-light:  var(--rg-lime-80);
  --rg-accent-pale:   var(--rg-lime-40);
  --rg-primary:       var(--rg-forest);
  --rg-primary-deep:  var(--rg-forest-deep);
  --rg-muted:         var(--rg-forest-80);

  --rg-bg:            #F4FAF0;          /* near-white with green warmth */
  --rg-bg-deep:       var(--rg-lime-20);
  --rg-text:          #1A3D26;
  --rg-border:        rgba(20, 114, 66, 0.18);
  --rg-border-strong: rgba(20, 114, 66, 0.38);

  /* Typography */
  --rg-font-display:  'Cormorant Garamond', Georgia, serif;
  --rg-font-body:     'DM Sans', sans-serif;

  /* Shape & motion */
  --rg-radius:        6px;
  --rg-radius-lg:     12px;
  --rg-shadow:        0 8px 32px rgba(10, 61, 34, 0.12);
  --rg-shadow-hover:  0 18px 52px rgba(10, 61, 34, 0.20);
  --rg-transition:    0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ─── GRID ────────────────────────────────────────────── */
.gh-team-grid {
  display: grid;
  gap: 28px;
  padding: 0;
  list-style: none;
}
.gh-cols-1 { grid-template-columns: 1fr; }
.gh-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gh-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gh-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .gh-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .gh-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .gh-cols-2,
  .gh-cols-3,
  .gh-cols-4 { grid-template-columns: 1fr; }
}

/* ─── CARD ────────────────────────────────────────────── */
.gh-card {
  background: var(--rg-bg);
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--rg-transition), box-shadow var(--rg-transition),
              border-color var(--rg-transition);
  will-change: transform;
  position: relative;
}
.gh-card:hover,
.gh-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--rg-shadow-hover);
  border-color: var(--rg-border-strong);
  outline: none;
}
.gh-card:focus-visible {
  box-shadow: 0 0 0 3px var(--rg-lime-60), var(--rg-shadow-hover);
}

/* ─── PHOTO WRAP ──────────────────────────────────────── */
.gh-card__photo-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--rg-bg-deep);
}
.gh-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
              filter 0.55s ease;
}
.gh-card:hover .gh-card__photo {
  transform: scale(1.06);
  filter: brightness(0.65) saturate(0.85);
}

/* ─── CARD OVERLAY ────────────────────────────────────── */
.gh-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 64px;
  background: linear-gradient(
    to top,
    rgba(10, 61, 34, 0.88)  0%,
    rgba(10, 61, 34, 0.45) 50%,
    transparent            100%
  );
  opacity: 0;
  transition: opacity var(--rg-transition);
}
.gh-card:hover .gh-card__overlay { opacity: 1; }

.gh-card__cta {
  font-family: var(--rg-font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rg-lime);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease 0.06s, transform 0.3s ease 0.06s;
  text-align: left;
  padding: 0 20px 8px;
}
.gh-card:hover .gh-card__cta {
  opacity: 1;
  transform: none;
}

/* ─── SOCIAL ICONS (hidden → reveal on hover, left-aligned) ─ */
.gh-card__socials {
  position: absolute;
  bottom: 16px;
  left: 16px;                          /* anchored left */
  display: flex;
  gap: 7px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--rg-transition), transform var(--rg-transition);
  z-index: 10;
}
.gh-card:hover .gh-card__socials {
  opacity: 1;
  transform: translateY(0);
}

.gh-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(233, 245, 216, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(141, 198, 63, 0.4);
  color: var(--rg-lime-20);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease,
              color 0.2s ease, border-color 0.2s ease;
}
.gh-social-icon:hover {
  background: var(--rg-lime);
  border-color: var(--rg-lime);
  color: var(--rg-forest-deep);
  transform: scale(1.15);
}
.gh-social-icon svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Staggered reveal per icon */
.gh-card__socials .gh-social-icon:nth-child(1) { transition-delay: 0.04s; }
.gh-card__socials .gh-social-icon:nth-child(2) { transition-delay: 0.08s; }
.gh-card__socials .gh-social-icon:nth-child(3) { transition-delay: 0.12s; }
.gh-card__socials .gh-social-icon:nth-child(4) { transition-delay: 0.16s; }
.gh-card__socials .gh-social-icon:nth-child(5) { transition-delay: 0.20s; }
.gh-card__socials .gh-social-icon:nth-child(6) { transition-delay: 0.24s; }

/* ─── CARD INFO FOOTER ────────────────────────────────── */
.gh-card__info {
  padding: 18px 20px 20px;
  background: var(--rg-bg);
  border-top: 1px solid var(--rg-border);
}
.gh-card__name {
  font-family: var(--rg-font-display);
  font-size: 1.28rem;
  font-weight: 400;
  color: var(--rg-primary-deep);
  margin: 0 0 4px;
  line-height: 1.2;
}
.gh-card__title {
  font-family: var(--rg-font-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--rg-forest);
  margin: 0 0 8px;
  line-height: 1.25;
}
/* ═══════════════════════════════════════════════════════════
   MODAL / POPUP
═══════════════════════════════════════════════════════════ */
.gh-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gh-modal[hidden] { display: none; }

/* Backdrop */
.gh-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 61, 34, 0.80);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: rg-backdrop-in 0.3s ease forwards;
}
@keyframes rg-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Window */
.gh-modal__window {
  position: relative;
  z-index: 1;
  background: var(--rg-bg);
  border-radius: var(--rg-radius-lg);
  border: 1px solid var(--rg-border-strong);
  box-shadow: 0 36px 80px rgba(10, 61, 34, 0.32);
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  animation: rg-modal-in 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  scroll-behavior: smooth;
}
.gh-modal__window::-webkit-scrollbar       { width: 5px; }
.gh-modal__window::-webkit-scrollbar-track { background: var(--rg-lime-20); }
.gh-modal__window::-webkit-scrollbar-thumb { background: var(--rg-lime); border-radius: 3px; }

@keyframes rg-modal-in {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

/* Close button */
.gh-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: 1px solid var(--rg-border);
  color: var(--rg-muted);
  font-size: 1.4rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 2;
}
.gh-modal__close:hover {
  background: var(--rg-lime);
  color: var(--rg-forest-deep);
  border-color: var(--rg-lime);
}

/* ─── TWO-COLUMN BODY ─────────────────────────────────── */
.gh-modal__body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 420px;
}
@media (max-width: 680px) {
  .gh-modal__body { grid-template-columns: 1fr; }
}

/* ─── LEFT COLUMN ─────────────────────────────────────── */
.gh-modal__left {
  background: var(--rg-forest-deep);
  border-radius: var(--rg-radius-lg) 0 0 var(--rg-radius-lg);
  padding: 36px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
@media (max-width: 680px) {
  .gh-modal__left {
    border-radius: var(--rg-radius-lg) var(--rg-radius-lg) 0 0;
    padding: 28px 20px 20px;
  }
}

/* Rounded-square portrait — no circle, no spinning ring */
.gh-modal__photo-frame {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  border: 2px solid rgba(141, 198, 63, 0.35);
}
.gh-modal__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;   /* clipped by parent */
}

.gh-modal__left-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* Social icons inside modal left panel — left-aligned */
.gh-modal__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  width: 100%;
}
.gh-modal__socials .gh-social-icon {
  background: rgba(141, 198, 63, 0.08);
  border-color: rgba(141, 198, 63, 0.25);
  color: var(--rg-lime-40);
  width: 36px;
  height: 36px;
}
.gh-modal__socials .gh-social-icon svg { width: 16px; height: 16px; }
.gh-modal__socials .gh-social-icon:hover {
  background: var(--rg-lime);
  border-color: var(--rg-lime);
  color: var(--rg-forest-deep);
}

/* ─── RIGHT COLUMN ────────────────────────────────────── */
.gh-modal__right {
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}
@media (max-width: 680px) { .gh-modal__right { padding: 24px 20px; } }

/* Name + title */
.gh-modal__name {
  font-family: var(--rg-font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--rg-primary-deep);
  margin: 0 0 6px;
  line-height: 1.15;
}
.gh-modal__job-title {
  font-family: var(--rg-font-body);
  font-size: 0.77rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rg-forest);
  margin: 0;
}

/* Green accent line */
.gh-modal__header::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--rg-lime), var(--rg-lime-60));
  margin-top: 14px;
  border-radius: 1px;
}

/* Quote */
.gh-modal__quote {
  font-family: var(--rg-font-display);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--rg-forest-80);
  border-left: 2px solid var(--rg-lime);
  padding: 4px 0 4px 16px;
  margin: 0;
  line-height: 1.65;
}
.gh-modal__quote:empty { display: none; }

/* Bio / full content */
.gh-modal__content {
  font-family: var(--rg-font-body);
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--rg-text);
}
.gh-modal__content p       { margin: 0 0 12px; }
.gh-modal__content:empty   { display: none; }

/* Skills */
.gh-modal__skills-heading {
  font-family: var(--rg-font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rg-muted);
  margin: 0 0 10px;
}
.gh-modal__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gh-skill-tag {
  font-family: var(--rg-font-body);
  font-size: 0.72rem;
  color: var(--rg-forest);
  background: var(--rg-lime-20);
  border: 1px solid var(--rg-lime-60);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.gh-skill-tag:hover {
  background: var(--rg-lime-40);
  border-color: var(--rg-lime);
  color: var(--rg-forest-deep);
}

/* ─── ELEMENTOR RESETS ────────────────────────────────── */
.elementor-widget-container .gh-card__name,
.elementor-widget-container .gh-modal__name { line-height: inherit; }
.elementor-widget-container .gh-team-grid  { margin: 0 !important; }

/* ─── BODY LOCK ───────────────────────────────────────── */
body.gh-modal-open { overflow: hidden; }
