/*
Theme Name: GRO Boardroom Theme
Theme URI: https://grocommunity.org
Description: Secure digital boardroom for GRO Community Board of Directors
Version: 2.0.0
Author: Solvent Services
Text Domain: gro-boardroom-theme
*/

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a2b3c;
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Red Hat Display', 'Open Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.gro-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.gro-btn--light {
  background: #ffffff;
  color: #0f2b3c;
  border-color: #ffffff;
}
.gro-btn--light:hover {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.gro-hero .gro-btn--outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.5);
}
.gro-hero .gro-btn--outline:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,0.1);
}

.gro-btn--primary {
  background: #1a6b5a;
  color: #ffffff;
  border-color: #1a6b5a;
}
.gro-btn--primary:hover {
  background: #145a4b;
  border-color: #145a4b;
}

.gro-btn--lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.gro-hero {
  position: relative;
  background: linear-gradient(135deg, #0b1d2c 0%, #163a50 40%, #1a5c4a 100%);
  padding: 100px 0 80px;
  overflow: hidden;
}

.gro-hero__overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.gro-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.gro-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  color: #7dd3c0;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.gro-hero h1 {
  color: #ffffff;
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.gro-hero__sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 32px;
}

.gro-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.gro-hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
}

.gro-hero__image {
  position: relative;
}

.gro-hero__image-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  z-index: 2;
}

.gro-hero__image-frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.gro-hero__image-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(125,211,192,0.3);
  border-radius: 16px;
  z-index: 1;
}

/* ═══════════════════════════════════════
   STATS RIBBON
   ═══════════════════════════════════════ */
.gro-stats {
  background: #0e2a3b;
  padding: 40px 0;
  border-bottom: 3px solid #1a5c4a;
}

.gro-stats__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.gro-stats__item {
  text-align: center;
}

.gro-stats__number {
  display: block;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #7dd3c0;
  letter-spacing: -0.01em;
}

.gro-stats__label {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.gro-stats__divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* ═══════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════ */
.gro-section {
  padding: 80px 0;
}

.gro-section--alt {
  background: #f6f9fb;
}

.gro-section--dark {
  background: linear-gradient(170deg, #0b1d2c 0%, #163a50 100%);
}

.gro-section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.gro-section__header--light h2,
.gro-section__header--light p {
  color: #ffffff;
}
.gro-section__header--light p {
  color: rgba(255,255,255,0.7);
}

.gro-section__eyebrow {
  display: inline-block;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1a6b5a;
  margin-bottom: 12px;
}

.gro-section__eyebrow--light {
  color: #7dd3c0;
}

.gro-section__header h2 {
  font-size: 2.4rem;
  color: #0b1d2c;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.gro-section__header p {
  font-size: 1.05rem;
  color: #5c6b73;
  line-height: 1.8;
}

/* ═══════════════════════════════════════
   QUICK ACCESS CARDS
   ═══════════════════════════════════════ */
.gro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gro-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e4eaee;
  border-radius: 14px;
  padding: 32px 28px;
  transition: all 0.35s ease;
  overflow: hidden;
}

.gro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a6b5a, #4a90a4);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gro-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(11,29,44,0.12);
  border-color: transparent;
}

.gro-card:hover::before {
  opacity: 1;
}

