/* =========================
   GRO Sections - GRO Dark Theme
   Isolated / no conflict with Ads
   ========================= */

:root {
  --gro-green: #5AB94C;
  --gro-green-dark: #46953b;
  --gro-green-bright: #8ce27f;

  --gro-bg-dark: #0f1720;
  --gro-bg-dark-2: #16212b;
  --gro-panel-dark: #18242f;
  --gro-panel-dark-2: #1d2b36;

  --gro-text: #eef6f0;
  --gro-text-soft: #b8c6bf;
  --gro-border: rgba(90, 185, 76, 0.20);

  --gro-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  --gro-shadow-strong: 0 22px 48px rgba(0, 0, 0, 0.34);
}

/* ---------- Card ---------- */
.gro-section-card {
  margin: 18px 0;
  background: linear-gradient(180deg, var(--gro-panel-dark) 0%, var(--gro-bg-dark-2) 100%);
  border: 1px solid var(--gro-border);
  border-radius: 18px;
  box-shadow: var(--gro-shadow);
  overflow: hidden;
  position: relative;
}

.gro-section-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--gro-green), #7bd36f);
}

.gro-section-hero {
  display: block;
}

.gro-section-copy {
  padding: 22px 22px 20px;
  background: linear-gradient(180deg, rgba(90, 185, 76, 0.08) 0%, var(--gro-panel-dark) 100%);
}

.gro-section-copy h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  line-height: 1.25;
  font-weight: 800;
  color: #f3fbf4;
  letter-spacing: -0.01em;
}

.gro-section-muted {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--gro-text-soft);
}

.gro-section-small {
  font-size: 0.85rem;
}

/* ---------- CTA ---------- */
.gro-section-cta-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.gro-section-open,
.gro-section-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  background: linear-gradient(180deg, #66c957 0%, var(--gro-green) 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(90, 185, 76, 0.24);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.gro-section-open:hover,
.gro-section-cta:hover {
  background: linear-gradient(180deg, #5fc550 0%, var(--gro-green-dark) 100%);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(90, 185, 76, 0.30);
}

.gro-section-open:active,
.gro-section-cta:active {
  transform: translateY(1px);
}

.gro-section-open:focus-visible,
.gro-section-cta:focus-visible,
.gro-section-close:focus-visible {
  outline: 2px solid var(--gro-green-dark);
  outline-offset: 2px;
}

/* ---------- Modal ---------- */
.gro-section-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.gro-section-modal.is-open,
.gro-section-modal[aria-hidden="false"] {
  display: block;
  opacity: 1;
  visibility: visible;
}

.gro-section-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 19, 16, 0.62);
  backdrop-filter: blur(2px);
}

.gro-section-dialog {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100vw - 32px));
  max-height: calc(100vh - 44px);
  margin: 22px auto;
  background: linear-gradient(180deg, var(--gro-panel-dark) 0%, var(--gro-bg-dark-2) 100%);
  color: var(--gro-text);
  border: 1px solid rgba(90, 185, 76, 0.18);
  border-radius: 18px;
  box-shadow: var(--gro-shadow-strong);
  overflow: hidden;
}

.gro-section-dialog::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--gro-green), #7bd36f);
}

/* ---------- Close ---------- */
.gro-section-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(90, 185, 76, 0.20);
  border-radius: 999px;
  background: #20303c;
  color: var(--gro-green-bright);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.15s ease,
    box-shadow 0.18s ease;
}

.gro-section-close:hover {
  background: #263844;
  color: #b1f3a7;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.gro-section-close:active {
  transform: scale(0.98);
}

/* ---------- Modal content ---------- */
.gro-section-content {
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 26px 24px 24px;
  background: linear-gradient(180deg, var(--gro-panel-dark) 0%, var(--gro-bg-dark-2) 100%);
}

.gro-section-content h1,
.gro-section-content h2,
.gro-section-content h3,
.gro-section-content h4 {
  margin-top: 0;
  margin-bottom: 14px;
  color: #f3fbf4;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.gro-section-content h3 {
  font-size: 1.34rem;
}

.gro-section-content p {
  margin: 0 0 14px;
  color: #d7e2db;
  line-height: 1.72;
}

.gro-section-content strong {
  color: var(--gro-green-bright);
}

.gro-section-content em {
  color: var(--gro-text-soft);
}

.gro-section-content small {
  color: var(--gro-text-soft);
}

.gro-section-content a {
  color: var(--gro-green-bright);
  font-weight: 600;
  text-decoration: none;
}

.gro-section-content a:hover {
  text-decoration: underline;
}

/* ---------- Lists ---------- */
.gro-section-bullets {
  margin: 18px 0;
  padding-left: 22px;
  list-style: disc;
}

.gro-section-bullets li {
  margin-bottom: 11px;
  line-height: 1.68;
  color: #d7e2db;
}

.gro-section-bullets li::marker {
  color: var(--gro-green);
}

.gro-section-bullets li:last-child {
  margin-bottom: 0;
}

/* ---------- Spacing ---------- */
.gro-section-content p:last-child,
.gro-section-content ul:last-child {
  margin-bottom: 0;
}

/* ---------- Scroll lock ---------- */
html.gro-section-modal-open,
body.gro-section-modal-open {
  overflow: hidden;
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .gro-section-card {
    border-radius: 16px;
  }

  .gro-section-copy {
    padding: 18px;
  }

  .gro-section-copy h3 {
    font-size: 1.14rem;
  }

  .gro-section-muted {
    font-size: 0.93rem;
  }

  .gro-section-cta-row {
    margin-top: 16px;
  }

  .gro-section-open,
  .gro-section-cta {
    min-height: 42px;
    padding: 10px 16px;
    font-size: 0.93rem;
  }

  .gro-section-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    margin: 10px auto;
    border-radius: 16px;
  }

  .gro-section-content {
    padding: 22px 18px 18px;
    max-height: calc(100vh - 20px);
  }

  .gro-section-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }
}

/* Force button links inside GRO Sections */
.gro-section-content .gro-section-cta,
.gro-section-content a.gro-section-cta,
.gro-section-cta {
  color: #ffffff !important;
  text-decoration: none;
}

.gro-section-content .gro-section-cta:hover,
.gro-section-content a.gro-section-cta:hover,
.gro-section-cta:hover {
  color: #ffffff !important;
  text-decoration: none;
}