/* Components — buttons, cards, tags, forms */

body.theme-editorial .c-btn,
body.theme-editorial .btn-get-started,
body.theme-editorial .cta-btn,
body.theme-editorial .cz-bs-btn,
body.theme-editorial .auth-form button,
body.theme-editorial #btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-teal);
  background: var(--color-teal) !important;
  color: var(--color-white) !important;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

body.theme-editorial .c-btn:hover,
body.theme-editorial .btn-get-started:hover,
body.theme-editorial .cta-btn:hover,
body.theme-editorial .cz-bs-btn:hover,
body.theme-editorial .auth-form button:hover,
body.theme-editorial #btn:hover {
  background: var(--color-teal-dark) !important;
  border-color: var(--color-teal-dark) !important;
  color: var(--color-white) !important;
  transform: translateY(-1px);
}

body.theme-editorial .c-btn--secondary,
body.theme-editorial .btn-get-started-secondary {
  background: var(--color-white) !important;
  color: var(--color-teal) !important;
  border-color: var(--color-teal);
}

body.theme-editorial .c-btn--secondary:hover,
body.theme-editorial .btn-get-started-secondary:hover {
  background: var(--color-white) !important;
  border-color: var(--color-teal-dark) !important;
  color: var(--color-teal-dark) !important;
}

body.theme-editorial .c-tag,
body.theme-editorial .cz-tag-text,
body.theme-editorial .cz-tag-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-navy) !important;
  background: var(--color-sage) !important;
  border: none !important;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin: 0.15rem;
}

/* Project cards — home portfolio grid */
body.theme-editorial .c-project-card-wrap {
  display: flex;
}

body.theme-editorial a.c-project-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  border: 1px solid rgba(23, 42, 58, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: none;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

body.theme-editorial a.c-project-card:hover,
body.theme-editorial a.c-project-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 16px 40px rgba(23, 42, 58, 0.1);
  color: inherit;
}

body.theme-editorial .c-project-card__media {
  position: relative;
  overflow: hidden;
  background: var(--color-sage);
  aspect-ratio: 16 / 10;
}

body.theme-editorial .c-project-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

body.theme-editorial a.c-project-card:hover .c-project-card__img,
body.theme-editorial a.c-project-card:focus-visible .c-project-card__img {
  transform: scale(1.04);
}

body.theme-editorial .c-project-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-5) var(--space-5) var(--space-6);
  gap: var(--space-3);
}

body.theme-editorial .c-project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

body.theme-editorial .c-project-card__tag {
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--color-navy);
  background: var(--color-sage);
  border-radius: var(--radius-sm);
}

body.theme-editorial .c-project-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-navy);
  margin: 0;
}

body.theme-editorial .c-project-card__excerpt {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-muted);
  flex: 1;
}

body.theme-editorial .c-project-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-teal);
}

body.theme-editorial .c-project-card__cta i {
  transition: transform 0.25s ease;
}

body.theme-editorial a.c-project-card:hover .c-project-card__cta i,
body.theme-editorial a.c-project-card:focus-visible .c-project-card__cta i {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  body.theme-editorial a.c-project-card,
  body.theme-editorial .c-project-card__img,
  body.theme-editorial .c-project-card__cta i {
    transition: none;
  }

  body.theme-editorial a.c-project-card:hover,
  body.theme-editorial a.c-project-card:focus-visible {
    transform: none;
  }

  body.theme-editorial a.c-project-card:hover .c-project-card__img,
  body.theme-editorial a.c-project-card:focus-visible .c-project-card__img {
    transform: none;
  }
}

/* Legacy selectors kept for any residual Bootstrap card markup */
body.theme-editorial .card-container .card {
  background: var(--color-white) !important;
  border: 1px solid rgba(23, 42, 58, 0.08) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  height: 100%;
}

/* Section title with teal accent rule */
body.theme-editorial .c-section-title,
body.theme-editorial .cz-thick-leftline {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-navy) !important;
  border-left: 3px solid var(--color-teal) !important;
  padding-left: var(--space-4) !important;
  margin: var(--space-6) 0 var(--space-5);
}

body.theme-editorial .cz-primary-color-text {
  color: var(--color-navy) !important;
}