.gro-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.gro-card__icon--blue { background: #e8f4fd; color: #2a7ab5; }
.gro-card__icon--green { background: #e6f5f0; color: #1a6b5a; }
.gro-card__icon--purple { background: #f0ebf8; color: #6b4fa0; }
.gro-card__icon--teal { background: #e4f5f2; color: #0e8a7a; }
.gro-card__icon--amber { background: #fef3e2; color: #c47d1a; }
.gro-card__icon--red { background: #fde8e8; color: #b83232; }

.gro-card h3 {
  font-size: 1.2rem;
  color: #0b1d2c;
  margin-bottom: 10px;
}

.gro-card p {
  font-size: 0.92rem;
  color: #5c6b73;
  line-height: 1.7;
  flex-grow: 1;
}

.gro-card__arrow {
  display: inline-block;
  margin-top: 16px;
  font-size: 1.2rem;
  color: #1a6b5a;
  transition: transform 0.3s ease;
}

.gro-card:hover .gro-card__arrow {
  transform: translateX(6px);
}

/* ═══════════════════════════════════════
   PLATFORM FEATURES (dark section)
   ═══════════════════════════════════════ */
.gro-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gro-feature {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 28px 24px;
  transition: all 0.35s ease;
}

.gro-feature:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(125,211,192,0.3);
  transform: translateY(-4px);
}

.gro-feature__icon {
  width: 48px;
  height: 48px;
  background: rgba(125,211,192,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7dd3c0;
  margin-bottom: 18px;
}

.gro-feature h3 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.gro-feature p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   WORKFLOW (How It Works)
   ═══════════════════════════════════════ */
.gro-workflow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.gro-workflow__step {
  flex: 1;
  max-width: 240px;
  text-align: center;
  padding: 0 16px;
}

.gro-workflow__number {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #1a6b5a, #2a8a6e);
  color: #ffffff;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 8px 20px rgba(26,107,90,0.3);
}

.gro-workflow__step h3 {
  font-size: 1.1rem;
  color: #0b1d2c;
  margin-bottom: 10px;
}

.gro-workflow__step p {
  font-size: 0.88rem;
  color: #5c6b73;
  line-height: 1.7;
}

.gro-workflow__connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #1a6b5a, #4a90a4);
  margin-top: 26px;
  flex-shrink: 0;
  opacity: 0.4;
}

/* ═══════════════════════════════════════
   TRUST / SECURITY
   ═══════════════════════════════════════ */
.gro-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.gro-trust__item {
  text-align: center;
  padding: 36px 28px;
  background: #f6f9fb;
  border-radius: 16px;
  border: 1px solid #e4eaee;
  transition: all 0.35s ease;
}

.gro-trust__item:hover {
  box-shadow: 0 16px 40px rgba(11,29,44,0.08);
  transform: translateY(-4px);
}

.gro-trust__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #1a6b5a, #2a8a6e);
  color: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.gro-trust__item h3 {
  font-size: 1.15rem;
  color: #0b1d2c;
  margin-bottom: 10px;
}

.gro-trust__item p {
  font-size: 0.9rem;
  color: #5c6b73;
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   CTA
   ═══════════════════════════════════════ */
.gro-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #0b1d2c 0%, #163a50 40%, #1a5c4a 100%);
}

.gro-cta__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.gro-cta h2 {
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.gro-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.gro-cta__actions {
  margin-bottom: 20px;
}

.gro-cta__sub {
  color: rgba(255,255,255,0.4) !important;
  font-size: 0.82rem !important;
  margin-bottom: 0 !important;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .gro-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .gro-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .gro-hero__sub { margin-left: auto; margin-right: auto; }
  .gro-hero__actions { justify-content: center; }
  .gro-hero__note { justify-content: center; }
  .gro-hero__image-accent { display: none; }
  .gro-hero h1 { font-size: 2.75rem; }
  .gro-cards { grid-template-columns: repeat(2, 1fr); }
  .gro-trust { grid-template-columns: repeat(2, 1fr); }
  .gro-workflow { flex-wrap: wrap; gap: 24px; }
  .gro-workflow__connector { display: none; }
  .gro-workflow__step { min-width: 200px; }
}

@media (max-width: 767px) {
  .gro-hero { padding: 70px 0 60px; }
  .gro-hero h1 { font-size: 2.1rem; }
  .gro-hero__sub { font-size: 1rem; }
  .gro-section { padding: 60px 0; }
  .gro-section__header h2 { font-size: 1.85rem; }
  .gro-cards { grid-template-columns: 1fr; }
  .gro-features { grid-template-columns: 1fr; }
  .gro-trust { grid-template-columns: 1fr; }
  .gro-stats__grid { gap: 24px; }
  .gro-stats__divider { display: none; }
  .gro-stats__number { font-size: 1.4rem; }
  .gro-cta h2 { font-size: 1.75rem; }
  .gro-hero__image-frame img { height: 280px; }
}

@media (max-width: 480px) {
  .gro-hero h1 { font-size: 1.75rem; }
  .gro-btn { padding: 12px 20px; font-size: 0.88rem; }
  .gro-hero__actions { flex-direction: column; }
}

/* ═══════════════════════════════════════
   BOARD MEMBERS GRID
   ═══════════════════════════════════════ */
.gro-board-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
.gro-member {
  width: calc(25% - 24px);
  min-width: 220px;
  max-width: 280px;
}

.gro-member {
  text-align: center;
  background: #ffffff;
  border: 1px solid #e4eaee;
  border-radius: 16px;
  padding: 32px 24px 28px;
  transition: all 0.35s ease;
  position: relative;
  flex-shrink: 0;
}

.gro-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(11,29,44,0.1);
  border-color: transparent;
}

.gro-member__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  border: 3px solid #e4eaee;
  transition: border-color 0.3s ease;
}

.gro-member:hover .gro-member__photo {
  border-color: #1a6b5a;
}

.gro-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gro-member__name {
  font-size: 1.1rem;
  color: #0b1d2c;
  margin-bottom: 4px;
}

.gro-member__title {
  font-size: 0.85rem;
  color: #1a6b5a;
  font-weight: 600;
  margin-bottom: 4px;
}

.gro-member__social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.gro-member__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f4f7;
  color: #5c6b73;
  transition: all 0.3s ease;
}

.gro-member__social a:hover {
  background: #1a6b5a;
  color: #ffffff;
}

.gro-member__bio-btn {
  display: inline-block;
  background: none;
  border: 1.5px solid #d0d8dd;
  border-radius: 8px;
  padding: 8px 20px;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a6b5a;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gro-member__bio-btn:hover {
  background: #1a6b5a;
  color: #ffffff;
  border-color: #1a6b5a;
}

/* ═══════════════════════════════════════
   BIO MODAL
   ═══════════════════════════════════════ */
.gro-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.gro-modal--open {
  display: flex;
}

.gro-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11,29,44,0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.gro-modal__content {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  max-width: 560px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  z-index: 1;
  animation: gro-modal-in 0.3s ease;
}

@keyframes gro-modal-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gro-modal__close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
  padding: 0;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: -2px;
}

.gro-modal__close:hover {
  color: #ffffff;
}

.gro-modal__header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px 20px;
  background: linear-gradient(135deg, #1a3a52 0%, #1e4d6b 100%);
  border-radius: 20px 20px 0 0;
  border-bottom: none;
  flex-shrink: 0;
}

.gro-modal__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
}

.gro-modal__header h3 {
  font-size: 1.3rem;
  color: #0b1d2c;
  margin-bottom: 4px;
}

.gro-modal__title {
  font-size: 0.9rem;
  color: #1a6b5a;
  font-weight: 600;
}

.gro-modal__bio {
  color: #3d4f5f;
  font-size: 0.95rem;
  line-height: 1.85;
}

.gro-modal__bio p {
  margin-bottom: 14px;
}

.gro-modal__bio p:last-child {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════
   BOARD MEMBERS RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .gro-board-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .gro-board-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .gro-member { padding: 24px 16px 20px; }
  .gro-member__photo { width: 90px; height: 90px; }
  .gro-modal__header { flex-direction: row; text-align: left; padding: 18px 20px 16px; }
  .gro-modal__body { padding: 20px; }
  .gro-modal__photo { width: 52px; height: 52px; }
}

@media (max-width: 480px) {
  .gro-board-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* Force light text in dark sections — override WP variables */
.gro-section--dark .gro-section__header h2 {
  color: #ffffff !important;
}

.gro-section--dark .gro-section__header p {
  color: rgba(255,255,255,0.7) !important;
}

.gro-section--dark .gro-section__eyebrow {
  color: #7dd3c0 !important;
}

/* =============================================
   Top Bar Navigation (Logged-in)
   ============================================= */
.gro-topbar {
    background: #0a1628;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.gro-topbar__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 60px;
    gap: 32px;
}
.gro-topbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.gro-topbar__logo {
    height: 32px;
    width: auto;
}
.gro-topbar__divider {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.2);
}
.gro-topbar__label {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.gro-topbar__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.gro-topbar__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.gro-topbar__link:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.gro-topbar__link--active {
    color: #fff;
    background: rgba(255,255,255,0.12);
}
.gro-topbar__link svg {
    opacity: 0.7;
    flex-shrink: 0;
}
.gro-topbar__link:hover svg,
.gro-topbar__link--active svg {
    opacity: 1;
}
.gro-topbar__user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}
.gro-topbar__avatar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.15s;
}
.gro-topbar__avatar-link:hover {
    background: rgba(255,255,255,0.08);
}
.gro-topbar__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
}
.gro-topbar__username {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}
.gro-topbar__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: rgba(255,255,255,0.4);
    transition: all 0.15s;
}
.gro-topbar__logout:hover {
    color: #f87171;
    background: rgba(248,113,113,0.1);
}

