/*
 * example-brief.css — inline example brief on landing page.
 * All selectors prefixed ex- to avoid collision with landing-page and bp- styles.
 */

/* ── Section wrapper ──────────────────────────────────────────────── */
.ex-section {
  padding: 0 2rem 4rem;
  background: var(--bg);
}

.ex-inner {
  max-width: 680px;
  margin: 0 auto;
}

/* ── Header row: label + button ───────────────────────────────────── */
.ex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.ex-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ── Toggle button ────────────────────────────────────────────────── */
.ex-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.ex-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ex-toggle-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.ex-toggle-btn[aria-expanded="true"] .ex-toggle-icon {
  transform: rotate(180deg);
}

/* ── Collapsible brief wrapper ────────────────────────────────────── */
.ex-brief-wrap {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  /* Transition driven by JS adding/removing ex-brief-wrap--open */
  transition: max-height 0.45s ease, opacity 0.3s ease;
}

.ex-brief-wrap--open {
  max-height: 9999px; /* large enough to show full content */
  opacity: 1;
}

/* ── Watermark strip ──────────────────────────────────────────────── */
.ex-watermark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(196, 104, 58, 0.07);
  border: 1px solid rgba(196, 104, 58, 0.18);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ── Brief container (mirrors .bp-hero + .bp-main layout) ─────────── */
.ex-bp-hero {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-bottom: none;
  padding: 1.75rem 1.5rem 1.5rem;
}

.ex-bp-hero-inner {
  /* No max-width override — the section already constrains to 680px */
}

/* Reuse .bp-couple from brief-page.css but smaller in this context */
.ex-bp-hero .bp-couple {
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: 1rem;
}

/* Keep action row compact */
.ex-bp-hero .bp-action-row {
  margin-bottom: 1.25rem;
}

.ex-bp-main {
  border: 1px solid var(--rule);
  border-top: none;
  background: white;
}

.ex-bp-main-inner {
  padding: 0 1.5rem 1rem;
}

/* Section titles in the example use h3 not h2 — same styles via bp-section-title */
.ex-bp-main .bp-section {
  padding-top: 1.25rem;
}

/* ── Footer strip ─────────────────────────────────────────────────── */
.ex-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: none;
  border-radius: 0 0 6px 6px;
}

.ex-footer-note {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
}

.ex-footer-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .ex-section { padding: 0 1.25rem 3rem; }

  .ex-header {
    /* On mobile, stack label above button */
    flex-direction: column;
    align-items: flex-start;
  }

  .ex-toggle-btn {
    width: 100%;
    justify-content: center;
  }

  .ex-bp-hero {
    padding: 1.25rem 1rem 1rem;
  }

  .ex-bp-main-inner {
    padding: 0 1rem 0.75rem;
  }

  .ex-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
  }
}

/* Reduce-motion: skip animation, just show/hide */
@media (prefers-reduced-motion: reduce) {
  .ex-brief-wrap {
    transition: none;
  }
}
