/* Group service page. Loaded after services.css only by group.html. */

.group-service-page {
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(18, 59, 42, 0.04) 50%, transparent calc(50% + 1px)),
    linear-gradient(180deg, rgba(250, 253, 248, 0.98) 0%, rgba(239, 247, 236, 0.48) 48%, rgba(255, 255, 255, 0.98) 100%);
}

.group-service-hero .sub-hero-lead {
  max-width: 760px;
}

.group-hero-subtitle {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.08rem, 2.1vw, 1.45rem);
  font-weight: 700;
  line-height: 1.55;
}

.group-section-lead {
  max-width: 900px;
  margin-bottom: 26px;
}

.group-audience-grid,
.group-menu-grid,
.group-info-grid,
.group-record-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(18, 59, 42, 0.14);
  border-left: 1px solid rgba(18, 59, 42, 0.08);
}

.group-audience-grid {
  grid-template-columns: repeat(4, 1fr);
}

.group-audience-grid div,
.group-info-grid span,
.group-record-grid div {
  position: relative;
  min-height: 92px;
  padding: 18px 18px;
  color: var(--deep-green);
  background: rgba(255, 255, 255, 0.62);
  border-right: 1px solid rgba(18, 59, 42, 0.08);
  border-bottom: 1px solid rgba(18, 59, 42, 0.08);
  transition:
    background 0.22s ease,
    border-color 0.22s ease;
}

.group-audience-grid div:hover,
.group-info-grid span:hover,
.group-record-grid div:hover {
  background: rgba(239, 247, 236, 0.76);
  border-color: rgba(46, 107, 71, 0.2);
}

.group-audience-grid span,
.group-record-grid span {
  display: block;
  margin-bottom: 10px;
  color: rgba(46, 107, 71, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.group-audience-grid strong,
.group-record-grid strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.45;
}

.group-note-line {
  margin-top: 18px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.68);
  border-left: 3px solid rgba(46, 107, 71, 0.46);
}

.group-note-line p {
  margin: 0;
  color: var(--subtext);
  line-height: 1.75;
}

.group-menu-grid {
  grid-template-columns: repeat(3, 1fr);
}

.group-menu-item {
  position: relative;
  min-height: 210px;
  padding: 24px 22px;
  background:
    linear-gradient(90deg, rgba(18, 59, 42, 0.055), transparent 1px) left top / 26% 100% no-repeat,
    rgba(255, 255, 255, 0.7);
  border-right: 1px solid rgba(18, 59, 42, 0.08);
  border-bottom: 1px solid rgba(18, 59, 42, 0.08);
  overflow: hidden;
  transition:
    background 0.22s ease,
    border-color 0.22s ease;
}

.group-menu-item::after {
  content: "GROUP";
  position: absolute;
  right: -4px;
  bottom: -8px;
  color: rgba(18, 59, 42, 0.035);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 0.9;
  pointer-events: none;
}

.group-menu-item-wide {
  grid-column: span 3;
  min-height: 140px;
}

.group-menu-item:hover,
.group-menu-item:focus-within {
  background:
    linear-gradient(90deg, rgba(46, 107, 71, 0.08), transparent 1px) left top / 26% 100% no-repeat,
    rgba(245, 250, 242, 0.84);
  border-color: rgba(46, 107, 71, 0.2);
}

.group-menu-number {
  margin: 0 0 14px;
  color: rgba(46, 107, 71, 0.72);
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  font-weight: 800;
  line-height: 0.9;
}

.group-menu-item h3,
.group-flow-step h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: var(--deep-green);
  font-size: 1.12rem;
  line-height: 1.42;
}

.group-menu-item p,
.group-flow-step p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--subtext);
  font-size: 0.96rem;
  line-height: 1.72;
}

.group-flow-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid rgba(18, 59, 42, 0.14);
  border-bottom: 1px solid rgba(18, 59, 42, 0.1);
}

.group-flow-step {
  position: relative;
  padding: 24px 18px;
  border-right: 1px solid rgba(18, 59, 42, 0.1);
}

.group-flow-step:last-child {
  border-right: 0;
}

.group-flow-step::after {
  content: "→";
  position: absolute;
  top: 24px;
  right: -12px;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
  background: rgba(250, 253, 248, 0.96);
  border: 1px solid rgba(46, 107, 71, 0.16);
}