/* Page layout for inner pages */
.gro-page {
    min-height: calc(100vh - 60px);
    background: #f8fafc;
    padding: 40px 0;
}
.gro-page__container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Mobile topbar */
@media (max-width: 768px) {
    .gro-topbar__inner {
        gap: 12px;
        padding: 0 12px;
    }
    .gro-topbar__label,
    .gro-topbar__username {
        display: none;
    }
    .gro-topbar__nav {
        gap: 2px;
        overflow-x: auto;
    }
    .gro-topbar__link span,
    .gro-topbar__link {
        font-size: 0;
        padding: 8px 10px;
    }
    .gro-topbar__link svg {
        width: 18px;
        height: 18px;
    }
}

/* Hero outline button */
.gro-btn--outline-light {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    background: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}
.gro-btn--outline-light:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Clickable member cards */
.gro-member {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gro-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(10,22,40,0.15);
}
.gro-member__view-profile {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #00796B;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.gro-member:hover .gro-member__view-profile {
    opacity: 1;
}

/* Modal social links */
.gro-modal__social {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}
.gro-modal__social h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 12px;
}
.gro-modal__social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.gro-modal__social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #1a237e;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.gro-modal__social-link:hover {
    background: #1a237e;
    color: #fff;
}
.gro-modal__social-link svg {
    flex-shrink: 0;
}

