/* =============================================
   Annual Report Block — frontend styles
   ============================================= */

.wp-block-propcomm-annual-report-block {
  width: 100%;
  background: #F7F2EA;
  padding: 80px 0 100px;
}

/* ── Intro ── */
.arb__intro {
  text-align: center;
  margin-bottom: 64px;
  padding: 0 48px;
}

.arb__eyebrow {
  display: block;
  font-family: 'SeasonSans', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1e3a2f;
  opacity: 0.6;
  margin-bottom: 0.75rem;
}

.arb__heading {
  font-family: 'ConcretteXL', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  color: #1e3a2f;
  margin: 0;
}

/* ── Accordion list ── */
.arb__list {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 48px;
}

/* ── Item ── */
.arb__item {
  border-top: 1px solid rgba(30,58,47,.18);
}

.has-no-intro .arb__item:first-child {
  border-top: none;
}

.arb__item:last-child {
  border-bottom: 1px solid rgba(30,58,47,.18);
}

/* ── Trigger button ── */
.arb__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #1e3a2f;
  gap: 24px;
}

.arb__trigger-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arb__item-label {
  font-family: 'SeasonSans', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1e3a2f;
  opacity: 0.55;
}

.arb__item-year {
  font-family: 'ConcretteXL', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1;
  color: #1e3a2f;
}

/* ── Chevron ── */
.arb__chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  transition: transform 0.45s cubic-bezier(.16,1,.3,1);
  color: #1e3a2f;
  opacity: 0.6;
}

.arb__item[data-open="true"] .arb__chevron {
  transform: rotate(180deg);
}

/* ── Panel (accordion body) ── */
/* grid-rows 0fr→1fr animates the real content height, so open and close
   take the same visual time regardless of panel size (no max-height dead lag). */
.arb__panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden; /* clips the inner padding while collapsed */
  transition: grid-template-rows 0.5s cubic-bezier(.16,1,.3,1);
}

.arb__item[data-open="true"] .arb__panel {
  grid-template-rows: 1fr;
}

.arb__panel-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s ease 0s, transform 0.5s cubic-bezier(.16,1,.3,1);
}

/* Spacing lives on the content's margin, not inner padding — padding would set
   a minimum track height and keep the collapsed panel 28px tall. */
.arb__panel-inner > :last-child {
  margin-bottom: 28px; /* matches the 28px gap between the year and the cards */
}

.arb__item[data-open="true"] .arb__panel-inner {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease 0.08s, transform 0.5s cubic-bezier(.16,1,.3,1);
}

@media (prefers-reduced-motion: reduce) {
  .arb__panel,
  .arb__panel-inner,
  .arb__chevron {
    transition: none;
  }
}

/* ── Stats grid ── */
.arb__stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 0;
}

.arb__stat {
  background: #DCE6D3;
  border-radius: 4px;
  padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 140px;
}

.arb__stat-value {
  font-family: 'ConcretteXL', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
  color: #1e3a2f;
}

.arb__stat-label {
  font-family: 'SeasonSans', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e3a2f;
  opacity: 0.85;
}

/* ── Stat cell holding the PDF link — no card background, always bottom-left
   (column 1 of the next available row) ── */
.arb__stat--pdf {
  background: transparent;
  border-radius: 0;
  grid-column: 1;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 0;
  padding: 0; /* link starts at the card's left edge */
  /* 12px grid gap + 16px = 28px above, matching the 28px below the button */
  margin-top: 16px;
}

/* ── PDF link — dark-green button like the card links (no underline) ── */
.arb__pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'SeasonSans', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  background: var(--color-primary-green);
  padding: 14px 28px;
  border-radius: 4px;
  transition: gap 0.2s, opacity 0.15s;
}

.arb__pdf-link::after {
  content: '↓';
  transition: transform 0.2s cubic-bezier(.25,.46,.45,.94);
}

.arb__pdf-link:hover {
  opacity: 0.9;
  color: #fff;
}

.arb__pdf-link:hover::after {
  transform: translateY(3px);
}

/* ============================================
   TABLET — ≤ 900px
   ============================================ */
@media (max-width: 900px) {
  .wp-block-propcomm-annual-report-block {
    padding: 60px 0 80px;
  }

  .arb__intro,
  .arb__list {
    padding: 0 32px;
  }
}

/* ============================================
   MOBILE — ≤ 600px
   ============================================ */
@media (max-width: 600px) {
  .wp-block-propcomm-annual-report-block {
    padding: 48px 0 64px;
  }

  .arb__intro,
  .arb__list {
    padding: 0 20px;
  }

  .arb__intro {
    margin-bottom: 40px;
  }

  .arb__stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .arb__stat {
    min-height: 110px;
    gap: 20px;
  }

  .arb__trigger {
    padding: 20px 0;
  }
}
