/* Reusable components — elevated visual system */

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 48px;
  padding-inline: 1.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  transition:
    background-color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--gradient-blue);
  color: var(--color-white);
  box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
  box-shadow: 0 10px 28px rgba(8, 122, 193, 0.35);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(8, 122, 193, 0.25);
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: rgba(8, 122, 193, 0.35);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  background: rgba(8, 122, 193, 0.05);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

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

.btn--ghost:hover {
  background: rgba(8, 122, 193, 0.07);
}

.btn--coral {
  background: var(--gradient-coral);
  color: var(--color-white);
  box-shadow: var(--shadow-coral);
}

.btn--coral:hover {
  box-shadow: 0 8px 24px rgba(244, 119, 107, 0.32);
  transform: translateY(-1px);
}

.btn--dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--dark:hover {
  background: #0d2438;
}

.btn--lg {
  height: 54px;
  padding-inline: 1.85rem;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
}

.btn--sm {
  height: 40px;
  padding-inline: 1.125rem;
  font-size: var(--text-sm);
}

/* ========== Cards ========== */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  transition:
    border-color var(--duration-normal) var(--ease),
    box-shadow var(--duration-normal) var(--ease),
    transform var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--duration-normal) var(--ease);
}

.card:hover {
  border-color: rgba(8, 122, 193, 0.22);
  box-shadow: var(--shadow-card-hover);
}

.card--interactive {
  cursor: pointer;
}

.card--interactive:hover {
  transform: translateY(-4px);
}

.card--interactive:hover::before {
  background: var(--gradient-blue);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-blue-soft);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease);
}

.card--interactive:hover .card__icon {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(8, 122, 193, 0.15);
}

.card__icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
}

.card__icon--coral {
  background: linear-gradient(135deg, rgba(244, 119, 107, 0.14) 0%, rgba(244, 119, 107, 0.06) 100%);
  color: var(--color-coral);
}

.card__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  transition: gap var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease);
}

.card__link:hover {
  color: var(--color-primary-deep);
  gap: 0.4rem;
}

/* ========== Section headers ========== */
.section-header {
  max-width: 640px;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.25rem);
}

.section-header--center {
  text-align: center;
  margin-inline: auto;
}

.section-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-coral);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.section-header__eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--color-coral);
  border-radius: 1px;
}

.section-header__title {
  margin-bottom: var(--space-4);
}

.section-header__desc {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ========== Grid helpers ========== */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) {
  .grid--4, .grid--5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* ========== Badge / Tag ========== */
.badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding-inline: 0.75rem;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-full);
  background: rgba(8, 122, 193, 0.1);
  color: var(--color-primary);
}

.badge--coral {
  background: rgba(244, 119, 107, 0.12);
  color: #D45A4F;
}

.badge--muted {
  background: var(--color-bg);
  color: var(--color-text-muted);
}

/* ========== Divider ========== */
.divider {
  height: 1px;
  background: var(--color-border);
  border: none;
  margin-block: var(--space-8);
}
