/* Reusable components */

/* Pill label — the green "Community" badge */
.pill {
  display: inline-block;
  padding: 0.05em 0.5em 0.12em;
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--green-400);
  border: 3px solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: 0 0.09em 0 var(--ink);
}

/* Section scaffolding */
.section {
  padding-block: var(--space-8);
}

.section__head {
  max-width: 640px;
  margin: 0 auto var(--space-7);
  text-align: center;
}

.section__title {
  margin: var(--space-3) 0 0;
  font-family: var(--font-display);
  font-size: var(--fs-section);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.section__lead {
  margin: var(--space-4) 0 0;
  color: var(--color-muted);
}

.section__actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

/* Small label above section titles */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 12px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  border: 1.5px solid var(--green-500);
  border-radius: var(--radius-pill);
}

/* Marker-style underline for a key phrase */
.highlight {
  background: linear-gradient(transparent 58%, var(--green-300) 58%, var(--green-300) 92%, transparent 92%);
}

/* Round rotated sticker */
.sticker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 108px;
  aspect-ratio: 1;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  line-height: 1.05;
  text-align: center;
  color: var(--ink);
  background: var(--green-300);
  border: var(--border);
  border-radius: 50%;
  box-shadow: 0 4px 0 var(--ink);
  transform: rotate(-12deg);
}

/* Photo frame — drop an <img> inside to replace the placeholder */
.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--green-500) 0 32px, var(--green-600) 32px 64px);
  border: var(--border);
  border-radius: var(--radius-lg);
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.photo:hover img {
  transform: scale(1.05);
}

.photo__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo__placeholder svg {
  width: 44px;
  height: 44px;
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: var(--radius-pill);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1.5px solid var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary {
  color: var(--color-on-primary);
  background: var(--green-500);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}

.btn--primary:hover {
  background: var(--green-700);
}

.btn--light {
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}

.btn--light:hover {
  background: var(--green-100);
}

.btn--lg {
  padding: 0.95rem 1.6rem;
  font-size: var(--fs-md);
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn__dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-400);
  border: 1.5px solid var(--ink);
}

/* Form controls */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.field + .field,
.field-row + .field,
.field + .field-row,
.field-row + .field-row {
  margin-top: var(--space-4);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.field label,
.field__label {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.input::placeholder {
  color: #9a9e98;
}

.input:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px var(--green-100);
}

textarea.input {
  resize: vertical;
}

select.input {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.choice input {
  position: absolute;
  opacity: 0;
}

.choice span {
  display: inline-block;
  padding: 0.55rem 1rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.choice input:checked + span {
  background: var(--green-300);
}

.choice input:focus-visible + span {
  box-shadow: 0 0 0 4px var(--green-100);
}

@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* Round icon-only button (social links, etc.) */
.icon-btn {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.icon-btn:hover {
  background: var(--green-300);
  transform: translateY(-2px);
  box-shadow: 0 3px 0 var(--ink);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Stat block with corner bracket */
.stat {
  position: relative;
  padding: var(--space-3) var(--space-4);
  text-align: center;
}

/* Optional green corner bracket */
.stat--left::before,
.stat--right::before {
  content: "";
  position: absolute;
  top: 0;
  width: 26px;
  height: 100%;
  border-top: 1.5px solid var(--green-500);
}

.stat--left::before {
  left: 0;
  border-left: 1.5px solid var(--green-500);
}

.stat--right::before {
  right: 0;
  border-right: 1.5px solid var(--green-500);
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--color-muted);
  line-height: 1.35;
}

/* Text link with underline */
.link {
  font-size: var(--fs-sm);
  color: var(--color-muted);
  border-bottom: 1px solid currentColor;
  transition: color 0.2s var(--ease);
}

.link:hover {
  color: var(--color-primary-strong);
}

/* Big round CTA */
.cta-circle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
  width: clamp(150px, 18vw, 200px);
  aspect-ratio: 1;
  padding: var(--space-6);
  border-radius: 50%;
  background: var(--green-500);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.cta-circle:hover {
  transform: scale(1.05) rotate(-4deg);
  background: var(--green-700);
}

.cta-circle svg {
  width: 52px;
  transition: transform 0.3s var(--ease);
}

.cta-circle:hover svg {
  transform: translateX(6px);
}
