/* ==========================================================================
   LIFEBYDESIGN — Site chrome & shared components
   Anything that appears on more than one page belongs here: footer, buttons,
   brand marks. Page-specific composition lives in /assets/css/pages/.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Brand marks
   -------------------------------------------------------------------------- */
.brand-monogram {
  width: 100%;
  display: block;
}

.brand-wordmark {
  height: var(--wordmark-height, 26px);
  width: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Buttons
   .btn            solid, high-contrast primary action
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  background: var(--color-button-bg);
  color: var(--color-button-ink);
  border: 1px solid var(--color-button-bg);
  border-radius: var(--radius-md);
  padding: 18px 44px;
  cursor: pointer;
  transition: opacity var(--duration-fast) ease, background var(--duration-base) ease;
}

.btn:hover {
  color: var(--color-button-ink);
  opacity: 0.88;
}

/* --------------------------------------------------------------------------
   Site footer
   -------------------------------------------------------------------------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: 26px var(--space-7);
  background: var(--color-surface);
}

.site-footer__motto,
.site-footer__links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.site-footer__motto {
  color: var(--color-text-muted);
}

.site-footer__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer__links a {
  color: var(--color-text);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--color-accent-soft);
}

@media (max-width: 560px) {
  .site-footer {
    justify-content: center;
    text-align: center;
    padding: var(--space-5) var(--space-5);
  }
}

/* --------------------------------------------------------------------------
   Consent card
   A small card in the bottom-left corner, deliberately not a bar or an
   overlay — it must never cover the headline or the call to action. Built by
   assets/js/analytics.js and removed once a choice is made.
   -------------------------------------------------------------------------- */
.consent {
  position: fixed;
  bottom: var(--space-5);
  left: var(--space-5);
  z-index: 100;
  width: min(340px, calc(100vw - var(--space-5) * 2));
  padding: 18px 20px;
  background: var(--color-surface-raised);
  color: var(--color-text-inverse);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.22);

  /* Hidden until the script adds .consent--visible. */
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.consent--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Heading — the one thing that must register at a glance. */
.consent__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-2);
}

.consent__text {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: #3a3a3a;
}

/* Secondary detail. Smaller and lighter, but held at 11px / #6b6b6b, which
   clears the 4.5:1 contrast minimum — small print, not hidden print. */
.consent__note {
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.45;
  color: #6b6b6b;
  margin-top: var(--space-2);
}

.consent__actions {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
  margin-top: var(--space-4);
}

.consent__btn {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid var(--color-button-bg);
  border-radius: var(--radius-sm);
  background: var(--color-button-bg);
  color: var(--color-button-ink);
  cursor: pointer;
  transition: opacity var(--duration-fast) ease;
}

.consent__btn:hover {
  opacity: 0.85;
}

.consent__btn--ghost {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: var(--palette-grey);
}

.consent__btn--ghost:hover {
  border-color: var(--color-button-bg);
  opacity: 1;
}

@media (max-width: 560px) {
  .consent {
    bottom: var(--space-3);
    left: var(--space-3);
    right: var(--space-3);
    width: auto;
  }
}
