/* ==========================================================================
   Iron Acre — Reusable components
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  /* 52px floor keeps every button a comfortable thumb target on mobile. */
  min-block-size: 52px;
  padding: var(--space-3) var(--space-8);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

/* Primary — the lime accent, reserved for the main conversion action. */
.btn--primary {
  background-color: var(--c-lime);
  border-color: var(--c-lime);
  color: var(--c-void);
}

.btn--primary:hover {
  background-color: var(--c-lime-dim);
  border-color: var(--c-lime-dim);
  box-shadow: var(--shadow-lime);
}

/* Ghost — outlined, for the secondary action beside a primary. */
.btn--ghost {
  background-color: transparent;
  border-color: var(--c-border-strong);
  color: var(--c-text);
}

.btn--ghost:hover {
  border-color: var(--c-lime);
  color: var(--c-lime);
  background-color: var(--c-lime-soft);
}

/* Solid dark — for use on top of light or lime surfaces. */
.btn--dark {
  background-color: var(--c-void);
  border-color: var(--c-void);
  color: var(--c-text);
}

.btn--dark:hover {
  background-color: var(--c-surface-2);
  border-color: var(--c-surface-2);
}

.btn--lg {
  min-block-size: 58px;
  padding-inline: var(--space-10);
  font-size: var(--fs-base);
}

.btn--sm {
  min-block-size: 44px;
  padding-inline: var(--space-6);
  font-size: var(--fs-xs);
}

.btn--block {
  inline-size: 100%;
}

.btn__icon {
  inline-size: 1.1em;
  block-size: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Button rows wrap onto separate full-width rows on narrow phones. */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

@media (max-width: 419px) {
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-row .btn {
    inline-size: 100%;
  }
}

/* --------------------------------------------------------------------------
   Surface card — base for benefit, service, and process cards in later phases
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  background-color: var(--c-surface);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

.card:hover {
  border-color: var(--c-border-strong);
  background-color: var(--c-surface-2);
}

.card__title {
  font-size: var(--fs-lg);
}

.card__text {
  color: var(--c-text-mute);
  font-size: var(--fs-sm);
}

/* Feature card — carries the accent, used for the primary service. */
.card--feature {
  border-color: rgba(159, 232, 112, 0.32);
  background:
    radial-gradient(
      120% 120% at 0% 0%,
      rgba(159, 232, 112, 0.09) 0%,
      rgba(159, 232, 112, 0) 58%
    ),
    var(--c-surface);
}

.card--feature:hover {
  border-color: rgba(159, 232, 112, 0.5);
  background:
    radial-gradient(
      120% 120% at 0% 0%,
      rgba(159, 232, 112, 0.13) 0%,
      rgba(159, 232, 112, 0) 58%
    ),
    var(--c-surface);
}

/* Empty card — a visible, intentional slot rather than filler content. */
.card--empty {
  border-style: dashed;
  background-color: transparent;
  justify-content: flex-start;
}

.card--empty:hover {
  background-color: transparent;
  border-color: var(--c-border);
}

.card--empty .card__title {
  color: var(--c-text-faint);
  font-weight: var(--fw-semibold);
}

/* --------------------------------------------------------------------------
   Inline arrow link
   -------------------------------------------------------------------------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-block-start: auto;
  padding-block-start: var(--space-2);
  /* Keeps the row a comfortable touch target without moving the text: the
     extra height comes from padding below the baseline. */
  min-block-size: 44px;
  padding-block-end: var(--space-2);
  color: var(--c-lime);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-decoration: none;
}

.link-arrow .btn__icon {
  transition: transform var(--dur-base) var(--ease-out);
}

.link-arrow:hover .btn__icon {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Review mode
   Everything in this block is internal tooling for the build team, not content
   for visitors: badges on stand-in imagery, flags on unverified claims, and
   notes explaining both. Visitors must never see any of it, so it is hidden by
   default and only appears when <html data-review-mode> is set.

   To audit the site, add data-review-mode to the <html> tag of any page and
   every stand-in asset and unverified claim lights up.
   -------------------------------------------------------------------------- */
.confirm-note,
.review-flag {
  display: none;
}

[data-review-mode] .confirm-note {
  display: block;
  margin-block-start: var(--space-8);
  padding-inline-start: var(--space-4);
  border-inline-start: 2px dashed var(--c-border-strong);
  color: var(--c-text-faint);
  font-size: var(--fs-xs);
  line-height: var(--lh-normal);
  max-inline-size: 68ch;
}

[data-review-mode] .review-flag {
  display: block;
}

/* --------------------------------------------------------------------------
   Photo frame — real Iron Acre photography.
   Identical presentation to the stand-in frame below (same box, same hairline,
   no layout shift on swap) without the review-mode badge, because there is
   nothing to flag.
   -------------------------------------------------------------------------- */
.photo {
  position: relative;
  overflow: hidden;
  background-color: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}

.photo > img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

/* Full-bleed variant: drops the card framing. */
.photo--bleed {
  border: none;
  border-radius: 0;
}

/* --------------------------------------------------------------------------
   Stand-in image frame
   Wraps any asset standing in for real Iron Acre photography. Keeps the swap
   honest: same box, same aspect ratio, no layout shift. The framing is neutral
   so it reads as a designed panel to visitors; the "STAND-IN" badge is review
   tooling and only appears under data-review-mode.
   -------------------------------------------------------------------------- */
.placeholder {
  position: relative;
  overflow: hidden;
  background-color: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}

.placeholder > img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

/* Full-bleed variant: drops the card framing. */
.placeholder--bleed {
  border: none;
  border-radius: 0;
}

[data-review-mode] .placeholder {
  border-style: dashed;
  border-color: var(--c-border-strong);
}

[data-review-mode] .placeholder::after {
  content: "STAND-IN";
  position: absolute;
  inset-block-start: var(--space-3);
  inset-inline-start: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background-color: var(--c-scrim);
  border-radius: var(--radius-pill);
  color: var(--c-text-mute);
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
}

/* --------------------------------------------------------------------------
   Confirmation flag
   Marks copy asserting something Iron Acre has not verified. Review tooling,
   so it is invisible to visitors and only renders under data-review-mode.
   -------------------------------------------------------------------------- */
[data-review-mode] [data-confirm] {
  border-block-end: 1px dashed var(--c-lime-dim);
}

[data-review-mode] [data-confirm]::after {
  content: " ⚑";
  color: var(--c-lime-dim);
  font-size: 0.8em;
}
