/* ==========================================================================
   Reusable, named UI pieces. If it's used more than once, or is a distinct
   design pattern in its own right, it lives here — not duplicated per-page.
   ========================================================================== */

/* ── Card: shared surface used by hero/lead-magnet/policy/info/team blocks ── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.card--lg {
  padding: var(--space-lg) var(--space-md);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .card--lg {
    padding: var(--space-2xl) var(--space-xl);
  }
}

.card--sm {
  padding: var(--space-lg) var(--space-md);
  min-height: var(--min-height-info-card);
}

/* ── Buttons ── */
.button {
  display: inline-block;
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.button--sm {
  padding: var(--space-2xs) var(--space-md);
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.button--lg {
  padding: var(--space-xs) var(--space-md);
  font-weight: 700;
  font-size: var(--font-size-md);
}

/* ── Section label (bold uppercase kicker) ── */
.section-label {
  font-size: var(--font-size-2xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

/* ── Wireframe / content-placeholder scaffolding ── */
.ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.ph:hover {
  opacity: 0.8;
}

.ph-text {
  background: var(--color-wireframe-text-bg);
  color: var(--color-wireframe-text-fg);
  border: 1px dashed var(--color-wireframe-text-border);
  padding: var(--space-3xs) var(--space-2xs);
}

.ph-image {
  background: var(--color-wireframe-image-bg);
  color: var(--color-wireframe-image-fg);
  border: 2px dashed var(--color-wireframe-image-border);
  width: 100%;
  min-height: var(--min-height-image-placeholder);
  flex-direction: column;
  gap: var(--space-2xs);
  font-size: var(--font-size-sm);
}

.ph-image::before {
  content: "\1F5BC";
  font-size: var(--font-size-icon-md);
}

.ph-video {
  background: var(--color-wireframe-video-bg);
  color: var(--color-wireframe-video-fg);
  border: 2px dashed var(--color-wireframe-video-border);
  width: 100%;
  min-height: var(--min-height-video-placeholder);
  flex-direction: column;
  gap: var(--space-2xs);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-md);
}

.ph-video::before {
  content: "\25B6";
  font-size: var(--font-size-icon-lg);
  opacity: 0.6;
}

.ph-logo {
  background: var(--color-wireframe-logo-bg);
  color: var(--color-wireframe-logo-fg);
  border: 1px dashed var(--color-wireframe-logo-border);
  padding: var(--space-2xs) var(--space-sm);
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.ph-logo-sm {
  background: var(--color-wireframe-logo-bg);
  color: var(--color-wireframe-logo-fg);
  border: 1px dashed var(--color-wireframe-logo-border);
  padding: var(--space-3xs) var(--space-xs);
  font-size: var(--font-size-xs);
}

.ph-client-logo {
  background: var(--color-wireframe-image-bg);
  color: var(--color-wireframe-image-fg);
  border: 1px dashed var(--color-wireframe-image-border);
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-2xs);
  border-radius: var(--radius-xs);
  min-width: var(--min-width-client-logo);
  text-align: center;
}

/* ── Nav logos ── */
.nav-logo-icon {
  height: var(--nav-logo-icon-height);
  width: auto;
}

.nav-logo-wordmark {
  height: var(--nav-logo-wordmark-height);
  width: auto;
}

/* ── Info card (three-col "why work with us" / "alternatives" pattern) ──
   Markup combines this with .card .card--sm for the shared surface/padding. */
.info-card-heading {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.info-card-icon {
  width: var(--icon-size-badge);
  height: var(--icon-size-badge);
  flex: 0 0 auto;
  object-fit: contain;
}

.info-card-icon.ph-image {
  min-height: 0;
  font-size: var(--font-size-2xs);
}

.info-card-icon.ph-image::before {
  font-size: var(--font-size-lg);
}

/* Real (non-wireframe) icon photos render smaller than the badge, so they
   never overshadow the card's h3 heading beside them. */
img.info-card-icon {
  width: var(--icon-size-info-card-photo);
  height: var(--icon-size-info-card-photo);
}

/* ── Team card ── */
.team-card {
  background: var(--color-surface-strong);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: var(--width-team-card);
  flex-shrink: 0;
}

.team-card-info {
  padding: var(--space-sm);
  text-align: center;
}

.team-card-role {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  opacity: 0.6;
}

/* ── Hero-style subhead (used under a page's primary h1/h2) ── */
.hero-sub {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  line-height: var(--line-height-base);
}

.hero-sub strong {
  color: var(--color-text-primary);
}

/* ── Lead magnet card (promoted from homepage.css — reused by
   index.html, webpage-template.html, and
   booking-confirmation.html) ── */
.lead-magnet {
  text-align: center;
  max-width: var(--max-width-lead-magnet);
}

.lead-magnet h1,
.lead-magnet h2 {
  font-size: var(--font-size-display-md);
  margin-bottom: var(--space-sm);
}

.lead-magnet p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xs);
}

/* ── Guarantee / info-card section background (promoted from homepage.css —
   reused by index.html, webpage-template.html, and
   booking-confirmation.html) ── */
.guarantee {
  background: var(--color-surface);
}

.guarantee .three-col-grid {
  margin-top: var(--space-xl);
}

/* ── Email capture form (lead magnet) ── */
.email-row {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.email-row input {
  flex: 1;
  min-width: var(--min-width-email-input);
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-md);
}

.email-row input::placeholder {
  color: var(--color-text-secondary);
}

/* ── Footer contents (shared across every page's footer) ── */
.footer-logo {
  height: var(--footer-logo-height);
  width: auto;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: var(--font-size-2xl);
  max-width: var(--max-width-footer-tagline);
  line-height: var(--line-height-tight);
  margin-top: var(--space-3xs);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.footer-sub {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.lead-magnet-hyperlink {
  display: inline-block;
  color: var(--color-cta-bg);
  font-size: var(--font-size-xs);
  text-decoration: underline;
}

.footer-legal {
  font-size: var(--font-size-2xs);
  color: var(--color-text-secondary);
  text-align: left;
}

@media (min-width: 768px) {
  .footer-legal {
    text-align: right;
  }
}

.footer-legal a {
  color: var(--color-text-secondary);
  text-decoration: underline;
}

.footer-copy {
  margin-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-sm);
  font-size: var(--font-size-2xs);
  color: var(--color-text-secondary);
}