/* Hero outline button */
.gro-btn--outline-light {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    background: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}
.gro-btn--outline-light:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Scroll offset for anchor links */
#leadership {
    scroll-margin-top: 40px;
}

/* Fix Meet the Board button visibility */
.gro-hero .gro-btn--outline-light,
.gro-hero a.gro-btn--outline-light {
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.5) !important;
    background: rgba(255,255,255,0.12) !important;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}
.gro-hero .gro-btn--outline-light:hover,
.gro-hero a.gro-btn--outline-light:hover {
    background: rgba(255,255,255,0.25) !important;
    border-color: #fff !important;
    color: #fff !important;
}

/* Force Meet the Board button — max specificity */
section.gro-hero .gro-hero__actions a.gro-btn.gro-btn--outline-light {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.15) !important;
    border: 2px solid rgba(255,255,255,0.6) !important;
    border-radius: 10px !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
section.gro-hero .gro-hero__actions a.gro-btn.gro-btn--outline-light:hover {
    background-color: rgba(255,255,255,0.3) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* Override WP global link color in hero */
.gro-hero a.gro-btn--outline-light,
.gro-hero .gro-hero__actions a[href="#leadership"] {
    color: #fff !important;
    background: rgba(255,255,255,0.15) !important;
    border: 2px solid rgba(255,255,255,0.6) !important;
    border-radius: 10px !important;
}
.gro-hero a.gro-btn--outline-light:hover,
.gro-hero .gro-hero__actions a[href="#leadership"]:hover {
    background: rgba(255,255,255,0.3) !important;
    border-color: #fff !important;
}

/* WP core link override — scoped to hero only (exclude light buttons) */
.gro-hero a:where(:not(.wp-element-button)):not(.gro-btn--light) {
    color: #fff !important;
}

/* Restore navbar link colors */
.gro-topbar a,
.gro-topbar .gro-topbar__nav a,
.gro-topbar .gro-topbar__right a {
    color: #fff !important;
}
.gro-topbar a:hover,
.gro-topbar .gro-topbar__nav a:hover {
    color: rgba(255,255,255,0.8) !important;
}

/* Choose Photo button — always visible */
.gro-profile-editor .gro-profile-editor__photo-upload button,
.gro-profile-editor button[type="button"],
button.gro-profile-editor__choose-photo,
.gro-profile-editor__photo-section button {
    color: #1a3a52 !important;
    background: #e8eef2 !important;
    border: 1px solid #bdc3c7 !important;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.gro-profile-editor .gro-profile-editor__photo-upload button:hover,
.gro-profile-editor button[type="button"]:hover,
button.gro-profile-editor__choose-photo:hover,
.gro-profile-editor__photo-section button:hover {
    background: #d0dae0 !important;
    border-color: #95a5a6 !important;
    color: #1a3a52 !important;
}

/* ── Back to Top Button ── */
.gro-back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--gro-primary, #1a3a52);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
.gro-back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.gro-back-to-top:hover {
  background: var(--gro-secondary, #2d5a7b);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .gro-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* ── Hero button row layout ── */
.gro-hero__btn-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 8px;
}
.gro-hero__btn-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.gro-hero__btn-col .gro-hero__note {
  margin: 0;
  font-size: 0.78rem;
  text-align: center;
  max-width: 220px;
}
.gro-hero__note--subtle {
  opacity: 0.65;
  font-style: italic;
}
.gro-hero__divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.3);
  align-self: center;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .gro-hero__btn-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .gro-hero__divider {
    width: 100%;
    height: 1px;
  }
}

/* ── Remove underlines from quick access cards ── */
a.gro-card,
a.gro-card:hover,
a.gro-card:focus,
a.gro-card:visited,
.gro-cards a,
.gro-cards a:hover {
  text-decoration: none !important;
}
a.gro-card h3,
a.gro-card p,
a.gro-card span {
  text-decoration: none !important;
}

/* ── Hero helper text: no wrap, single line ── */
.gro-hero__btn-col .gro-hero__note {
  white-space: nowrap !important;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Hero helper text: no wrap, single line ── */
.gro-hero__btn-col .gro-hero__note {
  white-space: nowrap !important;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Push GoDaddy publish guide behind back-to-top button ── */
#gdl-publish-guide,
#gdl-publish-guide .publish-guide-default {
  z-index: 9998 !important;
}
.gro-back-to-top {
  z-index: 99999 !important;
  pointer-events: auto !important;
}


/* ── Member card occupation & company ── */
.gro-member__occupation {
  font-size: 0.82rem;
  color: #374151;
  font-weight: 500;
  margin-bottom: 2px;
}
.gro-member__company {
  font-size: 0.80rem;
  color: #6b7280;
  font-weight: 400;
  margin-bottom: 14px;
}
.gro-modal__occupation {
  font-size: 0.88rem;
  color: #374151;
  font-weight: 500;
  margin: 2px 0;
}
.gro-modal__company {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 2px 0 0;
}

/* ── Member card & modal work line (occupation of company) ── */
.gro-member__work {
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 400;
  margin-bottom: 12px;
  font-style: italic;
  line-height: 1.3;
}
.gro-modal__work {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 400;
  font-style: italic;
  margin: 3px 0 0;
}

/* ── View Profile floated to bottom ─────────────────────────── */
.gro-member {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gro-member__spacer {
    flex: 1;
}
.gro-member__view-profile {
    display: block;
    margin-top: auto;
    padding-top: 12px;
}


/* ── Modal sticky header & body scroll ───────────────────────── */
.gro-modal__body {
  overflow-y: auto;
  padding: 28px 32px 32px;
  flex: 1;
}
.gro-modal__header > div { flex: 1; min-width: 0; }
.gro-modal__header h3 { color: #ffffff; margin: 0 0 4px 0; }
.gro-modal__title { color: rgba(255,255,255,0.82); }
.gro-modal__work { color: rgba(255,255,255,0.68); font-size: 13px; }
.gro-modal__photo { border: 2px solid rgba(255,255,255,0.3); }


/* ── Modal body custom scrollbar ─────────────────────────────── */
.gro-modal__body {
  scrollbar-width: thin;
  scrollbar-color: #1e7a6a #f0f4f7;
}
.gro-modal__body::-webkit-scrollbar {
  width: 6px;
}
.gro-modal__body::-webkit-scrollbar-track {
  background: #f0f4f7;
  border-radius: 0 0 20px 0;
}
.gro-modal__body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1a3a52 0%, #1e7a6a 100%);
  border-radius: 10px;
}
.gro-modal__body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #1e4d6b 0%, #22a085 100%);
}

/* ── Board Manager: visibility checkboxes ────────────────────── */
.gro-member-card__visibility {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  padding: 10px 16px;
  border-top: 1px solid #e2e8f0;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
  -webkit-overflow-scrolling: touch;
}
.gro-member-card__visibility::-webkit-scrollbar {
  height: 4px;
}
.gro-member-card__visibility::-webkit-scrollbar-track {
  background: #f8fafc;
}
.gro-member-card__visibility::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.gro-vis-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  padding: 5px 20px 5px 0;
  border-right: 1px solid #e2e8f0;
  margin-right: 20px;
  flex-shrink: 0;
}
.gro-vis-check:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}
.gro-vis-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.gro-vis-check input { accent-color: #1a3a52; }
.gro-vis-check--danger { color: #b91c1c; }
.gro-vis-check--danger input { accent-color: #b91c1c; }
.gro-vis-check--disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ── Disabled member card ────────────────────────────────────── */
.gro-member-card--disabled {
  opacity: 0.55;
  border-left: 3px solid #b91c1c;
}
.gro-member-card__dis-badge {
  display: inline-block;
  background: #b91c1c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* ── Delete member button ────────────────────────────────────── */
.gro-member-card { position: relative; }
.gro-member-card__delete-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(180,20,20,0.75);
  border: none;
  border-radius: 7px;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.18s ease;
  padding: 0;
  z-index: 2;
}
.gro-member-card__delete-btn:hover {
  background: rgba(220,38,38,1);
  box-shadow: 0 2px 10px rgba(220,38,38,0.45);
  transform: scale(1.08);
}

/* ── Board Room: Directory tab ───────────────────────────────── */
.gro-br__directory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 20px 0;
}
@media (max-width: 640px) {
  .gro-br__directory {
    grid-template-columns: 1fr;
  }
}
.gro-dir-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.gro-dir-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: #b8d0e8;
}
.gro-dir-card__photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e2e8f0;
}
.gro-dir-card__info {
  flex: 1;
  min-width: 0;
}
.gro-dir-card__name {
  font-weight: 600;
  font-size: 14px;
  color: #0b1d2c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gro-dir-card__title {
  font-size: 12px;
  color: #1e7a6a;
  font-weight: 500;
  margin-top: 2px;
}
.gro-dir-card__work {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gro-dir-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.gro-dir-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #1a3a52;
  text-decoration: none;
  background: #f0f4f8;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  transition: all 0.18s ease;
  font-weight: 500;
}
.gro-dir-card__link:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e4d6b;
}
.gro-br__empty {
  color: #94a3b8;
  font-style: italic;
  padding: 20px 0;
}