.group-flow-step:last-child::after {
  display: none;
}

.group-flow-step span {
  display: block;
  margin-bottom: 14px;
  color: rgba(46, 107, 71, 0.72);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.group-info-panel,
.group-cost-panel,
.group-case-bridge {
  padding: 26px 24px;
  background:
    linear-gradient(90deg, rgba(18, 59, 42, 0.07), transparent 1px) left top / 24% 100% no-repeat,
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 59, 42, 0.12);
  border-left: 3px solid rgba(46, 107, 71, 0.46);
}

.group-info-panel > p,
.group-cost-panel p,
.group-case-bridge p,
.group-record-copy p {
  margin: 0;
  color: var(--subtext);
  font-size: 1rem;
  line-height: 1.85;
}

.group-cost-panel p + p {
  margin-top: 12px;
}

.group-info-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 20px;
}

.group-info-grid span {
  min-height: auto;
  padding: 14px 16px 14px 36px;
  color: var(--subtext);
  line-height: 1.6;
}

.group-info-grid span::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 16px;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(46, 107, 71, 0.62);
  border-radius: 50%;
}

.group-record-copy {
  margin-bottom: 22px;
}

.group-record-grid {
  grid-template-columns: repeat(2, 1fr);
}

.group-record-grid div {
  min-height: 104px;
}

.group-case-bridge h3 {
  margin: 0 0 12px;
  color: var(--deep-green);
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  line-height: 1.35;
}

.group-case-bridge .action-link {
  margin-top: 18px;
}

.group-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.group-faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(18, 59, 42, 0.14);
}

.group-faq-list details {
  background: rgba(255, 255, 255, 0.66);
  border-bottom: 1px solid rgba(18, 59, 42, 0.1);
}

.group-faq-list summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--deep-green);
  font-weight: 800;
  line-height: 1.55;
  list-style: none;
}

.group-faq-list summary::-webkit-details-marker {
  display: none;
}

.group-faq-list summary::after {
  content: "+";
  float: right;
  color: var(--green);
  font-size: 1.2rem;
  line-height: 1;
}

.group-faq-list details[open] summary::after {
  content: "-";
}

.group-faq-list p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--subtext);
  line-height: 1.75;
}

@media (max-width: 1024px) {

  .group-audience-grid,
  .group-menu-grid,
  .group-flow-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .group-menu-item-wide {
    grid-column: span 2;
  }

  .group-flow-step:nth-child(2n) {
    border-right: 0;
  }

  .group-flow-step::after {
    display: none;
  }
}

@media (max-width: 820px) {

  .group-service-hero .sub-hero-actions {
    gap: 10px;
  }

  .group-audience-grid,
  .group-menu-grid,
  .group-flow-track,
  .group-info-grid,
  .group-record-grid {
    grid-template-columns: 1fr;
  }

  .group-menu-item-wide {
    grid-column: auto;
  }

  .group-menu-item,
  .group-flow-step,
  .group-info-panel,
  .group-cost-panel,
  .group-case-bridge {
    padding: 22px 20px;
  }

  .group-flow-step {
    border-right: 0;
    border-bottom: 1px solid rgba(18, 59, 42, 0.1);
  }

  .group-flow-step:last-child {
    border-bottom: 0;
  }

  .group-info-panel > p,
  .group-cost-panel p,
  .group-case-bridge p,
  .group-record-copy p,
  .group-menu-item p,
  .group-flow-step p,
  .group-faq-list p {
    font-size: 0.92rem;
    line-height: 1.66;
  }
}

@media (max-width: 560px) {

  .group-hero-subtitle {
    font-size: 1rem;
  }

  .group-audience-grid div,
  .group-record-grid div {
    min-height: auto;
    padding: 15px 14px;
  }

  .group-menu-item,
  .group-flow-step,
  .group-info-panel,
  .group-cost-panel,
  .group-case-bridge {
    padding: 18px 14px;
  }

  .group-menu-number {
    font-size: 2.2rem;
  }

  .group-faq-list summary {
    padding: 17px 14px;
  }

  .group-faq-list p {
    padding: 0 14px 17px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .group-menu-item,
  .group-flow-step,
  .group-audience-grid div,
  .group-info-grid span,
  .group-record-grid div {
    transition: none;
  }
}
