/* Components: buttons, badges, tags, cards, process, nav parts */

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--f-sans);
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  line-height: 1;
}

.btn-primary {
  background: var(--ep-accent);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--r-full);
  font-size: 13px;
}
.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  background: transparent;
  color: var(--ep-text2);
  padding: 10px 20px;
  border-radius: var(--r-full);
  border: 0.5px solid var(--ep-border2);
  font-size: 13px;
}
.btn-ghost:hover {
  opacity: 1;
  color: var(--ep-text);
  border-color: var(--ep-text);
}

.btn-contact {
  background: var(--ep-text);
  color: var(--ep-bg);
  padding: 7px 16px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  border: none;
  transition: opacity 0.2s ease;
}
.btn-contact:hover { opacity: 0.8; }

/* ── Tags / Badges ── */

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--ep-tag-bg);
  color: var(--ep-text2);
  line-height: 1;
}
.tag.accent {
  background: var(--ep-accent-light);
  color: var(--ep-accent);
}

/* ── Work Cards ── */

.work-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  display: block;
  text-decoration: none;
  height: 440px;
}
.work-card.featured {
  grid-column: 1 / -1;
  height: 520px;
}

/* Image fills the entire card */
.card-media {
  position: absolute;
  inset: 0;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Static info overlay — glass + gradient, always visible */
.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 64px 24px 24px;
  background: linear-gradient(
    to top,
    rgba(8, 8, 6, 0.93) 0%,
    rgba(8, 8, 6, 0.80) 30%,
    rgba(8, 8, 6, 0.50) 50%,
    rgba(8, 8, 6, 0.24) 65%,
    rgba(8, 8, 6, 0.08) 80%,
    rgba(8, 8, 6, 0.02) 90%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Top row: chips left, CTA right */
.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Tags adapted for dark background */
.card-info .tag {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  border: 0.5px solid rgba(255, 255, 255, 0.20);
}
.card-info .tag.accent {
  background: rgba(200, 82, 42, 0.38);
  color: rgba(255, 255, 255, 0.95);
}

.card-cta {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  flex-shrink: 0;
}

/* Title */
.card-title {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
  color: #fff;
  margin: 0;
}
.work-card.featured .card-title {
  font-size: 21px;
}

/* ── Language switch ── */

.lang-switch {
  display: flex;
  background: var(--ep-tag-bg);
  border-radius: var(--r-full);
  padding: 2px;
  gap: 1px;
}
.lang-btn {
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 500;
  color: var(--ep-text2);
  padding: 4px 10px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}
.lang-btn.active {
  background: var(--ep-surface);
  color: var(--ep-text);
}

/* ── Theme toggle ── */

.theme-toggle {
  width: 36px;
  height: 20px;
  background: var(--ep-border2);
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle.active {
  background: var(--ep-accent);
}
.theme-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
  pointer-events: none;
}
.theme-toggle.active .theme-knob {
  transform: translateX(16px);
}

/* ── Status dot ── */

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 12px;
  color: var(--ep-text2);
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--ep-success-bg);
  border: 0.5px solid rgba(61,184,122,0.2);
}
.status-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ep-success);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Process steps ── */

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
  position: relative;
  padding: var(--sp-5) var(--sp-3);
  z-index: 1;
}
.process-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ep-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ep-accent);
  font-size: 22px;
  flex-shrink: 0;
  border: 0.5px solid rgba(200,82,42,0.2);
}
.process-step-name {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 400;
  color: var(--ep-text);
}
.process-step-desc {
  font-size: 12px;
  color: var(--ep-text2);
  line-height: 1.5;
  max-width: 160px;
}

/* ── Email chip ── */

.email-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--ep-surface);
  border: 0.5px solid var(--ep-border);
  border-radius: var(--r-full);
  font-size: 14px;
  color: var(--ep-text);
  transition: border-color 0.2s;
  text-decoration: none;
}
.email-chip:hover {
  border-color: var(--ep-accent);
}
.email-chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ep-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  flex-shrink: 0;
}

/* ── Social pills ── */

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 0.5px solid var(--ep-border2);
  font-size: 13px;
  color: var(--ep-text2);
  background: transparent;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.social-pill:hover {
  color: var(--ep-text);
  border-color: var(--ep-text);
}

/* ── Coming soon card ── */

.coming-soon-card {
  background: var(--ep-surface);
  border: 0.5px dashed var(--ep-border2);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-12) var(--sp-6);
  text-align: center;
  gap: var(--sp-3);
  height: 440px;
  box-sizing: border-box;
}
.coming-soon-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ep-text3);
}
.coming-soon-title {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--ep-text2);
}