/* ============================================================
   DOCUMENT MODALS — panel/overlay/preview styles
   ============================================================ */

/* Overlay (click-outside-to-close backdrop) */
.gro-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,29,44,0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
  z-index: 0;
}

/* Panel container (slides up from center) */
.gro-modal__panel {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  animation: gro-modal-in 0.25s ease;
  max-height: 90vh;
  width: 90%;
  max-width: 700px;
}

.gro-modal__panel--wide {
  max-width: 900px;
}

.gro-modal__panel--preview {
  max-width: 960px;
  width: 95%;
}

/* Panel header */
.gro-modal__panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #1a3a5c 0%, #0d2137 100%);
  color: #ffffff;
  flex-shrink: 0;
}

.gro-modal__panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.gro-modal__panel-title h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gro-modal__panel-filters {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.gro-modal__panel-filters .gro-input--sm {
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  cursor: pointer;
}

.gro-modal__panel-filters .gro-input--sm option {
  background: #1a3a5c;
  color: #ffffff;
}

/* Close button in panel header (white) */
.gro-modal__panel-header .gro-modal__close {
  color: rgba(255,255,255,0.7);
  font-size: 1.6rem;
  flex-shrink: 0;
}

.gro-modal__panel-header .gro-modal__close:hover {
  color: #ffffff;
}

/* Scrollable body */
.gro-modal__panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.gro-modal__panel-body::-webkit-scrollbar { width: 6px; }
.gro-modal__panel-body::-webkit-scrollbar-track { background: #f1f5f9; }
.gro-modal__panel-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.gro-modal__panel-body::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Preview body */
.gro-modal__preview-body {
  flex: 1;
  overflow: auto;
  background: #f8fafc;
  min-height: 300px;
}

/* Preview header h2 */
.gro-modal__panel--preview .gro-modal__panel-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 640px) {
  .gro-modal__panel,
  .gro-modal__panel--wide,
  .gro-modal__panel--preview {
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 95vh;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }
  .gro-modal__panel-filters {
    display: none;
  }
}

/* ============================================================
   MODAL FORM SCROLLING & ACTIONS
   ============================================================ */

/* Make the form inside modal scrollable */
.gro-modal__form {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gro-modal__form::-webkit-scrollbar { width: 6px; }
.gro-modal__form::-webkit-scrollbar-track { background: #f1f5f9; }
.gro-modal__form::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.gro-modal__form::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Sticky actions bar at bottom */
.gro-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
}

/* Fix modal header text colors — ensure white on dark background */
.gro-modal__header h2,
.gro-modal__header h3 {
  color: #ffffff !important;
}
.gro-modal__header .gro-modal__close {
  color: rgba(255,255,255,0.7);
}
.gro-modal__header .gro-modal__close:hover {
  color: #ffffff;
}
