/* ═══════════════════════════════════════════════════════════
   Ephod Advisory — practice-page overrides
   Loaded after /tokens.css and /styles.css.
   Root classes (bg-back, bg-kicker, bg-rule, bg-section,
   bg-section-heading, bg-section-tight, bg-contact, bg-footer,
   avail-dot) come from /styles.css. Only new patterns live here.
   ═══════════════════════════════════════════════════════════ */

/* ── Header: text left, logo right ──────────────────────── */
.ep-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.ep-header-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
}

.ep-title {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 60;
  font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink-strong);
}

.ep-lede {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 16;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.45;
  color: var(--ink-muted);
  max-width: 30em;
}

/* Logo background is keyed to transparency at build time, so it
   sits directly on the paper with no card edge. */
.ep-logo {
  display: block;
  width: clamp(7rem, 16vw, 10rem);
  height: auto;
  margin-top: -0.75rem;
  margin-right: -0.5rem;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── Intro prose ─────────────────────────────────────────── */
.ep-intro {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.ep-intro p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 36em;
  margin-bottom: 1rem;
}

.ep-intro p:last-child {
  margin-bottom: 0;
}

/* Header now has real body content above the first rule,
   so undo the tight first-rule override from the root sheet. */
.bg-header + .bg-rule {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* ── Service hairline-row list ───────────────────────────── */
.ep-service-list {
  border-top: 1px solid var(--rule);
}

.ep-service-item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: clamp(1rem, 2vw, 1.5rem);
  align-items: baseline;
  padding: 1.25rem 0.25rem 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left var(--dur-base) var(--ease-out);
}

@media (hover: hover) {
  .ep-service-item:hover {
    padding-left: 0.6rem;
  }

  .ep-service-item:hover .ep-service-num,
  .ep-service-item:hover .ep-service-name {
    color: var(--accent-ink);
  }
}

.ep-service-num {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 14;
  font-feature-settings: 'lnum', 'tnum';
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink-faint);
  align-self: start;
  padding-top: 0.18em;
  transition: color var(--dur-fast) ease;
}

.ep-service-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ep-service-name {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 18;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink-strong);
  letter-spacing: -0.01em;
  line-height: 1.25;
  transition: color var(--dur-fast) ease;
}

.ep-service-desc {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-faint);
  max-width: 40em;
}

/* ── Principles (definition list) ───────────────────────── */
.ep-principles {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 36em;
}

.ep-principle dt {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 18;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-strong);
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.ep-principle dd {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

/* ── Formats hairline-row list ───────────────────────────── */
.ep-format-list {
  list-style: none;
  border-top: 1px solid var(--rule);
}

.ep-format-row {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

.ep-format-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

.ep-format-value {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 16;
  font-size: 0.9375rem;
  color: var(--ink-strong);
  letter-spacing: -0.005em;
  line-height: 1.45;
}

/* ── Calendly booking embed ──────────────────────────────── */
.ep-booking {
  margin-top: 2rem;
}

.ep-booking-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  margin-bottom: 0.85rem;
}

.ep-booking-frame {
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--page);
  overflow: hidden;
}

.ep-booking-frame iframe {
  display: block;
  width: 100%;
  height: 800px;
  border: 0;
  background: var(--page);
}

.ep-booking-fallback {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin-top: 0.75rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .ep-header {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.25rem;
  }

  .ep-logo {
    grid-row: 1;
    width: 6.5rem;
    margin: 0 0 0 -0.35rem;
  }

  .ep-service-item {
    grid-template-columns: 2.25rem minmax(0, 1fr);
  }

  .ep-format-row {
    grid-template-columns: 5.5rem 1fr;
    gap: 1rem;
  }

  .ep-booking-frame iframe {
    height: 1000px;
  }
}
