/* Core Components — ECH Blueprint Único */

/* 1) Sections & Rhythm */
.section {
  padding: var(--space-8) 0;
}

.section--alt {
  background: var(--surface-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.section-title h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--brand);
}

.section-title:after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.section-intro {
  max-width: 38rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  font-size: var(--text-base);
}

/* 2) Global Card System */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-1);
  padding: var(--space-5);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--accent);
}

.card * {
  color: inherit;
}

.card__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--brand);
}

.card__desc {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-4);
  flex-grow: 1;
  line-height: 1.5;
}

/* 3) Buttons with Guaranteed Contrast */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-1);
  transition: all var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  gap: var(--space-2);
  text-decoration: none;
}

.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn--primary:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
}

.btn--accent {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--accent:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--brand);
}

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

.btn--full {
  width: 100%;
}

/* 4) UI Helpers */
.chip {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: var(--radius-1);
}

/* 5) Layout Container */
.container {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

/* 6) Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  padding: 1rem;
  background: var(--accent);
  color: var(--on-accent);
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}